* {
    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%;
    overflow: hidden;
}
body {
    font-family: SassoonSans;
}
svg {
    width: 100%;
    height: 100%;
}
.transparent {
    opacity: 0;
}
.hidden {
    display: none !important;
}
#stage {
    margin: 0 auto;
    /*background:#7CF7F8;*/
    /*background-size: 100%;*/
    position: relative;
    overflow: hidden;
}
#loader {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1;
    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;
}

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

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

#intro, .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.full-screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

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


.sky {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: url('../images/SKY.png') no-repeat;
    background-position: center center;
    transition: 2s all;
}
.hills {
    width: 100%;
    height: 20%;
    position: absolute;
    left: 0;
    bottom: 15%;
    background: url('../images/HILLS.png') no-repeat;
    background-size: cover;
    background-position: 35% bottom;
    transition: 1s all linear;
}
.bottom-panel{
    width: 100%;
    height: 15%;
    position: absolute;
    left: 0;
    bottom: 0;
    background: url('../images/TOOL_BAR.png') no-repeat;
    /*background-position: center center;*/
    transition: 2s all;
    background-size: 100% 200%;
}

.grass{
    width: 100%;
    height: 8%;
    position: absolute;
    right: 0;
    /*left:auto;*/
    bottom: 13.5%;
    background: url('../images/MID_GROUND.png') no-repeat;
    background-size: cover;
    /*background-position: center center;*/
    /*transition: 1s all ease-in;*/
}
.stamps-list{
    width:100%;
    height:100%;
    position: relative;
}
.stump{
    width: 10%;
    height: 15%;
    position: absolute;
    right: auto;
    left:0;
    bottom: 15%;
    background: url('../images/STUMP.png') no-repeat;
    background-size: 100%;
    background-position: center bottom;
    transition: 1s all ease-in;
}
.man{
    width: 4%;
    height: 50%;
    position: absolute;
    right: auto;
    left: 1%;
    bottom: 18%;
    background: url('../images/chars/FIONN_GAME_01.png') no-repeat;
    background-size: 100%;
    background-position: center bottom;
    /*transition: 1s all ease-in;*/
}
.dog{
    width: 4%;
    height: 20%;
    position: absolute;
    right: 0;
    left:auto;
    bottom: 18%;
    background: url('../images/chars/SALANN_GAME.png') no-repeat;
    background-size: 100%;
    background-position: center bottom;
    /*transition: 1s  ease-in;*/
}
.united{
    width: 17%;
    height: 50%;
    bottom: 20%;
    position: absolute;
    right: 0;
    left:auto;
    background: url('../images/chars/FIONN_GAME_03.png') no-repeat;
    background-size: 100%;
    background-position: center bottom;
    transition: 3s all;
    display:none;
    z-index:311;
}
.overlay {
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 1.2s;
}
.words-block{
    display:flex;
    flex-direction:row;
    width:100%;
    justify-content: space-around;
    height: 40%;
    margin-top:3%;
    /*transition: 1s all;*/
}
.words-block.moved-down{
    margin-top:35%;
}
.word-wrapper{
    flex:1 1 auto;
    position:relative;
    display:flex;
    justify-content: center;
    flex-direction: column;
}
.word-wrapper, .sentence-panel {
    font-size: 3.2vh;
}
.word{
    background: url('../images/buttons/SL_T05_4WORD_NORMAL.png') no-repeat;
    background-size: 100% 100%;
    color:#fff;
    text-align:center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    /*font-size:26px;*/
    z-index:6;
    -webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;          /* Likely future */
}
.inner-text {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.word:hover{
    background: url('../images/buttons/SL_T05_4WORD_HOVER.png') no-repeat;
    background-size: 100% 100%;
    cursor: all-scroll;
}
.word.active{
    background: url("../images/buttons/SL_T05_4WORD_CLICKED.png") no-repeat;
    background-size: 100% 100%;
    cursor: all-scroll;
}
.word.correct{
    background: url('../images/buttons/SL_T05_4WORD_CORRECT.png') no-repeat;
    background-size: 100% 100%;
}
.word.incorrect{
    background: url('../images/buttons/SL_T05_4WORD_INCORRECT.png') no-repeat;
    background-size: 100% 100%;
}

.sentence-panel{
    position:absolute;
    display:block;
    bottom:15%;
    height:6.5%;
    width:70%;
    left:15%;
    /*transition: 1s all;*/
    z-index:5;
}
.sentence-panel .word-placeholder{
    display:block;
    float:left;
    position:relative;
    height: 100%;
}

.word-placeholder .dummy-border{
    border-top: 0.5vh dashed #FCB31D;
    border-left: 0.5vh dashed #FCB31D;
    border-bottom: 0.5vh dashed #FCB31D;
    border-collapse: collapse;
    width:100%;
    height:100%;
    display:block;
    position:absolute;
    border-radius:0.5vh;
}
.step-block{
    position:absolute;
    top:10%;
    left:50%;
    margin-left: -17%;
    width: 34%;
    height:46%;
}
.step-block .question{
    width: 99%;
    height: 98%;
    top: 1%;
    left: 1%;
    border-radius:50%;
    background:#fff;
    position:absolute;
    overflow:hidden;
    transform: scale(0);
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center center;
}

.question {
    background-size: contain;
    background-repeat: no-repeat;
}
.step-block .ring{
    width:100%;
    height:100%;
    background: url('../images/RING.png') no-repeat;
    background-size: 100% 100%;
    position:absolute;
    transform: scale(0);
}
.step-block .steps{
    position:absolute;
    width: 66%;
    height: 20%;
    top: -200%;
    left: 50%;
    margin-left: -38%;
    background: url('../images/SUCCESS_TRACKER.png') no-repeat;
    background-size: 100%;
    transition: 2s all;
}
.step-block .steps .step-point{
    position:absolute;
    width:12%;
    height:auto;
    margin-top: 4%;
    transform: scale(0);
}
.step-block .steps .step-point:first-of-type{
    left: 10%;
}
.step-block .steps .step-point:nth-child(2){
    left:31%;
}
.step-block .steps .step-point:nth-child(3){
    left:50%;
}
.step-block .steps .step-point:last-of-type{
    left: 68%;
}
.step-block .coin{
    background: url('../images/COIN_GREY.png') no-repeat;
    background-size: 100%;
    position:absolute;
    left: 67%;
    top: -200%;
    width: 23%;
    height: 23%;
    transition: 2s all;
}

#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;
}
.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 500ms;
    border-radius: 0.5vh;
}
.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;
}
.button-shadow {
    box-shadow: 0 1vh 1vh 0 #696969;
}
.content{
    position: absolute;
    width: 100%;
    height: 100%;
}
#help{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 100;
}
.batton {
    position: absolute;
    width: 100%;
    height: 2%;
    top: 0;
    background: url('../images/SL_BATTON.png') no-repeat;
    background-size: 100% 100%;
    z-index: 500; /*due to high intro value */
}
/* buttons assets section start*/
[data-btn-id="playintro"] {
    background-image: url("../images/btn.playintro.static.png");
    background-size: 100%;
    position: absolute;
    width: 15%;
    height: 21%;
    top: 44.8%;
    left: 42.6%;
    z-index: 500;
    border-radius: 50%;
}
[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;
}
[data-btn-id="back"] {
    background-image: url("../images/btn.back.static.png");
    background-size: contain;
}
[data-btn-id="next"] {
    background-image: url("../images/btn.next.static.png");
    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;
}
.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%;
    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;
}
/* unit section ribbon end*/