*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
html {
  height: 100vh;
  margin: 0;
  background-color: #ffc1cc;
  overflow: hidden;
  max-width: 100vw;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.header {
  position: static;
  width: 100%;
  text-align: center;
  background-color: #ffc1cc;
  padding: 15px 0;
  max-width: 100%;
  margin: 0 auto;
}

h1 {
  font-size: 2.5em;
  color: #ff69b4;
  margin: 0;
}

.question-container {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

@media (max-width: 768px) {
  .question-container {
    top: 80px;
    padding: 8px 0;
  }

  #question {
    font-size: 1.1em;
    margin: 12px 0;
  }

  #agePrompt {
    width: 60px;
    font-size: 1.1em;
  }

  #agePrompt:focus {
    width: 100px;
  }

  #submitButton {
    padding: 8px 12px;
    font-size: 0.9em;
  }
}

#question {
  font-size: 1.3em;
  margin: 15px 0;
  color: #ff1493;
}

.input-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

#agePrompt {
  font-size: 1.2em;
  padding: 10px;
  border: none;
  border-radius: 5px;
  outline: none;
  text-align: center;
  width: 70px;
  max-width: 100px;
  transition: width 0.3s ease;
}

#agePrompt:focus {
  width: 120px;
}

#submitButton {
  padding: 10px 15px;
  font-size: 1em;
  color: #fff;
  background-color: #ff69b4;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#submitButton:hover {
  background-color: #ff1493;
}

.message {
  color: #ff1493;
  font-size: 1em;
  margin-top: 10px;
  display: none;
  max-width: 90%;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  padding-top: 140px;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

.video-container {
  display: none;
  width: 90%;
  max-width: 560px;
  max-height: 40vh;
  justify-content: center;
  align-items: center;
  z-index: 2;
  margin: 0 auto;
}

.video-container video {
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: 40vh;
  border-radius: 10px;
}

.confetti {
  position: absolute;
  width: 15px;
  height: 15px;
  background: #ffd700;
  border-radius: 50%;
  animation: fall 5s linear infinite;
  z-index: 3;
}

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

  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

.birthday-container,
.main-content {
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .container {
    padding: var(--spacing-sm);
    width: 100%;
  }
  .main-container {
    padding-top: 120px;
    width: 100%;
    justify-content: center;
  }
  .video-container {
    max-height: 30vh;
    width: 95%;
  }
  .video-container video {
    max-height: 30vh;
    width: 100%;
  }
  h1 {
    font-size: 2em;
  }
  #question {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--spacing-xs);
    width: 100%;
  }
  .main-container {
    padding-top: 100px;
    width: 100%;
    justify-content: center;
  }
  .video-container {
    max-height: 22vh;
    width: 95%;
  }
  .video-container video {
    max-height: 22vh;
    width: 100%;
  }
  h1 {
    font-size: 1.8em;
  }
  #question {
    font-size: 1em;
  }
  .question-container {
    top: 80px;
  }
}
