

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: black;
  font-family: 'MedievalSharp', cursive;
}

.video-container {
  position: relative;
  height: 100vh;
  width: 100vw;
  background-image: url('../img/index.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: black;
}

@media (max-width: 768px) {
  .video-container {
    background-size: cover;
    background-position: top center;
  }
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

#audioToggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease;
}

#audioToggle:hover {
  transform: scale(1.2);
}

.center-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.bubble {
  background-color: rgba(0, 0, 0, 0.0); /* fully transparent */
  padding: 15px 20px;
  border-radius: 25px;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  animation: floatText 3s ease-in-out infinite alternate;
  font-family: 'Cinzel Decorative', serif;
  text-shadow: 0 0 10px #ffdde1;
}

#whisperBox {
  padding: 12px 20px;
  font-size: 1.2rem;
  font-family: 'Cinzel Decorative', serif;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 15px;
  outline: none;
  box-shadow: 0 0 10px #fff, inset 0 0 5px #ccc;
  transition: all 0.3s ease;
  width: 80%;
  max-width: 300px;
  text-align: center;
  letter-spacing: 0.2rem;
  text-shadow: 0 0 5px #000000aa, 0 0 10px #00000088;
}

#whisperBox::placeholder {
  color: #ccc;
  font-style: italic;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    text-shadow: 0 0 5px #999, 0 0 10px #000;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 10px #111, 0 0 20px #222;
  }
}

@keyframes floatText {
  from { transform: translateY(0px); }
  to { transform: translateY(-10px); }
}