body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: #212121;
  color: whitesmoke;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

#home {
  position: fixed;
  top: 5px;
  right: 5px;
  font-size: larger;
  z-index: 1000;
  text-decoration: none;
  color: #212121;
}

h2 {text-align: center; width: 100vw;}

#aantallen {
  width: 100vw;
  text-align: center;
}

/* === Zoekbalk (bovenaan fixed) === */
#search {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

#mySearch {
  width: 100%;
  font-size: 18px;
  padding: 12px;
  background-color: yellow;
  color: #212121;
  border: none;
  outline: none;
}

#searchButton {
  position: fixed;
  top: 0;
  right: 130px;
  font-size: 12px;
  padding: 10px;
  background-color: yellow;
  border: 1px solid #212121;
  color: #212121;
  opacity: 0.8;
  margin-top: 5px;
  border-radius: 5px;
  font-weight: bold;
}

#searchButton:hover {
  border: 1px solid deeppink;
  color: deeppink;
}

#clearButton {
  position: fixed;
  top: 0;
  right: 70px;
  font-size: 12px;
  padding: 10px;
  background-color: yellow;
  border: 1px solid #212121;
  color: #212121;
  opacity: 0.8;
  margin-top: 5px;
  border-radius: 5px;
  font-weight: bold;
}

#clearButton:hover {
  border: 1px solid deeppink;
  color: deeppink;
}

/* === Show-hide buttons (onder zoekbalk fixed) === */
#show-hide-klasse {
  position: fixed;
  top: 50px;
  left: 0;
  width: 30%;
  min-height: 30px;
  text-align: left;
  z-index: 10;
}

#show-hide-soorten {
  position: fixed;
  top: 50px;
  right: 0;
  width: 30%;
  min-height: 30px;
  text-align: right;
  z-index: 10;
}

/* === Klasse-buttons (overlay, fixed) === */
.klasse-buttons {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  width: 30%;
  max-width: 600px;
  flex-direction: column;
  height: 80dvh;
  overflow-y: auto;
  gap: 10px;
  padding: 10px;
  z-index: 1000;
}

.klasse-btn {
  padding: 8px 16px;
  border: 2px solid yellow;
  background: whitesmoke;
  color: #333;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
}

.klasse-btn:hover {
  background: lime;
}

.klasse-btn.active {
  background: #333;
  color: lime;
}

/* === Soortenlijst (overlay rechts, fixed) === */
#soortenlijst-container {
  display: none;
  position: fixed;
  top: 90px;
  right: 0;
  width: 30%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 20;
}

#soortenlijst {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 80dvh;
  overflow-y: auto;
  z-index: 500;
}

#soortenlijst-container .soortenlijst-item {
  padding: 10px;
  background: yellow;
  color: #333;
  cursor: pointer;
  border-radius: 5px;
  margin-bottom: 5px;
}

#soortenlijst-container .soortenlijst-item:hover {
  background: lime;
}

/* === Media wrapper voor foto's en video's (nieuw) === */
.media-wrap {
  width: 50%;
  max-width: 50%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 auto;
}

.media-img,
.media-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.media-video {
  outline: none;
}

/* === Alttekst (uniek gemaakt, van id naar class) === */
.alttekst {
  
  font-style: italic;
  padding-right: 12px;
  font-size: 12px;
}

/* === Content container === */
.content-container {
  margin-top: 90px;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  height: calc(100vh - 90px);
  text-align: center;
}

#actieveSoort {
  width: 50%;
  text-align: center;
}

.item {
  margin-bottom: 20px;
  padding: 12px;
  border-top: 1px solid yellow;
}

/* === Smartphone === */
@media screen and (max-width: 786px) {
  #show-hide-klasse {
    width: 40%;
  }

  #show-hide-soorten {
    width: 40%;
  }

  .klasse-buttons {
    width: 45%;
    left: 5%;
    /* hoogte blijft normaal (geen vaste dvh nodig als je normale hoogte wilt) */
  }

  #soortenlijst-container {
    width: 45%;
    max-width: 45%;
    right: 5%;
    /* hoogte blijft normaal (geen vaste dvh nodig als je normale hoogte wilt) */
  }

  .content-container {
    margin-top: 90px;
    height: calc(100vh - 90px);
    padding: 10px;
    width: 100dvw;
  }

  .media-wrap {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 auto;
}

  #actieveSoort {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  #soort-h2 {
    color: yellow;
  }

  #content {
    width: 100%;
  }

  .item {
    border-bottom: 1px double yellow;
    border-top: none;
    padding: 12px 8px;
    margin-bottom: 10px;
  }

  .media-wrap {
    border-radius: 16px;
  }
}