/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.6s ease, background 0.5s ease, filter 0.5s ease;
}

.container {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.title {
    color: #ff4757;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

.subtitle {
    color: #dfe6e9;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.useless-button {
    background: linear-gradient(145deg, #ff4757, #ff3838);
    border: none;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    padding: 2rem 4rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(255, 71, 87, 0.4),
                0 0 60px rgba(255, 71, 87, 0.3);
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.useless-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 71, 87, 0.6),
                0 0 80px rgba(255, 71, 87, 0.4);
}

.useless-button:active {
    transform: scale(0.95);
}

.warning-text {
    color: #feca57;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 2rem;
    min-height: 2rem;
    animation: fadeIn 0.3s ease;
    text-shadow: 0 0 10px rgba(254, 202, 87, 0.5);
}

.click-counter {
    color: #dfe6e9;
    font-size: 1rem;
    margin-top: 3rem;
    opacity: 0.6;
}

#clickCount {
    color: #ff4757;
    font-weight: bold;
    font-size: 1.2rem;
}

.destruction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
}

.timer-box {
    background: linear-gradient(145deg, #2d3436, #1e272e);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #ff4757;
    box-shadow: 0 0 100px rgba(255, 71, 87, 0.5);
    animation: shake 0.5s ease infinite;
    max-width: 500px;
}

.timer-title {
    color: #ff4757;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.8);
}

.timer-message {
    color: #dfe6e9;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.countdown-display {
    margin: 2rem 0;
}

.countdown-number {
    font-size: 6rem;
    color: #ff4757;
    font-weight: bold;
    text-shadow: 0 0 40px rgba(255, 71, 87, 1);
    animation: pulse 1s ease infinite;
}

.countdown-label {
    color: #dfe6e9;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.final-message {
    color: #feca57;
    font-size: 1rem;
    margin-top: 1.5rem;
    opacity: 0.8;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    }
    to {
        text-shadow: 0 0 40px rgba(255, 71, 87, 0.8);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes vibrate {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2px, 2px); }
    20% { transform: translate(2px, -2px); }
    30% { transform: translate(-2px, -2px); }
    40% { transform: translate(2px, 2px); }
    50% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, -2px); }
    70% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
    90% { transform: translate(-2px, 2px); }
}

.shake {
    animation: shake 0.5s ease;
}

.spin {
    animation: spin 1s ease;
}

.bounce {
    animation: bounce 0.6s ease;
}

.vibrate {
    animation: vibrate 0.3s ease infinite;
}

.pulse {
    animation: pulse 0.5s ease infinite;
}

.rotate-continuous {
    animation: spin 2s linear infinite;
}

.rainbow-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .useless-button {
        font-size: 1.5rem;
        padding: 1.5rem 3rem;
    }
    
    .warning-text {
        font-size: 1.2rem;
    }
    
    .timer-title {
        font-size: 1.8rem;
    }
    
    .timer-message {
        font-size: 1rem;
    }
    
    .countdown-number {
        font-size: 4rem;
    }
    
    .timer-box {
        padding: 2rem;
        margin: 1rem;
    }
}
