/* Styles for html and body */

html {
    overflow: -moz-scrollbars-vertical;
}

html, body {
    margin: 0px;
    padding: 0px;
}

body {
    font-family: Arial, sans-serif;
}

/* Styles for header */

#rss {
    float: right;
    margin: 5px;
}

#header {
    min-height: 85px;
    background-image: url('ledbg.jpg');
    background-repeat: repeat-x;
    background-color: #e5b87c;
    margin: 0px;
    border-bottom: 2px solid #aa7e3a;
}

#header h1 a {
    text-decoration: none;
    font: inherit;
    color: inherit;
}

#header h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    
    background-image: url('ledfg.jpg');
    background-repeat: no-repeat;
    padding-left: 300px;
    padding-top: 15px;
    
    margin-top: 0px;
    margin-bottom: 0px;
    min-height: 60px;
    font-family: Arial, sans-serif;
    font-weight: normal;
    font-size: 50px;
    color: #4e3613;
    text-shadow: 0px 1px #f2d09b;
}

#header .wrapfix {
    /* Move navbar downwards on narrow screens. */
    display: inline-block;
    width: 540px;
    height: 20px;
}

#navbar {
    text-align: right;
    margin-right: 20px;
    position: relative;
    top: -38px;
    margin-bottom: -38px;
}

#navbar a {
    display: inline-block;
    background-color: #c99a58;
    margin: 0px;
    margin-right: 2px;
    padding: 3px;
    padding-left: 9px;
    padding-right: 9px;
    border: 1px solid #a77426;
    border-bottom: none;
    
    -moz-border-radius-topleft: 5px;
    -webkit-border-top-left-radius: 5px;
    border-top-left-radius: 5px;
    -moz-border-radius-topright: 5px;
    -webkit-border-top-right-radius: 5px;
    border-top-right-radius: 5px;
    
    color: #4e3613;
    text-decoration: none;
    font-size: 18px;
    text-shadow: 0px 1px #e4bb7c;
}

#navbar a:hover {
    background-color: #dca961;
}

#navbar a.active {
    background-color: #aa7e3a;
    color: #251a09;
    text-shadow: 0px 1px #caa772;
    border: 1px solid #865c1c;
    border-bottom: none;
}

/* Link back to parent article */

#backtoparent {
    padding-top: 3px;
    padding-left: 10px;
    height: 17px;
    margin-bottom: -20px;
    max-width: 270px;
}

#backtoparent a {
    text-decoration: none;
    color: #4e3613;
}

#backtoparent a:hover {
    text-decoration: underline;
}


/* Rest of the page layout */

#main {
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
}

#content {
    margin-left: 280px;
    border-left: 1px solid #4e3613;
    padding-left: 20px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-right: 30px;
}

.fullwidth #content {
    margin-left: 1em;
    margin-top: 3em;
    border-left: none;
}

/* Comment styles */

.comment {
    margin-top: 10px;
    margin-bottom: 20px;
    overflow: auto;
    max-height: 600px;
}

.comment pre {
    margin-top: 5px;
    margin-bottom: 5px;
    border: none;
    white-space: pre-wrap;
    font: inherit;
}

.commentcount {
    margin-top: 30px;
    font-size: small;
}

.preview {
    border: 1px solid #4e3613;
}

.previewnote {
    font: inherit;
    color: #666;
    margin: 5px;
}

.error {
    color: red;
    font-size: 150%;
}

/* Image styles */

img {
    border: none;
    margin-bottom: 1em;
}

.centerimg {
    padding-left: 1em;
    font-style: italic;
    margin-bottom: 1em;
    max-width: 90%;
}

.centerimg img {
    display: block;
}

.marginimg img {
    margin: 0;
}

.marginimg {
    float: left;
    clear: left;
    margin: 5px;
    position: relative;
    left: -250px;
    top: -50px;
    margin-right: -250px;
    width: 200px;
    
    page-break-inside: avoid;
}

.marginimg img, img.marginimg {
    border: 1px solid #4e3613;
    max-width: 200px;
}

.marginimg p {
    margin-top: 3px;
    text-align: center;
    margin-bottom: 3px;
}

div.article .marginimg {
    /* Reduce space between articles on front page */
    margin-bottom: -20px;
}

/* Styles for tables */
table {
    min-width: 500px;
}

td, th {
    background-color: #EEE;
    padding: 5px;
}

th {
    background-color: #DDD;
    font-weight: bold;
    text-align: center;
}

td.num {
    text-align: right;
}

/* Styles for headings */

h1, h2, h3, h4, h5, h6 {
    font-family: Times New Roman, serif;
    font-weight: bold;
    margin-bottom: 10px;
    min-height: 40px;
}

h1, h2 {
    clear: left;
}

h1 a, h2 a, h3 a {
    text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover {
    text-decoration: underline;
}

a.anchor, a:visited.anchor, a:hover.anchor, a:visited:hover.anchor {
    color: inherit;
    text-decoration: none;
}

.notes h2 {
    font-size: 20px;
    margin-bottom: 0px;
    margin-top: 2em;
}

.notes p {
    margin-top: 0px;
}

/* Rest of the content styling */

hr {
    border: none;
    border-bottom: 1px dashed black;
}

.noskip {
    /* A heading that does not skip margin images. */
    clear: none;
}

p {
    margin-top: 10px;
    margin-left: 1px;
}

p.signature {
    font-style: italic;
}

pre {
    border: 1px solid #7c5d30;
    padding: 5px;
    width: 80%;
    max-height: 500px;
    overflow: auto;
}

.spamblock {
    display: none;
}
