:root {
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --link-color: #66B2FF;
    /* Lighter Blue for visibility on black */
    --vlink-color: #9999FF;
    /* Violet for visibility on black */
    --alink-color: #FF0000;
    --font-main: "Courier New", Courier, monospace;
    --font-heading: "Courier New", Courier, monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 1rem;
}

body.light-mode {
    --bg-color: #FFFFFF;
    --text-color: #000000;
    --link-color: #0000FF;
    --vlink-color: #00008B;
}

a {
    color: var(--link-color);
}

a:visited {
    color: var(--vlink-color);
}

a:active {
    color: var(--alink-color);
}

.center-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Typography Utility Classes to replace <font> */
.site-title {
    font-size: 3rem;
    /* size="7" approx */
    font-family: var(--font-heading);
    line-height: 1.2;
}

.site-subtitle {
    font-size: 1.5rem;
    /* size="4" approx */
    font-family: var(--font-heading);
}

.page-title {
    font-size: 2.5rem;
    /* size="6" approx */
    font-family: var(--font-heading);
    word-break: break-word;
    /* Prevent long words overflowing */
}

.nav-links {
    font-size: 1.5rem;
    /* size="5" approx */
    font-family: var(--font-heading);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    white-space: nowrap;
}

.ascii-art {
    white-space: pre;
    font-family: monospace;
    overflow-x: auto;
    max-width: 100%;
    margin-bottom: 1rem;
    font-size: 1rem;
    /* Base size */
}

table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

td,
th {
    font-family: var(--font-main);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .site-title {
        font-size: 2rem;
        /* Smaller on mobile */
    }

    .page-title {
        font-size: 1.8rem;
    }

    .nav-links {
        font-size: 1.2rem;
        flex-direction: column;
        /* Stack links vertically on very small screens? Maybe just wrap is enough. let's keep row-wrap but smaller font */
        gap: 0.5rem;
    }

    .ascii-art {
        font-size: 0.6rem;
        /* Shrink ASCII art to fit better */
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* Polyfill for legacy <blink> tag */
blink {
    animation: blinker 1s linear infinite;
}

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

/* Content Border Box */
.content-box {
    border: 1px solid var(--text-color);
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    max-width: 800px;
    box-sizing: border-box;
    /* Ensure padding doesn't break layout */
    text-align: center;
}