/*! 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.5;
}

/*
 * 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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

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

* {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box; 
}

body {
    background: #ffffff;
    color: #ffffff;
    font-family: 'HermesBold';
    letter-spacing: -1px;
    padding-bottom: 100px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #ffffff;
    text-decoration: none;
}

img {
	height: auto;
	max-width: 100%;
	width: 100%;
}

header {
    font-size: 0.813em;
    height: 120px;
    padding: 10px 0 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

header nav {
    font-family: 'HermesLight';
    letter-spacing: 0;
    padding-left: 165px;
    padding-top: 35px;
    position: relative;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    float: left;
    margin-right: 60px;
}

header nav ul li a {
    color: #000000;
    text-decoration: none;
}

header nav ul li a.profile:hover, header nav ul li a.contact:hover, header nav.white-nav ul li.current a:hover {
    border-bottom: 1px solid #fa0eff;
    color: #fa0eff;
}

header nav ul li.current a {
    border-bottom: 1px solid #000000;
}

header nav.white-nav ul li a {
    color: #ffffff;
}

header nav.white-nav ul li.current a {
    border-bottom: 1px solid #ffffff;
}

header .home {
    background: url('../img/pethick-sprite.png') no-repeat 0 0;
    display: block;
    height: 179px;
    left: -30px;
    position: absolute;
    text-indent: -9999px;
    top: -42px;
    width: 149px;
}

.container {
    margin: 0 auto;
    max-width: 700px;
    width: 700px;
}

section .container {
    padding: 150px 0 130px;
}

section.turquoise .container {
    padding-bottom: 85px;
}

.white {
    background-color: #ffffff;
    color: #000000;
    font-size: 1.625em;
}

.white a {
    border-bottom: 2px solid #fa0eff;
    color: #000000;
}

.white a:hover {
    color: #fa0eff;
}

h1, h2, h3 {
    font-size: 1em;
    font-family: 'HermesBold';
    font-weight: normal;
    margin: 0 0 2em;
}

section p {
    margin: 0 0 2em;
}

article p:last-child {
    margin-bottom: 0;
}

#home article p {
    padding-right: 10%;
}

.cycle-slideshow {
    display: none;
    margin-bottom: 2em;
}

.cycle-slideshow img {
    max-width: 100%;
    width: 100%;
}

.turquoise {
    background-color: #c9ffff;
    color: #000000;
}

.turquoise h2 {
    font-size: 1.625em;
    margin-bottom: 1em;
}

.turquoise p {
    font-family: 'HermesLight';
    font-size: 0.813em;
    letter-spacing: 0;
    line-height: 1.692em;
    margin-bottom: 2em !important;
}

.biography {
    width: 320px;
}

aside {
    width: 340px;
}

#logos {
    width: 340px;
}

#contact {
    background-color: #44332c;
    font-size: 1.625em;
}

#contact p a {
    border-bottom: 2px solid #fa0eff;
}

#contact p a:hover {
    color: #fa0eff;
}

h3 {
    margin-bottom: 1em;
}

footer {
    color: #fa0eff;
    font-family: 'HermesLight';
    font-size: 0.813em;
    letter-spacing: 0;
    line-height: 1.692em;
}

footer a {
    color: #fa0eff;
    border-bottom: 1px solid #fa0eff;
}

footer a:hover {
    color: #000000;
    border-bottom: 1px solid #000000;
}

footer p span {
    display: inline-block;
    margin-left: 2em;
}

#grandma {
    height: 114px;
    width: 118px;
}

.videocontent {
    margin-bottom: 2em;
    max-width: 700px;
    width: 100%;
}

.embed-container { margin-bottom: 2em; position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; }

.embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ==========================================================================
   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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

    header .home {
        background-image: url('../img/pethick-sprite_x2.png');
        background-size: 149px 6086px;
    }

}

@media only screen and (max-width : 740px) {

    .container {
        margin: 0 10%;
        max-width: 80%;
        width: 80%;
    }

    header nav {
        padding-left: 120px;
    }

    header nav ul li {
        margin-right: 20px;
    }

    header nav ul li:last-child {
        margin-right: 0;
    }

    .white, .turquoise h2, #contact {
        font-size: 1em;
    }

    .biography, aside {
        width: 100%;
    }

    #logos {
        max-width: 100%;
        width: auto;
    }

    #home article p {
        padding-right: 0;
    }

    footer p span {
        display: block;
        margin-left: 0;
    }

    header nav ul li a.profile:hover, header nav ul li a.contact:hover {
        border-bottom: none;
        color: #000000;
    }

    header nav ul li.current:hover {
        border-bottom: 1px solid #000000;
        color: #000000;
    }

    header nav.white-nav ul li.current a:hover {
        border-bottom: 1px solid #ffffff;
        color: #ffffff;
    }

    header nav.white-nav ul li a:hover {
        border-bottom: none;
        color: #ffffff;
    }

}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
