@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@800&family=Titan+One&display=swap");

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0;
  background-color: #f9f0df;
  border-top: 2px solid black;
}

.navbar {
  color: transparent;
  background-color: transparent;
  z-index: 2;
}

.checkbox {
  position: absolute;
  display: none;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 70px;
  height: auto;
  margin-right: 20px;
  z-index: 4;
  margin-left: 20px;
}

.logo-heading {
  font-family: "Lexend", sans-serif;
  font-size: 24px;
  align-items: center;
  display: flex;
  justify-content: center;
  color: black;
}

.navbar-img {
  width: 100%;
  height: auto;
  display: flex;
  margin: 0;
  display: none;
  padding: 0;
}

.navbar-img-navlink {
  width: 100%;
  height: auto;
  display: flex;
  margin: 0;
  display: none;
  padding: 0;
}

.navbar-img-default {
  width: 100%;
  height: auto;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  font-family: "Lexend", sans-serif;
  font-size: 20px;
  transition: transform 0.3s ease-in-out;
}

.nav-links li {
  margin-right: 20px;
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: black;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-links .button-text {
  padding: 8px 16px;
  border: 2px solid black;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 3px 3px 0 black;
  background-color: #e85c3b;
}

.nav-links .button-text:hover {
  transform: translateY(3px);
  box-shadow: 0 0 0 black;
}

.menu-toggle {
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
    border-top: 1px solid black;
  }

  .logo-container {
    display: flex;
    align-items: center;
  }

  .logo {
    width: 50px;
    height: auto;
    margin-right: 15px;
  }

  .logo-heading {
    font-size: 22px;
  }

  .nav-links {
    position: absolute;
    left: 0;
    width: 100%;
    background-color: #f9f0df;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
    transition: transform 0.5s ease-in-out;
  }

  .nav-links .button-text {
    border: 1px solid black;
  }

  #menu-links {
    display: none;
    flex-direction: column;
    padding: 10px;
    text-align: center;
    background-color: #f9f0df;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    border-radius: 5px;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    opacity: 0;
    transform: translateY(-20px);
  }

  #menu-links.active {
    display: flex;
    opacity: 1;
    padding-top: 24px;
    transform: translateY(0);
  }

  .nav-links.active,
  .checkbox:checked ~ .nav-links {
    margin-top: -15px;
    display: flex;
  }

  .nav-links li {
    font-size: 14px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }

  .hamburger-lines {
    display: block;
    height: 26px;
    width: 32px;
    position: absolute;
    top: 17px;
    right: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hamburger-lines .line {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 10px;
    background: #0e2431;
  }

  .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
  }

  .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out;
  }

  .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
  }

  .checkbox {
    position: absolute;
    display: block;
    height: 32px;
    width: 32px;
    top: 20px;
    right: 20px;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
  }

  .checkbox:checked ~ .menu-links {
    transform: translateX(0);
  }

  .checkbox:checked ~ .hamburger-lines .line1 {
    transform: rotate(45deg);
  }

  .checkbox:checked ~ .hamburger-lines .line2 {
    transform: scaleY(0);
  }

  .checkbox:checked ~ .hamburger-lines .line3 {
    transform: rotate(-45deg);
  }

  .navbar-img-navlink {
    display: block;
    position: absolute;
    bottom: -7px;
  }

  .navbar-img {
    display: block;
    position: absolute;
    bottom: 0px;
  }
}
