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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.container {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Dots pattern background */
.dots-pattern {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.time {
    font-size: 8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

.message {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .time {
        font-size: 5rem;
    }
    
    .message {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .time {
        font-size: 3.5rem;
    }
    
    .message {
        font-size: 1.5rem;
    }
}

/* Warning styles when timer ends */
.timer-ended {
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

