:root {
    background: var(--background);
}

#preamble {
    margin-bottom: 20px;
    background: var(--background-mid);
}
#preamble h1 {
    text-align: center;
    font-family: Inconsolata;
    margin: 0;
}
#preamble h1 a:hover {
    text-decoration: none;
}

body {
    max-width: 1000px;
    margin: auto;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2), 0 0 20px 0 rgba(0, 0, 0, 0.19);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14pt;
    padding: 0;
}

#content, #postamble {
    margin: 0 5%;
}

#postamble {
    margin-top: auto;
    margin-bottom: 10px;
}

#theme-toggle {
    margin-left: auto;
}

#theme-toggle label {
    padding: 5px;
    color: var(--form-text);
    background-color: var(--background);
    margin-right: 6px;
    margin-bottom: 6px;
    border: none;
    border-radius: 6px;
    outline: none;
    display: inline;
}

#theme-toggle input {
    position: absolute;
    top: -50px;
}

#theme-toggle label span:after {
    content: "🌞";
}

#theme-toggle label input:checked + span:after {
    content: "🌙";
}

nav {
    background: var(--background-alt);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav li a {
    display: block;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav li a:hover {
    text-decoration: none;
    background: var(--background);
}
