/* Basic resets */
body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', 'Courier New', Courier, monospace;
    background: black;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Background layers */
#stars, #shooting-stars {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Main container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Center big box */
.center-box {
    background: black;
    padding: 40px 30px;
    border-radius: 10px;
    border: 2px solid white;
    text-align: center;
    width: 400px;
    margin-bottom: 30px;
}

/* Title text */
.center-box h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: white;
}

/* Countdown numbers */
#timer {
    font-family: 'Orbitron', 'Courier New', Courier, monospace;
    font-size: 3.2em;
    color: #00e5ff; /* Light blue color */
    letter-spacing: 10px;
}

/* Secret Input Panel */
.input-panel {
    display: flex;
    gap: 10px;
}

.digit-input {
    width: 60px;
    height: 60px;
    font-size: 2em;
    text-align: center;
    background: black;
    border: 2px solid white;
    color: #00e5ff;
    border-radius: 8px;
    outline: none;
}

/* LED Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #111;
    padding: 10px 0;
    color: #00e5ff;
    z-index: 2;
}

/* Immediate visible ticker */
.ticker {
    display: inline-block;
    white-space: nowrap;
    font-size: 1em;
    letter-spacing: 2px;
    animation: ticker 45s linear infinite;
}

/* Ticker animation */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
    color: #888;
    background: black;
    z-index: 2;
}

/* Shooting stars */
@keyframes shoot {
    0% { transform: translate(0,0) rotate(45deg) scale(0.5); opacity: 1; }
    100% { transform: translate(100vw,100vh) rotate(45deg) scale(1.5); opacity: 0; }
}

/* Blinking stars */
@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}


#unlock-button {
    background: black;
    color: #00e5ff;
    font-family: 'Orbitron', 'Courier New', Courier, monospace;
    font-size: 1.2em;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

#unlock-button:hover {
    background: white;
    color: black;
}


/* Glitch animation for center box */
@keyframes glitch {
    0% {
        transform: none;
        opacity: 1;
    }
    20% {
        transform: translate(2px, -2px);
        opacity: 0.8;
    }
    40% {
        transform: translate(-2px, 2px);
        opacity: 1;
    }
    60% {
        transform: translate(1px, -1px);
        opacity: 0.9;
    }
    80% {
        transform: translate(-1px, 1px);
        opacity: 1;
    }
    100% {
        transform: none;
        opacity: 1;
    }
}

/* Apply glitch when needed */
.center-box.glitching {
    animation: glitch 0.3s infinite;
}

@media (max-width: 500px) {
    .center-box {
        transform: scale(0.85);
    }
}