* {
  font-size: xx-large;
  box-sizing: border-box; /* Zorg ervoor dat padding en margin binnen de totale breedte vallen */
}

/* Basisstijl */
.rochester-regular {
  font-family: "Rochester", serif;
  font-weight: 400;
  font-style: normal;
}

.updock-regular {
  font-family: "Updock", serif;
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: "Rochester", serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Voorkom horizontale scrollbalk */
  width: 100%; /* Zorg ervoor dat de body altijd 100% breed is */
  display: flex;
  flex-direction: column; /* Flex richting kolom voor verticale stapeling */
  min-height: 100vh; /* Zorgt ervoor dat de footer onderaan blijft */
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  margin-top: 50px;
  width: 100%; /* Volledige breedte gebruiken */
}

img {
  max-width: 100%;
  height: auto;
}

nav {
  background-color: #6b8e23;
  padding: 10px;
  text-align: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 30px;
}

nav a:hover {
  color: #000;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #6b8e23;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 20px;
}

footer i:hover {
  color: #000;
}

.footer-icons {
  font-size: 30px;
  margin: 5px;
}

h1 {
  background-color: #6b8e23;
  padding: 20px;
  text-align: center;
  color: white;
  border-radius: 10px;
  font-size: 30px;
}

.text-box {
  background-color: white;
  padding: 15px;
  margin-bottom: 20px;
}

/* TIMELINE */
.timeline {
  padding: 50px 0;
}

.timeline ul {
  padding: 0; /* Verwijder padding om horizontale scroll te voorkomen */
  margin: 0; /* Zorg ervoor dat de marges niet bijdragen aan horizontale scroll */
}

.timeline ul li {
  list-style-type: none;
  position: relative;
  margin: 0 auto;
  padding-top: 50px;
  background: black;
  width: 100%; /* Zorg ervoor dat het element 100% breed is */
}

.timeline ul li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: inherit;
  z-index: 1;
}

.timeline ul li div {
  position: relative;
  bottom: 0;
  width: 90%; /* Breedte aangepast voor mobiel */
  max-width: 400px; /* Max breedte voor desktop */
  padding: 15px;
  background: lightgreen;
  margin: 0 auto; /* Centeren op mobiel */
}

.timeline ul li div::before {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline ul li:nth-child(odd) div {
  left: 45px;
}

.timeline ul li:nth-child(odd) div::before {
  left: -15px;
  border-width: 8px 16px 8px 0;
  border-color: transparent lightgreen transparent transparent;
}

.timeline ul li:nth-child(even) div {
  left: -45px; /* Gelijk maken voor mobiele weergave */
}

.timeline ul li:nth-child(even) div::before {
  right: -15px;
  border-width: 8px 0 8px 16px;
  border-color: transparent transparent transparent lightgreen;
}

time {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

/* EFFECTS */
.timeline ul li::after {
  transition: background 0.5s ease-in-out;
}

.timeline ul li.in-view::after {
  background: lightgreen;
}

.timeline ul li div {
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.timeline ul li:nth-child(odd) div {
  transform: translate3d(200px, 0, 0);
}

.timeline ul li:nth-child(even) div {
  transform: translate3d(-200px, 0, 0);
}

.timeline ul li.in-view div {
  transform: none;
  visibility: visible;
  opacity: 1;
}

/* MEDIA QUERY VOOR MOBIEL */
@media (max-width: 768px) {
  .timeline ul li {
    padding-top: 20px; /* Verminder de bovenste padding */
  }

  .timeline ul li div {
    width: 90%; /* Maak de breedte van de timeline-divs smaller */
    max-width: none; /* Geen maximum breedte voor mobiel */
  }

  .timeline ul li:nth-child(odd) div {
    left: 0; /* Center de items op mobiele apparaten */
  }

  .timeline ul li:nth-child(even) div {
    left: 0; /* Center de items op mobiele apparaten */
  }
}
