/* Eanble DOS Font*/
@font-face {
    font-family: 'DOS';
    src: url('../assets/ModernDOS8x16.ttf');
}

/* Blinking Cursor */
.cursor {
    display: inline-block;
    width: 0.4ch;
    height: 0.8em;
    background: white;
    margin-left: 8px;
    vertical-align: -0.09em;
    animation: blink 1s steps(1) infinite;
    box-shadow:
    0 0 1px rgba(173, 216, 230, 0.6),
    0 0 3px rgba(173, 216, 230, 0.4),
    0 0 5px rgba(173, 216, 230, 0.3);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Footer Styling */
.footer {
    color: white;
    font-family: 'DOS';
    font-size: 16px;
    text-shadow:
    0 0 1px rgba(173, 216, 230, 0.6),
    0 0 3px rgba(173, 216, 230, 0.4),
    0 0 5px rgba(173, 216, 230, 0.3);
}

.footer a {
    color: inherit;
    font-family: 'DOS';
    text-shadow:
    0 0 1px rgba(173, 216, 230, 0.6),
    0 0 3px rgba(173, 216, 230, 0.4),
    0 0 5px rgba(173, 216, 230, 0.3);
    transition: color 0.05s linear, text-shadow 0.05s linear;
}

.footer a:hover {
    text-shadow:
    0 0 2px rgba(255, 255, 255, 0.9),
    0 0 6px rgba(255, 255, 255, 0.6),
    0 0 10px rgba(255, 255, 255, 0.4);
}

/* CRT Overlay Effect */
.crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 3;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

@keyframes flicker {
    0% {
        opacity: 0.27861;
    }
    5% {
        opacity: 0.34769;
    }
    10% {
        opacity: 0.23604;
    }
    15% {
        opacity: 0.10626;
    }
    20% {
        opacity: 0.18128;
    }
    25% {
        opacity: 0.10626;
    }
    30% {
        opacity: 0.18128;
    }
    35% {
        opacity: 0.23604;
    }
}

.crt::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}
