body {
    background-color: white;
    padding: 0;
    margin: 0;
    font-family: "Spectral", serif;
    font-style: normal;
    line-height: 140%;
}

div.top-bar {
    /* background-image: url("/assets/img/water.jpg"); */
    background-image: url("/assets/img/reeds.jpg");
    background-repeat: repeat-x;
    background-position: bottom center; 
    height: 150px;

    border: 1pt solid black;

    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    flex-wrap: wrap;

    a, span {
        padding: 0px 8px;
        margin: 0 4px;
    }
}

a {
    background-color: white;
}

a.plain-link {
    color: black;
    text-decoration: none;
}

a.plain-link:hover {
    text-decoration: underline;
}

a:hover {
    background-color: yellow;
}

div.content {
    padding: 0 32px;
    margin: 0 auto;
    max-width: 1100px;

    .post-meta {
        font-size: medium;
        font-family: monospace;
        text-align: center;
    }

    a.tag {
        color: green;

        font-family: monospace;
        text-decoration: none;

        margin-left: 5px;
        padding: 1px 4px;
        border: 1px solid lightgreen;
        border-radius: 2px;
    }

    h1 {
        text-align: center;
    }
    
    h1, h2 {
        margin-bottom: 5px;
        clear: both;
    }
    
    h3, h4, h5 {
        font-style: italic;
        margin-bottom: 2px;
        clear: both;
    }

    hr {
        clear: both;
        border-color: lightgrey;
    }

    p {
        text-align: justify;
        text-align-last: left;

        code {
            font-size: large;
        }
    }

    figure {
        display: inline-block;
        margin: 10px;
        max-width: max(40%, 300px);
        width: fit-content;
        
        text-align: center;
        
        border: 1px solid black;
        border-radius: 2px;
        overflow: hidden;

        img {
            display: block;
            max-height: 250px;
            max-width: 100%;
        }

        figcaption {
            padding-top: 2px;
            padding-bottom: 2px;
            background-color: #eaf0f2;
            contain: inline-size;
            font-size: 9pt;
            line-height: 110%;
        }
    }

    .figures {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 0 10px;
    }

    .wide {
        max-width: 100%;
        img {
            max-height: unset;
        }
    }
   
    .left {
        float: left;
        clear: left;
    }

    .right {
        float: right;
        clear: right;
    }

    .left, .right {
        display: block;
        margin: 10px 15px;
    }

    blockquote {
        border-left: 1px solid black;
        padding-left: 8px;
        margin: 15px 20px;
    }
}

table.listing {
    width: 100%;
    border-collapse: collapse;

    tr {
        border: 1px solid black;
        background-color: #e3f9e6;
    }
    
    tr:nth-child(even) {
        background-color: #eaf0f2;
    }

    td {
        padding: 2px 10px;
    }

    td.date-cell {
        width: 200px;
    }
}

div.footer {
    margin: auto;
    text-align: center;
    font-size: small;
    color: grey;
}

pre.highlight {
    padding: 8px 24px;
    border: 1px solid lightblue;
    border-radius: 2px;

    max-height: 400px;
    overflow: scroll;
   
    font-size: large;
    line-height: 140%;
    background-color: #fbfeff;

    .c1, .cm, .c {
        background-color: #fcf6ef;
        color: #dd6102;
    }
}

span.tag-name {
    display: inline-block;
    margin-top: 10px;
    font-family: monospace;
    font-size: large;
    color: darkgreen;
}
