/* General layout */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
   font-family: 'Playfair Display', serif;
  background-color: #fffaf0;
  background-image: url('../afbeeldingen/entrance2.png'); /* Fun zoo entrance image */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body {
  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 {
  position: static;
  padding: 2em 2em;
  border-radius: 10px;
  display: inline-block;
  margin: 1em auto 2em auto;
  color: #333;
  font-weight: bold;
  font-size: 2em;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  padding-top: calc(0.8em + 10px);
}

/* Main content takes remaining space */
main {
  flex: 1;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: -50px;
  width: 100%;
  text-align: center;
  padding: 2em 1em;
  background-color: rgba(253, 242, 233, 0.3);
  font-size: 1em;
  color: #333;
  z-index: 1000;
}

/* Footer content layout */
.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.footer-content p {
  margin: 0;
}

.footer-icon {
  cursor: pointer;
  font-size: 1.5em;
  transition: transform 0.2s;
}

.footer-icon:hover {
  transform: scale(1.3);
}

/* Clouds */
.cloud {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    30px 0 0 0 #fff,
    60px 10px 0 0 #fff,
    90px 0 0 0 #fff;
  width: 60px;
  height: 30px;
  opacity: 0.8;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.1));
  animation: floatCloud 20s linear infinite;
}

.cloud1 {
  top: 80px;
  left: 0;
  animation-delay: 0s;
}

.cloud2 {
  top: 110px;
  left: -150px;
  animation-delay: 0s;
}

.cloud3 {
  top: 140px;
  left: -375px;
  animation-delay: 0s;
}

.cloud4 {
  top: 125px;
  left: -750px;
  animation-delay: 0s;
}

@keyframes floatCloud {
  0% {
    transform: translateX(-200px);
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 200px));
    opacity: 0.8;
  }
}

/* Bird flying */
.bird {
  position: absolute;
  font-size: 2rem;
  top: 120px;
  left: 0;
  animation: fly 12s linear infinite;
  user-select: none;
}

.sidebar {
  position: fixed;         /* Fix it to the viewport */
  left: 0;                 /* Stick to the left edge */
  top: 50%;                /* Move it to halfway down the page */
  transform: translateY(-50%); /* Pull it up by half its height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: fit-content;
  padding: 1em;
  background-color: rgba(255, 255, 255, 0.7);
  width: 10%;
  border-radius: 10px;
  z-index: 1000; /* Ensure it's above other elements if needed */
}

.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%;
}



@keyframes fly {
  0% {
    transform: translateX(-50px) translateY(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(calc(100vw + 50px)) translateY(-20px) rotate(360deg);
    opacity: 1;
  }
}

/* Monkey drag */
.monkey {
  z-index: 1;
  cursor: grab;
  user-select: none;
  position: absolute;
  font-size: 2.2rem;
  top: 50px;
  left: 300px;
}

/* Pause button */
.pause-btn {
  background-color: #fff;
  border: 2px solid #f08a5d;
  border-radius: 50%;
  padding: 0.5em;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.pause-btn:hover {
  background-color: #ffe0d3;
  transform: scale(1.2);
}

/* Paw icons */
#leftPaw, #rightPaw {
  font-size: 1.5em;
  cursor: pointer;
  opacity: 0.4;
  transition: transform 0.3s ease;
}

#leftPaw:hover, #rightPaw:hover {
  transform: scale(1.3);
  opacity: 0.7;
}

.footer-text {
  font-weight: bold;
}

/* Animations for paws */
@keyframes moveLeftPaw {
  0% {
    left: -60px;
    opacity: 0.1;
  }
  100% {
    left: calc(50% - 8em);
    opacity: 0.4;
  }
}

@keyframes moveRightPaw {
  0% {
    right: -60px;
    opacity: 0.1;
  }
  100% {
    right: calc(50% - 8em);
    opacity: 0.4;
  }
}

@keyframes floatCloudReverse {
  0% {
    transform: translateX(calc(100vw + 200px));
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(-200px);
    opacity: 0.8;
  }
}

/* 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 smaller */
  header {
    font-size: 1.3em;
    padding: 1em 0.5em;
  }

  /* Footer content wrapping */
  .footer-content {
    flex-wrap: wrap;
    gap: 0.5em;
    font-size: 1em;
    justify-content: center;
  }

  .footer-icon {
    font-size: 1.3em;
  }

  .pause-btn {
    font-size: 1em;
    padding: 0.3em;
  }

  #leftPaw, #rightPaw {
    font-size: 1.3em;
  }

  /* Smaller clouds */
  .cloud {
    width: 40px;
    height: 20px;
  }

  .bird {
    font-size: 1.5rem;
    top: 80px;
  }

.sky {
  position: relative;
  height: 200px; /* or whatever space you want to give for monkey dragging */
}
}