body {
	padding: 2em;
	margin: 0px auto;
	max-width: 1024px;
	width: 100%;
	box-sizing: border-box;
	font-family: sans-serif;
	font-size: 1em;
}

p, li {
	font-family: sans-serif;
	font-size: 1em;
}

#post {
    max-width: 640px;
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
}

pre.example {
    font-size: 90%;
    overflow: auto;
    font-style: italic;
    border: 1px solid #CCC;
    padding: 1em;
}

/* Navigation Styles */
.nav {
    padding: 0;
    list-style: none;
    margin: 1em 0;
}

.nav li {
    display: inline;
}

.nav li:not(:last-child)::after {
    content: " | ";
    color: #000;
}

#table-of-contents {
    color: black;
    background: #FFF;
    font-size: 80%;
    padding: .5em;
    /*margin: 1em -2em 1em 1em;*/
    float: right;
    display: block;
    border: 1px solid #CCC;
    max-width: 50%;
    overflow: auto;
}

#table-of-contents a  {
    color: #003333;
}

#table-of-contents a:hover {
    color: #003333;
    text-decoration: underline;
}

#table-of-contents li {
    margin: 0px;
}

#table-of-contents h2 {
    border: none;
}

img {
    border: 0px;
    float: right;
    max-width: 100%;
    height: auto;
}

#post img {
    border: 5px;
}

.title {
    color: #990000;
    padding-bottom: 7px;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
}

h2 {
    padding-bottom: 4px;
    margin-bottom: 5px;
    border-bottom: 3px solid #DDD;
}

h3 {
    color: #333333;
}

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

a:visited {
    text-decoration: none;
    color: #336666
}

a:hover {
    text-decoration: underline;
    color: #003333
}


#postamble {
	margin-top: 50px;
	border-top: 1px solid #DDD;
}

#postamble p {
	font-size: 0.75em;
	margin: 0px;
}

#postamble div hosted {
    position: absolute;
	top: 10px;
	float: right;
	right: 0;
	font-size: 0.75em;
}


#post_date {
	margin-top: 1px;
	border-top: 1px solid #DDD;
	font-size: 0.9em;
}

@media screen and (max-width: 768px) {
    body {
        padding: 1em;
    }

    /* Navigation Mobile Styles */
    .nav li {
        display: block;
        margin-bottom: 0.5em;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5em;
    }

    .nav li:not(:last-child)::after {
        content: "";
    }

    #table-of-contents {
        float: none;
        max-width: 100%;
        margin: 1em 0;
    }

    img {
        float: none;
        display: block;
        margin: 1em auto;
    }
    
    #post {
        max-width: 100%;
    }
}
