:root {
    font-size: 14pt;
    font-family: serif;
    --button-bg: #eeeeee;
    --button-fg: #000000;
    --button-border: #333333;
}

a.button {
    display: block;
    font-weight: bold;
    text-decoration: none;
    background-color: var(--button-bg);
    color: var(--button-fg);
    padding: 0.5rem 0.25rem;
    border: solid 1px var(--button-border);
    border-radius: 0.25rem;
}

a.button:hover {
    text-decoration: underline;
}

.active {
    border: 2px solid #000000;
    border-radius: 0.13rem;
}

.link-container {
    padding: 0.25rem;
}

.header-container {
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.15rem;
}

.header-container nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

main img, .formatted img {
    display: block;
    max-width: 85%;
    max-height: 80vh;
    margin: 0.5rem auto;
    box-sizing: border-box;
}

footer {
    text-align: center;
    margin-bottom: 50dvh;
}

@media (max-width: 1000px) {
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-container nav {
        flex-direction: column;
        gap: 0.5;
        width: 100%;
        box-sizing: border-box;
    }

    .header-container nav * {
        width: 100%;
        box-sizing: border-box;
    }
}