@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
/* @import url("https://fonts.googleapis.com/css2?family=Suez+One&display=swap"); */
@import url("https://fonts.googleapis.com/css2?family=Bellefair&display=swap");

:root {
  --primary: #00adb5;
  --secondary: #393e46;
  --light: #eeeeee;
  --dark: #222831;
  --ff-ss: "Lato", sans-serif;
  --ff-s: "Suez One", serif;
  --fw-t: 100;
  --fw-l: 300;
  --fw-n: 400;
  --fw-b: 700;
  --fw-xb: 900;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
  direction: rtl;
}

body {
  font-family: sans-serif;
  margin: 0;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bellefair", serif;
  margin: 0.1em 0;
  font-weight: normal;
  color: var(--primary);
}

h1 {
  /* font-size: 1.875rem; */
  border-bottom: 1px solid var(--light);
  font-weight: 700;
}

h2 {
  text-align: center;
  font-weight: 400;
}

p {
  margin: 0.5em 0;
}

img {
  max-width: 100%;
}

hr {
  border: 1px solid var(--light);
  width: 50%;
}

ol {
  margin-bottom: 0;
}

.nav-toggle {
  cursor: pointer;
  border: 0;
  width: 3em;
  height: 3em;
  padding: 0em;
  border-radius: 50%;
  background: #072a2d;
  color: white;
  transition: opacity 250ms ease;
  position: absolute;
  left: 0;
}

.nav-toggle:focus,
.nav-toggle:hover {
  opacity: 0.75;
}

.hamburger {
  width: 50%;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  margin: 0 auto;
  height: 3px;
  background: white;
}

.hamburger::before,
.hamburger::after {
  content: "";
  width: 100%;
}

.hamburger::before {
  transform: translateY(-6px);
}

.hamburger::after {
  transform: translateY(3px);
}

.navbar {
  height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: scale(0, 0);
  transform-origin: left;
  transition: transform ease-in-out 400ms;
}

.nav--visible {
  height: auto;
  position: relative;
  transform: scale(1, 1);
  transform-origin: right;
  transition: transform ease-in-out 400ms;
}

.nav__list {
  list-style: none;
  padding: 0;
  text-align: center;
  font-size: 4.75rem;
  font-family: "Bellefair", serif;
}

.nav__item {
  margin-bottom: 0;
}

.nav__item:last-child {
  padding-bottom: 0;
}

.nav__item > a {
  text-decoration: none;
  color: var(--secondary);
}

.nav__item > a:hover {
  text-decoration: underline;
  font-weight: 700;
}

.nav__link {
  color: #fff;
  text-decoration: none;
}

.nav__link:hover {
  text-shadow: 2px 2px 4px;
}

header {
  padding: 1em 0;
  text-align: center;
  -webkit-box-shadow: 0 8px 6px -7px rgba(0, 0, 0, 0.16);
  -moz-box-shadow: 0 8px 6px -7px rgba(0, 0, 0, 0.16);
  box-shadow: 0 8px 6px -7px rgba(0, 0, 0, 0.16);
}

.container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.hero {
  margin: 1.25em 0;
}

.hero__title {
  display: inline;
}

.grid {
  display: grid;
  row-gap: 3em;
  column-gap: 4em;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid__item {
  border: 2px solid var(--light);
  border-radius: 3px;
}

.grid__img {
  display: block;
}

.grid__body {
  padding: 1rem;
}

.grid__url {
  text-decoration: none;
  font-size: 2.25rem;
  color: var(--secondary);
  /* font-family: "Bellefair", serif; */
  font-weight: bold;
}

.grid__url:hover {
  text-decoration: underline;
  color: var(--secondary);

}

.main {
  margin-bottom: 10em;
}

.flex {
  display: flex;
  flex-direction: column;
}

.sidebar {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.sidebar__title {
  font-family: "Bellefair", serif;
  margin: 0.1em 0;
  color: var(--primary);
  font-size: 1.9rem;
  text-align: right;
  font-weight: 400;
}

.sidebar__img {
  max-width: 100%;
}

.intro {
  border: 2px solid var(--light);
  padding: 2rem;
  border-radius: 3px;
  margin: 1rem 0;
  margin-bottom: 2rem;
  border-top: 5px solid var(--primary);
  -webkit-box-shadow: 0px 10px 5px -6px rgba(238, 238, 238, 1);
  -moz-box-shadow: 0px 10px 5px -6px rgba(238, 238, 238, 1);
  box-shadow: 0px 10px 5px -6px rgba(238, 238, 238, 1);
}

.buycourse {
  text-align: center;
  margin-bottom: 3rem;
}

.btn {
  color: #00adb5;
  text-align: center;
  background: #393e46;
  padding: 0.25em 0.85em;
  border-radius: 8px;
  font-size: 2.5rem;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.45s ease-out;
}

.btn:hover {
  color: #393e46;
  background: #00adb5;
}

.footer {
  overflow: hidden;
  background: var(--secondary);
  margin: 0;
  padding: 1em;
  text-align: center;
  color: white;
}

.footer__menu {
  list-style: none;
  padding: 0;
}

.footer__link a {
  padding: 0;
  color: white;
  text-decoration: none;
}

.footer__link a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  header {
    padding: 0;
  }

  .flex-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle {
    display: none;
  }

  .navbar {
    visibility: visible;
    display: flex;
    flex-direction: row;
    align-items: center;
    transform: scale(1, 1);
    height: 100%;
  }

  .nav__list {
    display: flex;
    margin: 0 auto;
    text-align: right;
    font-size: 2.25rem;
  }

  .nav__item {
    padding: 2rem;
  }

  .sidebar {
    max-width: 190px;
    border-left: 1px solid var(--light);
    padding-left: 12px;
    margin-left: 12px;
  }

  .flex {
    display: flex;
    flex-direction: row;
  }

  .flex-reverse {
    display: flex;
    flex-direction: row-reverse;
  }

  .article {
    flex: 1;
  }

.btn {
  font-size: 2.5rem;
}

}
