#intro {
  opacity:    1; 
  background: #000; 
  width:      100%;
  height:     100%; 
  z-index:    20;
  top:        0; 
  left:       0; 
  position:   fixed; 
  justify-content: center;
  padding-top: 21%;
  line-height: 20px;
}

body, html {
  cursor: url('/src/images/pointer.png'), default;
}

body {
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

#backgroundContainer {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-image: url("/src/images/main-bg.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

#backgroundContainer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.1));
  z-index: 1;
}



#messageBox, .messageBox {
  align-self: center;
  margin: 20px auto;
  padding: 10px;
  background-color: rgba(51, 51, 51, 0.8);
  border: 2px solid #fff;
  display: inline-block;
  font-size: 16px;
  z-index: 10;
  max-width: 80%;
}

.hidden {
  visibility: hidden;
}

.characters {
  position: absolute;
  bottom: 20%;
  right: 30%;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.character {
  width: 50px;
  height: 70px;
  background-size: cover;
  position: relative;
  animation: bounceHorizontal 1.5s infinite;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.character:hover {
  transform: scale(1.2);
}

.character1 {
  width: 80px;
  height: 80px;
  scale: 0.85;
  background-image: url('/src/images/char-boy.png');
}

.character2 {
  background-image: url('/src/images/char-girl-main.png');
  animation-delay: 0.2s;
}

.tooltip {
  position: absolute;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 40px;
  background-image: url('/src/images/ttbox.png');
  background-size: cover;
  pointer-events: none;
  animation: bounce 1.5s infinite;
  filter: drop-shadow(0 0 5px #ffd700);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes bounceHorizontal {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

#smokeContainer {
  position: absolute;
  bottom: 40%;
  left: 23%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10;
}

.smoke {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at center, rgba(220, 220, 220, 0.5) 15%, transparent 70%);
  border-radius: 50%;
  image-rendering: pixelated;
  opacity: 0.6;
  filter: blur(2px);
  animation: smokeRise 6s ease-out forwards, smokeDrift 4s ease-in-out infinite;
}

.smoke::before {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, rgba(200, 200, 200, 0.3) 20%, transparent 70%);
  border-radius: 50%;
  top: -5px;
  left: 8px;
}

@keyframes smokeRise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-500px);
    opacity: 0;
  }
}

@keyframes smokeDrift {
  0%, 100% {
    transform: translateX(0px);
  }
  50% {
    transform: translateY(-100px);
  }
}

.firefly {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #eeff00;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
  pointer-events: none;
  animation: move 6s ease-in-out infinite, glow 3s ease-in-out infinite;
}

@keyframes move {
  0% { transform: translate(0, 0); }
  25% { transform: translate(calc(20vw * var(--rand-x1)), calc(20vh * var(--rand-y1))); }
  50% { transform: translate(calc(20vw * var(--rand-x2)), calc(20vh * var(--rand-y2))); }
  75% { transform: translate(calc(20vw * var(--rand-x3)), calc(20vh * var(--rand-y3))); }
  100% { transform: translate(0, 0); }
}

@keyframes glow {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700; }
  50% { opacity: 1; box-shadow: 0 0 15px #ffd900, 0 0 30px #ffd900; }
}

#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

#finalMessage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

#popupContent {
  background-color: #f5f5dc;
  color: black;
  border: 6px solid #ff69b4;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  max-height: 80%;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
  border-radius: 10px;
}

#videoContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

#innerContainer {
  background-color: #f5f5dc;
  border: 6px solid #ff69b4;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
  border-radius: 10px;
}

#birthdayVideo {
  width: 100%;
  max-width: 760px;
  height: auto;
  border: 4px solid #ff69b4;
  border-radius: 8px;
}

.pulsate {
  animation: pulsate 2s infinite;
}

@keyframes pulsate {
  0% { transform: scale(1); text-shadow: 0 0 10px #ff69b4; }
  50% { transform: scale(0.9); text-shadow: 0 0 20px #ff69b4; }
  100% { transform: scale(1); text-shadow: 0 0 10px #ff69b4; }
}

#confettiContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #ff69b4;
  animation: fall 3s linear infinite;
  border-radius: 50%;
}

.confetti:nth-child(odd) {
  width: 8px;
  height: 15px;
  border-radius: 2px;
}

@keyframes fall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.scrollableContent {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.joy-image {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  /*border: 4px solid #ff69b4;*/
  border-radius: 8px;
}

#goBackButton, #videoCloseButton, #startButton, #clearButton {
  display: block;
  margin: 20px auto 0;
  padding: 12px 24px;
  background-color: #ff69b4;
  color: #fff;
  border: 2px solid #fff;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3), -5px -5px 10px rgba(255, 255, 255, 0.3);
}

#goBackButton:hover, #videoCloseButton:hover, #startButton:hover, #clearButton:hover {
  background-color: #fff;
  color: #ff69b4;
  transform: scale(1.1);
}

#musicLink {
  border: #ff69b4 3px solid;
  border-radius: 30px;
  box-shadow: inset 2px 2px 5px #ff69b4, inset -2px -2px 5px #ff69b4;
  padding: 100px;
  position: absolute;
  bottom: 20%;
  left: 17%;
  transform: translateX(-50%);
  color: #ff69b4;
  font-size: 16px;
  text-decoration: none;
  z-index: 10;
  transition: transform 0.2s;
  animation: pulsate 2s infinite;
  background-color: rgba(227, 16, 16, 0.1);
}

#musicLink:hover {
  transform: translateX(-50%) scale(1.1);
}

@media (max-width: 600px) {
  #messageBox, .messageBox {
    font-size: 12px;
    padding: 8px;
  }
  .character {
    width: 40px;
    height: 56px;
  }
  .tooltip {
    width: 48px;
    height: 32px;
    bottom: 54px;
  }
  #popupContent, #innerContainer {
    width: 90%;
    padding: 15px;
  }
}
