@font-face {
  font-family: 'Signika';
  src: url(Signika.woff) format('woff');
}

body {
    color: #333;
    background-color: #ecffdc;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Signika', sans-serif;
}

body a {
    color: Blue;
}

header {
    background: url(/img/logo.jpg) no-repeat;
    width: 860px;
    height: 100px;
    padding: 40px 40px 0 0;
    margin: 10px 0 10px 0;
    border-radius: 15px;
    box-shadow: 0 0 3px 3px Silver;
}

header h1 {
    text-align: right;
    font-size: 42px;
    text-shadow: 0px 8px 10px #042;
    font-family: "Courier New", Courier, monospace;
}

header a {
    color: #082050;
    text-decoration: none;
}

.print-only {
    display: none;
}

/* Sidebar */

#sidebar {
    position: absolute;
    top: 160px;
}

#sidebar div {
    margin: 1em 0px;
}

aside {
    background-color: WhiteSmoke;
    padding: 3px 20px 3px 20px;
    margin-bottom: 10px;
    width: 160px;
    font-size: 12px;
    border-radius: 15px;
    box-shadow: 0 0 3px 3px Silver;
    text-align: justify;
}

aside h2 {
    font-size: 16px;
}

address {
    text-align: center;
    font-style: normal;
}

img.portrait {
    border-radius: 15px;
    border: 2px solid Silver;
    margin-bottom: -1em;
    width: 140px;
    height: 140px;
}

.buttons {
    text-align: center;
}

aside li {
    text-indent: 0em;
    margin-left: -2.5em;
    padding-left: 0;
    list-style: none;
}

/* Articles */

article, footer {
    background-color: #eee;
    margin: 0 0 10px 210px;
    padding: 20px 40px 20px 40px;
    text-align: justify;
    border-radius: 15px;
    box-shadow: 0 0 3px 3px Silver;
}

article p, article ul {
    font-size: 20px;
    margin: 0 0 20px 0;
    line-height: 140%;
}

article pre {
    margin: 0 0 20px 0;
}

img {
    border: 0px;
}

h2 {
    font-weight: normal;
    text-indent: 0;
    border-radius: 15px;
    background-color: Silver;
    text-align: center;
    padding: 5px 3px 3px 3px;
}

article h2 {
    font-size: 28px;
    margin-top: 0.5em;
}

h2 a {
    text-decoration: none;
    color: #333;
}

article h3, article h4, article h5, article h6 {
    font-size: 22px;
    margin: 20px 0 10px 0;
}

code {
    font-size: 15px;
    border: 1px solid Silver;
    background-color: #ecffdc;
}

pre {
    border: 1px solid Silver;
    background-color: #ecffdc;
    padding: 3px;
    margin-left: 1em;
}

pre code {
    font-size: 12px;
    line-height: 12px;
    border: none;
    background-color: #ecffdc;
}

blockquote {
    border: 1px dashed Silver;
    background-color: WhiteSmoke;
    padding: 0 0.5em 0 0.5em;
}

.date {
    font-size: 16px;
    color: SlateGray;
    text-align: center;
    margin: -1em 0 1em 0;
}

.url {
    font-size: 16px;
    color: SlateGray;
    text-align: center;
    margin: 0 0 1em 0;
}

.abstract {
    font-style: italic;
    border: 1px solid #eee;
    padding: 15px;
    margin: 15px;
    background: WhiteSmoke;
    indent: 1em;
}

img.center {
    text-align: center;
    border: 0px;
}

img.right {
    float: right;
    padding: 10px;
}

img.left {
    float: left;
    padding: 10px;
}

article img, article video {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

p.center {
    text-align: center;
}

.permalink, .tags, .commentlink {
    font-size: 18px;
    text-align: right;
}

.tag-feed {
    float: right;
    width: 32px;
    height: 32px;
}

.feed-icon, .feed-icon img {
    display: inline-block;
    width: 16px;
    height: 16px;
    text-decoration: none;
}

.tag-entry {
    margin-left: 10px;
    text-decoration: none;
}

.commentlink {
    text-align: right;
}

/* Footer */

footer {
    font-size: 12px;
}

nav {
    text-align: center;
}

.nav-prev {
    float: left;
}

.nav-next {
    float: right;
}

/* Folding */

.fold-button {
    float: right;
    position: relative;
    right: 5px;
}

/* Archive CSS */

.archive li {
    font-size: 17px;
    margin: 0;
}

.archive li:nth-child(odd) {
    background-color: WhiteSmoke;
}

/* Mobile version (this must go last) */

@media only screen and (max-width: 900px) {
    #sidebar {
        display: none;
    }

    header {
        width: 80%;
        max-width: 860px;
        margin-left: auto;
        margin-right: auto;
    }

    body {
        max-width: 100%;
    }

    article, footer {
        margin: 10px 10px;
    }
}

/* Print version, PDF-oriented */

@media print {
    @page {
        margin: 1in 1.5in 1in 1.5in;
    }

    header, footer, .permalink, .tags, .commentlink, #sidebar, #disqus_thread {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    .no-print {
        display: none;
    }

    .print-only {
        display: inherit;
    }

    article {
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        page-break-after: always;
    }

    article p, article ul {
        font-size: 12pt;
    }

    .date, .url {
        font-size: 10pt;
        color: gray;
    }

    .date {
        margin: -1em 0 0 0;
    }

    h2 {
        font-weight: bold;
        font-size: 18pt;
        page-break-after: avoid;
    }

    h3 {
        font-weight: bold;
        font-size: 16pt;
        page-break-after: avoid;
    }

    h4 {
        font-weight: bold;
        font-size: 14pt;
        page-break-after: avoid;
    }

    h5 {
        font-weight: bold;
        font-size: 13pt;
        page-break-after: avoid;
    }

    h6 {
        font-weight: bold;
        font-size: 12pt;
        page-break-after: avoid;
    }

    img {
        width: 75%;
        header: 75%;
        page-break-inside: avoid;
    }

    .highlight {
        page-break-inside: avoid;
    }

    p a, li a {
        color: navy;
        text-decoration: none;
    }

    article p {
        line-height: 135%;
    }

    article pre {
        margin-left: 0.15in;
    }

    article li p {
        text-indent: 0;
    }

    code, pre {
        border: 0;
        background-color: white;
    }
}

