*: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%;

}
#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: 58%;
    text-align: center;
    color:white;
    font-size: 4.21vh;
}

#htp-title{
    position: relative;
    padding-top: 10%;
    line-height: 1;
    text-align: center;
    color:white;
    font-size: 4.68vh;
}
#intro-logo{
    position: absolute;
    width:72.26%;
    height:74.86%;
    top:0%;
    left:12.89%;
    background-size:auto 100%;
    background-repeat: no-repeat;
    background-image: url('../img/intro_logo.png');
}

#start-button{
    position: relative;
    margin-top: 2.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{

}

/*          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{
    position: absolute;
    width:23.04%;
    height:11.45%;
    left:38.57%;
    top:1.82%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;

    z-index: 9999999;
    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.68%;
    height:26.43%;
    position: relative;
    top:10.16%;
    margin-bottom: 9%;

    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: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: 0.5% 5%;
    font-size:4vh ;
}
#question-image{
    padding: 2.1%;
    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;

}
#gfx.active{
    display: block;
    z-index: 100;
}
.quiz{
    position: relative;
    z-index:150;
}
.left{
    left:-20.12%;
    top:37.63%;
    width:52.73%;
    height:55.07%;
    background-image: url('../img/l1.png');
}
.right{
    right: -16.9%;
    top: 46.22%;
    width: 46.97%;
    height: 50.26%;
    background-image: url(../img/r1.png);
    overflow-y: hidden;

}
.left.correct{
    left:-19.24%;
    top:23.31%;
    width:48.92%;
    height:69.79%;

    background-image: url('../img/l2.png');
}
.right.correct{

    right:-20.90%;
    top:47.13%;
    width:47.55%;
    height:49.6%;

    background-image: url('../img/r2.png');
}



/*          GAME OVER PAGE               */
#correct-answers{
    color:black;
    text-align: center;
    font-size: 6.9vh;
    margin-bottom: 62%;
}
#summary-bgd{
    position: absolute;
    padding: 1% 2%;
    width:57.71%;
    height:69.14%;
    top:8.5%;
    left:21.19%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;

    color:white;

}
#summary-header2{

}
#summary-header1,#summary-header2{
    text-align: left;
    line-height: 0.95;
    font-size: 5.2vh;
    padding: 10% 0 0 7%;
}
#summary-description{
    text-align: left;
    text-transform: none;
    padding: 5% 7% 0 7%;
    font-size: 3.56vh;
    line-height: 1.5;
    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');
}
#summary-bgd.go4{

    background-image: url('../img/go4.png');
}
#summary-bgd.go5{

    background-image: url('../img/go5.png');
}
#summary-bgd.go6{

    background-image: url('../img/go6.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.go2,.left.go3,.left.go4,.left.go5,.left.go6{display: none;}


.right.go1 {
    top: 12.55%;
    right: 0.89%;
    width: 26.66%;
    height: 71.35%;
    background-image: url(../img/go1_r.png);
}

.right.go2{

    top: 31.45%;
    right: -8.92%;
    width: 36.91%;
    height: 56.90%;
    background-image: url('../img/go2_r.png');
}
.right.go3{

    top: 34.43%;
    right: -1.69%;
    width: 29.68%;
    height: 52.86%;
    background-image: url(../img/go3_r.png);
}

.right.go4 {
    top: 29.82%;
    right: -1.34%;
    width: 37.89%;
    height: 56.51%;
    background-image: url(../img/go4_r.png);


}
.right.go5{

    top:33.98%;
    left:3%;
    width:93.16%;
    height:48.56%;

    background-image: url('../img/go5_r.png');

}
.right.go6{

    top:57%;
    right:-10.64%;
    width:29.1%;
    height:27.21%;

    background-image: url('../img/go6_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: 315px;
        height: 372px;
        top: 63px;
        left: auto;

        margin: auto;
        background-size: 100%;
        background-repeat: no-repeat;
        background-image: url('../img/intro_logo_m.png');
    }

    #title {
        width: 320px;
        line-height: 1;
        padding: 84px 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;
    }

    #start-button {
        position: relative;
        margin-top: 16px;
    }

    #htp-title {
        font-size: 19px;

        padding: 425px 35px 0;
        line-height: 1.2;
    }

    #htp-title br {
        display: none
    }

    /*          QUIZ PAGE               */
    .counter-container {
        width: 161px;
        height: 61px;
        top: 115px;
        position: relative;
        left: auto;
        margin: auto;
    }


    .counter-container p {

        line-height: 61px;
        font-size: 42px;

    }

    .question {
        top: 97px;
        padding-top: 1px;
        z-index: 99;

        margin-bottom: 0;
        width: 320px;
        height: 129px;


    }

    #question-image {
        padding: 1px 2.1%;
    }

    .question-inner {
        height: 100%;
        line-height: 1;
        overflow: hidden;
        display: table;
        vertical-align: middle;
    }

    .counter-container {
        position: relative;
    }

    .counter-container > img {
        position: relative;
        z-index: 99999999;
        left: 0;
        top: 0;
        display: block;
        margin: 10px auto;

    }

    .answerContainer {
        width: 100%;
        height: 100%;
        margin-top: 102px;
    }

    .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 {
        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: static;

        margin: 0 auto;

        width: 302px;
        height: 177px;
        z-index: 9999;
        background-image: url('../img/l1_m.png');
    }

    .right {
        display: none;

    }

    .left.correct {
        width: 306px;
        height: 217px;
        background-image: url('../img/l2_m.png');
    }

    .left.wrong {
        left: 50%;
        margin-left: -116px;
        top: 53px;
        width: 217px;
        height: 110px;
        background-image: url('../img/l2_m.png');
    }

    /*          GAME OVER PAGE               */
    #correct-answers {

        font-size: 28px;
        margin-bottom: 187px;
    }

    #summary-bgd {
        margin: auto;
        position: relative;
        top: 232px;
        padding: 7px;
        width: 320px;
        height: 289px;
        left: auto;

        z-index: 101;
    }

    #summary-header2 {
        padding-top: 2px;
    }

    #summary-header1, #summary-header2 {


        font-size: 23px;
    }

    #summary-description {
        line-height: 1.3;
        padding-top: 16px;
        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: 245px;
        left: auto;
    }

    .right.go1 {

        display: block;
        top: 0px;
        right: auto;
        left: 23px;
        margin: auto;

        z-index: 0;
        width: 222px;
        height: 348px;

        background-image: url('../img/go1_rm.png');
    }

    .right.go2 {
        display: block;
        top: 0px;
        right: auto;
        left: 22px;
        margin: auto;

        z-index: 0;
        width: 317px;
        height: 354px;

        background-image: url('../img/go2_rm.png');
    }

    .right.go3 {
        display: block;
        top: 18px;
        right: auto;
        left: 55px;
        margin: auto;

        z-index: 0;
        width: 229px;
        height: 306px;

        background-image: url('../img/go3_rm.png');
    }

    .right.go4 {
        display: block;
        top: 16px;
        right: 0;
        left: -73px;
        margin: auto;

        z-index: 0;
        width: 352px;
        height: 394px;

        background-image: url('../img/go4_rm.png');
    }

    .right.go5 {
        display: block;
        top: 26px;
        right: 0;
        left: 18px;
        margin: auto;

        z-index: 0;
        width: 291px;
        height: 258px;

        background-image: url('../img/go5_rm.png');
    }

    .right.go6 {
        display: block;
        top: 52px;
        right: 0;
        left: 42px;
        margin: auto;

        z-index: 0;
        width: 260px;
        height: 212px;

        background-image: url('../img/go6_rm.png');
    }

    .left.go1, .left.go2, .left.go3, .left.go4, .left.go5, .left.go6 {
        display: none;
    }
    #gfx{
        margin: auto;
        width: 320px;
        pointer-events: none;

        height: 100%;
        position: absolute;
        top: 0;
        

        left: 50%;
        margin-left: -160px;
    }
}