* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px;
}

.container {
    text-align: center;
    color: white;
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    background: linear-gradient(45deg, #ffd700, #ff6b47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pizza-clock {
    width: 240px;
    height: 240px;
    margin: 0 auto 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.pizza-base {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e6c68a, #d4a574);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 5px 15px rgba(255, 255, 255, 0.2),
        inset 0 -5px 15px rgba(0, 0, 0, 0.1);
    border: 6px solid #c89660;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-countdown {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.main-countdown #days {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    line-height: 1;
    margin-bottom: 0.3rem;
    background: linear-gradient(45deg, #ffd700, #ff6b47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-countdown .days-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Pizza Day Celebration Styles */
.pizza-day-celebration {
    animation: celebration-pulse 2s ease-in-out infinite, celebration-glow 3s ease-in-out infinite;
}

.pizza-day-celebration h1 {
    animation: celebration-bounce 1s ease-in-out infinite alternate;
    background: linear-gradient(45deg, #ff6b47, #ffd700, #ff6b47, #ffd700);
    background-size: 300% 300%;
    animation: celebration-bounce 1s ease-in-out infinite alternate, gradient-shift 2s ease-in-out infinite;
}

.pizza-day-celebration .main-countdown {
    background: linear-gradient(45deg, rgba(255, 107, 71, 0.3), rgba(255, 215, 0, 0.3));
    border: 2px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 107, 71, 0.3);
    animation: celebration-glow 2s ease-in-out infinite;
}

.pizza-day-celebration .time-display {
    animation: celebration-wiggle 0.5s ease-in-out infinite alternate;
}

.pizza-day-celebration .pizza-clock {
    animation: celebration-spin 4s linear infinite, celebration-glow 2s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 107, 71, 0.4);
}

/* Celebration Animations */
@keyframes celebration-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes celebration-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes celebration-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        border-color: rgba(255, 215, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 107, 71, 0.4);
        border-color: rgba(255, 215, 0, 1);
    }
}

@keyframes celebration-wiggle {
    0% { transform: rotate(-2deg); }
    100% { transform: rotate(2deg); }
}

@keyframes celebration-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pizza-sauce {
    position: absolute;
    width: 90%;
    height: 90%;
    background: #d63031;
    border-radius: 50%;
    top: 5%;
    left: 5%;
    opacity: 0;
    animation: fillSauce linear infinite;
    animation-duration: calc(var(--total-seconds) * 1s);
    animation-delay: calc(var(--total-seconds) * 0.2s);
}

.pizza-cheese {
    position: absolute;
    width: 85%;
    height: 85%;
    background: #fdcb6e;
    border-radius: 50%;
    top: 7.5%;
    left: 7.5%;
    opacity: 0;
    animation: fillCheese linear infinite;
    animation-duration: calc(var(--total-seconds) * 1s);
    animation-delay: calc(var(--total-seconds) * 0.3s);
}

.mushroom {
    position: absolute;
    width: 26px;
    height: 20px;
    background: linear-gradient(180deg, #8B4513, #A0522D);
    border-radius: 13px 13px 6px 6px;
    border: 1px solid #654321;
    opacity: 0;
    animation: showMushroom linear infinite;
    animation-duration: calc(var(--total-seconds) * 1s);
}

.mushroom::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 6px;
    width: 14px;
    height: 7px;
    background: linear-gradient(180deg, #F5F5DC, #F0E68C);
    border-radius: 0 0 7px 7px;
    border: 1px solid #E6E6FA;
    border-top: none;
}

.mushroom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 12px;
    background: linear-gradient(90deg, transparent 20%, rgba(139, 69, 19, 0.3) 50%, transparent 80%);
    border-radius: 10px;
    pointer-events: none;
}

.pepper {
    position: absolute;
    width: 18px;
    height: 28px;
    background: linear-gradient(135deg, #FF4500, #FF6347);
    border-radius: 9px;
    border: 1px solid #DC143C;
    opacity: 0;
    animation: showPepper linear infinite;
    animation-duration: calc(var(--total-seconds) * 1s);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.pepper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 6px;
    width: 6px;
    height: 4px;
    background: #228B22;
    border-radius: 3px 3px 0 0;
}

.pepper::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 3px;
    width: 12px;
    height: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 6px;
    pointer-events: none;
}

.mushroom-1 {
    top: 20%;
    left: 35%;
    animation-delay: calc(var(--total-seconds) * 0.5s);
}

.mushroom-2 {
    top: 45%;
    right: 15%;
    animation-delay: calc(var(--total-seconds) * 0.6s);
}

.mushroom-3 {
    bottom: 20%;
    left: 25%;
    animation-delay: calc(var(--total-seconds) * 0.7s);
}

.mushroom-4 {
    bottom: 40%;
    right: 45%;
    animation-delay: calc(var(--total-seconds) * 0.8s);
}

.pepper-1 {
    top: 15%;
    left: 60%;
    transform: rotate(25deg);
    animation-delay: calc(var(--total-seconds) * 0.75s);
}

.pepper-2 {
    bottom: 15%;
    left: 55%;
    transform: rotate(-15deg);
    animation-delay: calc(var(--total-seconds) * 0.85s);
}

.pepper-3 {
    top: 60%;
    right: 20%;
    transform: rotate(45deg);
    animation-delay: calc(var(--total-seconds) * 0.9s);
}

.basil {
    position: absolute;
    width: 18px;
    height: 18px;
    background: linear-gradient(45deg, #556B2F, #6B8E23, #8FBC8F);
    border-radius: 0 50% 0 50%;
    opacity: 0;
    animation: showBasil linear infinite;
    animation-duration: calc(var(--total-seconds) * 1s);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transform-origin: center;
}

.basil-1 {
    top: 30%;
    left: 15%;
    transform: rotate(15deg);
    animation-delay: calc(var(--total-seconds) * 0.82s);
}

.basil-2 {
    bottom: 50%;
    right: 60%;
    transform: rotate(-25deg);
    animation-delay: calc(var(--total-seconds) * 0.87s);
}

.basil-3 {
    top: 70%;
    left: 20%;
    transform: rotate(45deg);
    animation-delay: calc(var(--total-seconds) * 0.92s);
}

.olive {
    position: absolute;
    width: 16px;
    height: 22px;
    background: linear-gradient(180deg, #2C2C2C, #1C1C1C, #0A0A0A);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    animation: showOlive linear infinite;
    animation-duration: calc(var(--total-seconds) * 1s);
    border: 1px solid #000;
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.1), 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.olive::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 5px;
    width: 6px;
    height: 8px;
    background: linear-gradient(180deg, #DC143C, #B91C1C);
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.olive-1 {
    top: 25%;
    left: 75%;
    animation-delay: calc(var(--total-seconds) * 0.94s);
}

.olive-2 {
    bottom: 60%;
    left: 45%;
    animation-delay: calc(var(--total-seconds) * 0.96s);
}

.olive-3 {
    top: 75%;
    right: 35%;
    animation-delay: calc(var(--total-seconds) * 0.98s);
}

.tomato-slice {
    position: absolute;
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at center, #FF6B6B, #FF4444, #DC2626);
    border-radius: 50%;
    opacity: 0;
    animation: showTomato linear infinite;
    animation-duration: calc(var(--total-seconds) * 1s);
    border: 2px solid #B91C1C;
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3);
}

.tomato-slice::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.tomato-slice::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 6px;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.tomato-1 {
    top: 50%;
    left: 70%;
    animation-delay: calc(var(--total-seconds) * 0.85s);
}

.tomato-2 {
    bottom: 25%;
    right: 60%;
    animation-delay: calc(var(--total-seconds) * 0.88s);
}

.countdown-text {
    position: relative;
    z-index: 10;
    color: #2d3436;
    font-weight: bold;
}

#days {
    font-size: 3rem;
    font-weight: bold;
}

.label {
    font-size: 1rem;
    margin-top: 0.5rem;
}

.time-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.time-unit {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 0.8rem;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, background 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.time-unit span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.3rem;
}

.time-unit label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.target-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    font-weight: 500;
}

.healthy-streak {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(76, 201, 196, 0.3), rgba(108, 201, 136, 0.3));
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    transition: transform 0.3s ease;
}

.healthy-streak:hover {
    transform: translateY(-2px);
}

@keyframes fillSauce {
    0% { opacity: 0; transform: scale(0); }
    30% { opacity: 1; transform: scale(1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fillCheese {
    0% { opacity: 0; transform: scale(0); }
    30% { opacity: 1; transform: scale(1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes showMushroom {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes showPepper {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(10deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes showBasil {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    30% { opacity: 1; transform: scale(1.3) rotate(15deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes showOlive {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    40% { opacity: 1; transform: scale(1.2) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes showTomato {
    0% { opacity: 0; transform: scale(0); }
    60% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .pizza-clock {
        width: 240px;
        height: 240px;
    }
    
    .main-countdown #days {
        font-size: 3.5rem;
    }
    
    .time-display {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .time-unit {
        padding: 1rem 0.5rem;
    }
    
    .time-unit span {
        font-size: 1.8rem;
    }
    
    .time-unit label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .pizza-clock {
        width: 200px;
        height: 200px;
    }
    
    .main-countdown #days {
        font-size: 3rem;
    }
    
    .time-display {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 200px;
    }
    
    .healthy-streak {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
}