/* General Layout */
html, body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Playfair Display', serif;
  background: url('../afbeeldingen/jungle.jpg') center/cover fixed no-repeat;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="32" width="32"><text y="24" font-size="24">🦊</text></svg>') 16 16, auto;
}

/* Navigation Bar */
nav {
  position: sticky;
  top: 0;
  z-index: 1100;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 1em 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  margin: 0 1em;
}

/* Navigation list */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 0 20px;
  margin: 0;
  position: relative;
}

/* Navigation links */
nav li {
  position: relative;
  padding: 0 1em;
}

nav li::before {
  content: "|";
  color: #666;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

nav li:last-child::after {
  content: "|";
  color: #666;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

nav li a {
  color: #2c2c2c;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

nav li a:hover {
  color: #f08a5d;
  text-shadow: 2px 2px 5px rgba(240, 138, 93, 0.8);
}

/* Header */
header {
  text-align: center;
  color: #333;
  font-weight: bold;
  font-size: 2em;
  margin: 1em auto 2em;
  padding: 2em;
  border-radius: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Main */
main {
  flex: 1;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 2em 1em;
  background: rgba(253, 242, 233, 0.3);
  text-align: center;
  font-size: 1em;
  color: #333;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}

.footer-icon {
  cursor: pointer;
  font-size: 1.5em;
  transition: transform 0.2s;
}
.footer-icon:hover {
  transform: scale(1.3);
}

.pause-btn {
  background: #fff;
  border: 2px solid #f08a5d;
  border-radius: 50%;
  padding: 0.5em;
  font-size: 1.2em;
  cursor: pointer;
}
.pause-btn:hover {
  background: #ffe0d3;
  transform: scale(1.2);
}

.price {
  display: block;
  float: right;
  opacity: 1;
  color: rgba(255, 255, 255, 0.8);
}

/* Title */
h1 {
  text-align: center;
  font-size: 5.5em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(65, 34, 190, 0.9) radial-gradient(circle, rgba(193, 18, 18, 0.2), rgba(60, 187, 79, 0.9));
  border-radius: 90px;
  padding: 0.5em 1em;
  width: fit-content;
  margin: 0.3em auto 1em;
  margin-bottom: -100px;
}


p {
  font-size: 1.2em;
  position: absolute;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(21, 18, 18, 0.8);
  line-height: 1.4;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1em 1.5em;
  box-sizing: border-box;
  margin: 0;
}

.animal-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 200px; /* 70px space between cards */
  padding: 2em;
}

.animal-card {
  flex: 1 1 45%; /* Two per row */
  max-width: 600px;
  min-width: 300px;
  text-align: center;
}

.animal-card h2 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(65, 34, 190, 0.9) radial-gradient(circle, rgba(193, 18, 18, 0.2), rgba(60, 187, 79, 0.9));
  border-radius: 20px;
  padding: 0.4em 0.8em;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-top: -150px;;
}

.video-container iframe {
  width: 100%;
  height: 340px;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.sidebar {
  width: 200px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  height: fit-content;
  position: sticky;
  top: 300px;
}

p1 {
  font-size: 1.2em;
  top: -400px;
  color: rgba(240, 138, 93, 0.8);
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes content apart */
  height: 100%;
  padding: 1em;
  background-color: rgba(255, 255, 255, 0.5); /* optional */
  width: 10%;
}

.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sticky-bottom {
  margin-top: auto; /* pushes it to the bottom */
  font-size: 0.9em;
  color: #f4f4f6;
  padding: 1em;
  border-top: 1px solid #ccc;
  bottom: -65px;
  width: 100%;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  nav {
    padding: 0.5em;
    margin: 0 0.5em;
  }

  /* This nav ul rule will now correctly apply as the #nav-list rules are gone */
  nav ul {
    flex-direction: row; /* Display items horizontally */
    justify-content: space-around; /* Distribute items with space around them */
    gap: 0.5em; /* Keep a small gap if desired */
    padding: 0; /* Adjust padding as needed */
  }

  nav li {
    padding: 0 0.5em; /* Adjust padding for horizontal items */
    border-bottom: none; /* Remove border from previous column layout */
  }

  /* Ensure dividers are shown on mobile for the horizontal layout */
  nav li::before,
  nav li:last-child::after {
    content: '|'; /* Re-enable the dividers */
  }

  nav li a {
    font-size: 0.9rem; /* Slightly reduce font size for smaller screens if needed */
  }

  header {
    font-size: 1.3em;
    padding: 1em 0.5em;
  }

  .footer-icon {
    font-size: 1.3em;
  }

  .pause-btn {
    font-size: 1em;
    padding: 0.3em;
  }

  /* Adjust height for smaller screens if needed */
  .pensionaries,
  .adults,
  .kids {
    height: 200px; /* Example: Smaller height on mobile */
    width: auto; /* Allow width to be flexible on mobile */
    margin: 10px auto; /* Adjust margin for mobile */
  }

  /* Title adjustment for smaller screens */
  h1 {
    font-size: 2.5em; /* Smaller font size for mobile H1 */
    padding: 0.3em 0.5em;
    border-radius: 40px; /* Adjust border-radius */
    margin: 10px auto; /* Adjust margin */
  }

  p {
    font-size: 1em; /* Smaller font size for paragraphs on mobile */
    padding: 0.8em 1em;
  }
}