* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden; /* Dit verbergt de scrollbalken */
  position: relative;
  font-family: "Rochester", cursive; /* Pas het lettertype toe op de body */
}

main {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  overflow-x: hidden; /* Dit voorkomt horizontaal scrollen binnen main */
}

.item {
  width: 200px;
  height: 300px;
  list-style-type: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
}

.item:nth-child(1),
.item:nth-child(2) {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

.item:nth-child(3) {
  left: 50%;
}
.item:nth-child(4) {
  left: calc(50% + 220px);
}
.item:nth-child(5) {
  left: calc(50% + 440px);
}
.item:nth-child(6) {
  left: calc(50% + 660px);
  opacity: 0;
}

.content {
  width: min(30vw, 400px);
  position: absolute;
  top: 50%;
  left: 3rem;
  transform: translateY(-50%);
  font: 400 0.85rem helvetica, sans-serif;
  color: white;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: none;
}

.content .title {
  font-family: "Rochester", cursive; /* Gebruik Rochester voor titels */
  font-size: 40px;
}

.content .description {
  font-family: "Rochester", cursive; /* Gebruik Rochester voor titels */
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  font-size: 30px;
  color: lightgreen;
}

.item:nth-of-type(2) .content {
  display: block;
  animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.navi {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  user-select: none;
  display: flex;
  gap: 10px;
}

.navi .btn {
  background-color: rgba(255, 255, 255, 0.5);
  color: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(0, 0, 0, 0.6);
  margin: 0 0.25rem;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
}

.navi .btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Responsive styles for mobile devices */
@media (max-width: 900px) {
  .item {
    width: 150px; /* Smaller items for smaller screens */
    height: 200px; /* Adjust height for better aspect ratio */
  }

  .item:nth-child(3),
  .item:nth-child(4),
  .item:nth-child(5),
  .item:nth-child(6) {
    left: 0; /* Stack items in one column */
    top: auto; /* Reset top positioning */
    transform: translateY(0); /* Reset translation */
    margin-bottom: 10px; /* Space between items */
  }

  .content {
    width: 80vw; /* Make content wider for mobile */
    left: 10vw; /* Center content */
  }

  .navi {
    flex-direction: column; /* Stack navigation buttons vertically */
    bottom: 1rem; /* Adjust bottom position */
  }

  .navi .btn {
    margin: 5px 0; /* Space between buttons */
  }
}

@media (max-width: 650px) {
  .item {
    width: 100%; /* Full width for mobile */
    height: auto; /* Automatic height to maintain aspect ratio */
  }

  .content {
    font-size: 0.8rem; /* Adjust font size for readability */
    left: 1rem; /* Adjust left position */
  }

  .content .title {
    font-size: 24px; /* Adjust title size for mobile */
  }

  .content .description {
    font-size: 18px; /* Adjust description size for mobile */
  }
}

/* Navigation Bar */
nav {
  background-color: #6b8e23;
  height: auto; /* Automatisch aanpassen aan inhoud */
  text-align: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0; /* Extra ruimte rondom de tekst */
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 30px;
  line-height: 70px; /* Ruimte tussen lijnen */
  font-family: "Rochester", cursive; /* Gebruik Rochester voor navigatietekst */
}

/* Responsieve stijlen voor navigatietekst */
@media (max-width: 650px) {
  nav {
    padding: 15px 0; /* Extra padding voor mobiele apparaten */
  }

  nav a {
    font-size: 24px; /* Verklein de tekst voor mobiele apparaten */
    line-height: 50px; /* Vergroot lijnhoogte voor meer ruimte */
    margin: 0 10px; /* Verminder marge tussen links */
  }
}

nav a:hover {
  color: #000;
}

footer {
  text-align: center;
  padding: 12px; /* Nog meer de padding verlagen */
  background-color: #6b8e23;
  color: white;
  font-size: 18px; /* Eventueel verkleinen voor een compactere uitstraling */
  width: 100vw; /* Volledige breedte van het scherm */
  position: relative; /* Houd de positie relative */
  top: 0; /* Verplaats de footer omhoog naar de bovenkant van het scherm */
  left: 50%;
  transform: translateX(-50%); /* Center de footer horizontaal */
  z-index: 1; /* Zorg ervoor dat de footer boven de slider-items staat */
  margin-bottom: 0; /* Zorg ervoor dat er geen extra ruimte onder de footer is */
}

footer i:hover {
  color: #000;
}

.footer-icons {
  font-size: 30px;
  margin: 5px;
}
