html {
    height: 100%;
}

body {
    max-width: 768px;
    margin: 0 auto;
    font-family: "Fira Sans", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 26px;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

header {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding-top: 5px;
}

header .header-content {
    display: flex;
    flex-direction: row;
    padding-top: 15px;
    padding-bottom: 10px;
}

.site-title {
    margin: 0;
    font-size: 3rem;
    font-weight: bold;
}

.site-title a {
    color: #ff8000;
    text-decoration: none;
}

.site-title a:hover {
    color: #ff9800;
    text-decoration: none;
}

.tagline {
    color: #9e9e9e;
    font-size: 1.8rem;
    padding-left: 15px;
}

nav {
    font-size: 1.3rem;
    padding-top: 10px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navigation a {
    text-decoration: none;
    color: blue;
}

.navigation a:visited {
    color: blue;
}

.navigation a:hover {
    color: #ff8000;
    text-decoration: none;
}

.navigation li {
    display: inline;
    margin-right: 0.75rem;
    line-height: inherit;
}

main {
    flex: 1 0 auto;
    padding-top: 15px;
}

/* Move the h1 header closer to the post date */
main :nth-child(2) {
    margin-top: 0px;
    padding-top: 5px;
}

main p:last-child {
    padding-bottom: 20px;
}

ul.index-links {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.index-links li {
    margin-top: 1em;
    margin-bottom: 0em;
}

.post-date {
    color: #9A9A9A;
}

footer {
    flex-shrink: 0;
    height: 45px;
    border-top: 1px dotted #ccc;
    padding-top: 5px;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid #ddd;
}

th, td {
    border: none;
    text-align: left;
    padding: 0.5em;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

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

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #FF8000;
}

blockquote {
    margin-left: 1rem;
    margin-right: 3rem;
    border-left: 3px solid #FF8000;
    padding-left: 1rem;
}

code {
    background-color: #eee;
    overflow-x: auto;
    padding: .2em .4em;
    border-radius: 6px;
    font-family: "Courier New", monospace;
}

pre > code {
    font-family: "Courier New", monospace;
    background-color: inherit;
}

pre {
    padding: .2em .4em;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid #ddd;
}

dt {
    font-weight: bold;
}

main h1 {
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 1.2;
}

main h2 {
    padding-top: 5px;
    padding-bottom: 5px;
}

ul.footer-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    display: inline;
    margin-right: 16px;
}

@media only screen and (max-width: 768px) {
    header .header-content {
        flex-direction: column;
    }

    .tagline {
        padding-left: 0px;
        padding-top: 15px;
    }

    body {
        padding-left: 10px;
        padding-right: 10px;
    }
}
