body {
    font-family: serif;
    font-size: 12pt;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    counter-reset: h2 figcaption;
    text-align: justify;
    /* latex.css dark
    background-color: #2d2d2d;
    color: #ccc;
    */
    
}
/* Latex.css dark
a {
    color: hsl(196 80% 77%); 
}
*/
article {
    counter-reset: h2;
}
header {
    p {
        text-align: center;
    }
}
#title { /* Special class for H1 main title */
    text-align: center;
    margin-bottom: 2pt;
    font-size: 30pt;
    font-variant: small-caps;
}
header > a {
    color: black;
    text-decoration: none;
}
h1.articletitle {
    text-align: center;
    font-weight: normal;
}
.author {
    text-align: center;
    font-size: 14pt;
}
h2:not(.nonumber) {
    counter-reset: h3;
    &::before {
        counter-increment: h2;
        content: counter(h2) ". ";
    }
}
h3:not(.nonumber) {
    counter-reset: h4;
    &::before {
        counter-increment: h3;
        content: counter(h2) "." counter(h3) ". ";
    }
}
ul {
    list-style-type: none;
}
li:before {
    content: "— ";
}
a.headerlink {
    display: none;
}
.menucontainer {
    border-bottom: 1px solid black;
    border-top: 1px solid black;
    display: flex;
    padding: 0pt;
    margin: 0pt;
    /*background-color: dimgrey;*/
}
.menucontainer a, .menucontainer a:visited {
    flex: 1;
    color: black;
    text-align: center;
    text-decoration: none;
}
.menuelement {
    padding: 5px 10px 5px 10px; /* TLBR */
    width: 100%;
}


.bibliography {
    li:before {
        content: "";
    }
    a {
        font-style: italic;
    }
}

figure {
    text-align: center;
}
figcaption {
    font-style: italic;
}
figcaption:before {
    counter-increment: figcaption;
    content: "Figure " counter(figcaption) ". ";
}
img {
    max-width: 80%;
}
.fullwidth {
    max-width: 100%;
}

@media (max-width: 800px) {
    body {
        max-width: 100%;
        width: 100%;
    }
}