/*
    This css should contain all styling for games elements only, or override the style for specific game.
    eg. Health bar on shooting game,
*/

body {
	background-image: url('../images/background.jpg');
	background-size: cover;
}

.stage {
    width: 100%;
    max-width: 768px;
    height: 100%;
    margin: 0 auto;
    background-color: #331c64;
}

.stg-head {
    height: 10%;
    font-size: 0;
    background-color: #5b237c;
    display: inline-flex;
    width: 100%;
    box-shadow: 0px 2px 8px 0px #000000;
}

.stg-head div {
    height: 100%;
    display: inline-table;
    width: 33%;
    vertical-align: top;
    font-size: 20px;
    text-align: center;
}

.stg-head div img {
    border-radius: 50%;
    height: 60px;
    width: 60px;
    box-sizing: border-box;
    cursor: pointer;
}

.stg-head div span {
    display: table-cell;
    color: #fff;
    vertical-align: middle;
    text-align: center; 
}

.learning-points {
    position: relative;
    left: 20px;
}

.learning-points:after {
    content: '';
    background-image: url(../images/learning-coins.png);
    width: 21px;
    height: 21px;
    position: absolute;
    background-size: 100%;
    background-repeat: no-repeat;
    top: -3px;
    left: calc(50% - -10px);
    bottom: 0;
    margin: auto;
}

.learning-points i {
    font-style: normal;
}

.stg-body {
    font-size: 0;
    height: 54%;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.img-list {
    height: 100%;
    padding-top: 7px;
    text-align: center;
    max-width: 680px;
    margin: auto;
}

.img-list div {
    width: 45%;
    display: inline-block;
    height: 45%;
    margin: 5px 8px;
    box-sizing: border-box;
    border: 2px solid #53a503;
    background-color: #252525;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.img-list div:before {
    content: '';
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
    background-image: url('../../assets/images/loader.gif');
    background-size: 40px;
    background-repeat: no-repeat;
}

.img-list div img {
    width: auto;
    display: block;
    height: 100%;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.swiper-slide {
    display: inline-block;
    width: auto;
}

.swiper-slide span {
    display: table;
    text-align: center;
    border: 2px solid #9a9186;
    height: 40px;
    width: 40px;
    margin-bottom: 7px;
    background-color: #fff;
}

.swiper-slide span i {
    display: table-cell;
    vertical-align: middle;
    color: #de6d2b;
    font-style: normal;
    text-transform: uppercase;
    font-size: 28px;
}

.answer-selection .swiper-slide {
    height: 100%;
}

.swiper-container {
    padding: 0 45px;
    position: relative;
    text-align: center;
}

.swiper-wrapper {
    white-space: nowrap;
    display: inline-table;
}

.swiper-button-prev, 
.swiper-button-next {
    background-size: 15px;
    position: absolute;
    background-color: #de6e2a;
    top: 18px;
    height: 50px !important;
    width: 40px;
}

.swiper-button-next {
    right: 0;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E") !important;
}

.swiper-button-prev {
    left: 0;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E") !important;
}

.swiper-button-next.swiper-button-disabled, 
.swiper-button-prev.swiper-button-disabled {
    opacity: 1;
    display: none;
}

.answer-selection.swiper-container .swiper-button-next,
.answer-selection.swiper-container .swiper-button-prev {
    height: 104px !important;
}

.stg-footer {
    height: 34%;
}

.img-preview {
    height: 100%;
    position: absolute;
    z-index: 1;
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
    text-align: center;
    background-color: #fff;
}

.img-preview img {
    height: 100%;
}

.img-preview {
    display: none;
}

.close-preview {
    position: absolute;
    z-index: 1000;
    color: #de6e2a;
    border: 1px solid;
    font-size: 23px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-table;
    background-color: rgba(0, 0, 0, 0.2);
    right: 10px;
    top: 10px;
}

.close-preview i {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    font-style: normal;
}

span.remove i,
span.selected i {
    color: #fff;
}

.hidden {
    display: none !important;
}

.stg-head div:first-child {
    /*padding-left: 10px;*/
    box-sizing: border-box;
}

.img {
    width: 100% !important;
    display: table-cell !important;
    vertical-align: middle !important;
    padding: 8px;
}

@media (min-width: 768px){

    .stg-head div span
    {
        font-size: 30px;
    }

    .stg-body {
        height: 60%;
    }

    .stg-footer {
        height: 28%;
    }

}

@media (max-width: 768px){
    .stg-head div img {
        border-radius: 50%;
        height: 45px;
        width: 45px;
        box-sizing: border-box;
        cursor: pointer;
    }

    
}

@media (max-width: 360px){
    .stg-head div img {
        border-radius: 50%;
        height: 35px;
        width: 35px;
        box-sizing: border-box;
        cursor: pointer;
    }
}

.titleImg{
    background-image: url(../images/title.png);
    display: block !important;
    margin: 0 auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 70%;
    height: 40%;
}

.skipButton{
    width: 100px !important;
    height: 50px !important;
    box-sizing: border-box;
    border: 2px white solid;
    border-left: none;
    border-radius: 0px 50px 50px 0px;
    background-color: #331c64;

}

.skipButton > span{
    color: #fff;
    line-height: 40px;
    font-size: 20px !important;
}

.noselect{
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
    cursor: pointer;
}

#bt :hover{
    background-color: #6136bb;
}

.imageLoader{
    position: absolute;
    width: 100%;
    height: 100%;
    background: #252525;
    z-index: 100;
}

.loadText{
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    top: calc(50% - 60px);
    font-size: 20px;
    font-family: arial;
    font-weight: bold;
    color: white;
}