/* General Setup */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrollbars */
    /* Default background IS blue */
    background-color: #0000AA;
    color: #FFFFFF; /* Default text color */
    font-family: 'Lucida Console', 'Consolas', 'Courier New', monospace;
    font-size: 16px; /* Adjust as needed */
    cursor: none; /* Hide the mouse cursor */
    /* Add transition for smoother background color change (optional) */
    transition: background-color 0.3s ease;
}

/* Screen container */
.screen {
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    position: absolute; /* Use absolute positioning to stack/switch screens */
    top: 0;
    left: 0;
}

/* Visibility classes */
.hidden {
    display: none;
    visibility: hidden;
    opacity: 0;
}

.visible {
    display: block;
    visibility: visible;
    opacity: 1;
}

.error-title {
    font-size: 1.1em;
    text-transform: uppercase; 
}

.error-message {
    text-transform: uppercase;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.stop-code {
    font-weight: normal; 
    margin-top: 2em;
}

.error-code-display {
    font-weight: bold; 
    margin-top: 0.5em;
}

/* Optional Blinking Cursor Simulation */
.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    margin-left: 5px; /* Space after text */
    font-weight: bold;
}

@keyframes blink {
    from, to {
        color: transparent;
    }
    50% {
        color: #FFFFFF;
    }
}

/* BSOD specific styling (on blue background) */
#bsod-screen p {
    margin: 5px 0;
}
/* Ensure bsod-screen forces the blue background if body changes too early */
#bsod-screen {
    background-color: #0000AA; /* Classic BSOD blue */
    color: #FFFFFF; /* White text */
    font-family: 'Lucida Console', 'Consolas', 'Courier New', monospace; /* Monospaced font */
    font-size: 16px; /* Base font size */
    line-height: 2;
}


/* Boot screen specific styling (will be on black background set by JS) */
#boot-screen {
    /* No background-color here - it inherits from body */
    color: #FFFFFF; /* White text on black */
    white-space: pre; /* Preserve whitespace for boot messages */
    line-height: 2;
    font-size: 14px;
}

/* Static Screen Styling */
#static-screen {
    background-color: #000; /* Base for static is black */
    z-index: 10; /* Ensure it's on top when visible */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Static Effect (Simple Example using text artifacts and background flicker) */
#static-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    animation: backgroundFlicker 0.05s infinite linear;
}

#static-content::before,
#static-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.1) 50%),
                linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.1) 50%);
    background-size: 4px 4px, 4px 4px;
    z-index: 1;
    opacity: 0.2;
    animation: staticMove 0.1s infinite linear;
}

#static-content::after {
    background: radial-gradient(circle at center, rgba(0,0,0,0) 50%, rgba(255,255,255,0.05) 70%, rgba(0,0,0,0.1) 100%);
    animation: staticPulse 0.3s infinite ease-in-out;
    opacity: 0.3;
    z-index: 2;
}


/* Keyframe Animations for Static */
@keyframes backgroundFlicker {
    0%, 100% { background-color: #111; }
    50% { background-color: #333; }
}

@keyframes staticMove {
    0% { background-position: 0 0; }
    100% { background-position: 10px 10px; }
}

@keyframes staticPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.1; }
}