html, body {
    height: 100%;
    min-height: 100%;
}

body {
    background-color: #ccc;
}

a {
    color: #810818;
    text-decoration: none;
}

a:hover {
    color: black;
}

pre {
    font-size: smaller;
    overflow: auto;
    white-space: pre;
    width: 100%;
    word-wrap: normal;
}

code {
    background-color: #eee;
}

/*
Markdown code block without using Pygments. The usage of `$$code` by blogofile
to invoke Pygments kinda breaks Markdown list numbering logic.
*/
pre code {
    background-color: transparent;
}

blockquote {
    border-left: 3px solid #810818;
    padding-left: 1em;
    font-family: sans-serif;
    font-size: smaller;
}

#content {
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    min-height: 100%;
    padding-left: 1em;
    padding-right: 1em;
    max-width: 60em;
}

#main_block {
    width: 100%;
}

#prose_block {
    width: 42em;
}

#side_block {
    float: right;
    width: 14em;
}

#prose_block, #side_block {
    display: inline-block;
    vertical-align: top;
}

#sidebar {
    background-color: white;
    font-size: smaller;
    padding-left: 0.5em;
}

#sidebar section {
    margin-bottom: 1em;
}

#sidebar h3, #sidebar p, #sidebar ul {
    margin-top: 0;
    margin-bottom: 0.5em;
}

#sidebar ul {
    list-style-type: square;
    padding-left: 20px;
}

#header a {
    text-decoration: none;
}

#header img {
    margin: 5px;
    vertical-align: top;
}

#header ol {
    color: black;
    display: inline-block;
    font-family: monospace;
    font-size: larger;
    font-weight: bold;
    margin: 5px;
}

/* To make sure #side_block floats above this on narrow screen */
#footer {
    clear: both;
}

#credits {
    text-align: center;
}

div.blog_post {
    border: 1px solid transparent;
    margin-bottom: 1em;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

div.blog_post:hover {
    border: 1px solid #ccc;
}

h2.blog_post_title {
    margin-top: 0;
    margin-bottom: 0;
}
