* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  background: linear-gradient(270deg, #ff6b6b, #feca57, #1dd1a1, #48dbfb, #5f27cd, #ff9ff3);
  background-size: 1200% 1200%;
  animation: backgroundShift 15s ease infinite;
}

@keyframes backgroundShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 90%;
  animation: fadeIn 1s ease-out;
  z-index: 2;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  font-size: 2.8rem;
  animation: colorChange 8s infinite alternate;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes colorChange {
  0% { color: #ff6b6b; }
  25% { color: #48dbfb; }
  50% { color: #1dd1a1; }
  75% { color: #feca57; }
  100% { color: #ff9ff3; }
}

.birthday-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 20px auto;
  background-color: #fff6f9;
  padding: 10px;
  border: 5px solid #ff6b6b;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
  transition: all 0.3s ease-in-out;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.birthday-image:hover {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.7);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.countdown-box {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.countdown-box:nth-child(2) { animation-delay: 0.2s; }
.countdown-box:nth-child(3) { animation-delay: 0.4s; }
.countdown-box:nth-child(4) { animation-delay: 0.6s; }

.countdown-value {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #888;
}

.message {
  font-size: 1.4rem;
  margin: 20px 0;
  color: #333;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease;
}

.message.show {
  opacity: 1;
  transform: scale(1);
}

.confetti, .balloon {
  position: absolute;
  z-index: 1;
}

.confetti {
  width: 10px;
  height: 10px;
  background-color: #f00;
  opacity: 0;
  animation: confettiFall 5s linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.balloon {
  width: 40px;
  height: 60px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: balloonFloat 8s ease-in infinite;
  opacity: 0;
}

@keyframes balloonFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

button {
  background: linear-gradient(to right, #ff6b6b, #ff9ff3);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 25px;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  from { box-shadow: 0 0 10px rgba(255, 107, 107, 0.4); }
  to { box-shadow: 0 0 25px rgba(255, 107, 107, 0.8); }
}

button:hover {
  transform: translateY(-3px);
}

form input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin: 10px;
  width: 40%;
}

#wish-confirmation {
  margin-top: 10px;
  color: green;
  font-weight: bold;
}
