/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(to top right, #ffe4e1, #ffe0b2);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Comic Sans MS", cursive, sans-serif;
  position: relative;
  overflow: hidden;
}

.birthday-card {
  background: #fff8e1;
  padding: 40px;
  text-align: center;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  animation: fadeIn 2s ease-in-out;
}

.birthday-card h1 {
  color: #ff4081;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.birthday-card h2 {
  color: #ff9800;
  font-size: 2rem;
}

.birthday-card h2 .name {
  color: #e91e63;
  font-weight: bold;
}

.birthday-card p {
  color: #555;
  font-size: 1.2rem;
  margin: 20px 0;
  line-height: 1.6;
}

.birthday-card h3 {
  color: #4caf50;
  font-size: 1.5rem;
  margin-top: 30px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Confetti Background Effect */
.confetti::before, .confetti::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://cdn.pixabay.com/photo/2016/03/31/20/56/confetti-1293514_960_720.png');
  background-repeat: repeat;
  background-size: 150px;
  opacity: 0.3;
  animation: fall 20s linear infinite;
  z-index: -1;
}

.confetti::after {
  animation-duration: 25s;
  animation-delay: 5s;
}

@keyframes fall {
  0% { background-position: 0 -1000px; }
  100% { background-position: 0 1000px; }
}

.countdown {
  margin: 20px 0;
  font-size: 1.2rem;
  color: #6a1b9a;
}

#timer {
  margin-top: 10px;
  font-weight: bold;
  font-size: 1.5rem;
}

#timer span {
  color: #d32f2f;
  margin: 0 6px;
}
