/* countdown.css */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 2rem 0;
  font-family: 'Arial', sans-serif;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: bold;
  background-color: #f5f5f5;
  color: #333;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-top: 5px;
  color: #666;
  font-weight: 500;
}

/* Add a little animation for seconds changing */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.countdown-item:last-child .countdown-value {
  background-color: #e6f7ff;
  animation: pulse 1s infinite;
}

/* Celebration animations when countdown reaches zero */
@keyframes celebrate {
  0%, 100% { 
    background-color: #ffdd57; 
    color: #333;
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 221, 87, 0.7);
  }
  20% { 
    background-color: #ff3860; 
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 56, 96, 0.7);
  }
  40% { 
    background-color: #23d160; 
    color: white;
    transform: scale(1);
    box-shadow: 0 0 15px rgba(35, 209, 96, 0.7);
  }
  60% { 
    background-color: #3273dc; 
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(50, 115, 220, 0.7);
  }
  80% { 
    background-color: #9966ff; 
    color: white;
    transform: scale(1);
    box-shadow: 0 0 15px rgba(153, 102, 255, 0.7);
  }
}

/* Apply celebration animation to all countdown values when time's up */
.countdown-celebration .countdown-value {
  animation: celebrate 3s linear infinite;
  animation-fill-mode: both;
  will-change: transform, background-color, color;
}

/* Make each value box celebrate with a slight delay for wave effect */
.countdown-celebration .countdown-item:nth-child(1) .countdown-value {
  animation-delay: 0s;
}

.countdown-celebration .countdown-item:nth-child(2) .countdown-value {
  animation-delay: 0.3s;
}

.countdown-celebration .countdown-item:nth-child(3) .countdown-value {
  animation-delay: 0.6s;
}

.countdown-celebration .countdown-item:nth-child(4) .countdown-value {
  animation-delay: 0.9s;
}
