/* Common */
@font-face {
    font-family: "Gill Sans MT";
    src: url(../fonts/gill_sans_std/GillSansStd.woff) format("woff"),
        url(../fonts/gill_sans_std/GillSansStd.otf) format("otf"),
        url(../fonts/gill_sans_std/GillSansStd.svg#svgFontName) format("svg");
}
@font-face {
    font-family: "Gill Sans MT Light";
    src: url(../fonts/gill_sans_std/GillSansStd-Light.woff) format("woff"),
        url(../fonts/gill_sans_std/GillSansStd-Light.otf) format("otf"),
        url(../fonts/gill_sans_std/GillSansStd-Light.svg#svgFontName)
            format("svg");
}
@font-face {
    font-family: "Gill Sans MT Regular";
    src: url(../fonts/gill_sans_std/gill-sans-mt.woff) format("woff"),
        url(../fonts/gill_sans_std/gill-sans-mt.ttf) format("truetype"),
        url(../fonts/gill_sans_std/gill-sans-mt.svg) format("svg");
}

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;
    font-size: 1.8em;
    font-family: "Gill Sans MT", Arial, Helvetica, sans-serif;
}
.main-container:not(.touch-device) button:not(.disabled):active {
    transform: scale(0.9) !important;
}

/* --- */

/* Container */
body {
    margin: 0;
    width: 100vw;
    height: 100vh;
    color: #010101;
    font-size: 14px;
    font-family: "Gill Sans MT Regular", Arial, Helvetica, sans-serif;
}
.base-container {
    position: relative;
    width: 640px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #fff;
    /* background: url(../images/start_bg.png) 0 0 / 100% 100% no-repeat; */
}
.main-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 640px;
    height: 500px;
    margin: 0;
    background-color: inherit;
    transform-origin: 0 0;
}
/* --- */

/* 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 > h1 {
    font-size: 38px;
    margin: 104px 50px 0 50px;
    font-family: "Gill Sans MT", Arial, Helvetica, sans-serif;
}
.screen-1 > .page-1 > button {
    margin: 140px 0 70px 0;
    width: 112px;
    height: 54px;
    background-image: url(../images/start_btn.png);
    background-position: 0 0;
    background-size: 200% 100%;
    background-repeat: no-repeat;
}
.main-container:not(.touch-device)
    .screen-1
    > .page-1
    > button:not(.disabled):hover {
    background-position: 100% 0;
}
.screen-1 > .page-1 > p {
    margin: 20px 80px;
}
/* --- */

/* screen 2 */
.screen-2 > h2#screen_2_h2_title {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 33px;
    background-color: #0a0a0a;
    color: #fff;
    font-size: 24px;
    font-family: "Gill Sans MT Light", Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 2px 10px;
}
.screen-2 > h2#screen_2_h2_title.focussed {
    outline: none;
    box-shadow: 0 0 0 1px black inset, 0 0 0 3px red inset;
}
.screen-2 > h2#screen_2_h2_title > p {
    margin: 0;
}
.screen-2 > #canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 640px;
    height: 500px;
}
.screen-2 > #control_cnt {
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    height: 30px;
    text-align: center;
}
.screen-2 > #control_cnt > #back_btn,
.screen-2 > #control_cnt > #stop_btn,
.screen-2 > #control_cnt > #play_btn {
    position: relative;
    width: 30px;
    height: 30px;
    background-image: url(../images/control_btn.png);
    background-position: 0 0;
    background-size: 600% 100%;
    background-repeat: no-repeat;
    margin: 0 4px;
	font-size: 16px;
}
.screen-2 > #control_cnt > #stop_btn {
    background-position: 20% 0;
}
.screen-2 > #control_cnt > #play_btn {
    background-position: 40% 0;
}
.main-container:not(.touch-device)
    .screen-2
    > #control_cnt
    > #back_btn:not(.disabled):hover {
    background-position: 60% 0;
}
.main-container:not(.touch-device)
    .screen-2
    > #control_cnt
    > #stop_btn:not(.disabled):hover {
    background-position: 80% 0;
}
.main-container:not(.touch-device)
    .screen-2
    > #control_cnt
    > #play_btn:not(.disabled):hover {
    background-position: 100% 0;
}
.screen-2 > #screen_2_intro_start_cnt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.screen-2 #screen_2_intro_text {
    position: absolute;
    font-size: 20px;
    margin: 75px 40px 0 40px;
    padding: 5px;
}
.screen-2 #screen_2_intro_button {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 90px;
    height: 38px;
    font-size: 1.2em;
    background-image: url(../images/continue_btn.png);
    background-position: 0 0;
    background-size: 200% 100%;
    background-repeat: no-repeat;
}
.main-container:not(.touch-device)
    .screen-2
    #screen_2_intro_button:not(.disabled):hover {
    background-position: 100% 0;
}
.screen-2 #screen_2_intro_popup_cnt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(153, 153, 153, 0.8);
}
.screen-2 #screen_2_intro_popup_text {
    position: absolute;
    font-size: 12px;
    margin: 262px 25px 0 25px;
    height: 222px;
    padding: 15px;
    background-color: #fff;
    border: 2px solid #0a0a0a;
}
.screen-2 #screen_2_intro_popup_button {
    position: absolute;
    right: 45px;
    bottom: 30px;
    width: 90px;
    height: 38px;
    font-size: 1.2em;
    background-image: url(../images/continue_btn.png);
    background-position: 0 0;
    background-size: 200% 100%;
    background-repeat: no-repeat;
}
.main-container:not(.touch-device)
    .screen-2
    #screen_2_intro_popup_button:not(.disabled):hover {
    background-position: 100% 0;
}
.screen-2 #tube_button {
    position: absolute;
    left: 500px;
    top: 155px;
    width: 105px;
    height: 63px;
    background-color: rgba(255, 255, 255, 0.01);
    cursor: pointer;
}
.main-container:not(.touch-device)
    .screen-2
    #tube_button:not(.disabled):hover
    > svg
    > polygon,
.screen-2 #tube_button.focussed:not(.disabled) > svg > polygon {
    fill: #f00;
}

.box_txt {
    position: absolute;
    left: 0;
    bottom: 50px;
    width: calc(100% - 20px);
    font-size: 0.9em;
    margin: 0 10px;
    padding: 0 10px;
    border: 2px solid #0a0a0a;
}
.box_txt.btn_txt > p {
    display: inline-block;
    width: calc(100% - 100px);
}
.box_txt.btn_txt > button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 90px;
    height: 38px;
    font-size: 1.2em;
    background-image: url(../images/continue_btn.png);
    background-position: 0 0;
    background-size: 200% 100%;
    background-repeat: no-repeat;
}
.main-container:not(.touch-device)
    .box_txt.btn_txt
    > button:not(.disabled):hover {
    background-position: 100% 0;
}

.tube_txt {
    position: absolute;
}
.tube_txt > p {
    margin: 0;
}
.tube_txt.tube_txt_title {
    right: 5px;
    top: 50px;
    width: 190px;
    padding: 5px;
    text-align: center;
    font-size: 1.2em;
}
.tube_txt.tube_txt_band_1 {
    right: 142px;
    top: 162px;
    width: 42px;
    padding: 5px;
    text-align: center;
    font-size: 0.9em;
}
.tube_txt.tube_txt_band_2 {
    right: 142px;
    top: 262px;
    width: 42px;
    padding: 5px;
    text-align: center;
    font-size: 0.9em;
}

#dna_ques_cnt {
    position: absolute;
    left: 0;
    top: 0;
    width: 640px;
    height: 500px;
    background: url(../images/dna_question.svg) center center / 100% 100%
        no-repeat;
}
#dna_ques_cnt > #dna_ques_txt {
    position: absolute;
    left: 0;
    top: 70px;
    right: 0;
    width: 500px;
    margin: 0 auto;
    font-size: 1.2em;
    text-align: center;
    padding: 5px;
}
#dna_ques_cnt > #dna_ques_1,
#dna_ques_cnt > #dna_ques_2,
#dna_ques_cnt > #dna_ques_3 {
    position: absolute;
    left: 62px;
    top: 134px;
    width: 125px;
    height: 294px;
    text-align: center;
    font-size: 1.2em;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.01);
}
#dna_ques_cnt > #dna_ques_2 {
    left: 256px;
    width: 128px;
}
#dna_ques_cnt > #dna_ques_3 {
    left: 462px;
    width: 128px;
}
#dna_ques_cnt > #dna_ques_btn {
    position: absolute;
    left: 30px;
    bottom: 20px;
    width: 90px;
    height: 38px;
    font-size: 1.2em;
    background-image: url(../images/continue_btn.png);
    background-position: 0 0;
    background-size: 200% 100%;
    background-repeat: no-repeat;
}
.main-container:not(.touch-device)
    .screen-2
    #dna_ques_cnt
    > #dna_ques_btn:not(.disabled):hover {
    background-position: 100% 0;
    color: #fff;
}

#dna_result_popup_cnt {
    position: absolute;
    left: 0;
    top: 32px;
    width: 640px;
    height: 468px;
    background-color: rgba(0, 0, 0, 0.5);
}
#dna_result_popup_cnt > .dna_result_popup {
    position: absolute;
    left: 0;
    top: -65px;
    right: 0;
    bottom: 0;
    width: 366px;
    height: 132px;
    margin: auto;
    padding: 0 10px;
    border: 4px solid #0a0a0a;
    border-radius: 3px;
    font-size: 1.2em;
    background-color: #fff;
}
#dna_result_popup_cnt > .dna_result_popup > #dna_incorrect_title {
    margin: 20px 0;
    text-align: center;
}
#dna_result_popup_cnt > .dna_result_popup > #dna_incorrect_btn_watch {
    margin: 10px 0;
    text-align: center;
    cursor: pointer;
}
.main-container:not(.touch-device)
    #dna_result_popup_cnt
    > .dna_result_popup
    > #dna_incorrect_btn_watch:not(.disabled):hover,
.main-container:not(.touch-device)
    #dna_result_popup_cnt
    > .dna_result_popup
    > #dna_incorrect_btn_watch.focussed:not(.disabled) {
    color: #f00;
}
#dna_result_popup_cnt > .dna_result_popup > #dna_incorrect_btn_watch:before {
    content: attr(data-text);
}
.main-container:not(.touch-device)
    #dna_result_popup_cnt
    > .dna_result_popup
    > #dna_incorrect_btn_watch.focussed:not(.disabled):before,
.main-container:not(.touch-device)
    #dna_result_popup_cnt
    > .dna_result_popup
    > #dna_incorrect_btn_watch:not(.disabled):hover:before {
    content: attr(data-hover-text);
}
#dna_result_popup_cnt > .dna_result_popup > #dna_incorrect_btn_guess {
    margin: 10px 0;
    text-align: center;
    cursor: pointer;
}

.main-container:not(.touch-device)
    #dna_result_popup_cnt
    > .dna_result_popup
    > #dna_incorrect_btn_guess:not(.disabled):hover,
.main-container:not(.touch-device)
    #dna_result_popup_cnt
    > .dna_result_popup
    > #dna_incorrect_btn_guess.focussed:not(.disabled) {
    color: #c00;
}

#dna_result_popup_cnt > .dna_result_popup > #dna_correct_title {
    margin: 20px 0;
    text-align: center;
}
#dna_result_popup_cnt > .dna_result_popup > #dna_correct_btn_finish {
    margin: 10px 0;
    text-align: center;
    cursor: pointer;
}
.main-container:not(.touch-device)
    #dna_result_popup_cnt
    > .dna_result_popup
    > #dna_correct_btn_finish:not(.disabled):hover,
.main-container:not(.touch-device)
    #dna_result_popup_cnt
    > .dna_result_popup
    > #dna_correct_btn_finish.focussed:not(.disabled) {
    color: #c00;
}
#dna_final_txt {
    position: absolute;
    left: 0;
    top: 70px;
    right: 0;
    width: 500px;
    margin: 0 auto;
    font-size: 1.2em;
    text-align: center;
    padding: 5px;
}
/* --- */

/* global show/hide */
.hide {
    display: none;
}
.disabled {
    opacity: 0.5;
    cursor: default;
}
/* --- */
