/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
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
   ========================================================================== */
/*
 * Design: Martin Hauser
 * Developed by: Martin Hauser
 *
 * Font:
 * "Helvetica Neue"
 *
 * Colors:
 * white: #f9f9f9;
 * grey: #ebebeb;
 * grey dark: #e5e5e5;
 * orange: #ff6600;
 * red: #e23900;
 * cyan: #009dcd;
 * dark blue: #003b65;
 * green: #5f9106;
 *
 * new:::;
 * black: #1e1e1e;
 * cyan light: #08c5ff;
 * grey light: #f0f0f0;
 * grey dark: #959595;
 */

/*
 * Fonts: OpenSans
 */

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.eot');
    src: url('../fonts/OpenSans-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/OpenSans-Regular.woff') format('woff'),
         url('../fonts/OpenSans-Regular.ttf') format('truetype'),
         url('../fonts/OpenSans-Regular.svg#open_sansregular') format('svg');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Semibold.eot');
    src: url('../fonts/OpenSans-Semibold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/OpenSans-Semibold.woff') format('woff'),
         url('../fonts/OpenSans-Semibold.ttf') format('truetype'),
         url('../fonts/OpenSans-Semibold.svg#open_sanssemibold') format('svg');
    font-weight: 600;
    font-style: normal;
}

/*
 * Base
 */

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Verdana", sans-serif;
    font-size: 1.15em;
    font-weight: 400;
}

a {
    color: #009dcd; /* cyan */
    text-decoration: none;
    -webkit-transition: color 0.2s ease-in-out;
    transition: color 0.2s ease-in-out;
}
a:hover {
    color: #08c5ff; /* cyan light */
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin: 60px 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}
h2, h3, h4, h5, h6 {
    color: #009dcd; /* cyan */
}
h1, h2 {
    margin-left: 0;
}
h1 {
    font-size: 2.5em;
    line-height: 1.2em;
}
h2 {
    padding-bottom: 3px;
    font-size: 1.5em;
    line-height: 0.9em;
    border-bottom: 1px solid #f0f0f0; /* gray light */
}

hr {
    border: 0;
    border-bottom: 1px solid #f0f0f0; /* gray light */
    margin: 1em 0;
}

p, pre {
    margin: 1em 20px;
}

/*
 * Container / Site Alignment
 */
.container, nav {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1440px;
}
.container {
    padding-top: 30px;
}

/*
 * Navigation bar
 */
.header {
    position: fixed;
    top: 0;
    padding-top: 5px;
    z-index: 1;
    width: 100%;
    line-height: 1.8em;
    background-color: rgba(255,255,255,0.9);
    border-bottom: 1px solid #f0f0f0; /* gray light */
}
.subheader {
    margin-top: 60px;
}

.logo {
    display: inline-block;
    font-size: 1.5em;
    font-weight: 400;
    color: #1e1e1e; /* black */
    letter-spacing: 1px;
    text-transform: uppercase;
}
.logo > span {
    margin-left: 10px;
    color: #08c5ff; /* cyan light */
}
.logo:hover {
    text-decoration: none;
}

.nav, .nav > li {
    display: inline-block;
    margin: 0;
    padding: 0 15px;
}
.nav-text-main, .nav-text-sub {
    padding-bottom: 3px;
    color: #1e1e1e; /* black */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.nav-text-main:hover, .nav-text-sub:hover {
    text-decoration: none;
}
.nav-text-main {
    font-size: 1.1em;
    font-weight: 600;
}
.nav-text-sub {
    font-size: 1em;
}
.nav-text-active {
    border-bottom: 2px solid #08c5ff; /* cyan light */
}

.search {
    display: inline-block;
}
.searchbox {
    padding-bottom: 1px;
    width: 4.3em;
    font-weight: 400;
    border: 0 solid;
    border-bottom: 1px solid #f0f0f0; /* gray light */
    -webkit-transition: border-color 0.2s ease-in-out, width 0.2s ease-in-out;
    transition: border-color 0.2s ease-in-out, width 0.2s ease-in-out;
}
.searchbox:focus {
    width: 10em;
    border-bottom: 2px solid #08c5ff; /* cyan light */
    outline: none;
}
.searchbutton {
    height: 50px;
    width: 50px;
    color: transparent;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUg\
                        AAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZ\
                        G9iZSBJbWFnZVJlYWR5ccllPAAAAVxJREFUeNrslsGNgzAQ\
                        RU0qSAlJB3vkCB1sKgBKSEVABUkHyZGjO9iUkBJ2LE0ky4p\
                        3jTFjVvufNEJgY82HP2MrBQAAAADwfymWLjBN054uLUVD8e\
                        EMa4qRYijL8rk5AZT8J116iv0vU03yHYm4bkYAJd9y8nMwI\
                        obsAvjLX5zHd7bLg+8PbKvKmXdK+SeKSM9/Obbxftk3f8rY\
                        6ZiqJnYR77ShyRt4rLMevYpe5RLQ2LYJ8TTPuXvWEBdgt8p\
                        xxnujZw1xATaPleaKCVhlc5IUMMcKh60I0JHF2HjWEBdgF2\
                        PFfT5k164iiz+5gMHxfv+TCM9Gluw4keMoYexTp9qJpQ9zy\
                        UVEdyHeXU+BrfTpFK7pXjc+V+Vro3yqPFKcPZ1F85iZU68h\
                        olCCcLI3Z/9YZCdRAWuIEBeQWsQuhwBO8m1NSJ+FUovQf8J\
                        CHjtpEtUpAAAAAAAQzLcAAwBTW4NbsRwLiQAAAABJRU5Erk\
                        Jggg==') no-repeat;
    background-color: transparent;
    border: 0 solid;
}


/*
 * Main
 */

main:after, article:after {
    content:"";
    clear:both;
    display:block;
}

main pre {
    padding: 1em;
    background: #f0f0f0; /* gray light */
}


/*
 * Main: Images
 */

.image {
    position: relative;
    margin: 0 40px 20px 20px;
    max-width: 33%;
    float: right;
}
.image > div {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 10px;
    line-height: 1.6em;
    background-color: rgba(255,255,255,0.9);
}
.image > img {
    max-width: 100%;
}


/*
 * Main: Start page
 */

.spots {
    display: inline-block;
    margin: 40px 0;
    width: 32%;
    vertical-align: top;
    text-align: center;
}
.spots > h3 {
    margin: 0;
}
.spots-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/*
 * Main: Article Overview
 */

.article-overview {
    margin: 40px 0;
}
.article-overview > p {
    margin-left: 80px;
}
.article-heading {
    margin-bottom: 20px;
}
.article-heading > a {
    color: #009dcd; /* cyan */
}
h1.article-heading {
    padding-bottom: 3px;
    font-size: 1.7em;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.9em;
    border-bottom: 1px solid #f0f0f0; /* gray light */
}
.article-info-box {
    padding-right: 5px;
    width: 3.2em;
    height: 9em;
    color: #959595; /* gray dark */
    border-right: 1px solid #f0f0f0; /* gray light */
    float: left;
    text-align: center;
}
.article-info-box > div {
    margin: 1em 0;
}
.article-info-box span {
    font-size: 1.6em;
    line-height: 0.8em;
}

.article-info {
    margin: 40px 0;
    color: #959595; /* gray dark */
    text-align: right;
}

.article-archive {
    margin: 15px 0 15px 20px;
}
.article-archive h4, .article-archive-list {
    display: inline-block;
    padding: 0;
    margin: 0;
}
.article-archive-list {
    list-style: none;
}
.article-archive-list > li {
    display: inline-block;
    margin: 0 5px;
}
.article-archive h4 {
    color: #1e1e1e; /* black */
    padding: 0 5px 0 0;
}
.article-archive a {
    text-transform: lowercase;
}


/*
 * Main: Photography page
 */

.igrid {
    margin: 0 20px;
    padding: 0;
    list-style: none outside none;
}
.igrid > li {
    float: left;
}
.igrid a {
    color: #1e1e1e; /* black */
}
.igrid a:hover {
    color: #08c5ff; /* cyan light */
}
.igrid_image {
    margin: 0 20px 20px 0;
    max-width: 100%;
    float: none;
}


/*
 * Footer
 */

.footer {
    margin: 120px 0 30px;
}
.footer:before {
    display: block;
    content: " ";
    clear: both;
}

.footer h5, .contact-list {
    display: inline-block;
    padding: 0;
    margin: 0;
}

.contact, .aboutme {
    display: inline-block;
    vertical-align: top;
    line-height: 1;
}
.contact {
    width: 40%;
}
.contact > h5 {
    color: #222;
}
.aboutme {
    width: 59%;
}

.contact-list {
    list-style: none;
}
.contact-list > li {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.85em;
}

.aboutme > p {
    display: inline;
    font-size: 0.85em;
    margin-left: 0;
}



/*
 * Slideshow
 */
.slideshow {
    margin: 20px 0;
}
.slideWrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.slideImages {
    /* This is the bit that moves. It has 4 images, so 4 * 450 = 1800. You could use javascript
    to work this out instead by counting images. */
    width: 10000px;
    -webkit-backface-visibility: hidden;    /* webkit flickering hack */
    -webkit-transition: all 1s ease-in-out;
    transition: transform 1s ease-in-out;
}
.slideImages img {
    float: left;
}

.slideHotSpotLeft, .slideHotSpotRight {
    display: inline-block;
    cursor: pointer;
    height: 50px;
    width: 49%;
}
.slideHotSpotLeft svg {
    -webkit-transform: rotate(-180deg);
    transform: rotate(-180deg);
}
.slideHotSpotRight svg {
    margin-top: 10px;
    float: right;
}


/*
 * MediaQueries
 */


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

    .igrid > li {
        max-width: 30%;
    }
}

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

    .contact, .aboutme {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}

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

    .subheader {
        margin-top: 90px;
    }
}

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

    h1 {
        font-size: 2.5em;
    }

    .slideWrapper {
        height: 220px;
    }
    .slideImages img {
        height: 220px;
    }
}

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

    h1, h2 {
        padding-left: 20px;
    }

    .header {
        position: static;
        background-color: #fff;
    }
    .subheader {
        margin-top: 10px;
    }

    .container {
        padding: 0;
    }

    .article-overview > p {
        margin-left: 20px;
    }
    .article-info-box {
        margin: -10px auto 10px;
        padding: 5px 20px;
        width: auto;
        height: auto;
        border-bottom: 1px solid #f0f0f0; /* gray light */
        float: none;
        text-align: left;
    }
    .article-info-box > div {
        margin: 0;
    }
    .article-archive h4, .article-archive-list {
        display: block;
    }

    .image {
        float: none;
    }
    .igrid > li {
        max-width: 50%;
    }
    .igrid_image {
        max-width: 90%;
    }

    .spots {
        display: block;
        margin: 20px auto;
        width: 100%;
    }

    .footer {
        margin-left: 20px;
    }

}

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

    h1 {
        font-size: 2em;
    }

    .nav > li, .search {
        display: block;
    }

}


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

/*
 * Hide visually and from screen readers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screen readers: h5bp.com/v
 */

.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: h5bp.com/p
 */

.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 only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

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

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

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