/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Custom styles */
body {
    font-family: 'Libre Baskerville', serif;
    background-image: url('/assets/bg.jpg');
    background-repeat: repeat;
    font-size: 16px;
    margin: 1.5em;
}

div#container {
    max-width: 950px;
    margin: auto;
}

h1, h2, h3 {
    font-weight: bold;
}

a,
a:link,
a:active,
a:visited {
    text-decoration: none;
    color: #00f;
}

a:active {
    color: red;
}

a:hover {
    color: red;
}

header > h1 {
    text-align: center;
    font-size: 30px;
    padding-bottom: 1em;
}

div#heading {
    text-align: center;
    font-size: 14px;
    padding-bottom: 1em;
}

header > h1 > a,
header > h1 > a:link,
header > h1 > a:visited,
div#heading > a,
div#heading > a:link,
div#heading > a:visited {
    color: inherit;
    text-decoration: none;
}

nav, article {
    padding: 1em;
}

nav {
    column-count: 3;
}

section {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid-column;
}

section > h3 {
    font-size: 21px;
    padding-bottom: 0.5em;
}

dl {
    margin: 0 0 1em 0.5em;
}

dt {
    margin: 0 0 0.5em 0;
}

dd {
    margin: 0 0 0.5em 0.5em;
}
dd:before {
    content: "\00BB\0020";
}

article {
    line-height: 1.75em;
}

article > p {
    margin-bottom: 1em;
}

article > h3,
article > h4,
article > h5,
article > h6 {
    margin: 1em 0 0.5em 0;
}

article > h3 {
    font-size: 21px;
}

article > h4 {
    font-size: 18px;
}

article > h5 {
    font-size: 17px;
}

article > h6 {
    font-size: 16px;
}

ul {
    display: block;
    list-style-type: disc;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    padding-left: 40px;
}

li {
    display: list-item;
}
ul.related {
    margin-bottom: 0;
    padding-bottom: 0;
    padding-left: 22px;
}
p.index-link {
    padding-left: 0;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

footer {
    margin-top: 1em;
    text-align: center;
    font-size: 12px;
    font-style: italic;
    word-wrap: none;
    line-height: 1.5em;
}

@media all and (max-width: 800px) {
    nav {
        column-count: 2;
    }
}

@media all and (max-width: 600px) {
    nav {
        column-count: 1;
    }
}
