/* Document design */

body {
    background: white;
    color: black;
}

.content {
    background: white;
    color: black;
}


@media screen {
    body {
        margin: 0pt;
    }

    .content {
        width: 50em;                /* We want it about 50em wide, but... */
        max-width: 90%;             /* ... not if that means it takes more than 90% of the display width. */
        margin-left: auto;          /* We also want it centered. */
        margin-right: auto;
        
        padding-right: 5em;
        padding-left: 5em;
        padding-top: 0.1em;
        padding-bottom: 1em;
    }

    .others {
        width: 10em;
        border: medium rgb(255, 142, 0) solid;
        padding: 0.2em;
        background: white;
        float: right;
        position: absolute;
        top: 0.5em;
        right: 0.5em;
    }

    h1 {
        background-color: rgb(114, 119, 216);
        margin: 0pt;
        padding: 0.5ex;
        border-bottom: 1pt solid black;
    }

    h1 + h2 {
        background-color: rgb(33, 183, 85);
        margin-top: 0pt;
        margin-left: 0pt;
        margin-right: 0pt;
        border-bottom: 1pt solid black;
    }

    h3 {
        background: white;
        color: rgb(0, 115, 60);
    }

    .content h2 {
        margin: 1em;
    }
}

h1 {
    text-align: center;
}

h2 {
    text-align: center;
    counter-reset: section;
}

.tocish h3:before {
    content: counter(section) ". ";
    counter-increment: section;
}
.tocish h3:after {
    content: "";
}
.tocish h3 {
    text-align: left;
    margin-bottom: 0.5em;
    margin-top: 1.5em;
}

p { 
    margin-top: 0em;
    margin-bottom: 1em;
}

p.figur { text-align: center; }
p.figur img { border: 1pt solid black; }

h3:before { content: "──── "; }
h3:after { content: " ────";}
h3 {
    text-align: center;
}

li {
    margin-bottom: 1ex;
}

.prebox {
    margin-left: auto;
    margin-right: auto;
    width: 15em;
    text-align: center;
    margin-bottom: 0pt;
    background: rgb(166, 92, 0);
    border-top: thin solid rgb(166, 92, 0);
    border-left: thin solid rgb(166, 92, 0);
    border-right: thin solid rgb(166, 92, 0);
    color: white;
    font-weight: bold;
    padding-top: 0.1em;
}

.box {
    margin-top: 0pt;
    border: 1pt solid rgb(166, 92, 0);
    padding: 1em;
}

/* Text formatting */

a {
    text-decoration: none;
}

a:link {
    color: rgb(10, 103, 163);
}

a:visited {
    color: rgb(36, 88, 122);
}

a:active, a:hover, a:focus {
    color: rgb(166, 92, 0);
    text-decoration: underline;
}

address {
    text-align: center;
    background: rgb(33, 183, 85);
    padding-top: 0.3em;
    border-top: thin solid black;
    border-bottom: thin solid black;
}

address a:link {
    color: black;
}

/* Links where the text is a URL. */
.url {
    font-family: courier, monospace;
}

/* LaTeX and TeX logos */
.tex, .latex, .tex sub, .latex sub {
    font-size: 1em;
}

.tex sub, .latex sub, .latex sup {
    text-transform: uppercase;
}

.latex sup {
    font-size: 0.85em;
    vertical-align: 0.15em;
    margin-left: -0.36em;
    margin-right: -0.15em;
}

.tex sub, .latex sub {
    vertical-align: -0.5ex;
    margin-left: -0.1667em;
    margin-right: -0.125em;
}