/* Common */
@font-face {
    font-family: "Gill Sans MT";
    src: url(../fonts/gill_sans_std/GillSansStd.otf);
}
@font-face {
    font-family: "Gill Sans MT Light";
    src: url(../fonts/gill_sans_std/GillSansStd-Light.otf);
}
@font-face {
    font-family: "Gill Sans MT Regular";
    src: url(../fonts/gill_sans_std/gill-sans-mt.ttf);
}

html {
    overflow: hidden;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    outline: none;
    border: none;
    box-shadow: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

*.disabled.focussed,
*[disabled].focussed,
*.focussed {
    outline: 2px solid red;
    z-index: 1;
}
*.drag-selected {
    outline: 2px solid green;
}
/* --- */

/* Loader style */
.loaderContainer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 120px;
    height: 120px;
    margin: auto;
    font-size: 14px;
    z-index: 9999;
}

.loaderContainer:not(.show) {
    display: none;
}

.loader {
    position: absolute;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    border-bottom: 16px solid #3498db;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    box-sizing: border-box;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loadingPercent {
    width: 100%;
    text-align: center;
    top: 55px;
    position: absolute;
    font-weight: bold;
}
/*---*/

/* button style */
button {
    position: relative;
    cursor: pointer;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background: none;
    background-color: none;
}

button.default-btn:before,
button.gray-btn:before,
button.gray1-btn:before,
button.primary-btn:before,
button.default-btn:after,
button.gray-btn:after,
button.primary-btn:after {
    content: "";
    position: absolute;
    display: inline-block;
    top: 1px;
    width: 5px;
    height: calc(100% - 2px);
    background: linear-gradient(#d8e3f3, #a1b6d5) 0 0 / 100% 100% no-repeat;
    border-radius: inherit;
}
button.default-btn:after,
button.gray-btn:after,
button.gray1-btn:after,
button.primary-btn:after {
    left: 1px;
}
button.default-btn:before,
button.gray-btn:before,
button.gray1-btn:before,
button.primary-btn:before {
    right: 1px;
}

button.default-btn,
button.gray-btn,
button.gray1-btn,
button.primary-btn {
    height: 34px;
    padding: 8px;
    border-radius: 3px;
    background: linear-gradient(#d8e3f3, #a1b6d5) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#b6b9bb, #596064) 0 0 / 100% 100% no-repeat;
}

button.gray-btn {
    background: linear-gradient(#efefef, #cdcdcd) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#b5b8ba, #596064) 0 0 / 100% 100% no-repeat;
}
button.gray-btn:before,
button.gray-btn:after {
    background: linear-gradient(#efefef, #cdcdcd) 0 0 / 100% 100% no-repeat;
}
button.gray1-btn {
    background: linear-gradient(#dfdfdf, #b1b1b1) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#b5b8ba, #596064) 0 0 / 100% 100% no-repeat;
}
button.gray1-btn:before,
button.gray1-btn:after {
    background: linear-gradient(#dfdfdf, #b1b1b1) 0 0 / 100% 100% no-repeat;
}
button.default-btn {
    background: linear-gradient(#fff, #ccc) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#b5b8ba, #596064) 0 0 / 100% 100% no-repeat;
}
button.default-btn:before,
button.default-btn:after {
    background: linear-gradient(#fff, #ccc) 0 0 / 100% 100% no-repeat;
}

.main-container:not(.touch-device) button.primary-btn:hover {
    background: linear-gradient(#d8e3f3, #a1b6d5) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#009dff, #009dff) 0 0 / 100% 100% no-repeat;
}
.main-container:not(.touch-device) button.gray-btn:hover {
    background: linear-gradient(#efefef, #cdcdcd) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#009dff, #009dff) 0 0 / 100% 100% no-repeat;
}
.main-container:not(.touch-device) button.gray1-btn:hover {
    background: linear-gradient(#dfdfdf, #b1b1b1) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#009dff, #009dff) 0 0 / 100% 100% no-repeat;
}
.main-container:not(.touch-device) button.default-btn:not(.disabled):hover {
    background: linear-gradient(#fff, #ccc) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#009dff, #009dff) 0 0 / 100% 100% no-repeat;
}
.main-container:not(.touch-device) button.primary-btn:active,
.main-container:not(.touch-device) button.gray-btn:active,
.main-container:not(.touch-device) button.gray1-btn:active,
.main-container:not(.touch-device) button.default-btn:not(.disabled):active {
    background: linear-gradient(#e1f3fe, #9ed9fe) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#009dff, #009dff) 0 0 / 100% 100% no-repeat;
}
.main-container:not(.touch-device)
    button.default-btn:not(.disabled):active:before,
.main-container:not(.touch-device)
    button.default-btn:not(.disabled):active:after,
.main-container:not(.touch-device) button.primary-btn:active:before,
.main-container:not(.touch-device) button.primary-btn:active:after,
.main-container:not(.touch-device) button.gray-btn:active:before,
.main-container:not(.touch-device) button.gray-btn:active:after,
.main-container:not(.touch-device) button.gray1-btn:active:before,
.main-container:not(.touch-device) button.gray1-btn:active:after {
    background: linear-gradient(#e1f3fe, #9ed9fe) 0 0 / 100% 100% no-repeat;
}

/* --- */

/* Cell icon */
.cell-icon-container {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 456px;
    background-color: #84aad9;
}
.cell-icon {
    position: relative;
    width: 100%;
    height: 76px;
    border: 1px solid #1071b6;
}
.cell-icon:not(:last-of-type) {
    border-bottom-width: 0;
}
.cell-icon-img {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    margin: auto;
    width: 70px;
    height: 50px;
    border-radius: 6px;
    border: 1px solid #1071b6;
    background-color: rgba(255, 255, 255, 1);
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
}
.cell-icon-drop {
    position: absolute;
    left: 0;
    top: 51px;
    right: 0;
    margin: auto;
    width: 70px;
    height: 18px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #1071b6;
    background-color: #fff;
    /* overflow: hidden; */
    line-height: 12px;
}
.cell-icon-drop[data-id-num]:before {
    content: attr(data-id-num);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding-top: 2px;
    text-align: center;
    color: #ed7662;
}
.cell-play-icon {
    position: absolute;
    left: 0;
    top: 10px;
    right: 0;
    margin: 0 auto;
    width: 28px;
    height: 28px;
    background: url(../images/img_play_icon.png) -1px -1px / 28px 28px no-repeat;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #0069b1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    border-radius: 50%;
}
.cell-play-icon.blink-animation {
    background-color: rgba(0, 153, 102, 0.5);
    animation: cell_play_icon_ani_key linear 0.8s infinite;
}
@keyframes cell_play_icon_ani_key {
    50% {
        background-color: rgba(0, 153, 102, 0.1);
    }
}
/* --- */

/* Popup */
.popup-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 999;
}
.popup-container > .popup-box {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 100px;
    width: 480px;
    height: 260px;
    margin: auto;
    background-color: #cccccc;
    border: 6px solid #0069b1;
    border-radius: 6px;
}
.popup-container > .popup-box > p {
    position: relative;
    left: 0;
    top: 0;
    font-size: 20px;
    margin: 30px 46px;
}
.popup-container > .popup-box > button {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    width: 100px;
    margin: auto;
    /* background: linear-gradient(#efefef, #cdcdcd) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#b5b8ba, #596064) 0 0 / 100% 100% no-repeat; */
}
/* .popup-container > .popup-box > button.primary-btn:before,
.popup-container > .popup-box > button.primary-btn:after {
    background: linear-gradient(#dddddd, #afafaf) 0 0 / 100% 100% no-repeat;
} */
/* Container */
body {
    margin: 0;
    width: 100vw;
    height: 100vh;
    color: #010101;
    font-size: 14px;
    font-family: "Gill Sans MT", Arial, Helvetica, sans-serif;
}
.base-container {
    position: relative;
    width: 700px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #fff;
}
.main-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 700px;
    height: 500px;
    margin: 0;
    background-color: inherit;
    transform-origin: 0 0;
    /* background: url(../images/test_bg.png) -3px -3px / auto no-repeat; */
    /* background: url(../images/test_bg1.jpg) 0px 0px / auto no-repeat; */
}
/* --- */

/* screen 1 */
.screen-1,
.screen-1 > .page {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: #81a4da;
}
.screen-1 > .page-1.slide-left {
    left: calc(100% + 10px);
    transition: left linear 0.95s;
}
.screen-1 > .page-1 > h1 {
    font-size: 40px;
    margin: 100px 50px 0 50px;
}
.screen-1 > .page-1 > button {
    margin: 80px;
    width: 150px;
    height: 50px;
}
.screen-1 > .page-1 > p {
    margin: 20px 120px;
}
.screen-1 > .page-2 > p,
.screen-1 > .page-3 > p {
    margin: 50px 90px;
    padding: 10px;
    font-size: 21px;
    text-align: left;
}
.screen-1 > .page-3 > p {
    font-style: italic;
}
.screen-1 > .page-2 > button,
.screen-1 > .page-3 > button {
    position: absolute;
    right: 80px;
    bottom: 50px;
    width: 100px;
}
/* --- */

/* Screen 2 */
.screen-2 h3#screen_2_h3_title {
    position: absolute;
    left: 2px;
    top: 0;
    font-size: 14px;
    width: 68px;
    margin: 5px 0;
    text-align: center;
    color: #4898c9;
}
.screen-2 h3#ani_title {
    position: absolute;
    left: 310px;
    top: 0;
    font-size: 14px;
    width: 140px;
    margin: 5px 0;
    text-align: center;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}
.screen-2 canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 700px;
    height: 500px;
}
.screen-2 #screen2_instruction_btn {
    position: absolute;
    left: 1px;
    bottom: 18px;
    width: 69px;
    z-index: 2;
}
.screen-2 #screen2_ani_play_btn,
.screen-2 #screen2_ani_pause_btn {
    position: absolute;
    left: 149px;
    bottom: 22px;
    width: 23px;
    height: 26px;
    background: url(../images/play_btn.svg) center center/calc(100% - 1px)
        calc(100% - 1px) no-repeat;
}
.screen-2 #screen2_ani_pause_btn {
    left: 150px;
    width: 20px;
    height: 25px;
    background: url(../images/pause_btn.svg) center center/calc(100% - 1px)
        calc(100% - 1px) no-repeat;
}
.screen-2 #screen2_ani_play_text,
.screen-2 #screen2_step_play_text {
    position: absolute;
    left: 112px;
    bottom: 3px;
    color: #0069b1;
    font-size: 13px;
}
.screen-2 #screen2_step_play_text {
    left: 497px;
}

.screen-2 #screen2_backward_btn,
.screen-2 #screen2_forward_btn {
    position: absolute;
    left: 509px;
    bottom: 20px;
    width: 33px;
    height: 20px;
    background: url(../images/backward_btn.svg) center center/calc(100% - 1px)
        calc(100% - 1px) no-repeat;
}
.screen-2 #screen2_forward_btn {
    left: 563px;
    background: url(../images/forward_btn.svg) center center/calc(100% - 1px)
        calc(100% - 1px) no-repeat;
}
.screen-2 [id^="ani_text_cnt_"],
.screen-2 [id^="step_text_cnt_"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.screen-2 [id^="ani_text_label_"],
.screen-2 [id^="step_text_label_"] {
    position: absolute;
    display: inline-block;
    left: 0;
    top: 0;
    font-size: 10px;
    font-weight: normal;
    font-family: "Gill Sans MT Regular", Arial, Helvetica, sans-serif;
    margin: 0;
}
.screen-2 [id^="ani_text_label_"] p,
.screen-2 [id^="step_text_label_"] p {
    margin: 0;
}
.screen-2 [id^="step_text_label_"] {
    font-size: 12px;
}
.screen-2 [id^="step_text_label_"] p {
    margin-bottom: 8px;
}
.screen-2 [id^="step_text_label_"] span {
    display: inline-block;
    padding-right: 0px;
}
.screen-2 [id^="ani_text_label_"].hide,
.screen-2 [id^="step_text_label_"].hide {
    display: none;
}

.screen-2 #step_text_label_4_m > .move_right {
    position: relative;
    left: 230px;
    top: -140px;
}

.screen-2 [id^="step_text_label_4_txt_5_"] {
    font-size: 10px;
}

.screen-2 #dd_intro_popup > .popup-box {
    background-color: #999999;
}

.screen-2 .drag-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 100%;
    border: 1px solid #85abda;
    border-right: none;
    background-color: #fff;
    border-radius: 2px;
    z-index: 3;
    transition: right linear 0.8s;
}
.screen-2 .drag-container.focussed {
    outline: none;
    box-shadow: 0 0 0 2px red inset;
}
.screen-2 .drag-container.hide {
    display: block;
    visibility: hidden;
    right: -80px;
}
.screen-2 .drag-container > .drag-header {
    font-size: 14px;
    margin: 8px 0px;
    line-height: 17px;
    text-align: center;
}
.screen-2 .drag-container > .drag-header > button {
    width: 60px;
    height: 28px;
    padding-top: 7px;
}

.screen-2 .drag-container > .drag-item {
    position: absolute;
    left: 1px;
    top: 0;
    width: 67px;
    height: 16px;
    font-size: 10px;
    text-align: center;
    padding-top: 2px;
    border-radius: 4px;
    background-color: #85abda;
    cursor: pointer;
}
.screen-2 .drag-item:not(.ui-draggable-dragging):hover > div {
    position: absolute;
    left: -3px;
    bottom: 18px;
    width: calc(100% + 6px);
    padding: 3px;
    background-color: #ffff00;
    border: 1px solid #ffcc00;
    border-radius: 3px;
    pointer-events: none;
}
.screen-2 .drag-item:not(:hover) > div,
.screen-2 .drag-item.ui-draggable-dragging > div {
    display: none;
}
.screen-2 .drag-container > #drag_item_0 {
    top: 174px;
}
.screen-2 .drag-container > #drag_item_1 {
    top: 218px;
}
.screen-2 .drag-container > #drag_item_2 {
    top: 262px;
}
.screen-2 .drag-container > #drag_item_3 {
    top: 306px;
}
.screen-2 .drag-container > #drag_item_4 {
    top: 350px;
}
.screen-2 .drag-container > #drag_item_5 {
    top: 394px;
}
/* --- */

/* Dropped drag item style */
.cell-icon-drop > .drag-item {
    position: absolute;
    width: 100%;
    height: 100%;
    font-size: 10px;
    text-align: center;
    padding-top: 2px;
    border-radius: 4px;
    background-color: #85abda;
    cursor: pointer;
    z-index: 2;
}

/* global show/hide */
.hide {
    display: none;
}
.disabled {
    opacity: 0.5;
    cursor: default;
}
/* --- */
