@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,400i,700,700i&display=swap');

body {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11pt;
    line-height: 1.5;
    padding: 2em 1em;
    margin: 0 auto;
}

h1, h2, h3, h4, h5 {
    margin: 0 0 1em 0;
    font-weight: 700;
}

h4 {
    font-style: italic;
}

ul li, ol li {
    margin-bottom: 0.5em;
}

code {
    font-family: inherit;
    font-size: inherit;
    color: #dd0088;
    font-weight: bold;
}

.prose {
    margin: 0 auto;
    max-width: 80ch;
}

.toc {
    border: 2px solid lightgray;
    padding: 1em;
    margin: 2em 0;
}

.toc h4 {
    text-align: center;
}

.toc-entries {
    margin: 2em 0;
    padding: 0;
}
.toc-entries li {
    margin: 0 0 0 10px;
}

.help {
    font-style: italic;
    text-align: center;
    margin: 0;
}

.example {
    margin: 10em 0;
}

.example h1 {
    border-bottom: 2px solid lightgray;
}

.column h4 {
    margin: 1.5em 0 0.5em 0;
}

footer {
    border-top: 2px solid lightgray;
    text-align: center;
    padding: 2em 0 0;
}


/** Large screens **/

@media(min-width: 800px) {
    .toc-entries {
        column-count: auto;
    }
    .grid {
        display: grid;
        grid-template-columns: 48.5% 48.5%;
        gap: 3%;
    }
    .column h4 {
        text-align: center;
        font-weight: normal;
        color: gray;
    }
}

/** Code snippet styles **/

pre  {
    font-family: inherit;
    font-size: inherit;
    background: #f0f2f8;
    color: black;
    border-radius: 4px;
    padding: 1em;
    margin: 0;
    overflow-x: auto;
}
pre .hll { background-color: #ffffcc }
pre .c { color: #888888; font-style: italic } /* Comment */
pre .err { border: 1px solid #FF0000 } /* Error */
pre .k { color: #008000; font-weight: bold } /* Keyword */
pre .o { color: #666666 } /* Operator */
pre .ch { color: #408080; font-style: italic } /* Comment.Hashbang */
pre .cm { color: #888888; font-style: italic } /* Comment.Multiline */
pre .cp { color: #BC7A00 } /* Comment.Preproc */
pre .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */
pre .c1 { color: #888888; font-style: italic } /* Comment.Single */
pre .cs { color: #888888; font-style: italic } /* Comment.Special */
pre .gd { color: #A00000 } /* Generic.Deleted */
pre .ge { font-style: italic } /* Generic.Emph */
pre .gr { color: #FF0000 } /* Generic.Error */
pre .gh { color: #000080; font-weight: bold } /* Generic.Heading */
pre .gi { color: #00A000 } /* Generic.Inserted */
pre .go { color: #888888 } /* Generic.Output */
pre .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
pre .gs { font-weight: bold } /* Generic.Strong */
pre .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
pre .gt { color: #0044DD } /* Generic.Traceback */
pre .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
pre .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
pre .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
pre .kp { color: #008000 } /* Keyword.Pseudo */
pre .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
pre .kt { color: #B00040 } /* Keyword.Type */
pre .m { color: #666666 } /* Literal.Number */
pre .s { color: #BA2121 } /* Literal.String */
pre .na { color: #7D9029 } /* Name.Attribute */
pre .nb { color: #008000 } /* Name.Builtin */
pre .nc { color: #0000FF; font-weight: bold } /* Name.Class */
pre .no { color: #880000 } /* Name.Constant */
pre .nd { color: #AA22FF } /* Name.Decorator */
pre .ni { color: #999999; font-weight: bold } /* Name.Entity */
pre .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
pre .nf { color: #0000FF } /* Name.Function */
pre .nl { color: #A0A000 } /* Name.Label */
pre .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
pre .nt { color: #008000; font-weight: bold } /* Name.Tag */
pre .nv { color: #19177C } /* Name.Variable */
pre .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
pre .w { color: #bbbbbb } /* Text.Whitespace */
pre .mb { color: #666666 } /* Literal.Number.Bin */
pre .mf { color: #666666 } /* Literal.Number.Float */
pre .mh { color: #666666 } /* Literal.Number.Hex */
pre .mi { color: #666666 } /* Literal.Number.Integer */
pre .mo { color: #666666 } /* Literal.Number.Oct */
pre .sa { color: #BA2121 } /* Literal.String.Affix */
pre .sb { color: #BA2121 } /* Literal.String.Backtick */
pre .sc { color: #BA2121 } /* Literal.String.Char */
pre .dl { color: #BA2121 } /* Literal.String.Delimiter */
pre .sd { color: #444444; font-style: italic } /* Literal.String.Doc */
pre .s2 { color: #BA2121 } /* Literal.String.Double */
pre .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
pre .sh { color: #BA2121 } /* Literal.String.Heredoc */
pre .si { color: #BA2121; font-weight: bold } /* Literal.String.Interpol */
pre .sx { color: #008000 } /* Literal.String.Other */
pre .sr { color: #BB6688 } /* Literal.String.Regex */
pre .s1 { color: #BA2121 } /* Literal.String.Single */
pre .ss { color: #19177C } /* Literal.String.Symbol */
pre .bp { color: #008000 } /* Name.Builtin.Pseudo */
pre .fm { color: #0000FF } /* Name.Function.Magic */
pre .vc { color: #19177C } /* Name.Variable.Class */
pre .vg { color: #19177C } /* Name.Variable.Global */
pre .vi { color: #19177C } /* Name.Variable.Instance */
pre .vm { color: #19177C } /* Name.Variable.Magic */
pre .il { color: #666666 } /* Literal.Number.Integer.Long */
