@font-face {
    font-family: 'DOS';
    src: url('DOSVGA437.ttf') format('opentype');
}
:root {
    --theme-color: #0000af; /* Default theme color */
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    color: #afa8af;
    font-family: 'DOS', monospace;
    text-transform: uppercase;
    position: relative;
}
.container {
    width: 640px;
    height: 480px;
    display: flex;
    flex-direction: column;
    background-color: black;
    box-sizing: border-box;
    border: 1px solid white;
}
.row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0; /* Remove padding */
}
.dos-version {
    background-color: var(--theme-color);
    color: #afa8af;
    padding: 10px; /* Add padding to .dos-version */
}
.negative-space {
    background-color: black;
    height: 20px;
}
.directory {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px; /* Add padding to .directory */
}
.entry {
    padding: 5px;
}
.highlight {
    background-color: white;
    color: black;
    animation: flash 1s steps(2, start) infinite;
}
@keyframes flash {
    0%, 49% {
        background-color: white;
        color: black;
    }
    50%, 100% {
        background-color: black;
        color: white;
    }
}
.help-box {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px; /* Increased width by 100px */
    height: 200px;
    margin-left: -200px; /* Half of the new width */
    margin-top: -100px; /* Half of the height */
    background-color: #0000af;
    color: #afa8af;
    border: 1px solid white;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    z-index: 100;
}
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 1;
}

/* Only show border for non-startup pages */
body:not([data-page="startup"]) .container {
    border: 1px solid white;
}

/* CRT Scanline Effect */
.scanline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(255, 255, 255, 0.010);
    animation: scanline 4ms infinite;
    z-index: 9999;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes scanline {
    from { 
        transform: translateY(0);
    }
    to { 
        transform: translateY(100vh);
    }
}

