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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    animation: fadeIn 1s ease-in-out;
}

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

header h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ffffff, #a0c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.time-display,
.seconds-counter,
.message-area {
    margin: 1.5rem 0;
}

.time-box,
.counter-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-box:hover,
.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.label {
    display: block;
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.value {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', monospace;
    color: #ffffff;
    letter-spacing: 3px;
}

.message-area {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message {
    font-size: 2rem;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    min-height: 3rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #a0a0a0;
    font-weight: 500;
}

.message.prime {
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    color: #000;
    font-weight: bold;
    animation: pulse 0.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    text-shadow: none;
}

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


@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .value {
        font-size: 2.5rem;
    }
    
    .message {
        font-size: 1.5rem;
        padding: 1rem 1.5rem;
    }
    
    .time-box,
    .counter-box {
        padding: 1.5rem 2rem;
    }
    
    .container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .value {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .message {
        font-size: 1.2rem;
        padding: 0.75rem 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .time-box,
    .counter-box {
        padding: 1rem 1.5rem;
    }
    
    .label {
        font-size: 1rem;
    }
}


@media (prefers-reduced-motion: reduce) {
    .container,
    .message.prime,
    .time-box,
    .counter-box {
        animation: none;
        transition: none;
    }
}


@media (prefers-contrast: high) {
    .time-box,
    .counter-box {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid #ffffff;
    }
    
    .message.prime {
        background: #00ff88;
        border: 2px solid #000;
    }
}