﻿body {
    background-color: #0000aa;
    color: #ffffff;
    font-family: "Courier New", monospace;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-size: 1.5rem;
    overflow-x: hidden;
    position: relative;
    text-shadow: 0 0 4px #0ff, 0 0 8px #0ff;
}

    body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.1) 100%);
        pointer-events: none;
        z-index: 10;
    }

    body::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient( to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 1px, transparent 1px, transparent 2px );
        animation: scanlines 0.2s linear infinite;
        pointer-events: none;
        z-index: 11;
    }

    body::backdrop {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
        z-index: 0;
    }

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }

    20%, 24%, 55% {
        opacity: 0.95;
    }
}

body {
    animation: flicker 3s infinite;
}

@keyframes scanlines {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 2px;
    }
}

html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    filter: contrast(1.2) brightness(1.05) saturate(1.2);
    transform: perspective(800px) scale(1.01);
}

html.no-filter {
    filter: none;
    transform: none;
}


a {
    color: #ffffff;
    text-decoration: underline;
    margin: 0.5rem 0;
}

.back-link {
    margin: 1rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#frame {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

#home {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ascii-container {
    font-size: 1rem;
    white-space: pre;
    text-align: center;
}

@media (max-width: 768px) {
    body {
        font-size: 1.2rem;
    }

    .ascii-container {
        font-size: 0.55rem;
    }
}

