body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #2f6a6d, #ec9567);
  color: #333;
  text-align: center;
}

.container {
  max-width: 700px; /* Adjust max-width for mobile responsiveness */
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1;
}

h1 {
  font-size: 2em;
  color: #444;
}

#countdown {
  font-size: 1.5em;
  color: #555;
  margin-top: 10px;
}

.line {
  margin: 20px 0;
  border-top: 1px solid #aaa;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flower-top-left,
.flower-bottom-right {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.flower-top-left {
  top: 10px;
  left: 10px;
  width: 100px; /* Adjust as needed */
}

.flower-bottom-right {
  bottom: 10px;
  right: 10px;
  width: 100px; /* Adjust as needed */
}

/* Fade animations */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease-in;
  visibility: visible;
}

/* Initially hide the RSVP form */
#rsvpForm {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in;
}

/* Additional inline styles for volume control layout */
#audioControls {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#volumeControl {
  width: 100px; /* Adjust width as needed */
  margin-top: 5px;
}

#sparkle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allow clicks through sparkles */
  overflow: hidden;
  z-index: 9999;
}

.sparkle {
  position: absolute;
  background: radial-gradient(circle, white 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
  opacity: 0;
  animation: sparkle-fall 6s linear infinite, sparkle-fade 6s linear infinite;
}

@keyframes sparkle-fall {
  0% {
    transform: translateY(-50px);
  }
  100% {
    transform: translateY(100vh);
  }
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 768px) { /* Target smaller screens */
    .card {
        max-height: 80vh; /* Limit the height to 80% of the viewport */
        overflow-y: auto; /* Enable vertical scrolling */
    }
}