* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes gradientAnimation {
  0% {
    background-size: 100% 100%;
  }
  50% {
    background-size: 200% 200%;
  }
  100% {
    background-size: 100% 100%;
  }
}

body {
  font-family: 'Roboto Mono', monospace;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center,
    #000428 0%,
    #001f54 25%,
    #002e74 50%,
    #001f54 75%,
    #000428 100%
  );
  background-position: center;
  animation: gradientAnimation 15s ease-in-out infinite;
  color: #ffffff;
  overflow: hidden;
}

.container {
  text-align: center;
  padding: 2rem;
  max-width: 100%;
}

.message {
  margin-bottom: 3rem;
}

.message img {
  width: 320px;
  margin-bottom: 20px;
}

.text-container {
  display: block;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.text-container.fade {
  opacity: 0;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 0 15px rgba(144, 224, 239, 0.7);
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #90e0ef;
  text-shadow: 0 0 15px rgba(144, 224, 239, 0.7);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 15px rgba(144, 224, 239, 0.7);
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.time-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.flip-card {
  background: #111;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  perspective: 400px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.time-value {
  font-size: 4rem;
  font-weight: 700;
  background: #0a0a0a;
  padding: 1rem 0.5rem;
  border-radius: 8px;
  min-width: 120px;
  color: #ffffff;
  position: relative;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  border: 2px solid #222;
  transform-origin: center;
  transition: transform 0.3s;
}

.time-value::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  top: 50%;
  z-index: 1;
}

.time-label {
  font-size: 1rem;
  margin-top: 0.5rem;
  font-weight: 400;
  color: #caf0f8;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.separator {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0.25rem;
  animation: pulse 1s infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes flipInCenter {
  0% {
    transform: perspective(400px) rotateX(0);
  }
  50% {
    transform: perspective(400px) rotateX(90deg);
  }
  100% {
    transform: perspective(400px) rotateX(0);
  }
}

.digit-changed {
  animation: flipInCenter 0.6s ease-in-out;
  transform-origin: center;
  backface-visibility: hidden;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  h3 {
    font-size: 1rem;
  }
    
  .message img {
    width: 220px;
  }

  .time-section {
    min-width: 70px;
  }
  
  .time-value {
    font-size: 2.5rem;
    min-width: 70px;
    padding: 0.75rem 0.3rem;
  }
  
  .separator {
    font-size: 2.5rem;
  }
  
  .time-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .countdown {
    gap: 0.25rem;
  }
  
  .time-section {
    min-width: 60px;
  }
  
  .message img {
    width: 220px;
  }

  .time-value {
    font-size: 2rem;
    min-width: 60px;
    padding: 0.5rem 0.2rem;
  }
  
  .separator {
    font-size: 2rem;
    margin: 0 0.1rem;
  }
}