/* This is to reset the default browser settings so they're all the same. From https://clarle.github.io/yui3/yui/docs/cssreset/ */
html{color:#000;background:#FFF}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}q:before,q:after{content:''}abbr,acronym{border:0;font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;*font-size:100%}legend{color:#000}#yui3-css-stamp.cssreset{display:none}

/* This is to set some of the common sense styles I set myself */
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}


/* My actual custom stuff */
html {
    font-family: sans-serif;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 16px; 
    color: #FFF;
    background-color: #000;
    @media (prefers-color-scheme: light) {
        color: #000;
        background-color: #FFF;
    }
}

body {
    margin: 10px auto;
    /*-max-width: 900px;*/
    text-align: left;
    padding: 2px 2px 100px 2px;
}

nav#TOC {
    margin-top: 36px;
    margin-bottom: 36px;
}

nav#TOC ul {
    list-style: none;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

strong em {
    font-weight: bold;
}

em strong {
    font-style: italic;
}

h1 {
    font-size: 200%;
    font-weight: bold;
    color: #8A3324;
    @media (prefers-color-scheme: light) {
        color: #8A3324;
    }
    text-align: center;
}

h2 {
    margin-top: 36px;
    font-size: 200%;
    font-weight: bold;
    color: #8A3324;
    @media (prefers-color-scheme: light) {
        color: #8A3324;
    }
}

h3 {
    margin-top: 24px;
    font-size: 160%;
    font-weight: bold;
    color: #8A3324;
    @media (prefers-color-scheme: light) {
        color: #8A3324;
    }
}

h4 {
    margin-top: 24px;
    font-size: 120%;
    font-weight: bold;
    color: #8A3324;
    @media (prefers-color-scheme: light) {
        color: #8A3324;
    }
}

h5 {
    margin-top: 24px;
    font-size: 90%;
    font-weight: bold;
    color: #8A3324;
    @media (prefers-color-scheme: light) {
        color: #8A3324;
    }
}

h6 {
    margin-top: 24px;
    font-size: 90%;
    color: #8A3324;
    @media (prefers-color-scheme: light) {
        color: #8A3324;
    }
}

p {
    margin-top: 16px;
}

table {
    margin-top: 16px;
}

td, th {
    padding: 0 4px;
    text-align: left;
    border: 1px solid white;
    @media (prefers-color-scheme: light) {
        border: 1px solid black;
    }
}

th {
    font-weight: bold;
}

#contact {
    font-size: 100%;
    text-align: center;
    margin-top: 0;
}

p#formats {
    text-align: center;
}

ul {
    margin-top: 8px;
    list-style: circle outside none;
    padding-left: 28px;
}

ol {
    margin-top: 8px;
    list-style: decimal outside none;
    padding-left: 28px;
}

li {
    padding-top: 6px;
}

li:first-child {
    padding-top: 0px;
}

blockquote {
    color: #333333;
    font-size: 90%;
    padding-left: 30px;
}

pre {
    font-size: 75%;
    font-family: mono;
    margin-top: 16px;
}

.show {
    opacity: 1;
}

.hide {
    opacity: 0;
    transition: opacity 400ms;
}


@media only print {
    html {
        font-size: 13px;
    }

    body {
        margin: 0;
        padding: 0;
    }

    p#formats {
        display: none;
    }

    h1 {
        font-size: 130%;
        letter-spacing: 4px;
    }

    #contact {
        font-size: 80%;
        line-height: 11px;
        padding-bottom: 0px;
    }

    h2 {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    h3 {
        margin-top: 20px;
    }

    p {
        padding: 0;
        margin-top: 6px;
        margin-bottom: 6px;
    }

    ul {
        padding-left: 18px;
    }

    li {
        padding-top: 4px;
        margin-left: -3px;
    }

    li span {
        margin-left: -3px;
    }
}
