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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #ffffff;
    color: #1a202c; /* Dark gray/black for text */
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    perspective: 1000px;
}

.container {
    width: 100%;
    max-width: 1600px;
    padding: 20px;
    position: relative; /* For potential absolute positioned elements like faded numbers */
}

/* Remove Header, Footer, and Globe styles for a cleaner look, or restyle them significantly */
.header,
.footer,
.globe-container {
    display: none; /* Hidden for now, can be redesigned if needed */
}

/* Faded Background Numbers - Placeholder Style */
.faded-background-time {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 25vw, 15rem);
    font-weight: 700;
    color: rgba(0, 0, 0, 0.02);
    z-index: -1; /* Behind other content */
    white-space: nowrap;
    pointer-events: none; /* Not interactive */
    letter-spacing: -0.05em; /* Adjust letter spacing */
}

/* Main Content Area */
.main-content {
    z-index: 1;
    position: relative;
}

/* Countdown Display - Primary Focus */
.countdown-container {
    margin-bottom: 30px;
}

.countdown-title-main {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.countdown-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    color: #4a5568;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Wrapper for each digit for animation */
.total-seconds-display-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 20px);
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 0 10px;
}

.digit-group {
    display: flex;
    gap: clamp(8px, 2vw, 20px);
}

/* MASSIVE Flip Card Structure */
.digit-slot {
    width: clamp(80px, 18vw, 160px);  /* Much larger */
    height: clamp(120px, 25vw, 220px); /* Much larger */
    position: relative;
    perspective: 1000px;
    margin: 0 clamp(2px, 0.5vw, 8px);
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* Smoother, more consistent timing */
}

.flip-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 12vw, 8rem); /* MASSIVE font size */
    font-weight: 800;
    color: #1a202c;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(226, 232, 240, 0.8);
}

.flip-card-face::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    z-index: 1;
}

.flip-card-front {
    transform: rotateX(0deg);
}

.flip-card-back {
    transform: rotateX(180deg);
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
}

/* Flip Animation */
.flip-card.flipping {
    transform: rotateX(180deg);
}

/* Comma Separator */
.comma-separator {
    font-size: clamp(3rem, 9vw, 6rem); /* Larger comma */
    font-weight: 700;
    color: #718096;
    align-self: center;
    margin: 0 clamp(4px, 1vw, 12px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.countdown-label-main {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 500;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 15px;
}

/* Info Section - Minimalist */
.info-section {
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    margin-top: 40px;
}

.info-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.info-subtitle {
    font-size: clamp(0.8rem, 1.6vw, 1rem);
    color: #718096;
    font-weight: 400;
}

/* Remove old styles that are no longer relevant or clash with the new theme */
.countdown-number, /* Old style for numbers */
.countdown-item, /* Old structure */
.countdown-item.single-value, /* Old structure */
.total-seconds /* Old small display */
{
    display: none; /* Effectively remove them */
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .faded-background-time {
        font-size: clamp(6rem, 20vw, 12rem);
    }
    
    .total-seconds-display-wrapper {
        gap: clamp(6px, 1.5vw, 15px);
        padding: 0 5px;
    }
    
    .digit-group {
        gap: clamp(6px, 1.5vw, 15px);
    }
    
    .digit-slot {
        width: clamp(60px, 15vw, 120px);
        height: clamp(90px, 20vw, 160px);
        margin: 0 clamp(1px, 0.3vw, 5px);
    }
    
    .flip-card-face {
        font-size: clamp(3rem, 10vw, 6rem);
        border-radius: 10px;
    }
    
    .comma-separator {
        font-size: clamp(2.5rem, 7vw, 4.5rem);
        margin: 0 clamp(2px, 0.5vw, 8px);
    }
}

@media (max-width: 480px) {
    .faded-background-time {
        font-size: clamp(4rem, 15vw, 10rem);
        letter-spacing: -0.08em;
    }
    
    .total-seconds-display-wrapper {
        gap: clamp(4px, 1vw, 10px);
        padding: 0 2px;
    }
    
    .digit-group {
        gap: clamp(4px, 1vw, 10px);
    }
    
    .digit-slot {
        width: clamp(45px, 12vw, 90px);
        height: clamp(70px, 16vw, 120px);
        margin: 0 1px;
    }
    
    .flip-card-face {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
        border-radius: 8px;
        border: 1px solid rgba(226, 232, 240, 0.8);
    }
    
    .comma-separator {
        font-size: clamp(2rem, 6vw, 3.5rem);
        margin: 0 1px;
    }
    
    .countdown-title-main {
        font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    }
    
    .countdown-subtitle {
        font-size: clamp(0.8rem, 1.5vw, 1rem);
        margin-bottom: 30px;
    }
}

/* Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeInUp 1s ease-out;
}

.digit-slot {
    animation: fadeInUp 0.8s ease-out;
}

.digit-slot:nth-child(odd) {
    animation-delay: 0.1s;
}

.digit-slot:nth-child(even) {
    animation-delay: 0.2s;
}

/* Hide old elements */
.countdown-number,
.countdown-item,
.countdown-item.single-value,
.total-seconds,
.header,
.footer,
.globe-container {
    display: none;
} 