:root {
    --bg-color: #010101;
    --text-color: #e0e0e0;
    --glow-color: rgba(255, 255, 255, 0.4);
    --accent-color: #ff3333;
    /* Criminal Red */
    --scanline-color: rgba(18, 16, 16, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-shadow: 0 0 4px var(--glow-color);
}

/* CRT Effects */
.crt {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(15, 15, 15, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    animation: flicker 0.2s infinite;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            var(--scanline-color) 51%);
    background-size: 100% 2px;
    z-index: 10;
    pointer-events: none;
}

.terminal-container {
    width: 90%;
    max-width: 800px;
    padding: 40px;
    position: relative;
    z-index: 5;
    animation: terminalEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-content {
    line-height: 1.6;
}

.command {
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
}

.prompt {
    font-weight: bold;
    color: #fff;
    margin-right: 12px;
}

.output {
    margin-bottom: 12px;
    color: #aaa;
}

.success {
    color: #00ffaa;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
}

.error-accent {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
    font-weight: bold;
}

.ascii-box {
    margin: 25px 0;
    display: inline-block;
    color: #eee;
}

pre {
    font-size: 14px;
    line-height: 1.2;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #fff;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

/* Animations */
@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes flicker {
    0% {
        opacity: 0.99;
    }

    5% {
        opacity: 0.97;
    }

    15% {
        opacity: 0.99;
    }

    30% {
        opacity: 0.98;
    }

    100% {
        opacity: 1;
    }
}

@keyframes terminalEntry {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glitch-text {
    animation: textFlicker 4s linear infinite;
}

@keyframes textFlicker {

    0%,
    93%,
    100% {
        opacity: 1;
        transform: skew(0deg);
    }

    94% {
        opacity: 0.8;
        transform: skew(0.5deg);
    }

    95% {
        opacity: 1;
        transform: skew(-0.5deg);
    }

    96% {
        opacity: 0.9;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .terminal-container {
        padding: 20px;
    }

    pre {
        font-size: 9px;
    }

    .status-msg {
        font-size: 0.8rem;
    }
}

/* Footer Styles */
.terminal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    color: var(--text-dim, rgba(255, 255, 255, 0.3));
    letter-spacing: 2px;
    z-index: 20;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.f-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.f-link:hover {
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

@media (max-width: 800px) {
    .terminal-footer {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        text-align: center;
    }
}