* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
@font-face {
    font-family: SassoonSans;
    src:  url(fonts/SassoonSansCJFTwo-Regular_EDIT.woff2) format('woff2'),
    url(fonts/SassoonSansCJFTwo-Regular_EDIT.woff) format('woff'),
    url(fonts/SassoonSansCJFTwo-Regular_EDIT.ttf) format('ttf'),
    url(fonts/SassoonSansCJFTwo-Regular_EDIT.eot) format('eot');
    font-size: 1vh;
}
html,body {
    height: 100%;
    max-height: 100%;
}
body {
    font-family: SassoonSans;
    font-size: 2vh;
    line-height: 1.1;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.transparent-medium {
    opacity: 0.6;
}
.transparent {
    opacity: 0;
}
.hidden {
    display: none !important;
}
#stage {
    margin: 0 auto;
    background: url("../images/SL_T09_BG.png") 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, #intro {
    z-index: 100;
    position: absolute;
}

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


#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/Story.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;
    display: -webkit-flex;
    justify-content: center;
    -webkit-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;
}
[data-btn-id="scale"] {
    background-image: url("../images/btn.scale.static.png");
    background-size: contain;
}
[data-btn-id="focloir"] {
    background-image: url("../images/btn.focloir.static.png");
    background-size: contain;
}
[data-btn-id="tab"] {
    background-image: url("../images/btn.tab.static.png");
    background-size: contain;
}
[data-btn-id="replay"] {
    background-image: url("../images/btn.replay.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: 45%; /*26% for 3 buttons control bar, 33% - for 4buttons*/
    background: url("../images/5_BUTTON_TRAY.png") no-repeat;
    background-size: 100% 100%;
    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: 10%;  /*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: 80%;
    height: 100%;
    position: absolute;
    top: 6%;
    left: 18%; /*23% for 3 buttons control bar, 21% - for 4buttons*/
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-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: 1000;
}
.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;
    display: -webkit-flex;
    top: 0%;
    left: 13.5%;
    width: 70%;
    height: 65%;
    font-size: 3vh;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
    -webkit-flex-direction: column;
    text-align: center;
}
/* unit section ribbon end*/

.text.character {
    z-index: -1;
}
b {
    font-weight: 800;
}
.comic-tile {
    width: 85%;
    height: 83%;
    position: absolute;
    top: 13%;
    left: 7.5%;
    background: url(../images/SL_T09_PAGE.png) no-repeat;
    background-size: contain;
    padding: 1% 2.5%;
}
.zero-padding {
    padding: 0;
}
.picture, .text-area {
    width: 48%;
    height: 100%;
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
}
.text-section {
    width: 100%;
    max-height: 100%;
    padding: 2% 1% 2% 2%;
    line-height: 1.3;
}
.picture {
    background-size: contain;
    background-repeat: no-repeat;
}
.text-block {
    position: relative;
    width: 100%;
    height: auto;
    /*display: flex;*/
    justify-content: flex-start;
    align-items: flex-start;
    -webkit-align-items: flex-start;
    -webkit-justify-content: flex-start;
    padding: 1%;
}
.char-name, .char-text {
    display: inline-block;
}

.char-name {
    color: #83288c;
    font-weight: 700;
    justify-content: flex-start;
    -webkit-justify-content: flex-start;
    /*min-width: 20%;*/
}
.char-text, .char-name {
    background-color: #edd0ed;
    padding: 1% 2%;
}
.marked-word {
    background-image: url("../images/SL_T09_CLICKABLE.png");
    background-size: 100% 100%;
    padding: 0 0.7vh;
    margin: 0 2px;
    white-space: nowrap;
}
.vocabulary-popup {
    width: 5%;
    /*height: 7%;*/
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.border-wrap {
    background: url("../images/border_circle.png") no-repeat;
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}
.text-tile {
    position: absolute;
    width: 100%;
    top: 90%;
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
}
.image-text {
    position: relative;
    font-size: 0.6vh;
    min-width: 50%;
    max-width: 100%;
    border-radius: 0.6vh;
    background-color: white;
    display: inline-block;
    vertical-align: top;
    text-align: center;
}
.inner-text-border {
    width: 100%;
    height: 100%;
    border: 0.3vh solid transparent;
    border-image: url("../images/frame_template.png") 20% stretch;
    border-image-width: 0.3vh;
    border-radius: 1vh;
    padding:0 2.5%;
    text-align: center;
}
.vocabulary-popup [data-btn-id="close"] {
    position: absolute;
    width: 20%;
    height: 20%;
    right: 4%;
    top: 0%;
}
.marker {
    position: absolute;
    height: 100%;
    top: 0;
    background-repeat: no-repeat;
    background-size: contain;
}
.fade-modal {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}
.modal {
    width: 80%;
    height: 66%;
    position: absolute;
    top: 19%;
    left: 10%;
    z-index: 101;
    background: url("../images/SL_T09_focloir_panel.png") no-repeat;
    background-size: cover;
    transform: scale(0.5);
}
.modal [data-btn-id="close"] {
    width: 6%;
    height: 10%;
    left: auto;
    right: 0;
    top: -1%;
}
.modal-btn-section {
    width: 100%;
    height: 11%;
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    position: absolute;
    top: 9%;
}
.activity-btn {
    width: 20%;
    height: 100%;
    /*background: url("../images/btn.tab.static.png") no-repeat;*/
    /*background-size: contain;*/
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    align-items: center;
    color: #164f8c;
    font-size: 2.6vh;
    font-weight: 800;
    text-shadow: none;
}
.words-tile {
    position: absolute;
    left: 4.5%;
    top: 23%;
    width: 90%;
    height: 70%;
    display: flex;
    display: -webkit-flex;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: stretch;
    -webkit-align-items: stretch;
    -webkit-justify-content: space-between;
    overflow: auto;
}
.vocabulary-word, .play-word, .word-text, .activity-word {
    display: flex;
    display: -webkit-flex;
    font-size: 2.7vh;
}
.play-word, .vocabulary-word {
    background: url("../images/SL_T09_ACTIVITY_WORD_PANEL.png") no-repeat;
    background-size: 100% 100%;
}
.vocabulary-word {
    min-width: 35%;
    max-width: 40%;
    margin: 0 6%;
    height: 9%;
}
.activity-word {
    min-height: 20%;
    /*max-height: 20%;*/
    width: 100%;
    margin: 1% 2%;
    justify-content: flex-start;
    -webkit-justify-content: flex-start;
    align-items: flex-start;
    -webkit-align-items: flex-start;
}
.play-word {
    min-width: 25%;
    max-width: 40%;
    height: 9%;
    margin: 0 3%;
}
.play-word-btn {
    height: 6.5%;
    width: 4%;
    margin-left: 0.5%;
    position: absolute;
    display: inline-flex;
    display: -webkit-inline-flex;
    justify-content: flex-start;
    -webkit-justify-content: flex-start;
    background: url("../images/btn.replay.static.png") no-repeat;
    background-size: contain;
    align-self: center;
}
.word-text {
    width: 100%;
    justify-content: center;
    align-items: center;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    padding-left: 6%;
}
.info-word-btn {
    background: url("../images/btn.question.static.png") no-repeat;
    background-size: contain;
    width: 8%;
    height: 4.5vh;
}
.bold-word {
    font-weight: 800;
}
.explain-word {
    margin-left: 4%;
    width: 90%;
}
.explain-word ul {
    padding-left: 3%;
}
.explain-word p:first-child {
    color: #31b3e2;
}
.active {
    -webkit-box-shadow: 0px 0px 2px 3px rgba(252,252,0,1);
    -moz-box-shadow: 0px 0px 2px 3px rgba(252,252,0,1);
    box-shadow: 0px 0px 2px 3px rgba(252,252,0,1);
}
.active-tab {
    background-image: url("../images/btn.tab.down.png") !important;
    color: white;
    text-shadow: -1px 1px 0px rgba(45, 45, 45, 1);
}
.teacher-notes-header, .teacher-notes-text {
    display: flex;
    width: 100%;
    font-size: 2.6vh;
}
.teacher-notes-header {
    justify-content: center;
    align-items: center;
    font-size: 2.8vh;
    font-weight: 900;
}
.teacher-notes-text {
    padding: 1% 0 5% 4%;
}