
/*font-family: 'Nunito', sans-serif;*/


*: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: "lubalin";
    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%;
    z-index: 88888;
}
#soundBtt.active{
    background-image: url('../img/sound_off.png');
}

/*          INTRO               */

#title{
    position: absolute;


    width:63.38%;
    height:22.78%;
    top:64.84%;
    left:18%;
    background-size:auto 100%;
    background-repeat: no-repeat;
    background-image: url('../img/logo.png');


    font-size: 4.21vh;
}

#title1{
    position: absolute;
    width:100%;
    left:28%;
    text-align: left;
    top:32%;
    color:white;
    font-size:6.29vh;
}
#title2{
    position: absolute;
    width:100%;
    left:34%;
    top:67%;
    color:#F85955;
    font-size: 4.29vh;
}
#intro-logo{
    position: absolute;
    width:42.77%;
    height:66.93%;
    top:3.25%;
    left:28.51%;
    background-size:auto 100%;
    background-repeat: no-repeat;
    background-image: url('../img/intro_logo.png');
}

#start-button{
    position: absolute;
    top:88.54%;
    left:25.97%;
}
.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%;
    text-align: center;
}
.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: 3vh;
    font-family: 'Nunito', sans-serif;
    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:2.2%;
    top:53.51%;
    width:19.04%;
    height:40.75%;
    background-image: url('../img/l1.png');
}
.right{
    right: 0%;
    top: 51.04%;
    width:24.7%;
    height:42.45%;
    background-image: url(../img/r1.png);
    overflow-y: hidden;

}
.left.correct{
    left:1.5%;
    top:53.64%;
    width:22.75%;
    height:41%;

    background-image: url('../img/l2.png');
}
.right.correct{

    right:-5%;
    top:49.34%;
    width:30.37%;
    height:43.88%;

    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.1vh;
    line-height: 1;
    font-family: 'Nunito', sans-serif;
}
#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');
 }
#summary-bgd.go7{

    background-image: url('../img/go7.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{display: none;}



.left.go2{
    top: 55.73%;
    left: 1.1%;
    width: 25.2%;
    height: 31.25%;
    background-image: url(../img/go2_l.png);

}

.left.go3{
    top: 46.88%;
    left: 4.58%;
    width: 12.1%;
    height: 47.13%;
    background-image: url(../img/go3_l.png);

}

.left.go4{
    top: 45.18%;
    left: 2.34%;
    width: 25.68%;
    height: 50.13%;
    background-image: url(../img/go4_l.png);

}

.left.go5{
    top: 65.23%;
    left: 2.54%;
    width: 24.61%;
    height: 25.39%;
    background-image: url(../img/go5_l.png);

}

.left.go6{
    top: 32.29%;
    left: -10%;
    width: 35.35%;
    height: 60.81%;
    background-image: url(../img/go6_l.png);

}

.left.go7{
    top: 23.96%;
    left: -7.1%;
    width: 25.97%;
    height: 70.96%;
    background-image: url(../img/go7_l.png);

}


.right.go {
    top: 45.18%;
    right: 0.89%;
    width: 25.58%;
    height: 48.04%;
    background-image: url(../img/go_r.png);
}


.image-button{
    vertical-align: top;
    display: inline-block;
    width:26.07%;
    height:20.83%;
    text-align: center;
    color:white;
    margin: 0.5%;
    cursor: pointer;
    position: relative;
}
.image-button:nth-child(1),.image-button:nth-child(3){
    margin-left: 20%;
}
.image-button:nth-child(2),.image-button:nth-child(4){
    margin-right: 20%;
}
.no-touch .image-button:hover{
    background-image: none;
}

.inner-image-answer{
    width:100%;
    height:100%;
    background-size: 100% 100%;
    position: relative;
    background-image: url('../img/image_quiz_assets/image_question_bgd.png');
}
.no-touch .image-button:hover>.inner-image-answer{
    color:white;

    background-image: url('../img/image_quiz_assets/image_question_bgd_on.png');
}
.image-button.correct>.inner-image-answer{
    background-image: url('../img/image_quiz_assets/image_question_bgd_good.png');
}
.inner-image-answer p{
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    padding-top: 48%;
}
.image-button>img{
    width:100%;
    height:100%;
    position: absolute;
    left:0;
    top:0;
    display: block;

}



@media only screen and (max-width:768px)  and (orientation: portrait) {

    #title1{
        font-size: 32px;
    }
    #title2{
        font-size: 22px;
    }
    html {

        width: 768px;
        height: auto;
    }
    #start-button{
        position: relative;
        left:auto;
        right:auto;
        top:30px;

    }
    #holder {
        height: 600px;

        background-size: 768px;
        background-repeat: no-repeat;
        background-position: top center;
    }

    .backgrounds {
        height: 600px;
    }

    #intro-logo {
        position: relative;
        width: 282px;
        height: 330px;
        top: 44px;
        left: auto;

        margin: auto;
        background-size: 100%;
        background-repeat: no-repeat;
        background-image: url('../img/intro_logo_m.png');
    }

    #title {
        background-size: 100%;
        position: relative;
        width: 415px;
        height:110px;
        top:28px;
        left:auto;
        right:auto;
        margin: auto;

        font-size: 30px;
    }

    .button {
        width: 320px;
        height: 45px;
        margin: auto;


    }

    .button p {
        font-family: "lubalin";

        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;
        top: 115px;
        position: relative;
        left: auto;
        margin: auto;
    }


    .counter-container p {

        line-height: 61px;
        font-size: 42px;

    }

    .question {
        top: 138px;
        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;
        top:155px;
    }

    .counter-container > img {
        position: relative;
        z-index: 99999999;
        left: 0;
        top: 0;
        display: block;
        margin: 10px auto;

    }

    .answerContainer {
        width: 100%;
        height: 100%;
        margin-top: 152px;
    }

    .question-inner-container > p {

        text-align: center;
        padding: 0 10px;
        font-size: 17px;
    }

    .image-button:nth-child(1),.image-button:nth-child(3){
        margin-left: 0;
    }
    .image-button:nth-child(2),.image-button:nth-child(4){
        margin-right: 0;
    }
    .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');
    }
    .button.answer.correct{
        background-image: url('../img/q-btt_correct.png');
    }
    .image-button.answer.disabled.correct>.inner-image-answer{
        background-image: url(../img/image_quiz_assets/image_question_bgd_good.png);
    }
    .answer.disabled.correct >.inner-image-answer>{
        background-image: url('../img/q-btt_correct.png');
    }


    .answer p {
        font-size: 15px;

    }
    .image-button{
        width:156px;
        height:96px;
    }

    .left {
        position: static;

        margin: 35px auto auto;

        width: 270px;
        height: 185px;
        z-index: 9999;
        background-image: url('../img/l1_m.png');
    }

    .right {
        display: none;

    }

    .left.correct {
        width: 300px;
        height: 192px;
        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.1;
        padding-top: 6px;
        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.go {

        display: none;

    }

    .left.go1 {
        position: relative;
        margin: auto;
        top:11px;
        z-index: 0;
        width: 242px;
        height: 340px;
        display: block;
        background-image: url('../img/go_r.png');
    }

    .left.go2 {
        position: relative;
        margin: auto;
        top:30px;
        z-index: 0;
        width: 237px;
        height: 221px;
        display: block;
        background-image: url('../img/go2_l.png');
    }

    .left.go4 {
        position: relative;
        margin: auto;
        top:11px;
        z-index: 0;
        width: 221px;
        height: 323px;
        display: block;
        background-image: url('../img/go4_l.png');
    }
    .left.go5 {
        position: relative;
        margin: auto;
        top:60px;
        z-index: 0;
        width: 252px;
        height: 195px;
        display: block;
        background-image: url('../img/go5_l.png');
    }
    .left.go6 {
        position: relative;
        margin: auto;
        left:auto;
        top:23px;
        z-index: 0;
        width: 266px;
        height: 342px;
        display: block;
        background-image: url('../img/go6_l.png');
    }
    .left.go7 {
        position: relative;
        margin: auto;
        left:auto;
        top:-30px;
        z-index: 0;
        width: 220px;
        height: 449px;
        display: block;
        background-image: url('../img/go7_l.png');
    }
    #gfx{
        margin: auto;
        width: 320px;
        pointer-events: none;

        height: 100%;
        position: absolute;
        top: 0;
        

        left: 50%;
        margin-left: -160px;
    }
}

@media only screen and (max-width:415px)  and (orientation: portrait) {
    #title {
        background-size: 100%;
        position: relative;
        width: 100%;

        padding-bottom: 27%;
        height: 0;
        top: 28px;
        left: auto;
        right: auto;
        margin: auto;

        font-size: 30px;
    }
    #title1 {
        top:30%;
        font-size: 7.6vw;
    }
    #title2 {
        font-size: 5.5vw;
        left:32%
    }
}

