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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Pathway Gothic One', sans-serif;
}

/* Container voor achtergrond */
.container {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* Achtergrond */
.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('background.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

/* Star Wars container */
.scrolling-text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

/* Countdown timer styling */
.countdown-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 0;
  border: 2px solid #feda4a;
  transition: opacity 2s ease-in-out;
}

.qr-overlay {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid #feda4a;
}

.countdown-container {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

.gift-emoji {
  font-size: 3em;
  /* animation: gift-bounce 2s ease-in-out infinite; */
}

.mier-emoji {
  font-size: 3em;
  animation: gift-bounce 2s ease-in-out infinite;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.gift-emoji.celebration {
  animation: celebration-spin 1s ease-in-out infinite;
}

.countdown-text {
  color: #feda4a;
  font-family: 'Pathway Gothic One', sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.countdown-time {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 5px;
}

.countdown-label {
  font-size: 1em;
  opacity: 0.9;
}

@keyframes gift-bounce {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes celebration-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.star-wars {
  display: flex;
  justify-content: center;
  height: 100vh;
  perspective: 400px;
  color: #feda4a;
  font-family: 'Pathway Gothic One', sans-serif;
  font-size: 700%; /* Groter: van 300% naar 400% */
  font-weight: 600;
  letter-spacing: 6px;
  line-height: 150%;
  text-align: justify;
  -webkit-text-stroke: 2px white;
  text-stroke: 2px white;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(255, 255, 255, 0.5);
}

.crawl {
  position: relative;
  top: 100vh;
  transform-origin: 50% 100%;
  animation: crawl 130s ease-out infinite; /* Langzamer: van 60s naar 80s */
}

/* Star Wars crawl animatie */
@keyframes crawl {
  0% {
    top: 100vh;
    transform: rotateX(20deg) translateZ(0);
    opacity: 1;
  }
  90% {
    top: -6000px;
    transform: rotateX(25deg) translateZ(-2500px);
    opacity: 1;
  }
  95% {
    top: -6000px;
    transform: rotateX(25deg) translateZ(-2500px);
    opacity: 0;
  }
  100% {
    top: 100vh;
    transform: rotateX(20deg) translateZ(0);
    opacity: 0;
  }
}

/* Styling voor title */
.title {
  text-align: center;
  margin-bottom: 40px;
}

.title p {
  font-size: 0.8em;
  margin-bottom: 10px;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(255, 255, 255, 0.5);
}

.title h1 {
  font-size: 1.2em;
  margin-bottom: 20px;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(255, 255, 255, 0.5);
}

/* Paragraaf styling */
.crawl p {
  margin-bottom: 20px;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(255, 255, 255, 0.5);
}

/* Small tekst styling */
.crawl small {
  display: block;
  margin-bottom: 15px;
  font-size: 0.6em;
  font-style: italic;
  color: #feda4a;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(255, 255, 255, 0.5);
}

/* Emoji styling */
.emoji {
  font-size: 2em;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.8),
    2px 2px 4px rgba(0, 0, 0, 0.6);
  display: inline-block;
  animation: emoji-glow 3s ease-in-out infinite alternate;
}

@keyframes emoji-glow {
  0% {
    text-shadow: 
      0 0 10px rgba(255, 255, 255, 0.8),
      2px 2px 4px rgba(0, 0, 0, 0.6);
  }
  100% {
    text-shadow: 
      0 0 20px rgba(255, 255, 255, 1),
      2px 2px 6px rgba(0, 0, 0, 0.8);
  }
}

/* QR Code styling */
.qr-container {
  text-align: center;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
}

.qr-container p {
  font-size: 0.8em;
  margin-bottom: 15px;
  color: #feda4a;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(255, 255, 255, 0.5);
}

.qr-code {
  max-width: 120px;
  height: auto;
  border: none;
  border-radius: 8px;
  box-shadow: 
    0 0 15px rgba(254, 218, 74, 0.3),
    0 0 30px rgba(255, 255, 255, 0.2);
  animation: qr-glow 3s ease-in-out infinite alternate;
}

@keyframes qr-glow {
  0% {
    box-shadow: 
      0 0 15px rgba(254, 218, 74, 0.3),
      0 0 30px rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 
      0 0 25px rgba(254, 218, 74, 0.6),
      0 0 40px rgba(255, 255, 255, 0.4);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .star-wars {
    font-size: 300%; /* Ook op tablet groter */
  }
}

@media (max-width: 480px) {
  .star-wars {
    font-size: 250%; /* Ook op mobiel groter */
  }
}
