body {
    background-color: #121212;
    color: #d1d1d1;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
}

img {
    max-width: 280px;
    width: 100%;
    border: 3px solid #333;
    border-radius: 12px;
    filter: grayscale(30%);
    margin-bottom: 15px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}

img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 77, 77, 0.6),
        0 0 50px rgba(255, 77, 77, 0.3);
}

#quote {
    font-size: 1.1rem;
    max-width: 650px;
    min-height: 55px;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.4;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

#quote.fade-out {
    opacity: 0;
}

.interaction-section {
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px 25px;
    margin-top: 15px;
    max-width: 450px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.refresh-btn {
    background-color: #2a2a2a;
    color: #ff4d4d;
    border: 2px solid #ff4d4d;
    padding: 12px 25px;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s;
    width: 100%;
    border-radius: 4px;
}

.refresh-btn:hover {
    background-color: #ff4d4d;
    color: #000;
}

#counter-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #333;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#replay-btn {
    display: none;
    margin-top: 15px;
    background: none;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 8px 20px;
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
    font-family: 'Courier New', Courier, monospace;
}

#replay-btn:hover {
    background-color: rgba(255, 77, 77, 0.1);
    transform: scale(1.05);
}

#replay-btn.show {
    display: inline-block;
}

#count-num {
    color: #ff4d4d;
    font-size: 1.8rem;
    display: block;
    margin-top: 8px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
    transition: transform 0.2s ease-out;
}

#count-num.pulse {
    animation: counterPulse 0.5s ease-out;
}

@keyframes counterPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        color: #ff6b6b;
        text-shadow: 0 0 20px rgba(255, 77, 77, 0.8);
    }
    100% {
        transform: scale(1);
    }
}

h1 {
    font-size: 2.5rem;
    color: #ff4d4d;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    margin-top: 0;
    text-shadow: 0 0 20px rgba(255, 77, 77, 0.5),
                 0 0 40px rgba(255, 77, 77, 0.3);
    font-weight: 900;
    line-height: 1.1;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    img {
        max-width: 220px;
    }

    #quote {
        font-size: 1rem;
    }
}

/* Celebration overlay */
#celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in;
}

#celebration-overlay.show {
    display: flex;
}

.celebration-content {
    text-align: center;
    padding: 40px;
    background: #1a1a1a;
    border: 3px solid #ff4d4d;
    border-radius: 16px;
    box-shadow: 0 0 50px rgba(255, 77, 77, 0.8);
    animation: celebrationBounce 0.6s ease-out;
    max-width: 500px;
}

.celebration-content h2 {
    font-size: 2.5rem;
    color: #ff4d4d;
    margin: 0 0 20px 0;
    text-shadow: 0 0 30px rgba(255, 77, 77, 0.8);
    animation: glow 1.5s ease-in-out infinite;
}

.celebration-content p {
    font-size: 1.2rem;
    color: #d1d1d1;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.celebration-content button {
    background-color: #ff4d4d;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
    font-family: 'Courier New', Courier, monospace;
}

.celebration-content button:hover {
    background-color: #ff6b6b;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes celebrationBounce {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 77, 77, 0.8),
                     0 0 40px rgba(255, 77, 77, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 77, 77, 1),
                     0 0 60px rgba(255, 77, 77, 0.8);
    }
}

/* Confetti particles */
.confetti {
    position: fixed;
    width: 15px;
    height: 15px;
    background: #ff4d4d;
    animation: confettiFall 5s linear forwards;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.8);
    z-index: 1001;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}
