@charset "UTF-8";

/*
  Some good fonts:
    Arvo, Merriweather, Gentium+Book+Basic, Lato, PT+Serif,
    Vollkorn, Open+Sans, Crimson Text
  */

body {
    background-image: url("brown_cairo.png");
    background-repeat: repeat;
    margin: 0;
}

.TITLE {}

.TITLE,
.TITLE a,
.TITLE h1,
.TITLE h1 a {
    display: block;
    width: 100%;

    font-family: 'Gentium Book Basic', serif;
    text-align: center;
    letter-spacing: 0.05em;
    font-size: 40pt;
    color: #222;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 12px;
}

.CONTAINER {
    display: flex;
    flex-direction: column;
    padding: 0;
    max-width: 1020px;
    margin-left: auto;
    margin-right: auto;

    font-family: vollkorn, serif;
    font-size: 12pt;
}

.NAV {
    order: 1;
    margin: 10px;
    margin-top: 0;
    align-self: flex-start;
    width: auto;

    border: 2px solid #606060;
    background-color: #f8f8f8;
    box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.53);

    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
}

.BODY {
    order: 0;
    flex: 1;
    margin: 10px;
    margin-top: 0;
    padding: 20px;
    align-self: flex-start;
    max-width: none;

    border: 2px solid #606060;
    background-color: #f8f8f8;
    box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.53);
}

@media (min-width: 800px) {
    .CONTAINER {
        flex-direction: row;
    }
    .BODY {}
    .NAV {
        width: 200px;
    }
}

.NAV h3 {
    font-family: 'Gentium Book Basic', serif;
    border-bottom: 2px solid brown;
    margin-bottom: 10px;
    font-variant: normal;
}

.NAV a {
    text-decoration: none;
    color: inherit;
}

.NAV h3, .NAV h3 a, .NAV h3 a:visited {
    color: brown;
}

.NAV ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

.BODY h1, h2, h3 {
    font-family: 'Gentium Book Basic', serif;
}

.BODY h1 {
    font-size: 28pt;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.BODY h2 {
    font-size: 20pt;
}

.BODY h3 {
    font-size: 14pt;
}

.BODY ul {
    padding-left: 1.5em;
}

.BODY code {
    white-space: pre-wrap;
    font-size: 11pt;
    /* font-weight: bold; */
    /* font-family: 'Inconsolata', 'Courier New', sans-serif; */
}

.BODY pre code {
    color: black;
    font-weight: normal;
}

.BODY hr {
    border-top: 2px solid #444;
    width: 100%;
    color: #008;
}

.BODY pre {
    background-color: #e8e8e8;
    border-style: solid;
    padding: 12px;

    border: 1px dashed #666;
}

.BODY img,
.BODY canvas,
.BODY iframe {
    border-style: solid;
    border: 1px solid #666;
}

.block {
    border-bottom: 2px solid #a0a0a0;
}

.NAV h3 a:hover, .NAV a:hover, .TITLE a:hover {
    text-decoration: underline;
}

.highlight {
  margin: 0px;
}

table {
    margin-top: 20px;
    border-spacing: 20px 0px;
}

details {
    margin: 20px;
    background-color: #fff8e8;
}

summary {
    background-color: #e8e0d0;
    padding: 5px;
    border-radius: 5px;
}

/*
summary::after {
    content: " (Click to expand.)";
}
*/

.typst-example {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: hidden;
}
.typst-example img {
    max-width: 300px;
    border-style: none;
}
