/* General Reset and Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Comic Sans MS", cursive, sans-serif;
}

body {
  background: url('background.png') no-repeat center center/cover;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow-x: hidden;
  animation: fadeIn 2s ease-in;
}

.container {
  background: rgba(0, 0, 0, 0.6);
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  width: 90%;
  max-width: 800px;
  text-align: center;
  animation: popIn 1s ease-out;
}

h1 {
  font-size: 3rem;
  color: #ffdd57;
  margin-bottom: 20px;
  text-shadow: 2px 2px #000;
  animation: glow 2s infinite alternate;
}

form input {
  width: 70%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
}

form button {
  padding: 12px 25px;
  background-color: #ff6f61;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background-color: #ff3d00;
  transform: scale(1.05);
}

/* Story Display */
#storyContainer {
  margin-top: 30px;
}

#storyScene {
  font-size: 1.4rem;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 10px #fff;
  animation: fadeInStory 1s ease-in-out;
}

#videoContainer {
  margin-top: 20px;
  animation: slideIn 1s ease-in-out;
}

#storyContainer button {
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #8e44ad;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#storyContainer button:hover {
  background-color: #6c3483;
  transform: scale(1.05);
}

/* Hide initially */
.hidden {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes glow {
  from { text-shadow: 0 0 10px #ffdd57, 0 0 20px #ffdd57; }
  to { text-shadow: 0 0 20px #fff, 0 0 30px #ffdd57; }
}

@keyframes fadeInStory {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideIn {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
