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

:root {
  --primary: #025241;
  --primary-fade: #025241b2;
  --secondary: #007969;
  --secondary-fade: #0079699d;
  --hover-color: #005e50;
  --border-radius: 25px;
  --image-border-radius: 15px;
  --section-width: 1000px;
  --gallery-img-size: 150px;
  --transition: all 0.3s ease;
  --golden: 61.8%;
  --golden-less: 38.2%;
  --margin-xxs: 0.5rem;
  --margin-xs: 0.5rem;
  --margin-s: 0.75rem;
  --margin-m: 1rem;
  --margin-l: 1.25rem;
  --margin-xl: 1.5rem;
  --margin-tmp: 2rem;
  --space-s: 2rem;
  --space-m: 4rem;
  --space-l: 8rem;
  --space-xl: 16rem;
  --text-font-size: 1.3rem;
  --h1-font-size: 2.5rem;
  --text-line-height: 1.6;
  --nav-heigth: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: larger;
}

button {
  font-family: Inter, Arial, sans-serif;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--primary);
  height: var(--nav-heigth);
  text-align: center;
  z-index: 99;
  box-shadow: 0 0 10px black;
  transition: var(--transition);
}

.navbar.hidden {
  transform: translateY(calc(var(--nav-heigth) * -1));
}

.navbar a,
.hamburger a {
  color: white;
  text-decoration: none;
  font-size: 1.4em;
  border-radius: 50px;
  padding: 5px 10px;
  font-weight: bold;
  transition: var(--transition);
}

.hamburger a {
  font-size: 1.8em;
  width: 100%;
}

.navbar a:hover,
.hamburger a:hover {
  background-color: var(--secondary);
}

.hamburger {
  display: none;
  position: fixed;
  top: 0;
  z-index: 99;
}

#hamburger-icon {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 1px 5px black;
  color: white;
  transition: backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: backdrop-filter, background-color;

  &.active {
    background-color: var(--primary-fade);
    backdrop-filter: blur(5px);
  }
}

#hamburger-dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: absolute;
  text-align: center;
  top: 62px;
  left: 12.5vw;
  width: 75vw;
  background-color: var(--primary-fade);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  padding: 10px;
  box-shadow: 0 1px 5px black;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;

  &.open {
    display: flex;
    opacity: 1;
  }
}

@media (width <= 768px) {
  body {
    font-size: 1rem;
  }

  .navbar {
    display: none;
  }

  .hamburger {
    display: block;
  }

  :root {
    --text-font-size: 1.1rem;
    --h1-font-size: 2.3rem;
  }
}

section {
  padding-top: 20px;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.visible {
  opacity: 1;
}

h1 {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: var(--space-s);
  margin-top: 5%;
  position: relative;
}

h1::after {
  content: "";
  position: absolute;
  border-radius: 5px;
  bottom: -5px;
  left: 15%;
  width: 70%;
  background-color: var(--hover-color);
  padding: 3px;
  transition:
    width 0.3s ease 0s,
    left 0.3s ease 0s;
}

h1:hover::after {
  width: 90%;
  left: calc(10% / 2);
}

/* misc */
.bold {
  font-weight: bold;
}

.material-symbols-rounded {
  user-select: none;
}

.news {
  padding: 0 var(--space-s);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--margin-xs);
}

.news h2 {
    margin-bottom: var(--margin-m);
    text-align: center;
}

.vid-link {
  position: relative;
  margin:0 auto;
  flex: 1 0;
  width: 80%;
  max-width: 500px;
  overflow: hidden;
  display: block;
  border-radius: var(--image-border-radius);
}

.vid-link img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  filter: brightness(50%);
  transition: var(--transition);
}

.vid-link .material-symbols-rounded {
  font-size: 64px;
  position: absolute;
  top: 50%;
  left: 50%;
  color: white;
  transform: translate(-50%, -50%);
  transition: var(--transition);
}

/* vid-link animation */
.vid-link:hover img {
  transform: scale(1.05);
}

.vid-link:hover .material-symbols-rounded {
  transform: translate(-50%, -50%) scale(1.15);
}

.camp-details {
  display: flex;
  gap: var(--space-s) var(--space-s);
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: space-around;
  margin-top: var(--margin-s);
  padding: 0 var(--space-s);
}

.campsite-details {
  display: flex;
  gap: var(--space-s) var(--space-s);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  margin-top: var(--margin-s);
  padding: 0 var(--space-s);
}

.poster-box {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  justify-items: center;
}

.poster-link {
  flex: 1 0 100px;
  max-width: 400px;
}

.poster-link img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

.poster-img {
  width: 100%;
  border-radius: 0.5rem;
  display: block;
}

.details-box {
  flex: 4 1 300px;
  display: flex;
  flex-direction: column;
}

.details-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-s);
  width: max-content;
  max-width: 100%;
  height: 100%;
  margin: auto;
  font-size: 1.2em;
}

.place {
  display: inline-flex;
  margin-bottom: 20px;
  background-color: transparent;
  font-size: 1.2em;
  color: var(--primary);
  border: 3px solid var(--primary);
  border-radius: 9999px;
  cursor: pointer;
  font-weight: bold;
  align-items: center;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  user-select: none;
}

.place:hover {
  color: white;
  background-color: var(--primary);
}

@media (width <= 768px) {
  .details-list {
    width: 100%;
    font-size: 1em;
  }

  .place {
    font-size: 1em;
  }
}

.detail-item {
  flex-shrink: 1;
  background-color: var(--secondary);
  border-radius: var(--image-border-radius);
  padding: var(--margin-m);
  color: white;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.detail-item .material-symbols-rounded {
  font-size: 2em;
  flex-shrink: 0;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: max-content;
  margin-top: var(--space-s);
}

.register-button {
  display: inline-flex;
  background-color: transparent;
  color: var(--primary);
  border: 3px solid var(--primary);
  font-size: 1.5em;
  border-radius: 9999px;
  cursor: pointer;
  margin: 10px;
  font-weight: bold;
  align-items: center;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  user-select: none;
  gap: 4px;
}

.register-button .material-symbols-rounded {
  font-size: 1.2em;
}

.register-button:disabled {
  pointer-events: none;
}

.register-button:hover {
  color: white;
  background-color: var(--primary);
}

.account-copy {
  font-size: calc(var(--text-font-size) - 4px);
  display: inline-flex;
  background-color: transparent;
  color: var(--primary);
  border: 3px solid var(--primary);
  border-radius: 9999px;
  cursor: pointer;
  font-weight: bold;
  align-items: center;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}

.account-copy:hover {
  color: white;
  background-color: var(--primary);
}



.img-round {
  border-radius: var(--image-border-radius);
}

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

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 1000;
  transform: translateX(-50%);
  background-color: var(--secondary);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 6px 6px rgb(0 0 0 / 64.4%);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    bottom 0.3s ease;
}

.toast.show {
  opacity: 1;
  bottom: 40px;
}

ol {
  list-style: none;
  padding-left: 60px;
}

ol li {
  font-size: var(--text-font-size);
  min-height: 2.5em;
  height: auto;
  margin: 0.7em 0;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  counter-increment: numbers;
  gap: 0.3em;
}

ol li::before {
  content: counter(numbers);
  border-radius: 50%;
  height: 2em;
  width: 2em;
  color: white;
  background-color: var(--secondary);
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1em;
  left: -2.5em;
}

/* image fan */
.past-year {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 10px 0 20px;
}

.img-fan img {
  position: absolute;
  object-fit: cover;
  top: 0;
  left: 0;
  border-radius: var(--image-border-radius);
  border: 3px solid white;
  width: var(--gallery-img-size);
  height: var(--gallery-img-size);
  box-shadow: 0 2px 12px rgb(0 0 0 / 12%);
  transition: var(--transition);
}

.img-fan {
  position: relative;
  width: var(--gallery-img-size);
  height: var(--gallery-img-size);
  transition: var(--transition);
  scale: 1.25;

  & .first {
    transform: translate(-65px, 15px) rotate(-10deg);
    z-index: 1;
  }

  & .second {
    transform: translate(-40px, 10px) rotate(-5deg);
    z-index: 2;
  }

  & .third {
    z-index: 3;
  }

  & .fourth {
    transform: translate(40px, 10px) rotate(5deg);
    z-index: 2;
    
  }

  & .fifth {
    transform: translate(65px, 15px) rotate(10deg);
    z-index: 1;
  }
}

.img-fan:hover {
  scale: 1.35;

  & .first {
    transform: translate(-80px, 25px) rotate(-20deg);
  }

  & .second {
    transform: translate(-50px, 15px) rotate(-10deg);
  }

  & .fourth {
    transform: translate(50px, 15px) rotate(10deg);
  }

  & .fifth {
    transform: translate(80px, 25px) rotate(20deg);
  }
}

/* banner */
.banner {
  position: relative;
  text-align: center;
  color: white;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(40%);
}

@media (width <= 768px) {
  .banner img {
    aspect-ratio: 5 / 3;
    object-fit: cover;
  }
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  user-select: none;
  font-size: 4em;
  transform: translate(-50%, -50%);
  transition: var(--transition);
}

@media (width <= 768px) {
  .banner-text {
    font-size: 3em;
  }
}

/* sections */
.team-section {
  position: relative;
}

.team-section img {
  display: block;
  aspect-ratio: 7 / 2;
  width: 100%;
  max-width: 90vw;
  height: auto;
  object-fit: cover;
  margin-bottom: var(--space-s);
}

@media (width <= 768px) {
  .team-section img {
    aspect-ratio: 5 / 3;
  }
}

.reviews-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 95%;
  margin: 0 auto;
  height: fit-content;
}

.reviews {
  display: flex;
  position: relative;
  width: 95%;
  height: 22rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  mask: linear-gradient(
    90deg,
    transparent,
    white 40px,
    white calc(100% - 40px),
    transparent
  );
  overflow: hidden;
}

.reviews.ready .review {
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.review {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  border: 4px solid var(--secondary);
  border-radius: 23px;
  background-color: white;
  will-change: opacity, transform;
}

.review .description {
  padding: 1rem;
  font-size: var(--text-font-size);
  line-height: calc(var(--text-line-height) / 1.2);
}

.reviewer {
  display: flex;
  flex-direction: column;
  padding: 1rem 0 0.5rem 1rem;
  background-color: var(--secondary);
  color: white;
  font-style: italic;
  gap: var(--margin-xxs);
  border-radius: var(--border-radius) var(--border-radius) 10px 10px;

  & .author {
    font-weight: bold;
  }
}

@media (width <= 868px) {
  .reviews {
    height: 30rem;
  }
}

@media (width <= 768px) {
  .reviews {
    mask: linear-gradient(
      90deg,
      transparent,
      white 10px,
      white calc(100% - 10px),
      transparent
    );
  }
}

@media (width <= 490px) {
  .reviews {
    height: 35rem;
  }
}

@media (width <= 400px) {
  .reviews {
    height: 42.5rem;
  }
}

@media (width <= 357px) {
  .reviews {
    height: 50rem;
  }
}

.arrow {
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  scale: 1.6;
  z-index: 1;
  transition: var(--transition);
}

.arrow:hover {
  color: white;
  background-color: var(--primary);
}

.content {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  max-width: var(--section-width);
}

.list-info {
  padding: 0 1rem;
  line-height: var(--text-line-height);
}

.list-info ul {
  font-size: var(--text-font-size);
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-info li {
  font-size: var(--text-font-size);
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.list-info li::before {
  content: "⬤";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--primary);
  font-size: 1rem;
}

/* footer */
footer {
  margin-top: var(--space-l);
  background-color: var(--primary);
  padding: 20px 0;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  box-shadow: 0 0 5px black;
}

.footer-content {
  max-width: var(--section-width);
  margin: var(--margin-l) auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  color: white;
  gap: var(--space-s);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px 40px;
}

.footer-content a,
.footer-content p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

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

.contact-person p {
  margin-bottom: var(--margin-s);
  margin-left: 16px;
}

.contact-person :nth-child(1) {
  align-self: center;
  margin-left: 0;
}

footer .button {
  color: white;
  font-weight: bold;
  padding: 8px 16px;
  background-color: var(--secondary);
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: var(--margin-s);
}

footer .button:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
}
