*:root{
    font-size: 5vmin;
}
.not-loaded{
    display: none;
}
.table-cell{
    display: table-cell;
    vertical-align: middle;
    width:100%;
    height: 100%;
}
.preloader-appla{
    position: fixed;
    top:0;
    left:0;
    z-index: 9999999;
    background-color: black;
    display: table;
    width: 100%;
    height:100%;

}
.preloader {
    display: table-cell;
    vertical-align: middle;
    margin: auto;
}
canvas{
    margin: auto;
    display: block;
}



.backgrounds{
    width:100%;
    height: 100%;
    position: absolute;
}
.backgrounds .background {

    width:100%;
    position: absolute;
    top:0;
    left:0;

    height: 100%;
    overflow-x: hidden;
    background-repeat: no-repeat;
    background-position: top center;
    text-align: center;

    background-size: auto 100%;
    opacity: 0;
    -webkit-transition: all 1s; /* Safari */
    transition: all 1s;

}

.backgrounds .background.active{
    opacity: 1;

    -webkit-transition: all 1s; /* Safari */
    transition: all 1s;
    background-image: url('../img/intro.jpg');

    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center center;
}

.disabled{
    pointer-events: none!important;
}


html {
    overflow: hidden;
    background-color: black;
    height:100%;
    width:100%;

    margin:0;
    padding: 0;

    text-transform: uppercase;

}

body {
    font-family: "Fred Fredburger Headline W04Bl";
    font-size: 16px;
    position:absolute;
    height:100%;
    width:100%;
    background-color: black;
    overflow-x: hidden;
    margin: 0;
    padding: 0;


}
#holder{
    overflow-x: hidden;
    width:100%;
    height:100%;
    margin: auto;

}

#inner-holder{
    position: relative;
    margin: auto;
    width:100%;

    height: 100%;


}
#content{
    margin: auto;

    height:100%;
    width:100%;

}
.page{
    display: none;
    width:100%;
    height:100%;
    overflow:hidden;
}
.page.active{
    display: block;
}
#inner-content{
    position: relative;
    width:100%;
    height:100%;

}

/*          CONTROLS        */

.control-container {
    position: absolute;
    width: 100%;
    top: 0;
    margin: auto;
    z-index: 99999991;
    height: 100%;
}


#homeBtt{

    position: absolute;
    cursor: pointer;
    background-image: url('../img/home_btt.png');
    background-size: 100% 100%;
    width:7.61%;
    height: 10.15%;
    left:20px;
    top:2%;

}
#soundBtt{

    position: absolute;
    cursor: pointer;
    background-image: url('../img/sound_on.png');
    background-size: 100% 100%;

    right:20px;
    top:2%;
    width:7.61%;
    height: 10.15%;
}
#soundBtt.active{
    background-image: url('../img/sound_off.png');
}

/*          INTRO               */

#title{
    position: relative;
    padding-top: 57%;
    text-align: center;
    color:black;
    font-size: 4.21vh;
}
#intro-logo{
    position: absolute;
    width:72%;
    height:74%;
    top:0;
    left:18%;
    background-size:auto 100%;
    background-repeat: no-repeat;
    background-image: url('../img/intro_logo.png');
}

#start-button{
    position: relative;
    margin-top: 1.5%;
}
.button{
    width:49%;
    height:9.11%;
    display: table;

    margin:auto;
    background: url('../img/btt.png') center center no-repeat;
    background-size: 100% auto;
    cursor:pointer;
}
.button p{
    color:white;
    text-align:center;
    font-size: 5.21vh;

}
.no-touch .button:hover{
    background-image: url('../img/btt_over.png');
}
.no-touch .button:hover p{
    color:black;
}

/*          QUIZ PAGE               */
.counter-container{
    display: table;
    margin:  auto;
    width:23.04%;
    height:11.45%;
    position: relative;
    top:7.94%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    z-index: 2;
    background-image: url('../img/counter-bgd.png');
}
.counter-container p{
    text-align: center;
    color:white;
    line-height: 133%;
    font-size: 7.94vh;

}

.question{

    margin:  auto;
    width:71.67%;
    height:26.43%;
    position: relative;
    top:5%;
    margin-bottom: 5%;
    display: table;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    background-image: url('../img/question-bgd.png');

}
.question-inner{
    display: table-cell;
    vertical-align:middle;
}
.answerContainer{
    width:100%;
    height:100%;
}
.question-inner>p{
    color:white;
    text-align: center;
    padding: 0 10%;
    font-size:4vh ;
}
.button.answer{
    width:54.1%;
    height:9.24%;
    margin: 2% auto;
    display: table;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    background-image: url('../img/q-btt.png');
}
.button.answer .button-inner{
    display: table-cell;
    vertical-align: middle;
}
.no-touch .answer:hover{
    background-image: url('../img/q-btt_on.png');
}
.answer.correct{
    background-image: url('../img/q-btt_correct.png');
}
.answer p{
    font-size: 3.87vh;
    font-family: "Fred Fredburger W04 Bold";
    color:#591313;
    line-height: 1;
}
.no-touch .answer:hover p,.answer.correct p{
    color:white;
}


#bottom-logo{
    position: absolute;
    bottom:4%;
    left:35.75%;
    margin: auto;
    width:28.51%;
    height:14.45%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    background-image: url('../img/question-bottom-logo.png');
}
#gfx{
    pointer-events: none;
    width:100%;
    height: 100%;
    position: absolute;
    top:0;
    display: none;

}
#gfx.active{
    display: block;
}
.left{
    position: absolute;
    left:-8.39%;
    top:22.26%;
    width:23.43%;
    height:74.48%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    background-image: url('../img/l0.png');
}
.right{
    position: absolute;
    right:-8%;
    top:38.80%;
    width:27.93%;
    height:57.16%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    background-image: url('../img/r0.png');
    overflow-y: hidden;
}
.left.after{
    left:-13.18%;
    top:22%;
    width:34.96%;
    height:75.65%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    background-image: url('../img/l1.png');
}
.right.after{
    background-image: url('../img/r1.png');
}

/*          GAME OVER PAGE               */

#summary-bgd{
    position: absolute;
    padding: 5%;
    width:57.71%;
    height:69.14%;
    top:10.02%;
    left:21.16%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;

    color:white;

}
#summary-header1,#summary-header2{

    line-height: 0.95;
    font-size: 5.2vh;
}
#summary-description{
    text-transform: none;
    padding-top: 1.5%;
    font-size: 3.56vh;
    line-height: 1;
    font-family: 'Fred Fredburger W04 Regular';
}
#summary-bgd.go1{
    background-image: url('../img/go1.png');
}
#summary-bgd.go2{
    background-image: url('../img/go2.png');
}

#summary-bgd.go3{
    color:black;
    background-image: url('../img/go3.png');
}

#play-again-button{
    position: absolute;
    top:85.42%;
    left:25.5%
}
.left.go1,.left.go2,.left.go3{
    position: absolute;
    top:41.8%;
    left:-13.67%;
    margin: auto;
    width:32.23%;
    height:16.41%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    background-image: url('../img/question-bottom-logo.png');

}
.right.go1{
    position: absolute;
    top:3.25%;
    right:-14.58%;
    margin: auto;
    width:35.84%;
    height:93.36%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    background-image: url('../img/go1_r.png');

}
.right.go2{
    position: absolute;
    top:21.74%;
    right:-14.58%;
    margin: auto;
    width:34.09%;
    height:64.45%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    background-image: url('../img/go2_r.png');

}
.right.go3{
    position: absolute;
    top:35.93%;
    right:-15.58%;
    margin: auto;
    width:36.33%;
    height:40.36%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    background-image: url('../img/go3_r.png');

}

@media only screen and (max-width:768px)  and (orientation: portrait){

    html {

        width:768px;
        height:auto;
    }
    #holder{
        height:600px;

        background-size: 768px;
        background-repeat: no-repeat;
        background-position: top center;
    }
    .backgrounds{
        height:600px;
    }
    #intro-logo{
        position: relative;
        width:323px;
        height:418px;
        top:22px;
        left:-9px;

        margin:  auto;
        background-size:auto 100%;
        background-repeat: no-repeat;
        background-image: url('../img/intro_logo_m.png');
    }
    #title{
        width:320px;
        line-height: 1;
        padding: 30px 0 0;
        margin: auto;
        font-size: 30px;
    }

    .button{
        width:320px;
        height:45px;
        margin:auto;

    }
    .button p{
        font-family: "Fred Fredburger Headline W04Bl";

        text-align:center;
        font-size: 25px;
        line-height:45px ;
    }

    /*              CONTROLS            */


    #homeBtt{

        position: absolute;
        cursor: pointer;
        background-image: url('../img/home_btt.png');
        background-size: 100% 100%;
        width:58px;
        height: 58px;
        left:20px;
        top:10px;

    }
    #soundBtt{

        position: absolute;
        cursor: pointer;
        background-image: url('../img/sound_on.png');
        background-size: 100% 100%;
        width:58px;
        height: 58px;
        right:20px;
        top:10px;
    }



    /*          QUIZ PAGE               */
    .counter-container{

        width:161px;
        height:61px;
        position: relative;
        top:115px;
        margin-bottom: 96px;
        z-index: 100;
        background-image: url('../img/counter-bgd.png');
    }
    .counter-container p{

        line-height: 61px;
        font-size: 42px;

    }

    .question{

        z-index: 99;
        top:0;
        margin-bottom: 0;
        background-image: url('../img/question-bgd-mobile.png');
        width:320px;
        height:149px;



    }
    .question-inner{
        display: table-cell;
        vertical-align:middle;
    }
    .answerContainer{
        width:100%;
        height:100%;
    }
    .question-inner>p{
        color:white;
        text-align: center;
        padding: 0 10px;
        font-size:19px ;
    }
    .button.answer{
        width:320px;
        height:44px;
        margin: 10px auto;
        display: table;

        background-image: url('../img/q-btt.png');
    }
    .button.answer .button-inner{
        display: table-cell;
        vertical-align: middle;
    }
    .no-touch .answer:hover{
        background-image: url('../img/q-btt_on.png');
    }
    .answer.correct{
        background-image: url('../img/q-btt_correct.png');
    }
    .answer p{
        font-size: 15px;

    }


    #bottom-logo{
        position: absolute;
        bottom: 20px;
        left: calc(50% - 110px);
        margin: auto;
        width:220px;
        height:84px;
        background-image: url('../img/question-bottom-logo.png');
    }

    .left{
        position: absolute;
        left: 50%;
        margin-left: -114px;
        top:21px;
        width:143px;
        height:147px;

        background-image: url('../img/l0_m.png');
    }
    .right{
        position: absolute;
        left: 50%;
        top:23px;
        margin-left: 25px;
        width:104px;
        height:160px;
        background-image: url('../img/r0_m.png');

    }
    .left.after{
        left:50%;
        margin-left: -140px;
        top:23px;
        width:172px;
        height:142px;
        background-image: url('../img/l1_m.png');
    }
    .right.after{
        background-image: url('../img/r1_m.png');
    }

    /*          GAME OVER PAGE               */

    #summary-bgd{
        margin: auto;
        position: relative;
        top:232px;
        padding: 20px;
        width:320px;
        height:287px;
        left: auto;

        z-index: 101;
    }
    #summary-header1,#summary-header2{


        font-size: 23px;
    }
    #summary-description{
        line-height: 1.3;
        padding-top: 10px;
        font-size: 15px;

    }
    #summary-bgd.go1{
        background-image: url('../img/go1.png');
    }
    #summary-bgd.go2{
        background-image: url('../img/go2.png');
    }

    #summary-bgd.go3{
        color:black;
        background-image: url('../img/go3.png');
    }

    #play-again-button{
        position: relative;
        top:241px;
        left:auto;
    }
    .left.go1,.left.go2,.left.go3{
        display: none;

    }
    .right.go1{


        top:-140px;
        right:auto;
        left:calc(50% - 143px);
        margin: auto;
        width:277px;
        height:542px;


    }
    .right.go2{

        top:21px;
        right:auto;
        left:calc(50% - 130px);
        margin: auto;
        width:261px;
        height:371px;

    }
    .right.go3{
        position: absolute;
        top:16px;
        right:auto;
        left:calc(50% - 140px);
        margin: auto;
        width:279px;
        height:232px;

    }

}

