*: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;



}

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;

    font-size: 4.21vh;
}


#intro-logo{
    position: absolute;
    width: 48.14%;
    height: 79.03%;
    top: 4.9%;
    left: 27.3%;
    background-size:auto 100%;
    background-repeat: no-repeat;
    background-image: url('../img/intro_logo.png');
}

#start-button{
    position: relative;
    top: 86%;
}
.button{
    width:41.79%;
    height:8.4%;
    display: table;

    margin:auto;
    background: url('../img/btt.png') center center no-repeat;
    background-size: 100% auto;
    cursor:pointer;
}
.button p{
    color:black;
    text-align:center;
    font-size: 5.21vh;

}


#htp-text-container{
    width:92.57%;
    height:43%;
    top:8.33%;
    position: relative;
    margin: auto;
    background: url('../img/htp_text.png') center center no-repeat;
    background-size: 100% auto;
}
#htp-title {
    font-family: "Fred Fredburger W04 Bold";
    position: relative;
    padding-top: 19%;
    line-height: 1.1;
    text-align: center;
    color: white;
    font-size: 3.6vh;
}
.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-header-container{
    width:45.11%;
    height:8.46%;
    margin: 1.4% auto .5%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    position: relative;
    background-image: url('../img/question-bgd.png');
    display: flex;
}
#question-header{
    font-size: 5.2vh;
    text-align: center;
    color:white;
    align-self:center;
    margin: auto;

}


.question{

    margin:auto;
    width:45.11%;
    height:22%;
    position: relative;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;

    background-image: url('../img/question-bgd2.png');
    z-index: 999929;


}

.answerContainer{
    width:100%;
    height:100%;
}
.question-inner{
    height:100%;
    width:100%;

    display: table;
}
.question-inner-container{
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    height: 100%;

}
.question-inner-container>p{
    color:white;
    text-align: center;
    padding: 2% 5%;
    font-family: 'Fred Fredburger W04 Bold';

}
#question-image-container{
    margin: .5% auto 1%;
    width:45.11%;
    height:45.83%;
    position: relative;

    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;

    background-image: url('../img/question-bgd3.png');

}
#question-image{
    padding: 2.7% 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{
    color:white;
     background-image: url('../img/q-btt_correct.png');
 }

.answer.wrong{

    background-image: url('../img/q-btt_wrong.png');
}
.answer p{
    font-size:4.2vh;

    color:black;
    line-height: 1;
}

.no-touch .answer:hover p,.answer.correct p,.answer.wrong p{
    color:white;
}


#gfx{
    pointer-events: none;
    width:100%;
    height: 100%;
    position: absolute;
    top:0;
    display: none;

}
#gfx.active{
    display: block;
}
.left{
    left:9.96%;
    top:62.1%;
    width:15.03%;
    height:34.89%;
    background-image: url('../img/l0.png');
}
.right{
    right:6.15%;
    top:42.05%;
    width:18.75%;
    height:54.03%;
    background-image: url('../img/r0.png');
    overflow-y: hidden;
}
.left.correct{
    left:9.96%;
    top:62.10%;
    width:15.03%;
    height:34.89%;

    background-image: url('../img/l1.png');
}
.right.correct{

    right:7.1%;
    top:42.44%;
    width:19.33%;
    height:53.77%;

    background-image: url('../img/r1.png');
}


.left.wrong{
    left:10.59%;
    top:62.36%;
    width:14.45%;
    height:34.76%;

    background-image: url('../img/l2.png');
}
.right.wrong{

    right:7.3%;
    top:42.31%;
    width:17.67%;
    height:53.9%;

    background-image: url('../img/r2.png');
}
.htp{
    cursor: pointer;
}
#result-appla{
    cursor: pointer;
    display: none;
    position: absolute;
    top: 33.6%;
    left: 27%;
    width: 45.90%;
    height: 64.84%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../img/true.png);

    padding: 8% 3%
}
#result-appla.wrong{
    background-image: url(../img/false.png);
}
#result-text > span{
    font-size: 6vh;
}
#result-text{
    font-family: 'Fred Fredburger W04 Bold';
    text-align: center;
    color:white;
    font-size: 3.6vh;
}
/*          GAME OVER PAGE               */
#correct-answers{
    color:black;
    text-align: center;
    font-size: 6.9vh;
    margin-bottom: 59.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-header1,#summary-header2{
    text-align: center;
    line-height: 1.1;
    font-size: 5.2vh;
}
#summary-description{
    text-align: center;
    text-transform: none;
    padding-top:0;
    font-size: 3.56vh;
    line-height: 1.2;
    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:29.5%
}
.left,.right{
    position: absolute;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
}
/*
.left.go1{

    top:16.40%;
    left:-15.82%;
    width:49.9%;
    height:69.53%;

    background-image: url('../img/go1_l.png');

}
.left.go2{
    top:26.82%;
    left:-10.25%;
    width:32.81%;
    height:61.06%;

    background-image: url('../img/go2_l.png');

}
.left.go3{

    top:27.86%;
    left:-5.85%;
    width:30.37%;
    height:66.66%;

    background-image: url('../img/go3_l.png');


}
.right.go1{

    top:40.49%;
    right:-6.64%;
    width:30.17%;
    height:35.28%;

    background-image: url('../img/go1_r.png');


}
.right.go2{

    top:32.68%;
    right:-3.32%;
    width:22.94%;
    height:58.99%;

    background-image: url('../img/go2_r.png');


}
.right.go3{

    top:37.63%;
    right:-3.9%;
    width:22.46%;
    height:54.04%;

    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:316px;
        height:471px;
        top:49px;
        left:0;

        margin:  auto;
        background-size: 100%;
        background-repeat: no-repeat;
        background-image: url('../img/intro_logom.png')
    }
    #title{
        display: none;
        width:320px;
        line-height: 1;
        padding: 30px 0 0;
        margin: auto;
        font-size: 30px;
    }

    .button{
        width:318px;
        height:50px;
        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 {
        position: relative;
        top:61px;
    }

    #htp-text-container {
        width: 290px;
        height: 223px;
        top: 188px;
        position: relative;
        margin: auto;
        background: url(../img/htp_textm.png) center center no-repeat;
        background-size: 100% auto;
        display: flex;
    }
    #htp-title {
      align-self: center;
        padding: 0 10px;
        line-height: 1.1;
        text-align: center;
        color: white;
        font-size: 17px;
    }
    #htp-title br{
    display: none
    }

    /*          QUIZ PAGE               */
    .counter-container{


    }
    .counter-container p{

        line-height: 61px;
        font-size: 42px;

    }

    .question {
        margin: auto;
        width: 318px;
        height: 81px;
        position: relative;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-image: url(../img/question-bgd2m.png);
        z-index: 999929;
        top:105px;
    }
    #question-image{
        padding: 1px 2.1%;
    }
    .question-inner{
        height:100%;
        line-height: 1;
        overflow: hidden;
        display: table;
        vertical-align:middle;
    }
    #question-image-container {
        top:109px;
        margin: auto;
        width: 240px;
        height: 179px;
        position: relative;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-image: url(../img/question-bgd3m.png);
    }
    #question-image{
        padding: 6px;
    }
    .counter-container{
        position: relative;
    }
    .counter-container>img {
        position: relative;
        z-index: 99999999;
        left:0;
        height:44px;
        top:0;
        display: block;
        margin: 7px auto;

    }
    .answerContainer{
        width:100%;
        height:100%;
      position: relative;
        top:111px;
    }
    .question-inner-container>p{

        text-align: center;
        padding: 0 10px;
        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{
        color:white;
        background-image: url('../img/q-btt_correct.png');
    }
    .answer.wrong{

        background-image: url('../img/q-btt_wrong.png');
    }
    .answer p{
        font-size: 30px;

    }



.left{
		/*display: none;*/
        position: absolute;
        left: 50%;
        margin-left: -111px;
        top:33px;
        width:222px;
        height:160px;
        z-index: 9999;
        background-image: url('../img/l0_m.png');
    }
    .right{
      display: none;

    }
    .left.correct{
        left:50%;
        margin-left: -110px;
        top:31px;
        width:219px;
        height:161px;
        background-image: url('../img/l1_m.png');
    }

    .left.wrong{
        left:50%;
        margin-left: -111px;
        top:37px;
        width:222px;
        height:159px;
        background-image: url('../img/l2_m.png');
    }
    #question-header-container {
        width: 318px;
        height: 50px;
        margin: auto;
        background-size: 100% 100%;
        z-index: 999999;
        top: 100px;
        background-repeat: no-repeat;
        background-position: center;
        position: relative;
        background-image: url(../img/question-bgdm.png);
        display: flex;
    }
    #question-header {
        font-size: 30px;

    }
    #result-appla {
        display: none;
        position: absolute;
        top: 298px;
        left: 50%;
        margin-left: -159px;
        width: 318px;
        height: 288px;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-image: url(../img/truem.png);
        padding: 20px 10px;
    }
    #result-text > span{
        font-size: 50px;
    }
    #result-appla.wrong{
        background-image: url(../img/falsem.png);
    }
    /*          GAME OVER PAGE               */


    #correct-answers {

        font-size: 28px;
        margin-bottom: 180px;
    }
    #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: 2px 5px;
        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{


        top:11px;
        right:auto;
        left:50%;
        margin-left: -146px;

        z-index: 0;
        width:291px;
        height:232px;

        background-image: url('../img/go1_lm.png');
    }
    .left.go2{
        z-index: 0;
        top:11px;
        right:auto;
        left:50%;
        margin-left: -117px;
        width:237px;
        height:231px;
        background-image: url('../img/go2_lm.png');
    }
    .left.go3{
        position: absolute;
        top:13px;
        right:auto;
        left:50%;
        z-index: 0;
        margin-left:-103px;
        width:206px;
        height:228px;
        background-image: url('../img/go3_lm.png');
    }
    */


}

