* {
  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;
}
.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;
}
.content {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.btn {
  display: block;
  background-size: 100%;
  background-repeat: no-repeat;
  cursor: pointer;
}
.batton {
    width: 100%;
    height: 2%;
    background: url("../images/SL_BATTON.png") no-repeat;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.hint-block {
  width: 80%;
  height: 73%;
  position: absolute;
  top: 18%;
  left: 10%;
  background: url("../images/SL_T07_PLAY_PANEL.png") no-repeat;
  background-size: 100%;
  display: none;
  opacity: 0;
}
.sentence-wrapper {
  position: absolute;
  width: 86%;
  top: 53%;
  left: 7%;
    text-align: center;
}
.cards-wrapper {
  position: absolute;
  width: 90%;
  height: 28%;
  top: 65%;
  left: 5%;
}
.word-sentence {
  display: inline;
  position: relative;
  margin: 0 2% 0 0;
  font-size: inherit;
}
.card {
  position: absolute;
  background: url("../images/SL_T07_GAME_TILE.png") no-repeat;
  background-size: 100%;
  height: 90%;
}
.card-image {
  position: absolute;
  left: 10%;
  width: 80%;
  height: 55%;
  top: 5%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.card-text {
    position: absolute;
    height: 30%;
    width: 100%;
    text-align: center;
    /*bottom: 0%;*/
    top: 70%;
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    line-height: 1;
}
.hint-wrapper {
  position: absolute;
  width: 28%;
  height: 40.5%;
  top: 6%;
  left: 36%;
  background: url("../images/SL_T07_GOLD_RING.png") no-repeat;
  background-size: 100%;
  background-color: white;
  border-radius: 50%;
}
.hint-image {
  position: absolute;
  width: 70%;
  height: 70%;
  left: 15%;
  top: 15%;
  background-repeat: no-repeat;
  background-position: center;
}

.success-tracker {
  position: absolute;
  top: -12%;
  left: 37.6%;
  width: 22.5%;
  height: 11%;
  background: url("../images/SUCCESS_TRACKER.png") no-repeat;
  background-size: 100%;
  opacity: 0;
}
.success-score {
  position: absolute;
  height: 50%;
  width: 13%;
  border-radius: 50%;
  top: 11%;
  background-size: 100%;
}
.coin {
  position: absolute;
  background: url("../images/SL_SUCCESS_COIN_GREY.png") no-repeat;
  background-size: contain;
  width: 30%;
  height: 100%;
  top: -12%;
  left: 85%;
  display: block;
}
.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;
}
.border-wrapper {
  position: absolute;
  width: 100%;
  height: 69%;
  border-radius: 10%;
}

#maze {
  position: absolute;
  width: 100%;
  height: 100%;
}
.hint-opacity {
  position: absolute;
  border: 0.7vh solid yellow;
  opacity: 0;
  border-radius: 15%;
  z-index: 21;
}
#success{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}
.finished {
  position: absolute;
  top: 36.3%;
  left: 39.5%;
  width: 21%;
  height: 30%;
  z-index: 320;
  display: none;
}
#help {
  z-index: 100;
}

/* 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%;
    top: 46%;
    left: 42%;
}
[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;
}
.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;
}
/* unit section ribbon end*/

.inner-text{
    /*position: absolute;*/
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    /*overflow: hidden;*/
    width: auto;
    height: auto;
}
.hidden-text {
    width: auto;
    height: auto;
    top: 5%;
    left: -2000%;
}
.inner-ready-three {
    width: 90%;
    top: 5%;
    left: 5%;
    height: 90%;
    font-size: 3vh;
}
.inner-ready-two {
    width: 90%;
    top: 5%;
    left: 5%;
    height: 90%;
    font-size: 2.5vh;
}
.inner-ready-one {
    width: 90%;
    top: 5%;
    left: 5%;
    height: 90%;
    font-size: 2.1vh;
    line-height: 1.1;
}

.card-text, .sentence-wrapper {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: 3vh;
}

.inner-text {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
}