* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --utah-redrock: #c1440e;
  --desert-sand: #f4a261;
  --mountain-blue: #264653;
  --canyon-green: #2a9d8f;
  --sunset-orange: #e76f51;
  --light-tan: #fdf2e9;
  --medium-tan: #f1e2d1;
  --dark-tan: #d2b48c;
}

body {
  max-width: 100%;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background-color: var(--dark-tan);
}

.top-btn {
  position: absolute;
  z-index: 52;
  top: -280px;
  left: 50%;
  transform: translate(-50%);
}

.hero {
  position: relative;
  z-index: 51;
  width: 100vw;
  height: 750px;
  background-color: var(--mountain-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.large-menu {
  position: relative;
  width: 100%;
  height: 700px;
  z-index: 40;
  color: var(--medium-tan);
  list-style: none;
  font-size: 35px;
  display: flex;
  justify-content: space-around;
  align-items: end;
}

.large-menu li {
  cursor: pointer;
}

.large-menu li:hover {
  transform: scale(1.05);
  transition: ease 0.1s;
}

.large-menu a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 10px;
}

.large-menu li:hover a {
  transform: scale(1.05);
  transition: transform 0.1s ease;
}

.large-menu li.active a {
  color: var(--utah-redrock); /* The color for the active link */
  font-weight: bold; /* Optional: make the active link bold */
}

.logo {
  max-width: 100%;
  height: auto;
  position: absolute;
  top: -50px;
  z-index: 5;
}

.desktop {
  display: flex;
  flex-wrap: wrap;
  max-width: 1900px;
  margin: 20px auto;
}

.fa-bars {
  position: absolute;
  top: -30px;
  right: 30px;
  color: var(--medium-tan);
  font-size: 28px;
  z-index: 30;
}

.active-bars {
  color: var(--dark-tan);
  transition: 0.8s ease;
}

.menu {
  width: 100vw;
  height: 300px;
  background-color: var(--dark-tan);
  position: absolute;
  top: 0px;
  z-index: 50;
  transition: ease 0.8s;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.menu-active {
  width: 100vw;
  height: 300px;
  background-color: var(--dark-tan);
  box-shadow: 0px 4px 6px -2px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 300px;
  z-index: 50;
  transition: ease 0.8s;
}

.menu ul {
  list-style: none;
}

.menu ul li {
  margin: 20px 0px;
  font-size: 20px;
  font-weight: bold;
  color: var(--mountain-blue);
  text-align: center;
}

.menu ul li.active a {
  color: var(--utah-redrock);
  font-weight: bold;
}

.card {
  padding: 15px;
  color: var(--mountain-blue);
  background-color: var(--medium-tan);
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
  position: relative;
  z-index: 1;
  border-radius: 8px;
}

.card img {
  height: 500px;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  width: 100%;
}

.card h1 {
  margin-top: 20px;
  font-size: 24px;
  font-weight: bold;
}

.card p {
  margin-top: 10px;
  line-height: 1.6;
}

.btn {
  background-color: var(--utah-redrock);
  color: var(--light-tan);
  width: 120px;
  padding: 8px 15px;
  border: none;
  border-radius: 8px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: var(--mountain-blue);
  color: var(--medium-tan);
  height: 150px;
  font-size: 34px;
}

.form-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 300px;
  height: 500px;
  background-color: var(--dark-tan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -150%);
  z-index: 52;
  border-radius: 6px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.8s ease, opacity 0.8s ease;
  opacity: 0;
}

.form-container-active {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.fa-arrow-left {
  color: var(--mountain-blue);
  font-size: 26px;
  position: absolute;
  top: 25px;
  left: 25px;
}

.form-container ul {
  height: 250px;
  width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
}

.form-container ul li {
  font-size: 20px;
  font-weight: 500;
  color: var(--mountain-blue);
  cursor: pointer;
}

#subscription-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  color: var(--mountain-blue);
  font-size: 20px;
  font-weight: 500;
  height: 150px;
}

#subscription-form input {
  background-color: var(--light-tan);
  color: var(--mountain-blue);
  height: 28px;
  width: 200px;
  border: 1px solid var(--mountain-blue);
  border-radius: 5px;
}

#subscription-form button {
  background-color: var(--mountain-blue);
  color: var(--light-tan);
  width: 120px;
  padding: 8px 15px;
  border: none;
  border-radius: 8px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);
}

.hide {
  display: none;
}

.shadow-bottom {
  box-shadow: 0px 6px 6px -6px rgba(0, 0, 0, 0.5);
}

.shadow-top {
  box-shadow: 0px -6px 6px -6px rgba(0, 0, 0, 0.5);
}

.shadow-both {
  box-shadow: 0px -6px 6px -6px rgba(0, 0, 0, 0.5),
    0px 6px 6px -6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 450px) {
  body {
    background-color: var(--medium-tan);
  }

  .desktop {
    display: block;
  }

  .hero {
    position: relative;
    z-index: 51;
    width: 100vw;
    height: 300px;
    background-color: var(--mountain-blue);
  }

  .large-menu {
    display: none;
  }

  .top-btn {
    position: absolute;
    z-index: 52;
    top: 280px;
    left: 50%;
    transform: translate(-50%);
  }

  .fa-bars {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--medium-tan);
    font-size: 28px;
    z-index: 30;
    transition: 0.8s ease;
  }

  .active-bars {
    color: var(--dark-tan);
    transition: 0.8s ease;
  }

  .menu {
    width: 100vw;
    height: 300px;
    background-color: var(--dark-tan);
    position: absolute;
    top: 0px;
    z-index: 50;
    transition: ease 0.8s;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .menu-active {
    width: 100vw;
    height: 300px;
    background-color: var(--dark-tan);
    box-shadow: 0px 4px 6px -2px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 300px;
    z-index: 50;
    transition: ease 0.8s;
  }

  .menu ul li a {
    text-decoration: none;
    color: var(--mountain-blue);
  }

  .logo {
    max-width: 100%;
    height: 390px;
    position: absolute;
    top: -50px;
    z-index: 5;
  }

  .card {
    padding: 15px;
    color: var(--mountain-blue);
    background-color: var(--medium-tan);
    overflow: hidden;
    max-width: 600px;
    margin: 0px auto;
    border-radius: 0px;
    position: relative;
    z-index: 1;
  }

  .card img {
    height: 500px;
    object-fit: cover;
    width: 100%;
    border-radius: 0px;
  }

  .card h1 {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
  }

  .card p {
    margin-top: 10px;
    line-height: 1.6;
  }

  footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: var(--mountain-blue);
    color: var(--medium-tan);
    height: 50px;
    font-size: 14px;
  }
}

@media (max-width: 916px) and (min-width: 451px) {
  footer {
    height: 75px;
    font-size: 25px;
  }

  .large-menu {
    position: relative;
    width: 100%;
    height: 700px;
    z-index: 40;
    color: var(--medium-tan);
    list-style: none;
    font-size: 22px;
    display: flex;
    justify-content: space-around;
    align-items: end;
  }
}
