
/**
 * thp.io "revisited" theme
 * Copyright (c) 2015 Thomas Perl
 * All right reserved.
 **/

@import url(/2015/archive/webfonts/SourceSansPro.css);




/* Common style */

body {
    margin: 0px;
    background-color: #E8EAE6;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 12pt;
    line-height: 140%;
}

h1, h2, h3 {
    margin: 0px;
    color: #3A2F11;
}

h1 {
    font-size: 16pt;
}
h2 {
    font-size: 15pt;
}
h3 {
    font-size: 14pt;
}

a {
    color: #658D34;
}

a:hover {
    color: #98C562;
    border-radius: 3px;
    padding: 3px;
    margin: -3px;
}

img {
    border-width: 0px;
}

code, pre {
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 5px;
    color: #222;
    font-size: 10pt;
}

code {
    margin: -2px;
}

pre {
    border: 1px solid #ddd;
    overflow: auto;
    max-height: 500px;
}

hr {
    border: 0px;
    border-top: 1px solid #ddd;
    height: 0px;
    margin-top: 6px;
    margin-bottom: 6px;
    clear: both;
}




/* Responsive layout */

div#root {
    background-color: white;
    max-width: 700px;
    box-shadow: 0px 0px 3px #bbb;
    margin-top: 0px;
}

@media all and (min-width: 901px) {
    div#root {
        margin-left: 100px;
    }
}

@media all and (min-width: 701px) {
    div#root {
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 3px;
    }

    p#breadcrumbs {
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
    }

    address {
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
    }
}

@media all and (min-width: 701px) and (max-width: 900px) {
    div#root {
        margin-left: auto;
        margin-right: auto;
    }
}

@media all and (max-width: 700px) {
    div#root {
        margin-top: 0px;
    }
}

p#breadcrumbs {
    margin: 0px;
    background-color: #292d20;
    padding: 10px;
    /* https://developer.mozilla.org/en/docs/CSS/text-overflow */
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

p#breadcrumbs, p#breadcrumbs a {
    color: #eee;
    text-decoration: none;
}

p#breadcrumbs a:hover {
    color: white;
    background-color: inherit;
    text-decoration: none;
}

p#breadcrumbs #here {
    color: white;
}

div#content {
    padding: 20px;
    margin: 0px;
}

address {
    text-align: right;
    background-color: #EEEDED;
    padding: 10px;
    font-style: normal;
}

address, address a:hover {
    color: #3A2F11;
}

address a {
    text-decoration: none;
    color: #3A2F11;
}

/* Custom building blocks / common styling */

div.image-gallery {
    text-align: center;
    padding: 10px;
}

div.image-gallery img {
    padding: 5px;
    max-width: 100%;
}

div.important {
    border: 1px #693 solid;
    background-color: #cfa;
    margin: 10px;
    padding: 10px;
}

div.important a {
    color: #494;
}

span.filename {
    white-space: nowrap;
}

/* Video scaling (http://alistapart.com/article/creating-intrinsic-ratios-for-video) */

div.video-container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
}

div.video-container-4to3 {
    position: relative;
    padding-bottom: 75%;
    height: 0;
}

div.video-container-16to10 {
    position: relative;
    padding-bottom: 62.5%;
    height: 0;
}

div.video-container-16to9 {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-4to3, .video-16to10, .video-16to9 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 5px;
}
