html {
    margin: auto;
    line-height: 1.75;
    font-size: 1.2em;
}

article, figcaption, figure, footer, header, nav, section, time {
    display: block;
}

body {
    margin: 0;
}

a {
    color: #0000f0;
}

a:visited {
    color: #6060f0;
}

/* Main site header */
body > header {
    padding: 0 2em;
    background-color: #303030;
}

body > header a {
    color: #ffffff;
}
body > header a:visited {
    color: #ffffff;
}

body > header h1 {
    margin: 0;
    font-weight: 500;
    line-height: 125%;
    display: inline-block;
    width: calc(50% - 2em);
}

#feedblock {
    line-height: 125%;
    display: inline-block;
    width: 50%;
    text-align: right;
}

/* end main site header */

#content time {
    font-weight: 100;
    font-size: 0.8em;
    color: #606060;
}

nav {
    background-color: #d0d0d0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0 3ch;
    font-size: 0.8em;
}

nav ul li {
    display: inline;
    padding-right: 5%;
    font-size: 1.5em;
    line-height: 125%;
}

#content h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    text-shadow: 0.1em 0.1em 0.1em #efefef;
    line-height: 125%;
}

#content h1 {
    font-size: 2em;
    margin: 0.67em 0;
    padding: 0.7em 0 0.3em;
}

h3:after, h4:after, h5:after, h6:after {
    content: ' ';
    display: block;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
    -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
}

h3:after {
    width: 80%;
}

h4:after {
    width: 60%;
}

h5:after {
    width: 40%;
}

h6:after {
    width: 20%;
}

table {
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

th, td {
    border: 1px black solid;
    padding: 0 0.5em 0 0.5em;
}

thead {
    background-color: #cccccc;
}

tbody tr:nth-child(odd) {
    background-color: #eeeeee;
}

dl {
    padding: 0.5em 0.5em 0.5em 2em;
}

dt {
    float: left;
    clear: left;
    text-align: right;
    list-style-type: square;
    font-weight: bold
}
dt::after {
    content: ":";
}

dd {
    margin: 0 0 0 5em;
    padding: 0 0 0.5em 0;
}

section#content {
    margin: auto;
    display: block;
    max-width: 100ch;
    padding: 1ch 3ch;
}

@media only screen and (max-width: 600px) {
    section#content {
        margin: 0.5em;
    }
    
    table {
        font-size: 0.75em;
    }
}

div.toc {
    display: inline-block;
    margin: 0 2em 0 2em;
    padding: 1em;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
}

span.toctitle {
    font-size: 1.5em;
}

div.toc ul {
}

.highlight {
    margin: 0 10% 0 10%;
}

.highlight pre {
    background-color: #ececec;
    border: #bcbcbc 1px solid;
    padding: 1em;
    overflow: auto;
    overflow-x: scroll;
}

code {
    background-color: #ececec;
    border: #bcbcbc 1px solid;
    padding: 0 2px 0 2px;
}

.highlight code {
    padding: 0;
    margin-right: 1em;
    border: none;
}

blockquote {
    border: #bcbcbc 1px dashed;
    background-color: #ddddef55;
    max-width: 80%;
    color: #000066;
}

blockquote p {
    padding: 0 1em 0 1em;
}
