@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --phosphor-main: #33ff33;
    --phosphor-dim: #22aa22;
    --bg-color: #050505;
}

html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    background-color: var(--bg-color);
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--phosphor-main);
    font-family: 'VT323', monospace;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

.container {
    position: relative;
    z-index: 1;
    padding: 3rem;
    border: 2px solid var(--phosphor-dim);
    box-shadow: 0 0 20px var(--phosphor-dim), inset 0 0 20px var(--phosphor-dim);
    background: rgba(0, 20, 0, 0.9);
    max-width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    display: none;
    /* Hidden initially */
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
}

pre {
    font-family: 'Courier New', Courier, monospace;
    /* Courier often aligns ASCII better than web fonts */
    font-size: 10px;
    line-height: 10px;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 0 5px var(--phosphor-main), 0 0 10px var(--phosphor-main);
    white-space: pre;
    overflow-x: auto;
}

/* Responsive font size for the ASCII art */
@media (min-width: 600px) {
    pre {
        font-size: 12px;
        line-height: 12px;
    }
}

@media (min-width: 800px) {
    pre {
        font-size: 16px;
        line-height: 16px;
    }
}

@media (min-width: 1200px) {
    pre {
        font-size: 20px;
        line-height: 20px;
    }
}

.status-line {
    margin-top: 30px;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--phosphor-main);
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Start Overlay */
#start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
    font-size: 2rem;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--phosphor-main);
}

/* Scanlines and CRT effects */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.scanlines::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 10;
}

/* Subtle flicker */
body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% {
        opacity: 0.02;
    }

    5% {
        opacity: 0.05;
    }

    10% {
        opacity: 0.02;
    }

    15% {
        opacity: 0.04;
    }

    20% {
        opacity: 0.02;
    }

    25% {
        opacity: 0.05;
    }

    30% {
        opacity: 0.02;
    }

    35% {
        opacity: 0.04;
    }

    40% {
        opacity: 0.02;
    }

    45% {
        opacity: 0.05;
    }

    50% {
        opacity: 0.02;
    }

    55% {
        opacity: 0.04;
    }

    60% {
        opacity: 0.02;
    }

    65% {
        opacity: 0.05;
    }

    70% {
        opacity: 0.02;
    }

    75% {
        opacity: 0.04;
    }

    80% {
        opacity: 0.02;
    }

    85% {
        opacity: 0.05;
    }

    90% {
        opacity: 0.02;
    }

    95% {
        opacity: 0.04;
    }

    100% {
        opacity: 0.02;
    }
}

@keyframes scroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}