/* basis */
html,
body {
  overflow-x: hidden; /* voorkomt horizontaal scrollen */
}

body {
  background-color: #F3F1EC;
  color: #2B2B2B;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

/* flex helpers */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center; /* centreert items horizontaal en verticaal */
}

.flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* navigatie */
.topnav {
  background-color: #1E4F9A;
  padding: 0.5rem;
  position: sticky; /* blijft bovenaan plakken tijdens scrollen */
  top: 0; /* bepaalt waar sticky begint */
  width: 100%;
  z-index: 1000; /* zorgt dat de navbar boven andere elementen blijft */
  display: flex;
  align-items: center;
  justify-content: space-between; /* verdeelt items met ruimte ertussen */
}

#hamburger {
  background-color: #1E4F9A;
  border: none;
  color: #fff;
  display: none;
  font-size: 1.4rem;
  padding: 0.4rem 0.6rem;
}

#hamburger.open {
  background-color: #C62828;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
}

nav a:hover {
  background-color: #C62828;
}

nav img.logo {
  height: 3rem;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* main */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

main h1,
main h2,
main h3,
main h4 {
  margin-top: 2rem;
  text-align: center;
  color: #1E4F9A;
}

main p {
  max-width: 50rem;
}

/* foto slider */
.slider {
  max-width: 50rem;
  width: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
}

.slide {
  min-width: 100%;
  position: relative; /* maakt het mogelijk om absolute elementen binnen deze container te positioneren */
}

.slide img {
  display: block;
  margin: auto;
  max-height: 30rem;
  max-width: 100%;
  object-fit: contain;
  aspect-ratio: 3 / 2;
}

.left,
.right {
  position: absolute; /* plaatst de knop relatief aan de dichtstbijzijnde parent met position: relative */
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  padding: 0.5rem;
  text-decoration: none;
}

.left {
  left: 10px;
}

.right {
  right: 10px;
}

/* kaart */
.card {
  background-color: #fff;
  border-radius: 10px;
  padding: 1rem;
  border-left: 6px solid #1E4F9A;
}

/* overzicht */
.overzicht-container {
  display: flex;
  justify-content: center; /* centreert items horizontaal in de container */
  align-items: center;
  gap: 2rem;
  max-width: 80rem;
  width: 100%;
  margin: 2rem auto 0;
}

.foto-rechts img {
  width: 20rem;
  border-radius: 10px;
  object-fit: contain;
  aspect-ratio: 3 / 2;
}

/* activiteiten */
.activiteiten-rij {
  display: flex;
  justify-content: center; /* centreert de items horizontaal */
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.activiteiten-lijst {
  background-color: #FFFFFF;
  padding: 1rem;
  border-radius: 10px;
  width: 30%;
  border-left: 6px solid #1E4F9A;
}

.activiteiten-lijst ul {
  list-style: none;
  padding: 0;
}

.activiteiten-lijst li {
  background-color: #E8E3D9;
  padding: 0.7rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
  border-left: 4px solid #C62828;
}

.activiteiten-foto {
  width: 40%;
  display: flex;
  justify-content: center; /* centreert de afbeelding binnen deze container */
}

.activiteiten-foto img {
  width: 60%;
  max-width: 15rem;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.activiteiten-info {
  background-color: #FFFFFF;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 2rem;
  width: 100%;
  max-width: 80rem;
  text-align: center;
  border-left: 6px solid #1E4F9A;
  margin-left: auto;
  margin-right: auto;
}

.activiteiten-info h3,
.activiteiten-info p {
  text-align: center;
}

.activiteiten-info div {
  margin-bottom: 1.5rem;
}

/* reviews */
.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 50rem;
  width: 100%;
}

.review-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 1rem;
  border-left: 6px solid #1E4F9A;
}

.review-card img {
  width: 4.5rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 3px solid #C62828;
  object-fit: cover;
}

/* footer */
footer {
  background-color: #1E4F9A;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: #C62828;
}

/* mobile */
@media (max-width: 600px) {
  #hamburger {
    display: block;
    position: absolute; /* plaatst het element relatief binnen de dichtstbijzijnde parent */
    left: 0.5rem;
    top: 0.5rem;
  }

  .topnav {
    position: relative; /* maakt het mogelijk om absolute elementen binnen de navbar te positioneren */
    justify-content: space-between; /* verdeelt items netjes over de breedte */
  }

  nav img.logo {
    margin-left: auto;
  }

  #menuItems {
    position: absolute; /* zwevend menu onder de navbar */
    top: 4.1rem;
    left: 0;
    width: 100%;
    display: none;
    background-color: #1E4F9A;
  }

  .topnav.show #menuItems {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 1rem 0;
    gap: 1rem;
  }

  nav li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  nav a {
    width: 100%;
    justify-content: center; /* centreert de inhoud binnen de link */
    padding: 0.6rem 0;
  }

  .review-card {
    flex-direction: column;
    text-align: center;
  }

  .slide img {
    max-height: 20rem;
  }

  .overzicht-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .foto-rechts img {
    width: 50%;
    margin-top: 2rem;
  }

  .activiteiten-rij {
    flex-direction: column;
    align-items: center;
  }

  .activiteiten-foto {
    order: -1;
  }

  .activiteiten-lijst,
  .activiteiten-foto {
    width: 90%;
  }
}

/* tablet */
@media (min-width: 600px) and (max-width: 1024px) {
  nav a {
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
  }

  .slider {
    max-width: 90%;
  }

  .slide img {
    max-height: 25rem;
  }

  main p {
    max-width: 40rem;
  }

  .overzicht-container {
    flex-direction: row;
  }

  .foto-rechts img {
    margin-top: 3rem;
    width: 20rem;
  }
}

/* desktop */
@media (min-width: 1024px) {
  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 1.1rem;
  }

  .slider {
    max-width: 50rem;
  }

  .slide img {
    max-height: 30rem;
  }
}
