/*! 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,
button,
input,
select,
textarea {
    color: #222;
}

html {
    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,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

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

*, *:before, *:after {
  -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
 }

body{
    background-color: #040404;
    color:#959595;
    font-size: 16px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.8em;
}

i, em {
    color: #eee;
    font-style: normal;
}
a {
    color: #f9b200;
    text-decoration: none;
   /* border-bottom: 1px solid #f9b200;*/
    transition:0.2s;
}
img{
    max-width: 100%;
}
iframe{
    width: 100%;
    max-width: 100%;
}
hr{
    border:0;
    width: 100%;
    height: 55px;
    background:url('../img/seperator.png') center top no-repeat;
    margin-bottom: 100px;
}
section h2{
    font-weight: 100;
    font-size: 2.4em;
    line-height: 1em;
    color: #f9b200;
    letter-spacing: 1px;
    margin:.3em 0;
    transition:color 0.5s;
}
 section a h2:hover{
        color: #fff;
    }
section p{
    line-height: 1.8em;
}

section.container, header,footer{
    width: 100%;
    max-width: 1100px;
    margin:0 auto;
    padding:0 20px;
}
section.container{
    padding:0 40px;
}
.backgroundContainer{
    background-repeat: no-repeat;
    max-width: 1200px;
    padding:0 90px;
}

span.logo{
    z-index: 999;
    display: block;
    width: 160px; height: 51px;
    background-image: url('../img/heteivanubachs-logo.png');
    background-position: top left;
    background-size: contain;
    background-repeat: no-repeat;
}

.egg{
    position: relative;
    border-bottom-left-radius: 50% 40%;
    border-bottom-right-radius: 50% 40%;
    border-top-left-radius: 50% 60%;
    border-top-right-radius: 50% 60%;
    transition:0.2s;
}
    header > nav > ul > li.egg > a > span{
        position: absolute;
        top: 17px; left: 8px;
    }
        header > nav > ul > li.egg > a > span > hr{
            display: block; 
            margin:0; padding:0;
            height: 2px; width: 14px;
            margin-bottom: 2px;
            background:#F9B200;
        }

/* HEADER */

header{
    z-index: 999;
    position: fixed;
    margin: 0 auto;
    left: 50%;
    margin-left: -550px;
    top: 0;

    background:url('../img/menuShade.png');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: contain;
    transition:0.5s;
}
    header:hover{
        min-height: 200px;
    }

header > div.headerLogo{
    z-index: 999;
    float: left;
    width: 15%;
    padding: 50px 0 30px;
}

/* NAVIGATION */
    
    header > nav{
        float: right;
        width: 85%;
    }
    header > nav > ul{
        list-style-type: none;
        text-align: right;
        margin: 0; padding: 60px 0px 40px;
    } 
    header > nav > ul > li{
        display: inline-block;
        margin-right: 30px;
        opacity: 0;
        transition:0.5s 1s;
    }
    header:hover > nav > ul > li,
    header > nav > ul.active > li{
        margin-right: 25px;
        opacity: 1;
        transition:0.2s 0.5s;
    }
    header > nav > ul > li > a{
        color: #959595;
        border:0;
        padding: 3px 5px;
    }
    header > nav > ul > li.egg > a{
        display: block;
        height: 40px;
        background:none;
    }
    header > nav > ul > li:hover > a{
        color: #eee;
    }
    header > nav > ul > li.active > a{
        color: #f9b200;
    }

    header > nav > ul > li.egg{
        z-index: 999;
        cursor:pointer;
        width: 30px; height: 40px;
        margin-bottom: -15px;
        margin-right: 0;
        box-shadow: 0 0 30px 5px rgba(150,150,150,0.5), 0 0 0 1px rgba(150,150,150,0.3);
        opacity: 1;
        transition:0.5s 0.5s;

    }
        header:hover > nav > ul > li.egg,
        header > nav > ul.active > li.egg{
            /*transition:0.2s 0.2s;
            transform:rotate(-90deg);
            -ms-transform:rotate(-90deg);
            -webkit-transform:rotate(-90deg);*/
            box-shadow: 0 0 30px 5px rgba(249,178,0,1), 0 0 0 1px rgba(249,178,0,0.3);
        }
        
         header > nav > ul.active > li.egg{
            box-shadow: 0 0 30px 5px rgba(255,255,255,0.3), 0 0 0 1px rgba(255,255,255,0.1);
         }
    header > nav > ul > li.egg > a > span > hr{transition:0.2s 0.3s;}
         header:hover > nav > ul > li.egg > a > span > hr{
            background: #333;
         }


/* CONTENT */


section.intro{
    margin-top:170px;
    margin-bottom: 50px;
}

    section.intro .introBlock h1{
        font-weight: 100;
        font-size:2.4em;
        display: block;
        width: 100%;
        float: left;
        color: #f9b200;
        margin-top: 20px;
    }
    section.intro .introBlock p{
        display: block;
        width: 80%;
        float:left;
    }

    section.home.intro{
        padding-top:70px;
        margin: 50px auto 0;
        min-height: 600px;
        background-position: top right;
        padding:0;
        position: relative;
    }   
    .home.intro .textBlock{
        width: 50%;
        padding-right: 50px;
        padding-top:0px;
        padding-bottom: 50px;
        padding-left:40px;
        position: absolute;
        top:130px;
    }

    section.intro .mobileIntro{
        display: block;
        float: right;
    }

/* ARTICLES */

.textBlock{
    padding-top:0px;
    width: 50%;
}
.imageBlock{
    width: 50%;
}
.items article .imageBlock{
    max-height: 350px;
    overflow: hidden;
}
/*.imageContainer div:first-child{
    display: none;
}*/

article{
    margin-bottom: 80px;
    transition: color 1s ;
}
article:hover{ color: #ccc; }
article p{      padding-right: 20px; }
article a.more{ display: block; transition:color 0.5s;}
article a.more:hover{color: #fff;}
article span.date{  display: block; font-size: 0.7em; line-height: 0.5em; height: 0px; color: #5a5a5a;}

article.left .imageBlock,article.left .textBlock{ float: left; }
article.left .imageBlock{   padding-right: 0px; }
article.left .textBlock{    padding-left:30px; }

article.right .imageBlock,article.right .textBlock{ float: right; }
article.right .imageBlock{  padding-left: 30px; }
article.right .textBlock{   padding-right: 30px; }


article .imageBlock img{
    background:#F9B200;
    min-width: 100%;
}
article .imageBlock span.img{
    background-size: contain;
    min-width: 100%;
    min-height: 350px;
    background-repeat: no-repeat;
    background-position: center top;
    display: block;
}

a.showMore{
    display: block;
    text-align: center;
    padding:10px 10px;
    margin-bottom: 20px;
    display:none;
}
/* DETAIL VIEW */

section.detail{
    margin-top:150px;
}
section.detail .imageBlock, section.detail .textBlock, section.detail .videoBlock{
    margin:0 auto;
    width: 100%;
    max-width: 700px;
}
section.detail .imageBlock, section.detail .videoBlock{
    max-width: 720px;
    margin-bottom: 20px;
}
section.detail .imageBlock img{
    width: 100%;
}
section.detail span.date{
    font-size: 1.2em;
    height: 10px;
}
section.detail .videoBlock > iframe{
    width: 100%;
    min-height: 415px;
    border:0;
}
section.detail .tekstBlock iframe{
    width: 100%;
    min-height: 415px;
    border:0;
}

    .share{
        width: 300px;
        margin:0 auto;
        text-align: center;
    }
        .share > a{
            display: inline-block;
            width: 30px;
            height: 30px;
            overflow: hidden;
            background:#F9B200;
            margin:0 5px;
        }

section.detail h2{
    font-size:3em;
    margin-bottom: 30px;
}

/* CONTACT */
section.intro.contact .introBlock{
    margin-left: 20%;
}
section.intro.contact .introBlock h1{
    width: 100%;
    font-size:44px;
}
form.contact label, form.contact input, form.contact textarea{
    float: left;
    height: 50px;
    margin-bottom: 20px;
    font-size: 1.2em;
    padding: 10px;
    outline: none;
}
form.contact{
    margin-bottom: 30px;
}
form.contact label{
    display: block;
    width: 20%;
    text-align: right;
    padding-right: 20px;
}
form.contact input, form.contact textarea{
    width: 60%;
    margin-right: 20%;
    background:#191919;
    color: #fff;
    font-size:1.2em;
    border:1px solid #333;
    line-height: 1.6em;
    transition: background 0.5s, border 0.5s, color 0.5s;
}
    form.contact input:focus, form.contact textarea:focus{
        border-color: #F9B200;
        color: #fff;
        background:#000;
    }
form.contact textarea{
    min-height: 150px;
}
form.contact button[type="submit"], .outlineButton{
    outline: none;
    width: 60%;
    font-size: 1.2em;
    text-transform: none;
    padding: 15px;
    color: #F9B200;
    border:1px solid #F9B200;
    background:#111;
    margin-left: 20%;
    transition:0.2s;
}
    form.contact button[type="submit"]:hover,
    .outlineButton:hover,
    form.contact button[type="submit"]:focus,
    .outlineButton:focus{
        border-color:#000;
        background:#fff;
        color: #000;
    }
/* FOOTER */

footer{
    min-height: 500px;
    line-height: 2em;
    background-position: 150px bottom; 
}
    footer .textBlock{          padding:50px 0 0 30px; float: right;}
    footer .textBlock img{      margin-bottom: 20px; }
    footer .textBlock span{     display:block; width: 100%;}
    footer .textBlock span i{   display:inline-block; width: 60px; color: #959595 }

.copyrights{
    display: block;
    text-align: center;
    width: 100%;
    font-size: 0.8em;
    color:#444;
    padding: 20px 0;
    margin:10px 0;
}
.copyrights a{
    color: #666;
}
.copyrights p{
    margin: 0;
}



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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screenreaders: 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 screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

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

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

    header{
        left: auto;
        margin-left: auto;
    }
      footer {
        background-position: 50px bottom;
    }

     header > nav {
        width: 100%;
    }
    header > nav > ul{
        margin-top:-200%;
        transition:0.5s;
        padding-top:0;
    }
    header:hover > nav{
        box-shadow:inset 0 -15px 50px #000;
    }
    header:hover > nav > ul{
        margin-top:0;
        padding-bottom: 0;
    }
    header > nav > ul > li{
        width: 100%;
        text-align: center;
        opacity: 0;
    }
    header > nav > ul > li > a{
        display: block;
        padding: 10px 0;
        background:rgba(10,10,10,0.6);
    }
    header > nav > ul > li > a:hover{
        background:#F9B200;
        color: #000;
    }
    header:hover > nav > ul > li, header > nav > ul.active > li{
        opacity: 1;
    }
    header > nav > ul > li.egg{
        display: inline-block;
        position: absolute;
        right: 30px; top:30px;
    }
        header:hover > nav > ul > li.egg{
            pointer-events:none;
        }

        header > nav > ul.active > li.egg{
            box-shadow: 0 0 30px 5px rgba(249,178,0,1), 0 0 0 1px rgba(249,178,0,0.3);
         }
         header:hover > nav > ul > li.egg{
            transition:0.2s 0.2s;
            transform:rotate(-90deg);
            -ms-transform:rotate(-90deg);
            -webkit-transform:rotate(-90deg);
        }

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

    /* HEADER NAV */
    header > nav {
        width: 100%;
    }
    header > nav > ul{
        margin-top:-200%;
        transition:0.5s;
        padding-top:0;
    }
    header:hover > nav{
        box-shadow:inset 0 -15px 50px #000;
    }
    header:hover > nav > ul{
        margin-top:0;
        padding-bottom: 0;
    }
    header > nav > ul > li{
        width: 100%;
        text-align: center;
        opacity: 0;
    }
    header > nav > ul > li > a{
        display: block;
        padding: 10px 0;
        background:rgba(10,10,10,0.6);
    }
    header > nav > ul > li > a:hover{
        background:#F9B200;
        color: #000;
    }
    header:hover > nav > ul > li, header > nav > ul.active > li{
        opacity: 1;
    }
    header > nav > ul > li.egg{
        display: inline-block;
        position: absolute;
        right: 30px; top:30px;
    }
        header:hover > nav > ul > li.egg{
            pointer-events:none;
        }

        header > nav > ul.active > li.egg{
            box-shadow: 0 0 30px 5px rgba(249,178,0,1), 0 0 0 1px rgba(249,178,0,0.3);
         }
         header:hover > nav > ul > li.egg{
            transition:0.2s 0.2s;
            transform:rotate(-90deg);
            -ms-transform:rotate(-90deg);
            -webkit-transform:rotate(-90deg);
        }


    header > div.headerLogo{
        padding-top:20px;
    }
        header > nav > ul{ 
        padding-top:30px;
    }
    section.detail{
        margin-top:130px;
    }
    section.home.intro .mobileIntro{
        display: block;
    }

    .home.intro .textBlock{
        position: relative;
        top: auto;
        padding:0 20px;
    }

    section.home.intro{   
        background-image:none !important; 
        background-size: 75%;
        background-position: center 50px;
        padding-top:50px;
    }
    section.intro .mobileIntro{
        float: none;
    }
    .home.intro .textBlock{
        width: 100%;
        padding:0px 40px 50px;
    }

    footer {
        background-position: 0px bottom;
    }
}
@media only screen and (max-width: 700px) {
    section h2 {
        padding: 0 40px;
    }
    section.intro.contact .introBlock{
        margin-left: 0;
    }

    section.detail{
        margin-top:100px;
    }

    section.detail .videoBlock > iframe{
        width: 100%;
        min-height: 250px;
        border:0;
    }
    section.detail .textBlock iframe{
        width: 100%;
        min-height: 250px;
        border:0;
    }

    header > div.headerLogo{
        padding-top:20px;
    }
    
    section.container{
        padding: 0 20px;
    }

        /* CONTENT */
    section.intro{
        margin-top:100px;
    }
    section.home.intro{
        background-size: contain;
        background-position: center top;
    }

    section.intro .introBlock h1{
        width: 100%;
        font-size: 5em;
        text-align: left;
        line-height: 1em;
        margin:0;
    }
    section.intro .introBlock p{
        width: 100%;
    }

    article .imageBlock,
    article .textBlock,
    .home.intro .textBlock {        width: 100%; padding:0; }
    article .imageBlock img {       width: 100%; }
    .home.intro .textBlock {
        padding-bottom: 30px;
    }

    article.left .imageBlock,
    article.right .imageBlock,
    article.left .textBlock,
    article.right .textBlock{       padding: 0; }

    article h2{
        font-size: 1.8em;
        margin-top:20px;
    }

    /* CONTACT FORM */

    form.contact label{
        padding: 0;
        height: auto;
        margin-bottom: 10px;
        width: 100%;
        text-align: left;
    }
    form.contact input, form.contact textarea{
        width: 100%;
    }
    
    /* FOOTER */

    hr{
        margin-bottom: 30px;
    }

    footer {
        
        background-position: center center;
        padding: 0 20px !important;
        background-size: 100%;
    }

    footer .textBlock{
        text-align: center;
        width: 100%;
        float: none;
        padding:300px 0 0;
        margin:0 auto;
    }
}

@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 required HTTP connection: 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 for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]: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;
    }

    @page {
        margin: 0.5cm;
    }

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

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