/* basic big element styling */
html, body {
    height: 100%;
    box-sizing: border-box;
    padding: 0;
    width: 100%;
    margin: 0;
}

body {
    font-family: 'Gelasio', serif;
    color: black;
    display: flex;
    flex-direction: column;
    font-size: 18px;
    line-height: 1.5;
}

h1, h2, h3, h4, h5 {
    font-family: 'PT Sans', sans-serif;
}

header, footer {
    width: 100%;
    box-sizing: border-box;
    background: #333;
    color: #fff;
    font-family: 'PT Sans', sans-serif;
}

footer {
    flex-shrink: 0;
    margin-top: 1em;
}

main {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 680px;
    padding: 1em 0;
    flex: 1 0 auto;
}

nav, .footer-body {
    width: 100%;
    max-width: 1190px;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-body {
    padding: 0.5em;
}

/* basic formatting of things */
pre {
    font-family: 'Inconsolata', monospace;
    background: #eee;
    border-radius: 5px;
    padding: 10px 15px;
    overflow-y: auto;
}

code {
    font-family: 'Inconsolata', monospace;
    background: #eee;
    border-radius: 5px;
    padding: 3px;
}

pre code {
    padding: 0;
}

a {
    color: #07a;
}

a:visited {
    color: #941352;
}

li {
    padding-top: 0.5em;
}

img {
    max-width: 100%;
}

blockquote {
    margin: 0.5em;
    padding: 0.5em 1em;
    border-left: 2px solid #777;
}

table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

td {
    border: 1px solid #eee;
}

/* listing styling */
.listing-title {
    flex: 100%;
}

.listing {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
}

.listing-date {
    flex: 0 33%;
    margin-bottom: 0.3em !important;
}

.listing-link {
    flex: 0 66%;
}

.listing a {
    text-decoration: none;
    color: #000;
}

.listing a:visited {
    color: #333;
}

.listing a:hover, .listing a:active {
    text-decoration: underline;
}

/* small screens */
@media only screen and (max-width: 680px) {
    body {
        font-size: 18px;
        line-height: 28px;
    }
    main {
        padding: 1em 0.5em;
    }
    .listing-date, .listing-link {
        flex: 100%;
    }
    .listing-date {
        margin-bottom: 0 !important;
    }
    .listing-link {
        margin-bottom: 1em;
    }
}

/* Navbar styling */
.nav-links {
    width: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
    background: #333;
    float: left;
    font-family: 'PT Sans', sans-serif;
}

.nav-link {
    float: right;
}

.nav-branding {
    float: left;
}

.nav-link, .nav-branding {
    margin: 0;
    padding: 0;
}

.nav-link-inner {
    display: block;
    color: white !important;
    text-align: center;
    padding: 0.75em 0.5em;
    text-decoration: none;
    background: #333;
    margin: 0;
}

.nav-link-inner:hover {
    background: #111;
}

.title a, .subtitle a {
    text-decoration: none;
}
.title a {
    color: #000;
}

.title, .subtitle {
    margin-bottom: 0;
}

.subtitle, .subtitle a {
    color: #777;
    margin: 0;
    font-weight: normal;
}

.subtitle {
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'PT Sans', sans-serif;
}

.st-right {
    float: right;
}

/* Math */
.math {
    color: black;
}

/* Center */
.center {
    text-align: center;
    width: 100%;
}
