/* Basis styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Orbitron', sans-serif;
  color: white;
  overflow: hidden; /* Zorg dat lasers niet scrollen */
}

/* Achtergrond */
.background {
  background: url('rooftop.jpg') no-repeat center center/cover;
  height: 100%;
  width: 100%;
  position: relative;
  animation: bgPulse 10s ease infinite;
}

/* Overlay met lichtere achtergrond en verticale stacking */
.overlay {
  background-color: rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 100%;
  position: relative; 
  display: flex;
  flex-direction: column; /* Elementen onder elkaar */
  justify-content: center;
  align-items: center;
  z-index: 10; /* overlay boven achtergrond */
}

/* Wrapper voor countdown */
.countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

/* Countdown-styling */
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.time-block {
  text-align: center;
}

.time-block h1 {
  font-size: 5rem;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  margin: 0;
  padding: 0 10px;
}

.time-block p {
  font-size: 1.5rem;
  color: white;
  margin-top: 5px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Extra info-styling */
.extra-info {
  text-align: center;
  font-size: 1.2rem;
  color: white;
  margin-top: 20px;
}

.extra-info p {
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  white-space: pre-wrap; /* Zorgt dat line-breaks uit HTML worden gerespecteerd */
}

/* Kleine countdown (indien nodig) */
.small-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.small-countdown h2 {
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  margin: 0;
}

.small-countdown p {
  font-size: 0.9rem;
  color: white;
  margin: 2px 0 0;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

/* Responsiviteit */
@media (max-width: 768px) {
  .countdown-wrapper {
    gap: 40px;
  }

  .countdown {
    gap: 15px; 
    flex-wrap: wrap;
    justify-content: center;
  }

  .time-block h1 {
    font-size: 3rem;
  }

  .time-block p {
    font-size: 1.2rem;
  }

  .extra-info {
    font-size: 1rem;
  }

  .small-countdown {
    gap: 10px;
  }

  .small-countdown h2 {
    font-size: 1.5rem;
  }

  .small-countdown p {
    font-size: 0.8rem;
  }
}

/* Canvas voor lasers achter overlay, maar zichtbaar door de transparantie */
canvas {
  position: absolute;
  top: 0; 
  left: 0;
}

#lasers {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2; /* Achter overlay */
  filter: brightness(2) saturate(1.5);
}

/* Strobe effect */
.strobe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

.strobe.flash {
  animation: strobeFlash 0.2s ease;
}

@keyframes strobeFlash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Sterrenveld, ook achter overlay */
.star-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 3; /* Achter overlay, maar boven lasers als gewenst */
}

.star {
  position: absolute;
  width: 10px;
  height: 10px;
  background: pink;
  border-radius: 50%;
  opacity: 0.8;
  animation: floatStar 5s linear infinite;
}

@keyframes floatStar {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    transform: translateY(-100px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 0.8;
  }
}

/* Rookmachine ook achter overlay */
.smoke-machine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Onder lasers en sterren */
  overflow: hidden;
}

.smoke-cloud {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,0,0,0.5), transparent 70%);
  filter: blur(100px);
  opacity: 0.7;
  animation: drift 8s infinite ease-in-out alternate;
}

.smoke-cloud:nth-child(1) {
  top: 50%;
  left: 30%;
}
.smoke-cloud:nth-child(2) {
  top: 40%;
  left: 60%;
}
.smoke-cloud:nth-child(3) {
  top: 60%;
  left: 50%;
}

@keyframes drift {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-40%, -60%) scale(1.3);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
}

/* Achtergrond animatie */
@keyframes bgPulse {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(180deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes spin {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

   /* De wrapper die rustig ronddrijft */
    .penis-wrapper {
      position: absolute;
      animation: roam 8s infinite ease-in-out;
    }

    /* De piemel zelf, die heen en weer danst */
    .penis {
      width: 30px;
      height: 100px;
      background-color: pink;
      border-radius: 15px 15px 5px 5px;
      transform-origin: bottom center;
      animation: dance 0.5s infinite alternate ease-in-out;
    }

    /* Extra grote ballen */
    .balls {
      position: absolute;
      bottom: -20px;
      left: -10px;
      width: 50px;
      height: 40px;
      background-color: pink;
      border-radius: 25px;
    }

    /* Heen-en-weer-dans */
    @keyframes dance {
      0%   { transform: rotate(-10deg); }
      100% { transform: rotate(10deg);  }
    }

    /* Rustig rondzweven */
    @keyframes roam {
      0%   { transform: translate(0, 0); }
      50%  { transform: translate(50px, 20px); }
      100% { transform: translate(0, 0); }
    }