:root {
    --dark-bg: #1d1e23;
    --soft-white: #f0f0f0;
    --accent: #50C878;
}

body {
    background-color: var(--dark-bg);
    color: var(--soft-white);
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    margin: 0 auto; /* Center page content */
    padding: 2rem;
    max-width: 800px;
}

header, .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--soft-white);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    font-weight: bold;
}

header span:nth-child(2), .footer-content span:nth-child(2) { /* Center text */
    text-align: center;
    flex-grow: 1;
}

header span:nth-child(3), .footer-content span:nth-child(3) { /* Right-align text */
    text-align: right;
}

/* Remove bottom border from .footer-content as .footer has top border */
.footer-content {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.name {
    /* Replaced by header span styling */
}

section {
    margin-bottom: 2rem;
}

h2 {
    color: var(--accent);
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: 2rem; /* Keep this for section headings */
}

.synopsis code {
    display: block;
    margin: 1rem 0;
    padding-left: 2rem;
}

dt {
    color: var(--accent);
    font-weight: bold;
    margin-top: 1rem;
}

dd {
    margin-left: 2rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.footer {
    margin-top: 3rem;
    border-top: 1px solid var(--soft-white);
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    header span:nth-child(2),          /* Hides "General Commands Manual" */
    .footer-content span:nth-child(2) { /* Hides the date */
        display: none;
    }

    /* Optional: Adjust justification if needed when middle element is hidden */
    /* header, .footer-content {
        justify-content: space-around; 
    }*/
}