/* ---------------- BODY ---------------- */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
}

/* ---------------- MUTE BUTTON ---------------- */
#mute-button {
  position: fixed;         /* altijd rechtsboven */
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(200,200,200,0.3); /* lichtgrijs, onopvallend */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5000;
  transition: background 0.2s ease;
}

#mute-button:hover {
  background: rgba(200,200,200,0.5);
}

#mute-button svg {
  width: 20px;
  height: 20px;
  fill: #555; /* donkergrijs icoon */
}

/* ---------------- HOMEPAGE ---------------- */
.homepage {
  height: 100vh;
  width: 100vw;
  background-image: url("afb/beginscherm.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Zacht op- en neerzweven van de hele overlay */
.overlay {
  text-align: center;
  background: rgba(0,0,0,0.4);
  padding: 60px 40px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  max-width: 90%;
  animation: floatOverlay 4s ease-in-out infinite;
}

@keyframes floatOverlay {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); } /* 15px omhoog */
}

/* Titel */
.title {
  color: white;
  font-size: 64px;
  letter-spacing: 3px;
  font-family: "Cinzel", serif;
  margin: 20px 0 5px 0;
}

/* Start knop */
.start-button {
  font-family: "Cinzel", serif;
  padding: 15px 40px;
  font-size: 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5); /* 50% transparant */
  transition: all 0.3s ease;
  animation: floatButton 2s ease-in-out infinite alternate;
}

.start-button:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.8); /* iets minder transparant bij hover */
}

/* Zachte heen-en-weer beweging van de knop */
@keyframes floatButton {
  0% { transform: translateX(0); }
  50% { transform: translateX(10px); } /* 10px naar rechts */
  100% { transform: translateX(0); }
}

/* ---------------- MOBILE FRIENDLY HOMEPAGE ---------------- */
@media (max-width: 900px) {
  body {
    font-size: 14px;
    overflow-x: hidden;
  }

  .homepage {
    height: 100vh;
    width: 100vw;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .overlay {
    padding: 40px 30px;
    border-radius: 15px;
    max-width: 90%;
  }

  .title {
    font-size: 48px;
    letter-spacing: 2px;
  }

  .start-button {
    font-size: 18px;
    padding: 12px 30px;
  }
}

@media (max-width: 500px) {
  /* Kleinste schermen: nog meer verkleinen */
  .homepage {
    padding: 15px;
    align-items: flex-start;
  }

  .overlay {
    padding: 30px 20px;
    border-radius: 12px;
  }

  .title {
    font-size: 36px;
    letter-spacing: 1px;
  }

  .start-button {
    font-size: 16px;
    padding: 10px 25px;
  }

  /* Optioneel: hint om telefoon te draaien */
  .homepage::after {
    content: "Draai je telefoon voor de beste ervaring";
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 14px;
    opacity: 0.8;
  }
}

