* {
    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;
    font-size: 20px;
    line-height: 1.1
}
.transparent-medium {
    opacity: 0.6;
}
.transparent {
    opacity: 0;
}
.hidden {
    display: none !important;
}
#stage {
    margin: 0 auto;
    background: url("../images/BG05x.jpg") no-repeat;
    background-size: 100%;
    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;
}
#help {
    z-index: 100;
}

@-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;
}


#comic-main {
    overflow: hidden;
    border-radius: 0%;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0)
}

.image {
    background: url('../images/Comic.png') no-repeat;
    background-size: 100% 100%;
}

.overlay {
    background: rgba(0, 0, 0, 0.6);
    transition: opacity 1.2s;
}

.text, .text-rendered {
    position: absolute;
}
.text-rendered {
    border-radius: 6px;
}
.canvas-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5vh;
    border: 3px solid #e6965d;
    position: relative;
}
.canvas-wrap canvas {
    width: 100%;
    height: 100%;
}
.text {
    font-size: 100%;
    line-height: 1.1;
    padding: 0.9vh 0.5vw;
}
.canvas-wrap,.text {
    background: #faf6d1;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.character .canvas-wrap,
.text.character,
.arrow-comic .arrow-inner {
    background: #fff;
}
.character .canvas-wrap {
    border: 3px solid #53ccf9;
}
.narrator .arrow-comic {
    display: none !important
}
.arrow-comic {
    overflow: hidden;
    position: absolute;
    left: 50%;
    z-index: 1;
}
.arrow-inner {
    position: absolute;
    left: 19%;
    top: -34%;
    width: 67%;
    height: 67%;
    border: 3px solid #53ccf9;
    -webkit-transform: rotate(45deg);
    -moz-transform:    rotate(45deg);
    -ms-transform:     rotate(45deg);
    -o-transform:      rotate(45deg);
}
body.default-state .canvas-wrap, 
body.default-state .arrow-inner{
    border-width: 1px !important;
}
[data-position="top"] .arrow-inner {
    top: 67% !important
}

.progress-wrapper {
    position: absolute;
    width: 96%;
    height: 40%;
    top: 60%;
    left: 2%;
}
.progress-bar {
    width: 100%;
    height: 45%;
    border-radius: 12px;
    top: 28%;
    left: 0;
    position: relative;
}
.progress-bar-inner {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.progress-bar-inner-bg {
    height: 100%;
    width: 0;
    background: #48dcfc;
}

.progress-bar-circle {
    width: 6%;
    height: 130%;
    left: 0;
    top: -13%;
    background: #64c828;
    border: 2px solid #2a600b;
    position: absolute;
    border-radius: 50%;
}
.progress-section {
    position: absolute;
    height: 100%;
    top: 0;
    border: 1px solid #1d398a;
}
.batton {
    background: url(../images/SL_T06_BATTON.png) no-repeat;
    width: 100%;
    height: 2.3%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: 100% 100%;
}
.play-bar {
    position: absolute;
    width: 45%;
    height: 14%;
    bottom: -15%;
    opacity: 0;
    left: 27.5%;
    background: url(../images/comics_toolbar.png) no-repeat;
    background-size: contain;
}
.play-btn-wrapper {
    position: absolute;
    width: 40%;
    height: 60%;
    text-align: center;
    left: 30.5%;
    display: flex;
    justify-content: center;
}
.play-bar .btn {
    width: 29%; /*27% for 3 buttons control bar, 21% - for 4buttons*/
    height: 78%;
    display: inline-block;
    position: relative;
    top: 21%;
    background-size: contain;
    margin-right: 1%; /*2% for 3 buttons control bar, 1% - for 4buttons*/
}

/* 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: 37.7%;
    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%;
    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;
}
.hint{
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-radius: 55%;
    border: 0.7vh solid yellow;
    opacity: 0;
}

/* 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*/

.text.character {
    z-index: -1;
}
b {
    font-weight: 800;
}