/*! HTML5 Boilerplate v5.3.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-face {
    font-family: 'source_code_prolight';
    src: url('sourcecodepro-light-webfont.woff2') format('woff2'),
         url('sourcecodepro-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}




@font-face {
    font-family: 'source_code_promedium';
    src: url('sourcecodepro-medium-webfont.woff2') format('woff2'),
         url('sourcecodepro-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'anonymous_proregular';
    src: url('anonymous_pro-webfont.woff2') format('woff2'),
         url('anonymous_pro-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
/*
 * 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
   ========================================================================== */
html, body{
    margin: 0;
    padding: 0;
    background-color: black;
    font-family: 'Inconsolata', sans-serif;
    color: #00afe9;
    font-size: 12pt;
    overflow: hidden;
}
a{
    color: #fff;
    font-size: 12pt;
    text-decoration:none;
    -webkit-transition: all 1s; 
    transition: all 1s;
}


.section{
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    right: 0;
    /*overflow: hidden;*/
}
.background{
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    right: 0;
    text-align: right;
    z-index: -2;
    display: none;
}
.background img{
    display: none;   
}
video#bgvid { 
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background-size: cover; 
}
.title-main{
    position: absolute;
    top:30%;
    left:0;
}
.title-main h1{
    margin-left: 100px;
    font-size: 5em;
    position: absolute;
    top: 0;
}
.title-main #bvid{
    position: absolute;
    top: 20px;
    width: 100vw;
}
.title-main img{
    display: none;
}
.title{
    position: fixed;
    top: 30%;
    left: 100px;
    z-index: -1;
}
.title h4, .title h5, .counter h5{
    font-weight: normal;
    margin-bottom: 0;
    margin-top: 0;
}
.title h5, .counter h5{
    color: #d80505;
    z-index: -1;
}
.title h1{
    font-weight: normal;
    font-size: 3em;
    margin-top: 0;
}
.counter {
    position: absolute;
    left: 10%;
    bottom: 70%;
}
/* elements styles*/
.elements{
    height: 100%;
    width: 100%;
    overflow: auto;
}
ul{
    padding: 0;
    margin: 0;
    width: 100%;
}
.blue-text{
    background-color: rgba(0,0,0,.5);
}
.blue-text p, .black-text p{
    padding: 0 20%;
}
.black-text{
    background-color: rgba(0, 174, 239, .5);
    color: black;
}
.layer{
    margin-left: 50%!important;
}

.text{
    position: absolute;
    width: 50%;
    margin-left: 50%;
    margin: 0;
    height: 100vh;
    z-index: 1000;

}
.instr{
    position: absolute;
    bottom: 30%;
    left: 100px;
    z-index: 1000;
}

.welcomescreen {
    display: block;
}
.background-ladies{
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
}
.table-cell{
    /*position: relative;*/
    /*display: inline-block;*/
    margin: 0;
    width: 25%;
    height: 50vh;
    text-align: right;
    overflow: hidden;
    opacity: 0.3;
    cursor: pointer;
    -webkit-transition: all 1s; 
    transition: all 1s;
    mix-blend-mode: overlay;
}
.table-cell:hover{
    opacity: 1;
    -webkit-transition: all 1s; 
    transition: all 1s;
}
.table-cell img{
    position: absolute;
    width: auto;
    height:100vh;
    right:0;
    display: none;
}
button{
    background-color: transparent;
    border-width: 1px;
    border-color: #ffffff;
    border-style: solid;
    font-size: 0.8em;
    color: #ffffff;
    padding: 1.5em;
    margin: 30px 100px;
    min-width: 150px;
    -webkit-transition: all 1s; 
    transition: all 1s;
}

.menu-button{
    width: 150px;
    margin-left: -75px;
}
li img{
    max-width: 100%;
}
.menu{
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    color: white;
    z-index: 12000;
    position: absolute;
    top: 0;
    left: 0;
}
.nav{
    margin-left: 100px;
    list-style-type: none;
}
.nav li{
    cursor: pointer;
    -webkit-transition: all 1s; 
    transition: all 1s;
    padding: 1em;
}
.nav li:hover{
    color: #00afe9;
    -webkit-transition: all 1s; 
    transition: all 1s;
}

button:focus {outline:0;}

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

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

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

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        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;
    }
}

@media only screen and (min-width: 1024px){
    a:hover{
        color: #d80505;
        -webkit-transition: all 1s; 
        transition: all 1s;
    }
    button:hover{
        border-color: #00afe9;
        color: #00afe9;
        -webkit-transition: all 1s; 
        transition: all 1s;
    }
}


@media only screen and (max-width: 1024px){
    
    video {
        display: none;
    }
    .background img{
        display: block;
        height: 100%;
        min-width: 100vw;
        position: absolute;
        top:0;
        right:0;
        bottom:0; 
    }
    .title-main img{
        position: absolute;
        top: 20px;
        width: 100vw;
    }
    .object {
        display: none;
        pointer-events: none;
    }
    .title {
        top: 5%;
        left: 5%;
        z-index: -1;
    }
    .title h1{
        font-size: 3em;
    }
    .title h4{
        font-size: 1.5em;
    }
    .instr{
        top: 50%;
        left: 5%;
    }
    .layer{
        margin-left: 0%!important;
    }
    .black-text{
        background-color: rgba(0, 174, 239, .7);
        color: black;
    }
    .blue-text{
        background-color: rgba(0, 0, 0, .7);
        color: rgb(0, 174, 239);
    }
    .text{
        width: 100%;
        pointer-events: none;
    }
    .text a{
        pointer-events: initial;
    }
    .instr{
        z-index: 2;
    }
    .blue-text p, .black-text p{
        padding: 0 5%;
    }
    button{
    
        font-size: 0.9em;
        color: #ffffff;
        padding: 1em;
        margin: 15px 25px;
        min-width: 100px;
    }

    .menu-button{
        width: 100px;
        margin-left: -50px;
    }
    p{
        font-size: 1.1em;
    }
}
@media only screen and (max-width: 800px){
    .title h1{
        font-size: 2.6em;
    }
    .title h4{
        font-size: 1.2em;
    }
    
}
@media only screen and (max-width: 450px){
    .title h1{
        font-size: 2em;
    }
    .title h4{
        font-size: 0.5em;
    }
    .text {
        font-size: 0.8em;
    }
    button{
    
        font-size: 0.6em;
        color: #ffffff;
        padding: 1em;
        margin: 10px 20px;
        min-width: 80px;
    }

    .menu-button{
        width: 80px;
        margin-left: -40px;
    }

}
