body {
    background: #000;
    color: #e8e8e8;
    margin: 0;
    font-family: Verdana, sans-serif;
}

/* Main page container */
#site-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Shared box styling */
.box {
    border: 2px solid #ffffff;
    padding: 15px;
    margin-bottom: 10px;
    background: #000;
}

/* Header layout */
.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 100px;
    height: auto;
}

.site-title {
    margin: 0;
    font-size: 2rem;
    color: #fff;
    text-shadow:
        0 0 2px #6fa8ff,
        0 0 8px #6fa8ff;
}

.site-subtitle {
    margin-top: 5px;
    color: #bcd8ff;
}

/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

nav a {
    color: #8fc8ff;
    text-decoration: none;
}

nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #6fa8ff;
}

/* Content */
main h2 {
    margin-top: 0;
    color: #fff;
}

/* Footer */
footer {
    font-size: 0.85rem;
    color: #b0b0b0;
}

/* Subtle CRT scanlines */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 2px,
            transparent 4px
        );
    z-index: 9999;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: #000;
    color: #e8e8e8;
    font-size: 0.9rem;
    margin: 10px 0;
}

th,
td {
    border: 1px solid #444;
    padding: 8px 10px;
    vertical-align: top;
}

th {
    background: #050505;
    color: #fff;
    text-align: left;
    text-shadow:
        0 0 2px #6fa8ff,
        0 0 6px #6fa8ff;
}

tr:nth-child(even) {
    background: rgba(111, 168, 255, 0.04);
}

tr:hover {
    background: rgba(111, 168, 255, 0.10);
}

/* Inline code */
code {
    background: #0a0a0a;
    color: #8fc8ff;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Block code (pre wraps code for multi-line examples) */
pre {
    background: #0a0a0a;
    border: 1px solid #333;
    border-left: 3px solid #6fa8ff;
    padding: 12px 15px;
    overflow-x: auto;
    margin: 10px 0;
}

pre code {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    color: #e8e8e8;
    font-size: 0.85rem;
    line-height: 1.6;
}

img {
    max-width: 300px;
    max-height: 200px;
    width: auto;
    height: auto;
    cursor: pointer;
    border: 1px solid #444;
}

img:hover {
    border-color: #8fc8ff;
}

#image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: zoom-out;
}

#image-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(111, 168, 255, 0.5);
}

.fourofour-content {
    text-align: center;
}

.fourofour-content ul {
    display: inline-block;
    text-align: left;
    margin: 10px auto;
}

.home-button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #6fa8ff;
    color: #8fc8ff;
    text-decoration: none;
    margin-top: 10px;
}

.home-button:hover {
    background: rgba(111, 168, 255, 0.1);
    color: #fff;
    text-shadow: 0 0 5px #6fa8ff;
}
