/* style.css - YV Research 1989 Computing Archive Website */

/* Base terminal setup */
body {
    background-color: #0a0a0a; /* Dark charcoal */
    color: #33ff33; /* Phosphor green */
    font-family: "Courier New", Courier, Monaco, "Lucida Console", monospace;
    margin: 0;
    padding: 20px;
    font-size: 14px;
    line-height: 1.25;
    text-shadow: 0 0 2px rgba(51, 255, 51, 0.4);
    box-sizing: border-box;
}

/* Faint CRT overlay effect - extremely subtle */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
    z-index: 99999;
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.12;
}

/* Main container mimicking a workstation viewport */
#terminal-container {
    max-width: 680px; /* Constrained to approx 80 text columns */
    margin: 0 auto;
    background-color: #050505;
    border: 1px solid #33ff33;
    padding: 15px;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.15);
    position: relative;
}

/* Occasional off-white highlight text */
.highlight {
    color: #e0e0e0;
    text-shadow: 0 0 2px rgba(224, 224, 224, 0.4);
}

/* Danger / Status Alert */
.alert {
    color: #ff3333;
    text-shadow: 0 0 2px rgba(255, 51, 51, 0.4);
}

/* Header Node Information */
.system-header {
    border-bottom: 1px dashed #33ff33;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Menu navigation links */
a {
    color: #33ff33;
    text-decoration: none;
}

a:hover {
    background-color: #33ff33;
    color: #050505;
    text-shadow: none;
}

/* Brackets around options */
.option-num {
    color: #e0e0e0;
    font-weight: bold;
}

/* Page content elements */
h1 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 1px solid #33ff33;
    padding-bottom: 5px;
    text-transform: uppercase;
}

h2 {
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 1px dashed #33ff33;
    padding-bottom: 2px;
}

/* Lists and details */
ul {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0;
}

li {
    margin-bottom: 6px;
}

li::before {
    content: "> ";
}

/* Fixed-width inventory & status tables */
table.terminal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 13px;
}

table.terminal-table th, table.terminal-table td {
    padding: 5px;
    border: 1px solid #33ff33;
    text-align: left;
}

table.terminal-table th {
    background-color: #0f240f;
    color: #e0e0e0;
}

/* Form inputs & command line prompt */
.prompt-area {
    margin-top: 25px;
    border-top: 1px solid #33ff33;
    padding-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt-text {
    font-weight: bold;
    white-space: nowrap;
}

#command-input {
    background: transparent;
    border: none;
    color: #33ff33;
    font-family: "Courier New", Courier, Monaco, monospace;
    font-size: 14px;
    width: 100%;
    outline: none;
    text-shadow: 0 0 2px rgba(51, 255, 51, 0.4);
}

/* Blinking terminal cursor */
.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #33ff33;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    from, to { background-color: transparent }
    50% { background-color: #33ff33 }
}

/* Footnotes & Disclaimers */
.system-footer {
    margin-top: 30px;
    border-top: 1px dashed #33ff33;
    padding-top: 10px;
    font-size: 11px;
    text-align: center;
    color: rgba(51, 255, 51, 0.6);
}

.system-footer a {
    color: rgba(51, 255, 51, 0.8);
    text-decoration: underline;
}

/* Boot / Startup Overlay */
#boot-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #050505;
    z-index: 100000;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-family: "Courier New", Courier, monospace;
    color: #33ff33;
}

.boot-line {
    margin-bottom: 5px;
    visibility: hidden;
}

.skip-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    border: 1px solid #33ff33;
    color: #33ff33;
    font-family: "Courier New", Courier, monospace;
    padding: 5px 10px;
    cursor: pointer;
}

.skip-btn:hover {
    background-color: #33ff33;
    color: #050505;
}

/* Responsive formatting */
@media (max-width: 600px) {
    body {
        padding: 10px;
        font-size: 12px;
    }
    #terminal-container {
        padding: 10px;
    }
    .header-row {
        flex-direction: column;
        gap: 5px;
    }
    table.terminal-table {
        font-size: 11px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .prompt-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    #command-input {
        width: 100%;
    }
}
