* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
@font-face {
    font-family: SassoonSans;
    src: url(fonts/SassoonSansCJFTwo-Regular_EDIT.ttf), url(fonts/SassoonSansCJFTwo-Regular_EDIT.eot);
    font-size: 1vh;
}
html,body {
    height: 100%;
    max-height: 100%;
}
body {
    font-family: SassoonSans;
    overflow: hidden;
    position: fixed;
    width: 100%;
    font-weight: 600;
    line-height: 0.8;
    font-size: 2vh;
}
.transparent {
    opacity: 0;
}
.hidden {
    display: none !important;
}
#stage {
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
#loader {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}
#intro {
    z-index: 400;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.full-screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}

.btn {
    display: block;
    background-size: 100%;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* Add animation to "page content" */
.animate-bottom {
    position: relative;
    -webkit-animation-name: animatebottom;
    -webkit-animation-duration: 1s;
    animation-name: animatebottom;
    animation-duration: 1s;
}

@-webkit-keyframes animatebottom {
    from { bottom:-100px; opacity:0 }
    to { bottom:0px; opacity:1 }
}

@keyframes animatebottom {
    from{ bottom:-100px; opacity:0 }
    to{ bottom:0; opacity:1 }
}
/*end loader section*/

.content {
    width: 100%;
    height: 100%;
    background: url("../images/SL_T04_BG.png") no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
.batton {
    width: 100%;
    height: 2%;
    background: url("../images/SL_BATTON.png") no-repeat;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 500; /*due to high intro value */
}
.play-panel {
    width: 84.6%;
    height: 69.5%;
    background: url("../images/sentence_panel.png") no-repeat;
    background-size: 100%;
    position: absolute;
    bottom: 7%;
    left: 1%;
    display: none;
}
.play{
    width: 50px;
    height: 20px;
    display: block;
    position: absolute;
    top: 10%;
    left: 10%;
    background-color: red;
}
.cards-wrapper {
    width: 100%;
    height: 44%;
    position: absolute;
    top: 25%;
    left: 4.5%;
    z-index: 300;
}
.card {
    height: 100%;
    position: relative;
    display: inline-block;
    background: url("../images/SL_T04_CARDS_V03.png") no-repeat;
    background-size: 100% 100%;
    margin: 0 2% 0 0;
    float: left;
}
.inner-image {
    width: 82%;
    height: 70%;
    position: absolute;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    top: 5%;
    left: 8%;
    text-align: center;
    background-position: center;
}
.slot{
    width: 85%;
    height: 25%;
    position: absolute;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    left: 8%;
    bottom: 0;
}
.words-wrapper {
    width: 98%;
    height: 51%;
    position: absolute;
    top: 47%;
    left: 1%;
    z-index: 300;
    text-align: center;
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    /* flex-flow: row wrap; */
    justify-content: space-around;
    align-items: center;
}
.button {
    /* width: 18%; */
    /* height: 86%; */
    /* top: 0; */
    display: flex; 
    display: -webkit-flex;
    /* justify-content: center; */
    /* flex-direction: row; */
    text-align: center;
    /* position: absolute; */
    font-size: 3vh;
    background: url(../images/button_static.png) no-repeat;
    background-size: 100% 100%;
    color: white;
    text-align: center;
    /* overflow: hidden; */
    padding: 1.5% 2%;
    margin: 0.5%;
    max-width: 20%;
    min-width: 12%;
    max-height: 42%;
    min-height: 42%;
    text-align: center;
}
.inner-text {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
}
.button.drag {
    background-image: url("../images/button_drag.png");
    cursor: url("../images/cursor.drag.png"), auto;
}
.button.incorrect {
    background-image: url("../images/button_incorrect.png");
}
.button.moving {
    background-image: url("../images/button_incorrect_moving.png");
}
.success-tracker {
    position: absolute;
    top: -26%;
    left: 43%;
    width: 24%;
    height: 10%;
    background: url("../images/SL_SUCCESS_TRACKER.png") no-repeat;
    background-size: 100%;
}
.success-score {
    position: absolute;
    height: 50%;
    width: 13%;
    border-radius: 50%;
    top: 16%;
    background-size: 100%;
}
.border-opacity {
    box-shadow: 0 0 0 0.8vh rgba(255,255,0,1);
    -webkit-box-shadow: 0 0 0 0.8vh rgba(255,255,0,1);
    transition: linear 200ms;
}
.remove-opacity {
    box-shadow: 0 0 0 0.8vh rgba(255,255,0,0);
    -webkit-box-shadow: 0 0 0 0.8vh rgba(255,255,0,0);
    transition: ease-out 3s;
}


.character {
    position: absolute;
    bottom: -17%;
    right: -1%;
    width: 28.5%;
    height: 73%;
    z-index: 1;
    display: block;
}
#success{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}
.finished {
    position: absolute;
    top: 35%;
    left: 39.5%;
    width: 22%;
    height: 30%;
    z-index: 320;
    display: none;
}
.coin {
    position: absolute;
    background: url("../images/SL_SUCCESS_COIN_GREY.png") no-repeat;
    background-size: contain;
    width: 35%;
    height: 135%;
    top: -25%;
    left: 87%;
    display: block;
}
#help {
    z-index: 1000;
}
.button-shadow {
    box-shadow: 0 1vh 1vh 0 #696969;
}

/* buttons assets section start*/
[data-btn-id="playintro"] {
    background-image: url("../images/btn.playintro.static.png");
    background-size: 100%;
    position: absolute;
    z-index: 500;
    border-radius: 50%;
    width: 15%;
    height: 21%;
    position: absolute;
    top: 44.8%;
    left: 42.6%;
}
[data-btn-id="close"] {
    background-image: url("../images/btn.close.static.png");
    position: absolute;
    width: 5%;
    height: 5.5%;
    top: 21.1%;
    left: 79.4%;
    z-index: 1001; /*check z-index for #help before*/
}
[data-btn-id="mute"] {
    background: url("../images/btn.mute.static.png") no-repeat;
    background-size: 100%;
}
[data-btn-id="retry"] {
    background: url("../images/btn.retry.static.png") no-repeat;
    background-size: 100%;
}
[data-btn-id="unmute"] {
    background-image: url("../images/btn.unmute.static.png");
}
[data-btn-id="pause"] {
    background: url("../images/btn.pause.static.png") no-repeat;
    background-size: contain;
}
[data-btn-id="play"] {
    background: url("../images/btn.play.static.png") no-repeat;
    background-size: contain;
}
[data-btn-id="swapleft"] {
    background: url("../images/btn.swapleft.static.png") no-repeat;
    background-size: contain;
}
[data-btn-id="fullscreen"] {
    background: url("../images/btn.fullscreen.static.png") no-repeat;
    background-size: contain;
}
[data-btn-id="info"] {
    background: url("../images/btn.info.static.png") no-repeat;
    background-size: contain;
}
/* buttons assets section end*/

/* control panel start*/
.control-panel {
    position: absolute;
    top: -12%;
    opacity: 0.2;
    right: 1%;
    height: 11%;
    width: 33%; /*26% for 3 buttons control bar, 33% - for 4buttons*/
    background: url("../images/TOOLBAR_4BTN.png") no-repeat;
    background-size: contain;
    text-align: center;
    z-index: 3;
}
.control-panel.active {
    opacity: 1;
    top: 2.8%;
}
.btn {
    display: block;
    background-size: 100%;
    background-repeat: no-repeat;
}
.control-panel .btn {
    width: 21%; /*27% for 3 buttons control bar, 21% - for 4buttons*/
    height: 78%;
    display: inline-block;
    position: relative;
    top: 12%;
    margin-right: 2%; /*2% for 3 buttons control bar, 1% - for 4buttons*/
}
div.btn.swap {
    border-radius: 1%;
    width: 13%;  /*17% for 3 buttons control bar, 13% - for 4buttons*/
    left: 3%; /*4% for 3 buttons control bar, 3% - for 4buttons*/
    position: absolute;
}
.btn-wrapper{
    width: 75%;
    height: 100%;
    position: absolute;
    top: 6%;
    left: 21%; /*23% for 3 buttons control bar, 21% - for 4buttons*/
    display: flex;
    justify-content: center;
}
/* control panel end*/

.logo {
    position: absolute;
    width: 9.5%;
    height: 5%;
    top: 4%;
    left: 2.5%;
    background: url("../images/00_LOGO_CJF.png") no-repeat;
    background-size: contain;
    z-index: 1;
}
/* unit ribbon section start*/
.unit-wrapper {
    position: absolute;
    display: block;
    bottom: 18%;
    left: 34%;
    width: 33.5%;
    height: 12.8%;
    background: url(../images/orientation_banner.png) no-repeat;
    background-size: contain;
    opacity: 0;
    text-align: center;
    color: white;
}
.unit-text {
    position: absolute;
    display: flex;
    top: 0%;
    left: 13.5%;
    width: 70%;
    height: 65%;
    font-size: 3vh;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    line-height: 1.1;
}

.sentence-wrapper {
    background: url(../images/sentence_wrap.png) no-repeat;
    background-size: 100% 100%;
    position: absolute;
    bottom: 15%;
    left: 5%;
    width: 90%;
    height: 40%;
}
.sentence-container {
    position: absolute;
    top: 5%;
    width: 96%;
    left: 2%;
    height: 40%;
    padding: 0 1%;
}
.sentence {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 4.5vh;
    line-height: 1.2;
    left: 0;
}
.heading-wrap {
    width: 99.2%;
    height: 14%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    top: 18%;
}
.sentence-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    min-width: 35%;
    max-width: 45%;
    height: 100%;
    width: auto;
}
.heading-bg {
    background: url(../images/sentence_heading.png) no-repeat;
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    display: flex;
    display: -webkit-flex;
    padding: 1.5% 3.5%;
    font-size: 3.5vh;
}
.heading-bg .inner-text {
    line-height: 1;
}