@import url(https://fonts.googleapis.com/css?family=Oswald);
* { font-family: Segoe, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }

html{
    padding:1em;
    font-size:1em;
    line-height:1.6;
    background-color:white;
}

body {
    margin:0 auto;
    padding:1%;
    max-width:900px;
    border: rgba(0, 0, 0, 0.05) 1px solid;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
    color: #444;
}

article {
    /* float:left; */
}

p {
    margin-top:1.5em;
}

th, td { 
    /* border: #ccc 1px solid; */
    border: none;
    padding: 0.2em; 
}  

footer {
    clear:both;
    border-top: #ccc 1px solid;
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    color: #4c1313;
}

h1 {
    margin-bottom: 0;
    margin-top: 0;
    border-bottom: 1px solid rgba(92, 24, 24, 0.5);
}

h2 {
    clear:both;
    margin-bottom: 0.2em;
    border-bottom: 1px solid rgba(92, 48, 48, 0.25);
}

h3 {
    background-color: antiquewhite;
}

h1 + p {
    margin-top: 0;
}

h2 + p {
    margin-top: 0;
}

blockquote {
    padding: 1em;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
}

ul li {
  list-style: disc;
  margin-left: 1em;
}

code { 
    font-family:monospace;
    display:inline-block;
    /*
     * Lines of code would be spaced using the paragraph spacing, which is
     * too big, so reduce it.
     */
    line-height: 1.1em;
}

pre {
    /*
     * Lines which are too long will overflow the pre element. To avoid this, 
     * set white-space to pre-wrap, which will ensure that lines wrap when 
     * they reach the edge of the element
     */
    white-space: pre-wrap;
    
    border: rgba(0, 0, 0, 0.15) 1px solid;
    width: 100%;
    background-color: #efefee;
    padding-left: 0.5em;

    font-size: smaller;
}

body > header {
    background-color: #4C1313;
    background-repeat: repeat-x;
    background-image: -moz-linear-gradient(top, #770000, #510000);
    background-image: -ms-linear-gradient(top, #770000, #510000);
    background-image: -webkit-linear-gradient(top, #770000, #510000);
    background-image: -o-linear-gradient(top, #770000, #510000);
    background-image: linear-gradient(top, #770000, #510000);
    color: #dddddd;
    padding: 1em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    /*border: 2px solid white;
    border-bottom: 12px solid white;*/
}

body > header h1 {
    text-align: right;
    font-size: 3em;
    margin-top: 0;
    margin-bottom: 0;
    border-bottom: none;
}

body > header h1 a {
    color: #eee;
    font-family: Oswald, Segoe, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    text-decoration: none;
}

body > header h1 a:hover {
    color: #fff;
}

body > header h2 {
    text-align: right;
    font-size: 1em;
    font-style: italic;
    font-weight: normal;
    /* border-top: 1px solid rgba(255, 64, 64, 0.2); */
    border-bottom: none;
    color: #ddd;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Raleway, sans-serif;
}

body > header h3 {
    text-align: right;
    margin-bottom: 0;
    margin-top: 0;
}

body > header h3 a {
    color: #ddd;
    text-decoration: none;
}

body > header h3 a img {
    padding: 0.25em;
    border: #ddd 1px solid;
    box-shadow: 0 0 2px rgba(0,0,0,1.0);
}

body > header h3 a:hover {
    color: #fff;
}

body > header h3 a:hover img {
    border: #fff 1px solid;
    box-shadow: 0 0 2px rgba(0,0,0,1.0);
}

body > header h4 {
    /*color: #4C1313;*/
    /*background-color: rgba(76,19,19,0.8);*/
    color: #ddd;
    background-color: rgba(0,0,0,0.2);
    text-align:center;
    font-size: smaller;
    box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 1.0);
    margin-top: 0;
    margin-bottom: 0;
}

div.page-nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    text-align: center;
    margin-bottom: 1.0em;
    font-size: 0.8em;
    line-height: 1.5em;
}

a.page-nav {
    flex-grow: 1;
    text-align: center; 
    color: #222;
    border: #ccc 1px solid;
    border-radius: 2px; 
    text-decoration: none;
    /* padding: 0.1em 0.5em;   */
    margin: 0.0em;
    padding: 0.0em;
} 

a.page-nav:hover {
    background-color: antiquewhite;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
}

img.left {
    float: left;
    padding: 0.5em;
    border: #ccc 1px solid;
    margin-bottom: 0.5em;
    margin-right: 1em;
}

img.right {
    float: right;
    padding: 0.5em;
    border: #ccc 1px solid;
    margin-bottom: 0.5em;
    margin-left: 1em;
}

figure.left {
    float: left;
    padding: 0.5em;
    border: #ccc 1px solid;
    margin-bottom: 0.5em;
    margin-right: 1em;
}

figure.right {
    float: right;
    padding: 0.5em;
    border: #ccc 1px solid;
    margin-bottom: 0.5em;
    margin-left: 1em;
}

a.button {
    clear:both;
    display: block;
    height: 1.75em;
    width: 128px;
    background-color: #0B2E2E;
    color: #ddd;
    padding: 0 5px 0 0;
    text-align: center;
    text-decoration: none;
    border: #fff 1px ridge;
    box-shadow: 0 0 2px rgba(0,0,0,1.0);
}

a.button:hover {
    color: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,1.0);
}

audio {
  background-color: #0B2E2E;
  opacity: 1.0;
  vertical-align: middle;
}

footer {
    border-top: #ccc 1px solid;
    text-align: center;
    font-size: small;
}

section.topbar {
    clear:both;
    display:flex;
}

section.panels {
    clear:both;
    display:flex;
    flex-wrap: wrap;
}

section.buttonbar {
    text-align: right;
}

section.buttonbar p {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/*
 *  --------------------------------------------------------------------------
 *  Navigation Topbar
 *  --------------------------------------------------------------------------
 */
article.topbar { 
    display: block; 
    font-weight: bold; 
    text-align:center;
    width: 100%;
}

article.topbar a {
    display: block; 
    font-weight: normal;
    padding-left: 0.25em;
    color: #600;
    text-decoration: none;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
    border: #ccc 1px solid;
}

article.topbar a:hover {
    background-color: #4C1313;
    background-repeat: repeat-x;
    background-image: -moz-linear-gradient(top, #770000, #510000);
    background-image: -ms-linear-gradient(top, #770000, #510000);
    background-image: -webkit-linear-gradient(top, #770000, #510000);
    background-image: -o-linear-gradient(top, #770000, #510000);
    background-image: linear-gradient(top, #770000, #510000);
    color: antiquewhite;
}

article.topbar {
    margin-top: 0.75em;
}

aside {
    float: right;
    max-width: 40%;
    margin: 5px 0px 5px 20px;
    border: #2f4f4f 1px solid;
    padding: 10px;
    padding-bottom: 10px;
    font-size: 0.9em;
    line-height: 1.2em;
    text-align: justify;
    color: #132020
    background-color: antiquewhite;
}
blockquote {
    margin-left: 0em;
    color: #200;
    background-color: antiquewhite;
    padding: 10px;
    border: #ccc 1px solid;
    border-radius: 4px;
    font-size: 1.0em !important;
    font-family: Quote, Main, serif;
}

@media(max-width:480px)
{
    article{clear:both;width:100%}
    nav{clear:both;width:100%}
    nav li{float:left;width:112px;text-align:center;padding:0}
    nav li a { padding: 0; text-alignment: center; }
    img { float: none; display: block; max-width: 95%; }
    nav ul li ul { display: none; }
}

figure {
    margin-left: 0;
}

figcaption {
    font-weight: bold;
}
