@font-face {
    font-family: 'PixelFont';
    src: url('fonts/PressStart2P-Regular.ttf') format('truetype');
}

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

body {
    background-color: #000;
    font-family: 'PixelFont', monospace;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.image-container {
    width: 300px;
    height: 446px; /* Maintains the 1022:1522 aspect ratio */
    border: 4px solid #fff;
    overflow: hidden;
    animation: borderPulse 2s infinite;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.main-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 1rem 0;
    color: #ff4444;
    text-shadow: 3px 3px #000;
    letter-spacing: 2px;
}

.countdown {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #fff;
    image-rendering: pixelated;
}

.number {
    font-size: 48px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    animation: glow 1s ease-in-out infinite alternate;
}

.label {
    font-size: 16px;
    color: #fff;
}

@keyframes borderPulse {
    0% {
        border-color: #fff;
        box-shadow: 0 0 10px #fff;
    }
    50% {
        border-color: #0f0;
        box-shadow: 0 0 20px #0f0;
    }
    100% {
        border-color: #fff;
        box-shadow: 0 0 10px #fff;
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #0f0, 0 0 10px #0f0, 0 0 15px #00ff00;
    }
    to {
        text-shadow: 0 0 10px #0f0, 0 0 20px #0f0, 0 0 30px #00ff00;
    }
}
