body {
    font-family: sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem); /* scales between 16px and 19px */
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: #f0f0f0;
}

header {
    width: 100%;
    background-color: #222;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem); /* scales between ~24px and ~32px */
}

footer {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    background-color: var(--header-bg);
    color: var(--header-color);
    position: absolute;
    bottom: 0;
}

#site-footer {
    background-color: #e8e8e8;
    color: #222;
    padding: 2.5rem 1rem;
    font-size: 0.95rem;
    border-top: 3px solid #bbb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

[data-theme="dark"] #site-footer {
    background-color: #1e1e1e;
    color: #eee;
    border-top: 3px solid #444;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

#site-footer a {
    color: inherit;
    text-decoration: underline;
}

#site-footer .footer-about {
    text-align: center;
    margin-bottom: 1rem;
}

#site-footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* On wider screens, switch to columns */
@media (min-width: 640px) {
    #site-footer .footer-links ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}

#site-footer .footer-links li a {
    font-weight: 500;
}

#site-footer .footer-copy {
    text-align: center;
    font-size: 0.80rem;
    color: #666;
    margin-top: 1.5rem;
}

[data-theme="dark"] #site-footer .footer-copy {
    color: #777;
}

#random-text {
    font-size: 2.5rem;
    max-width: 60ch;
    text-align: center;
    padding: 2rem;
}

#reload-button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#reload-button:hover {
    background-color: #555;
}

#tinyText{
    font-size:8pt;
}

#four {
    font-size:72pt;
}

.section-divider {
    width: 80%;
    height: 2px;
    margin: 3rem auto 2rem;
    border: none;
    background: repeating-linear-gradient(
        to right,
        var(--text-color),
        var(--text-color) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.3;
}

#bus-tag-info {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    padding: 1.5rem 1rem;
    max-width: 60ch;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] #bus-tag-info {
    background-color: rgba(255, 255, 255, 0.05);
}

#bus-tag-info a {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-color);
    text-decoration: underline;
}

#bus-link {
    width: 100%;
    background: var(--bg-color);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.95rem;
}

#bus-link a {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: 500;
}