/* Fixed Flip Clock styles */
.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem auto;
  perspective: 600px;
  max-width: 90%;
}

.flip-clock {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  background: #303030;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.2),
    inset 0 2px 2px rgba(255, 255, 255, 0.15),
    inset 0 -2px 2px rgba(0, 0, 0, 0.15);
  border: 1px solid #404040;
}

.flip-unit-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 4px;
  position: relative;
}

.flip-clock-digit-container {
  position: relative;
  width: 60px;
  height: 90px;
  perspective: 400px;
}

.flip-clock-digit {
  width: 60px;
  height: 90px;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  background: #222;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3.5rem;
  font-weight: bold;
  font-family: "Roboto Mono", monospace;
}

.flip-clock-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.75rem;
  color: #999;
  letter-spacing: 1px;
  position: absolute;
  bottom: -25px;
  width: 100%;
  text-align: center;
}

.flip-clock-separator {
  font-size: 3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  color: #999;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
  margin: 0 0.25rem;
}

/* Add lines on flip digits to look like real flip clock cards */
.flip-clock-digit::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 4px,
    rgba(0, 0, 0, 0.1) 4px,
    rgba(0, 0, 0, 0.1) 5px
  );
  pointer-events: none;
}

/* Adding a horizontal divider line in the middle of each digit */
.flip-clock-digit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Group digits for days, hours, minutes, seconds */
.digit-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0 8px;
  position: relative;
}

.digit-group-label {
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 1px;
}

/* Media queries for responsive layout */
@media (max-width: 768px) {
  .flip-clock {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 0.5rem;
    padding: 1rem;
  }
  
  .digit-group {
    margin: 0 4px;
  }
  
  .flip-clock-digit {
    width: 45px;
    height: 70px;
    font-size: 2.5rem;
  }
  
  .flip-clock-separator {
    height: 70px;
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .flip-clock {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .flip-clock-digit {
    width: 35px;
    height: 55px;
    font-size: 2rem;
  }
  
  .flip-clock-separator {
    height: 55px;
    font-size: 2rem;
    margin: 0;
  }
  
  .digit-group-label {
    font-size: 0.7rem;
    bottom: -20px;
  }
}