/* Text */

body {
    font-family: "Lato", "Avenir Next", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;

    font-weight: 300;
    text-align: center;

    font-size: 2em;
    color: #101057;
}

h1, h2, h3 {

    font-weight: 300;
}

h1 {
    font-size: 3rem;
}

h2, h3 {
    font-size: 2.5rem;
}

@media only screen and (min-width: 750px) and (min-device-width: 750px) {
    body {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

p {
    margin: 1rem auto;
    text-align: left;
    padding: 0 1em;
}

cite {
    white-space: nowrap;
}

a:link, a:visited, a:active, a:hover {
    color: #0000EE;
    text-decoration: none;
}

#sidebar a, #sidebar a:visited, #sidebar a:active, #sidebar a:hover {
    color: white;
}

/* Layout */

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* old style layout has container class*/

.container{
    display: block;
}

.container p{
    text-align: center;
}

section {
    margin: 2rem auto;
}

#sidebar {
    background-color: #788087;
    color: white;
}

#sidebar p {
    text-align: center;
}

@media only screen and (min-width: 750px) and (min-device-width: 750px) {
    body {
        flex-direction: row;
    }

    #sidebar {
        order: 1;

        margin: 0;
        width: 300px;
    }

    #content {
        order: 2;
        width: calc(100% - 300px);
    }
}

#content_holder {
    display: none;
}

p, .tags {
    max-width: 45em;
}

/* Maps */

.map_container {
    display: none;
}

@media screen and (min-width: 750px) and (min-device-width: 750px) {

    .map_container, .map {
        display: inline-block;
        clear: both;
        max-height: calc((100vh - 10em - 3em) / 2);
        max-width: 256px;
        width: auto;
        height: auto;
    }

    .map_container {
        position: relative;
        margin: 1em auto;
    }

    .map_container:after {
        content: "\a";
        white-space: pre;
    }

    .map_container span {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: auto;
        background: slategray;
        opacity: 0.75;
        padding: 0.5ex 0;
        color: white;
    }

}

/* Tags */

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    margin: auto;
}

.tags li {
    margin: 0.5ex 0.5em;
    border: 2px solid;
    border-radius: 0.5em;
    padding: 0.5ex 0.5em;

    list-style: none;
}

/* Nice underlines

Copyright (c) 2016 by Gary Hepting (http://codepen.io/ghepting/pen/tLnHK)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

*/

#sidebar a {
    text-decoration: none;
    position: relative;
    text-shadow: -1px -1px 0 #788087, 1px -1px 0 #788087, -1px 1px 0 #788087, 1px 1px 0 #788087;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 2px, #fff 2px, #fff 3px, rgba(0, 0, 0, 0) 3px);
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
    a {
        background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 2px, #fff 2px, #fff 2.5px, rgba(0, 0, 0, 0) 2.5px);
    }
}

#sidebar a:hover, #sidebar a:focus {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 2px, #fff 2px, #fff 3px, rgba(0, 0, 0, 0) 3px);
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
    a.custom:hover, a.custom:focus {
        background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 2px, #fff 2px, #fff 2.5px, rgba(0, 0, 0, 0) 2.5px);
    }
}