@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --gold: #ffd700;
    --cyan: #9be7ff;
    --dark-overlay: rgba(0, 0, 0, 0.5);
    --dark-overlay-light: rgba(0, 0, 0, 0.4);
    --font-arcade: 'Press Start 2P', monospace;
}

body {
    background-color: #222;
    color: #fff;
    font-family: var(--font-arcade);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-y: auto;
    padding-top: 2rem;
}

#site-footer {
    position: relative;
    width: 100%;
    font-size: 10px;
    z-index: 100;
    margin-top: 2rem;
    padding: 0 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1rem;
    line-height: 1.7;
}

#site-footer a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    display: inline-block;
}

#site-footer a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.educational-content {
    width: 100%;
    max-width: 640px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    box-sizing: border-box;
    font-family: sans-serif;
    background: #111;
    border: 4px double #555;
    border-radius: 6px;
    box-shadow: 0 0 15px var(--dark-overlay);
    color: #ddd;
    line-height: 1.6;
}

.educational-content h1,
.educational-content h2,
.educational-content h3 {
    font-family: var(--font-arcade);
    color: var(--gold);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.educational-content h1 {
    font-size: 14px;
    text-align: center;
    color: var(--cyan);
}

.cta-container {
    text-align: center;
    margin: 2rem 0;
}

.play-game-btn {
    display: inline-block;
    font-family: var(--font-arcade);
    font-size: 12px;
    color: #111;
    background-color: var(--gold);
    padding: 12px 20px;
    text-decoration: none;
    border: 4px solid #fff;
    border-radius: 4px;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.1s, box-shadow 0.1s;
    text-shadow: none;
}

.play-game-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
    color: #111;
    text-decoration: none;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 10px 15px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    background: #302100;
    color: var(--gold);
    font-family: var(--font-arcade);
    font-size: 10px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.back-link:hover {
    text-decoration: none;
    opacity: 0.8;
    color: var(--gold);
}

.educational-content h2 {
    font-size: 12px;
    border-bottom: 2px dashed #333;
    padding-bottom: 0.5rem;
}

.educational-content p {
    margin-bottom: 1rem;
    font-size: 14px;
}

.educational-content .last-updated,
.educational-content .lede,
.educational-content .note {
    color: #ccc;
}

.educational-content .last-updated {
    text-align: center;
    font-style: italic;
    font-size: 12px;
}

.educational-content ul,
.educational-content dl {
    margin-bottom: 1.5rem;
    font-size: 14px;
    padding-left: 1.5rem;
}

.educational-content li {
    margin-bottom: 0.5rem;
}

.contact-list {
    list-style: none;
    padding-left: 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: currentColor;
}

.educational-content dt {
    font-weight: bold;
    color: #fff;
    margin-top: 1rem;
}

.educational-content dd {
    margin-left: 0;
    margin-bottom: 1rem;
    color: #bbb;
}

.educational-content img {
    display: block;
    width: 100%;
    height: auto;
    border: 4px solid #333;
    border-radius: 4px;
    margin: 1.5rem 0;
    box-sizing: border-box;
}

.page-nav {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 10px;
}

.page-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 0.45rem;
    display: inline-block;
}

.page-nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.educational-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.educational-content th,
.educational-content td {
    border: 1px solid #444;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.educational-content th {
    color: var(--gold);
    font-family: var(--font-arcade);
    font-size: 10px;
    background: rgba(255, 215, 0, 0.08);
}

@media screen and (max-width: 600px) {
    body {
        height: auto;
        overflow: auto;
        padding-top: 10px;
    }

    #site-footer {
        font-size: 8px;
        position: relative;
        bottom: auto;
        gap: 0.35rem 0.75rem;
        line-height: 1.8;
    }

    .educational-content {
        margin-top: 1rem;
        padding: 1rem;
        border-width: 2px;
    }

    .educational-content h1 {
        font-size: 12px;
    }

    .educational-content h2 {
        font-size: 10px;
    }

    .educational-content p,
    .educational-content ul,
    .educational-content dl,
    .educational-content table {
        font-size: 12px;
    }

    .page-nav {
        font-size: 8px;
        line-height: 1.8;
    }

    .educational-content th {
        font-size: 8px;
    }
}
