:root {
    color-scheme: light;
}

#page {
    --page-color: light-dark(#fff, #222);
    --highlight-color: #112f60;
    --link-hover-color: light-dark(#00E, pink);
    --text-color: light-dark(black, white);
    --link-color: light-dark(black, white);
    --table-header: light-dark(#f4eacc, rgb(189, 147, 45)); /* goldenrod; */  /* rgb(253,184,19); */
    --table-header-contrast: light-dark(black, black);
}

#page {
    border-radius: var(--page-color);
    margin: 0;
    background: var(--page-color);
    color: var(--text-color);
    line-height: 1.3em;
}

#page > header {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1em;
}

#page > header img {
    height: 2.5em;
}

h1 {
    font-size: 1.5em;
    margin: 0;
}

.title {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5em;
    margin: 0;
}

h1, h2 {
    font-weight: bold;
}

h1 {
    font-size: 1.8em;
    margin-bottom: .83em;
}

h2 {
    font-size: 1.4em;
}

h3 {
    font-size: 1.2em;
    margin: 1em 0;
}

li {
    margin: .5em 0;
}

#headerBar {
    background: var(--highlight-color);
    width: 100%;
    height: 2.5em;
    display: flex;
    align-items: center;
    color: white;
}

.content {
    padding: 1em;
    margin-top: .5em;
}

#sideNav ul {
    border-bottom: 4px solid var(--highlight-color);
    display: block;
    margin: 0;
    padding-left: 0;
}

#sideNav ul li {
    display: block;
    margin: 1em 0;
}

#sideNav ul li:first-child {
    margin-top: 0;
}

#sideNav a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 1.1em;
}

#sideNav a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

#mainContent {
    margin-top: 1em;
}

p {
    margin: 0 0 1em 0;
}

.text-content {
    text-align: justify;
    max-width: 32em;
}

table {
    border-collapse: collapse;
}

.endSection {
    margin-top: 2em;
}

#headerBar {
    display: block;
}

#sideNav.show {
    display: block;
}

#sideNav {
    display: none;
}

#navButton {
    font-size: 1.2em;
    padding: .4em;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

summary {
    font-size: 1.2em;
    cursor: pointer;
}

details {
    margin: 1.2em 0;
}

.searchResults {
    table {
        width: 100%;
    }

    th, td {
        padding: .5rem;
        border: 1px solid gray;
    }

    th {
        background-color: var(--table-header);
        color: var(--table-header-contrast);
    }
}

@media screen and (min-width: 1100px) {
    body {
        background-image: url("/images/beaverhead_4_1920_1080.jpg");
    }

    #headerBar {
        height: 1em;
    }

    #menuButton {
        display: none;
    }

    #sideNav {
        display: block;
    }

    #page {
        max-width: 90rem;
        margin: 2rem auto 2rem auto;
        border-radius: 10px 10px 0 0;
    }

    #page > header img {
        height: 3.5em;
    }

    .content {
        display: table;
    }

    .content > aside {
        display: table-cell;
        vertical-align: top;
        width: 12em;
        min-width: 12em;
    }

    #sideNav ul {
        border-right: 4px solid var(--highlight-color);
        border-bottom: none;
        padding: 0 0 1em;
    }

    #mainContent {
        display: table-cell;
        padding: 0 1.5em;
        margin: 0;
    }
}
