html {
    background-color: white;
    text-align: left;
    height: 100%;
}

body {
    font-family: sans-serif;
    font-size: 12pt;
    height: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    color: #151641;
    max-width: 800px;
    min-height: 60px;
    padding: 0 32px;
    margin: 0 auto;
    position: relative;
    outline: 2px solid #151641;
    background-image: url(lichen_moss_dithered_light.gif);
    background-position: 0 30%;
    background-size: cover;

    h1 {
        padding: 4px;
        background-color: #FFFFFFCC;
        margin: auto 0;

        a {
            text-decoration: none;
        }
    }

    a {
        color: #151641;
    }

    ul.navlinks {
        float: left;
        display: flex;
        flex-wrap: wrap;
        gap: 5px 15px;
        list-style-type: none;
        justify-content: center;
        align-items: center;
        margin: 5px;

        >li {
            font-weight: bold;
            padding: 6px;
            background-color: #FFFFFFCC;
        }
    }
}


div.page {
    color: #151641;
    max-width: 800px;
    background-color: white;
    padding: 16px 32px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 32px;
    margin-bottom: 0;
    outline: 2px solid #151641;

    /* listings of blogposts on blog index pages */
    ul.blogposts {
        list-style-type: none;
        margin-left: 5px;
        padding: 0;

        li {
            background-color: #f4f4f4;
            margin-bottom: 8px;
            padding-left: 10px;
            border-left: 2px solid #151641;
            color: #151641;
        }

        a:hover {
            text-decoration: none;
            > li {
                background-color: #e5e5e5;
            }
        }
    }

    h1 {
        margin: 0;
    }

    a, a:visited {
        color: slateblue;
        text-decoration: none;
        h1, h2, h3, h4, h5, h6 {
            color: #151641;
        }
    }

    a:hover {
        text-decoration: underline;
    }

    pre {
        width: 100%;
        border-radius: 5px;
        code {
            display: block;
            padding: 10px;
            overflow: wrap;
            white-space: pre-wrap;
        }
    }

    code {
        font-size: inherit;
        border: 1px solid #e0e0f0;
        border-radius: 3px;
        padding: 0 3px;
    }

    img {
        width: auto;
        max-width: 100%;
    }

    ul { 
        list-style-type: "- ";
        li {
            margin-bottom: 0.5ex;
        }
    }
}

div.gallery-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    grid-template-rows: 1fr 0 0 0 0;
    overflow: hidden;

    img {
        width: 100%;
        box-sizing: border-box;
        border-left: 1px white solid;
        border-right: 1px white solid;
        vertical-align: middle;
    }
}

footer {
    position: sticky;
    margin: 10px;
    margin-top: 20px;
    top: 100vh;
    text-align: center;
}

