* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}
@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;
}
.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: 80.6%;
  height: 67.5%;
  background: url("../images/SL_T04_PLAY_PANEL_V02_X2.png") no-repeat;
  background-size: 100%;
  position: absolute;
  bottom: -2%;
  left: 17.6%;
  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;
}
.words-wrapper {
  width: 98%;
  height: 25%;
  position: absolute;
  top: 71%;
  left: 2%;
  z-index: 300;
  text-align: center;
}
.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;
}
.button {
  width: 87%;
  height: 35%;
  display: flex;
  display: -webkit-flex;
  position: absolute;
  font-size: 3vh;
  background: url("../images/button_static.png") no-repeat;
  background-size: 100% 100%;
  color: white;
  text-align: center;
  /*overflow: hidden;*/
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.drag {
  background: url("../images/button_drag.png") no-repeat;
}
.success-tracker {
  position: absolute;
  top: -2.5%;
  left: 31.5%;
  width: 33%;
  height: 14%;
  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%;
  left: -1%;
  width: 28.5%;
  height: 73%;
  z-index: 100;
  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;
}
/* unit section ribbon end*/

.inner-text {
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
}
.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.3vh;
  line-height: 1.05;
}
.inner-ready-one {
  width: 90%;
  top: 5%;
  left: 5%;
  height: 90%;
  font-size: 1.8vh;
  line-height: 0.85;
}
.firefox-three {
  font-size: 2.8vh;
}
.firefox-two {
  font-size: 2vh;
}