html, body {
    width: 100%;
    height: 100%;
    overflow:hidden;
}

#footer {
    position: fixed;
    bottom: 0;
    margin: 0;
    background: #FFF;
    padding-bottom: 10px;
    z-index:20;
}

#main {
    margin-top: 0;
}


html, body {
    width: 100%;
    height: 100%;
    overflow:hidden;
}

#header, #preheader {
    background: transparent !important;
    color:#FFF;
}

#header.pos, #header.pos #preheader {
    /* background: #FFF !important; */
    color:#000;
}

#header #preheader,#header #mainheader {
    border-bottom: 1px dotted #FFF !important;
}

#header.pos #preheader,#header.pos #mainheader {
    border-bottom: 1px dotted #000 !important;
}

#header #mainheader h1 {
    border-right-color: #FFF;
}

#header.pos #mainheader h1 {
    border-right-color: #000;
}


#header #mainheader h1 a {
    background: url(../img/logo2.png) no-repeat center center;
    background-size: contain;
}

#header.pos #mainheader h1 a {
    background: url(../img/logo3.png) no-repeat center center;
    background-size: contain;
}

#header #preheader #contact-links a {
    color: #FFF;
}

#header.pos #preheader #contact-links a {
    color: #000;
}


#videobg {
    background: #000;
    display:none;
}

#mobilecontent { 
    position: absolute;
    top:-50px;
    left:0;
    width: 100%;
    height: 100%;
}

#mobilecontent .slider {
    position: absolute;
    width: 100%;
    height: 100%;
}


#mobilecontent .slider .slideitem {
    position: absolute;
    top: 0;
    left: 0;
    background-position: center center;
    background-size: cover;
    width: 100%;
    height: 100%;
}

#videoheader {
    padding: 0 12px 10px 12px;
    border-bottom: 1px dotted #FFF;
    margin-top: 100px;
    box-sizing: border-box;
    z-index: 20;
    position: relative;
    min-height: 46px;
    overflow: hidden;
}

#videoheader.pos {
    border-bottom: 1px dotted #000
}

#videoheader .ani  {
    position: absolute;
    top: 0;
    left: 12px;
    height: 36px;
}

/* #videoheader .ani.on {
    transform: translateY(-46px);
    transition: all .5s ease-in-out;
} */

#videoheader .ani div {
    margin-bottom: 10px;
}

#videoheader p {
    margin:0;
    font-size: 18px;
    line-height: 1;
    color: #FFF;
}

#videoheader p.title {
    font-weight: bold;
}

#videoheader.pos p.title {
    color: #000;
}

#videoheader p.subtitle {
    color: #8d8b8d
}

#videoheader .nav {
    position: absolute;
    right: 0;
    top: 2px;
    width: 123px;
    height: 46px;
    display: none;
}

#videoheader a.prev {
    display:block;
    width: 61px;
    height: 46px;
    background: url(../media/arrow_prev.svg) no-repeat top left;
    background-size: 46px 46px;
    position: absolute;
    left: 0;
    top: 0;
    border-right: 3px solid #FFF;
}

#videoheader a.next {
    display:block;
    width: 46px;
    height: 46px;
    background: url(../media/arrow_next.svg) no-repeat top right;
    background-size: 46px 46px;
    position: absolute;
    right: 0;
    top: 0;
}

#videoheader.pos a.prev {
    background: url(../media/arrow_prev_pos.svg) no-repeat top left;
    background-size: 46px 46px;
    border-right: 3px solid #000;
}

#videoheader.pos a.next {
    background: url(../media/arrow_next_pos.svg) no-repeat top right;
    background-size: 46px 46px;
}

@media (max-width: 424px) {
    #videoheader p.title span {
        display: none;
    }   
}

@media (min-width: 768px) {

    #main {
        margin-top: 120px;
    }
    
    
    #header #mainheader a#browse {
        background: #FFF url(../img/browse2.png) no-repeat center right;
        color: #000;
    }
    
    #header.pos #mainheader a#browse {
        background: #000 url(../img/browse.png) no-repeat center right;
        color: #FFF;
    }
    
    #header #mainheader #navigation {
        background: #FFF;
        color: #000;
    }
    
    #header.pos #mainheader #navigation {
        background: #000;
        color: #FFF;
    }
    
    #header #mainheader #navigation ul li a  {
        color: #000;
    }
    
    #header.pos #mainheader #navigation ul li a  {
        color: #FFF;
    }
    
    #header #mainheader #navigation ul li a:hover {
        background: #BBB;
        background: -moz-linear-gradient(top, #BBB 0%, #e0e0e0 100%);
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #e0e0e0), color-stop(100%, #e0e0e0));
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#BBB', endColorstr='#e0e0e0', GradientType=0 );
        color:#333;
        text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.4);
        filter: dropshadow(rgba(255, 255, 255, 0.4), offx=0, offy=1);
    }
    
    #header.pos #mainheader #navigation ul li a:hover {
        background: #6CF;
        background: -moz-linear-gradient(top, #6CF 0%, #4096ee 100%);
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #6CF), color-stop(100%, #4096ee));
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6CF', endColorstr='#4096ee', GradientType=0 );
        color: #333;
        text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.4);
        filter: dropshadow(rgba(255, 255, 255, 0.4), offx=0, offy=1);
    }

    #footer {
        box-sizing: border-box;
        position: fixed;
        z-index: 20;
        bottom: 0;
        margin: 0;
        width: 100%;
        left: 0;
        background: #FFF;
        padding: 0 20px;
    }

    #footer>div {
        padding: 20px 0;
        width: 960px;
        margin: 0 auto;

    }

    
    #videoheader {
        padding: 10px 0 30px 0;
        min-height: 72px;
    }

    #videoheader .nav {
        display: block;
    }

    #videoheader .ani {
        height: 62px;
        left: 0;
    }

    #videoheader .ani div {
        margin-bottom: 14px;
    }

    #videoheader p {
        font-size: 28px;
    }


    #videobg {
        display:block;
    }

    #videobg video {
        position: absolute;
        top: calc(50% - 90px);
        left: 50%;
        -webkit-transform: translateX(-50%) translateY(-50%);
        transform: translateX(-50%) translateY(-50%);
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        z-index: -1000;
        overflow: hidden;
    }

    #mobilecontent { 
        display: none;
    }
}







@-moz-keyframes topToBottom {
	0% { opacity: 0; }
	5% { opacity: 0; -moz-transform: translateY(-50px); }
	10% { opacity: 1; -moz-transform: translateY(0px); }
	25% { opacity: 1; -moz-transform: translateY(0px); }
	30% { opacity: 0; -moz-transform: translateY(50px); }
	80% { opacity: 0; }
	100% { opacity: 0; }
}
@-webkit-keyframes topToBottom {
	0% { opacity: 0; }
	5% { opacity: 0; -webkit-transform: translateY(-50px); }
	10% { opacity: 1; -webkit-transform: translateY(0px); }
	25% { opacity: 1; -webkit-transform: translateY(0px); }
	30% { opacity: 0; -webkit-transform: translateY(50px); }
	80% { opacity: 0; }
	100% { opacity: 0; }
}
@-ms-keyframes topToBottom {
	0% { opacity: 0; }
	5% { opacity: 0; -ms-transform: translateY(-50px); }
	10% { opacity: 1; -ms-transform: translateY(0px); }
	25% { opacity: 1; -ms-transform: translateY(0px); }
	30% { opacity: 0; -ms-transform: translateY(50px); }
	80% { opacity: 0; }
	100% { opacity: 0; }
}