*: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%;
    display: none;

}
.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%;
 z-index: 99999999999;
}
#soundBtt{

    position: absolute;
    cursor: pointer;
    background-image: url('../img/sound_on.png');
    background-size: 100% 100%;

    right:20px;
    top:2%;
    width:7.61%;
	 z-index: 99999999998;
    height: 10.15%;
}
#soundBtt.active{
    background-image: url('../img/sound_off.png');
}

/*          INTRO               */

#title{
  background-image: url(../img/title.png);
    background-repeat: no-repeat;
    background-size: 100%;
    width:97.65%;
    height:11.71%;
    position: absolute;
    top:72.60%;
    left:1.20%;
    text-align: center;
    color: #F7BC14;
    font-size: 6.5vh;
    margin: auto;
}

#htp-title{
    position: relative;
    padding-top: 36%;
    padding-left: 55%;
    width: 92%;
    text-align: center;
    color: white;
    line-height: 1.3;
    font-size: 3.6vh;
    pointer-events: none;
}
.htp{
    cursor: pointer;
}
#intro-logo{
    position: absolute;
    width: 45.21%;
    height: 27.47%;
    top: 4.82%;
    left:27.44%;
    background-size:auto 100%;
    background-repeat: no-repeat;
    background-image: url('../img/intro_logo.png');
}

#start-button{
    position: absolute;
   left:25.58%;
    top:85.41%
}
.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{

}

/*          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>img{
    position: absolute;
    height:7.2%;
    left:73.6%;
    top:2.8%;
    z-index: 9999999;

}
.counter-container p{
    text-align: center;
    color:white;
    line-height: 133%;
    font-size: 7.94vh;

}

.question{

    margin:  auto;
   width: 46.1%;
    height: 67%;
    position: relative;
    top:2%;
    margin-bottom: 2%;
    z-index: 999929;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    background-image: url('../img/question-bgd.png');

}

.answerContainer{
    width:100%;
    height:100%;
}
.question-inner{
    height:9.8%;
    width:100%;

    display: table;
}
.question-inner-container{
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    height: 100%;
}
.question-inner-container>p{
    color:black;
    text-align: center;
    padding:0 5% 0.5%;
    font-size:3.2vh ;
}
#question-image {
    padding: 0.5% 2%;
    width: 100%;
}
.button.answer{
    width:45.9%;
    height:7.94%;
    margin: 1% 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.wrong{
    background-image: url('../img/q-btt_wrong.png');
}
.answer p{
    font-size: 3.87vh;
    font-family: "Fred Fredburger W04 Bold";
    color:white;
    line-height: 1;
}
.no-touch .answer:hover p,.answer.correct p{
    color:white;
}


#gfx{
    pointer-events: none;
    width:100%;
    height: 100%;
    position: absolute;
    top:0;
    display: none;
    z-index: 99999999999;

}
#gfx.active{
    display: block;
}
.left{
    left:4%;
    top:61.84%;
    width:20.41%;
    height:34.5%;
    background-image: url('../img/l0.png');
}
.right{
    right:1.66%;
    top:53.9%;
    width:20%;
    height:43.1%;
    background-image: url('../img/r0.png');
    overflow-y: hidden;
}
.left.correct{
    left:1.17%;
    top:65.62%;
    width:24.51%;
    height:25.65%;

    background-image: url('../img/l1.png');
}
.right.correct{

    right:1.1%;
    top:53.12%;
    width:25.19%;
    height:43.88%;

    background-image: url('../img/r1.png');
}


.left.wrong{
    left:1.85%;
    top:69%;
    width:23.33%;
    height:24.21%;

    background-image: url('../img/l2.png');
}
.right.wrong{

    right:2.92%;
    top:53.90%;
    width:20%;
    height:43.1%;
    background-image: url('../img/r2.png');
}

/*          GAME OVER PAGE               */
#correct-answers{
    color:black;
    text-align: center;
    font-size: 6.9vh;
    margin-bottom: 61.5%;
}
#summary-bgd{
    position: absolute;
    padding: 1% 2%;
    width:57.51%;
    height:79.16%;
    top:3.5%;
    left:21.19%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;

    color:white;

}
.go2 #summary-header1,.go2 #summary-header2,.go2 #summary-description{

}
#summary-header2{

}

.summary {
    position: relative;
    z-index: 8888;
}
#summary-header1,#summary-header2{
    text-align: center;
    line-height: 0.95;
    font-size: 5.2vh;
}
#summary-description{
    text-align: center;
    text-transform: none;
    padding-top:1%;
    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{

    background-image: url('../img/go3.png');
}

#play-again-button{
    position: absolute;
    top:85.42%;
    left:25.5%
}
.left,.right{
    position: absolute;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
}
.left.go1{
    left:1.17%;
    top:65.62%;
    width:24.51%;
    height:25.65%;

    background-image: url('../img/l1.png');


}
.left.go2{
    left:4%;
    top:61.84%;
    width:20.41%;
    height:34.5%;
    background-image: url('../img/l0.png');

}
.left.go3{
    left:1.85%;
    top:69%;
    width:23.33%;
    height:24.21%;

    background-image: url('../img/l2.png');


}
.right.go1{

    right:1.1%;
    top:53.12%;
    width:25.19%;
    height:43.88%;

    background-image: url('../img/r1.png');


}
.right.go2{
    right:1.66%;
    top:53.9%;
    width:20%;
    height:43.1%;
    background-image: url('../img/r0.png');
    overflow-y: hidden;


}
.right.go3{

    right:2.92%;
    top:53.90%;
    width:20%;
    height:43.1%;
    background-image: url('../img/r2.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{
        display: none;
        position: relative;
        width:244px;
        height:271px;
        top:59px;
        left:0;

        margin:  auto;
        background-size: 100%;
        background-repeat: no-repeat;
        /*background-image: url('../img/intro_logo_m.png');*/
    }
    #title{
        width: 288px;
        height: 88px;
        line-height: 1;
        padding: 0;
        top:420px;
        margin: auto;
        left:50%;
        margin-left: -144px;
        background-image: url('../img/titlem.png');
        background-size: 100%;
        font-size: 40px;

    }

    .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;
    }

    #start-button {

        left:50%;
        margin-left: -160px;
        position: absolute;
        bottom:20px;
    }
    #htp-title{
        font-size: 19px;
        padding: 349px 57px 0;
        line-height: 1.2;
        width: 100%;
    }
    #htp-title br{
    display: none
    }

    /*          QUIZ PAGE               */
    .counter-container{


    }
    .counter-container p{

        line-height: 61px;
        font-size: 42px;

    }

    .question{
        top: 91px;
        padding-top:1px;
        z-index: 999929;

        margin-bottom: 0;
        background-image: url('../img/question-bgdm.png');
        width:229px;
        height:292px;



    }
    #question-image{
        padding: 1px 6px;
    }
    .question-inner{
        height:68px;
        line-height: 1;
        overflow: hidden;

        vertical-align:middle;
    }
    .counter-container{
        position: relative;
    }
    .counter-container>img {
        position: relative;
        z-index: 99999999;
        left:0;
        height:44px;
        top:0;
        display: block;
        margin: 7px auto;

    }
    #gfx{
        z-index: auto;
    }
    .answerContainer{
        width:100%;
        height:100%;
        margin-top: 95px;
    }
    .question-inner-container>p{

        text-align: center;
        padding: 0 20px;
        font-size:17px ;
    }
    .button.answer{
        width:320px;
        height:44px;
        margin: 5px 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.wrong{
        background-image: url('../img/q-btt_wrong.png');
    }
    .answer p{
        font-size: 15px;

    }



    .left{
        position: absolute;
        left: 50%;
        margin-left: -126px;
        top:42px;
        width:252px;
        height:183px;

        background-image: url('../img/l0_m.png');
    }
    .right{
      display: none;

    }
    .left.correct{
        left:50%;
        margin-left: -139px;
        top: 38px;

        width:278px;
        height:187px;
        background-image: url('../img/l1_m.png');
    }

    .left.wrong{
        left:50%;
        margin-left: -129px;
        top:42px;
        width:258px;
        height:183px;
        background-image: url('../img/l2_m.png');
    }

    /*          GAME OVER PAGE               */


    #correct-answers {

        font-size: 28px;
        margin-bottom: 176px;
    }
    #summary-bgd{
        margin: auto;
        position: relative;
        top:191px;
        padding: 7px;
        width:320px;
        height:329px;
        left: auto;

        z-index: 101;
    }
    #summary-header2{
        padding-top: 2px;
    }
    #summary-header1,#summary-header2{


        font-size: 23px;
    }
    #summary-description{
        line-height: 1.1;
        padding: 5px 10px 0;
        font-size: 15px;

    }
    #summary-bgd.go1{
        background-image: url('../img/go1.png');
    }
    #summary-bgd.go2{
        background-image: url('../img/go2.png');
    }

    #summary-bgd.go3{

        background-image: url('../img/go3.png');
    }

    #play-again-button{
        position: relative;
        top:206px;
        left:auto;
    }
    .right.go1,.right.go2,.right.go3{
        display: none;

    }
    .left.go1{
        left:50%;
        margin-left: -139px;
        top: 38px;
        width:278px;
        height:187px;
        background-image: url('../img/l1_m.png');


    }
    .left.go2{
        position: absolute;
        left: 50%;
        margin-left: -126px;
        top:34px;
        width:252px;
        height:183px;

        background-image: url('../img/l0_m.png');
    }
    .left.go3{
        left:50%;
        margin-left: -129px;
        top:42px;
        width:258px;
        height:183px;
        background-image: url('../img/l2_m.png');
    }

}

