:root {
    --terminal-green: #33ff00;
    --terminal-glow: 0 0 10px rgba(51, 255, 0, 0.7), 0 0 20px rgba(51, 255, 0, 0.4);
    --bg-color: #050505;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    font-family: 'VT323', monospace;
    color: var(--terminal-green);
    overflow: hidden;
}

/* Background image with Leiterbahnen (circuit board) */
body {
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay to ensure text is readable and creates a subtle background effect */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.terminal {
    position: relative;
    z-index: 2;
    padding: 40px;
    font-size: 1.5rem;
    text-shadow: var(--terminal-glow);
    max-width: 900px;
    margin: 0 auto;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Custom scrollbar for terminal */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--terminal-green);
}
::-webkit-scrollbar-thumb {
    background: var(--terminal-green);
}

p {
    margin: 10px 0;
    line-height: 1.4;
    word-break: break-word;
}

.scanline {
    width: 100%;
    height: 100px;
    z-index: 9999;
    position: absolute;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(51,255,0,0.1) 50%, rgba(0,0,0,0) 100%);
    top: 0;
    left: 0;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% { top: -100px; }
    100% { top: 100%; }
}

.typing::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

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

.info-block {
    border: 1px dashed var(--terminal-green);
    padding: 20px;
    margin-top: 20px;
    background: rgba(0, 20, 0, 0.6);
    box-shadow: inset 0 0 15px rgba(51, 255, 0, 0.2);
}

.boot-sequence p {
    margin: 5px 0;
}

/* Win 3.11 Style Error Box */
.win311-dialog {
    background-color: #c0c0c0;
    color: #000;
    font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Arial, sans-serif;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    width: 300px;
    margin: 40px auto 0 auto;
    font-size: 16px;
    text-shadow: none;
    box-shadow: 2px 2px 0px rgba(0,0,0,1);
    z-index: 10;
    position: relative;
    outline: 1px solid #000;
}

.win311-titlebar {
    background-color: #0000a8;
    color: #ffffff;
    font-weight: bold;
    padding: 2px 5px;
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #000;
}

.win311-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.win311-icon-text {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
}

.win311-icon {
    background-color: #ff0000;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 24px;
    margin-right: 15px;
    border: 2px solid #800000;
    box-shadow: inset -2px -2px 0px #fff, inset 2px 2px 0px #ff8080;
}

.win311-text {
    font-size: 14px;
}

.win311-buttons button {
    background-color: #c0c0c0;
    color: #000;
    font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Arial, sans-serif;
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    padding: 4px 30px;
    cursor: pointer;
    font-size: 14px;
    outline: 1px solid #000;
    margin-bottom: 5px;
}

.win311-buttons button:active {
    border-color: #404040 #ffffff #ffffff #404040;
    padding: 5px 29px 3px 31px; /* Simulate push effect */
}
