:root {
    --text-color: #000;
    --bg-color: #fff;
    --link-color: #0066cc;
    --link-hover-color: #004499;
    --selection-bg: #0066cc;
    --selection-color: #fff;
    --border-color: #ddd;
    --scanline-color: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #fff;
        --bg-color: #000;
        --link-color: #66b3ff;
        --link-hover-color: #99ccff;
        --selection-bg: #66b3ff;
        --selection-color: #000;
        --border-color: #333;
        --scanline-color: rgba(255, 255, 255, 0.1);
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

body {
    margin: 0;
    padding: 20px;
    font-family: 'Press Start 2P', cursive;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--scanline-color);
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.scanline:nth-child(2) {
    animation-duration: 12s;
    animation-delay: 2s;
}

.scanline:nth-child(3) {
    animation-duration: 10s;
    animation-delay: 4s;
}

.scanline:nth-child(4) {
    animation-duration: 15s;
    animation-delay: 1s;
}

.scanline:nth-child(5) {
    animation-duration: 9s;
    animation-delay: 3s;
}

main {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.content {
    display: none;
}

.content.active {
    display: block;
}

p {
    margin: 0 0 1.5em;
    position: relative;
    overflow: visible;
    white-space: normal;
}

.contacts {
    margin-top: 2em;
    font-size: 0.9em;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
}

.lang-switch {
    display: inline-block;
    margin-top: 2em;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        font-size: 0.8em;
    }
} 