:root {
    --fg1: #333333;
    --bg1: #eeeeee;
    --bg2: #dddddd;
    --bg3: #cccccc;
    --bg-highlight: #a9c1cc;
    --border: #aaaaaa;

    --logo: #888888;

    --link-unclicked: #262a58;
    --link-clicked: #555664;

    color-scheme: light;
}

:root[data-theme="dark"] {
    --fg1: #cccccc;
    --bg1: #111111;
    --bg2: #222222;
    --bg2: #333333;
    --bg-highlight: #26343b;
    --border: #555555;

    --logo: #888888;

    --link-unclicked: #77d4a3;
    --link-clicked: #a3c2b1;

    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg1);
    color: var(--fg1);

    font-family: "DejaVu Sans", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.25;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    min-height: 100vh;
    margin: 0px;
    width: 100vw;
}

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

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

a:hover {
    background-color: var(--bg2);
}

#content {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;

    width: 100vw;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

img.icon {
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
    vertical-align: -0.15em;
}

#end-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    margin-top: 100px;
}

@media (max-width: 600px) {
    #end-nav {
        flex-direction: column;
        justify-content: start;
        align-items: start;
        gap: 5px;
    }
}

/* Basic article rendering */
.block {
    background-color: var(--bg1);
    border: 1px solid var(--border);
    border-radius: 6px;

    font-family: monospace;
    font-size: 9pt;

    margin: 1rem 0;
    padding: 1rem;
}

code {
    /* background-color: var(--bg1);
    border: 1px solid var(--border);
    border-radius: 2px; */

    font-family: monospace;
    font-size: 9pt;

    /* padding: 2px; */
}

p {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

/* File tree */
.files {
    list-style: none;
}

.files,
.files ul {
    list-style: none;
}

.files ul {
    margin: 0.25rem 0 0;
    padding-left: 1.5rem;
}

.files li {
    padding: 0.2rem 0;
}

.figure {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.figure .label {
    align-self: center;
    font-style: italic;
    font-size: 0.9em;
}