/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    font-family: "Lato", sans-serif;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Menu
 * --------------------------------------- */
#menu li {
    display: inline-block;
    margin-top: 6px;
}
#menu li a {
    text-decoration: none;
    color: #888;
}
#menu li a:hover {
    color: #000;
}
#menu li a,
#menu li.active a {
    padding: 9px 18px;
    display: block;
}
#menu li.active a {
    color: #000;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #fff;
    z-index: 70;
    border-bottom: 1px solid #ddd;
    display: none;
}

#menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    margin: 0;
    text-align: center;
}

#menu {
    display: inline-block;
    text-align: center;
}

.section {
    text-align: left;
    padding: 0 20px;
}

a {
    color: #155379;
}

h1 {
    font-size: 2.2em;
    font-weight: normal;
    text-align: center;
    margin: 0.3em 0;
}

h2 {
    font-size: 1.3em;
    font-weight: normal;
    color: #155379;
    margin: 0.1em 0;
}

p {
    margin: 0 0 0.8em 0;
}

#picture {
    width: 125px;
    height: 125px;
    border-radius: 100%;
    margin: 0 auto;
    background-image: url("../img/heike-holtsch-250.jpg");
    background-size: 100%;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 680px) {
    #header {
        display: block;
    }

    .section-content {
        margin: 0 auto;
        max-width: 730px;
    }

    #picture {
        float: left;
        width: 250px;
        height: 250px;
        margin: 40px 40px 40px 20px;
        background-image: url("../img/heike-holtsch-500.jpg");
    }

    h1 {
        font-size: 2.4em;
    }

    h2 {
        font-size: 1.4em;
    }

    h1 {
        text-align: left;
    }
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .section-content {
        margin: 0 auto;
        max-width: 800px;
    }

    #picture-text {
        width: 490px;
        float: right;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}
