@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

#css-tasty-logo {
  width: 10rem;
  display: block;
}

.top-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1;
}

span i {
  font-size: 2rem;
}

span i:hover {
  color: #12c2e9;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown {
  margin-bottom: 1rem;
}

.dropdown-burger span {
  margin-left: 1.5rem;
}

/* side scroll nav section */
.lesson-items {
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #12c2e9, #c471ed);
  height: 100vh;
  width: 30vw;
  z-index: 999;
}

.lesson-title {
  display: block;
  padding: 1rem 0 1rem 3rem;
  font-weight: 500;
  font-size: 1.5rem;
  color: #fff;
}

/* anchor tags */
.lesson-items .nav-lessons {
  display: block;
  text-decoration: none;
  color: #000;
  padding: 0.5rem 0 0.5rem 3rem;
  transition: 0.3rem;
  color: #fff;
}

.lesson-items .nav-lessons:last-child {
  margin-bottom: 3rem;
}

.lesson-items hr {
  width: 80%;
  margin: auto;
}

.nav-lessons:hover,
.nav-lessons:active,
.nav-lessons:focus {
  background-color: #fff;
  color: #000;
}

/* main section */
main {
  margin-top: 20vh;
  margin-bottom: 4rem;
}

.dropdown .btn {
  border: 1px solid #12c2e9;
  background-color: #fff;
}

.dropdown .btn:hover {
  border: transparent;
  background: linear-gradient(90deg, #12c2e9, #c471ed);
  color: #fff;
}

/* main content */
iframe {
  display: block;
  margin: 1rem auto 2rem;
}

.git-lesson-title {
  font-weight: 500;
  margin: 1rem 0;
}

.example-code {
  width: fit-content;
}

.code-content li {
  list-style-type: none;
  font-family: "Roboto Mono", monospace;
  color: #393e46;
}

/* footer section */
footer {
  background-color: #393e46;
}

.footer-nav {
  width: 50%;
}

.footer-nav-links {
  text-decoration: none;
  color: #12c2e9;
  transition: 0.3s;
}

.footer-nav-links:hover {
  color: #fff;
}

.footer-social-media {
  width: 25%;
}

.footer-social-media-icons i {
  font-size: 1.5rem;
  color: #12c2e9;
}

.footer-social-media-icons i:hover {
  color: #fff;
}

#copyright {
  color: rgba(255, 255, 255, 0.489);
  font-size: 0.8rem;
}

@media (max-width: 950px) {
  .top-nav,
  main,
  footer {
    padding: 0 1.5rem;
  }

  iframe {
    width: 100%;
  }

  .lesson-items {
    width: 70vw;
  }
  /* footer section */
  .footer-social-media,
  #copyright,
  #css-tasty-logo {
    margin: 1rem auto;
  }

  .footer-nav {
    width: 100%;
  }

  .footer-social-media {
    width: 50%;
  }
}
