body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
}

.year {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.5s ease;
}

.year.open {
    display: none;
}

.year.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-out {
    opacity: 0 !important;
    transform: translateY(-20px);
}

.divider {
    width: 0;
    height: 3px;
    background-color: #ffffff;
    transition: width 1.5s ease;
}

.divider.expand {
    width: 60%;
}

.countdown .time-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px 10px;
    min-width: 90px;
}

.countdown span {
    font-size: 2rem;
    font-weight: bold;
}

#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

/* -------------------------------
   RESPONSIVE ENHANCEMENTS
-------------------------------- */

/* Countdown row flexibility */
.countdown-row {
    flex-wrap: wrap;
}

/* Small devices (phones) */
@media (max-width: 576px) {

    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .countdown .time-box {
        min-width: 70px;
        padding: 12px 8px;
    }

    .countdown span {
        font-size: 1.4rem;
    }

    .divider.expand {
        width: 80%;
    }

    .container {
        padding: 1rem;
    }
}

/* Medium devices (tablets) */
@media (max-width: 768px) {

    .display-4 {
        font-size: 2.4rem;
    }

    .countdown .time-box {
        min-width: 80px;
    }

    .divider.expand {
        width: 70%;
    }
}

/* Landscape phones */
@media (max-height: 500px) {
    .container {
        justify-content: flex-start !important;
        padding-top: 2rem;
    }
}

/* Prevent confetti resize issues */
@media (orientation: landscape) {
    #confetti-canvas {
        width: 100vw;
        height: 100vh;
    }
}

