/* Global styles */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(circle, #ff9a9e, #fad0c4);
  font-family: 'Arial', sans-serif;
  color: #fff;
}

/* Overlay for confetti (sits on top but doesn’t block clicks) */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* Main container styling */
#container {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title styling */
.title {
  font-family: 'Pacifico', cursive;
  font-size: 48px;
  margin-top: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Area where hearts float */
#hearts-area {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: visible;
  margin-top: 40px;
}

/* Styling for each heart element */
.heart {
  position: absolute;
  font-size: 40px;
  cursor: pointer;
  opacity: 0;
  animation: floatUp 6s linear forwards;
}

/* Heart floating animation */
@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-50px) scale(1);
    opacity: 0;
  }
}

/* Message box styling */
#message-box {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px 30px;
  border-radius: 10px;
  margin-top: 20px;
  min-height: 60px;
  display: inline-block;
}

#message {
  font-size: 24px;
  margin: 0;
}

/* Confetti styling */
.confetti {
  position: absolute;
  width: 8px;
  height: 16px;
  opacity: 0.8;
  animation: confettiFall 3s linear forwards;
}

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