@font-face {
    font-family: "Gill Sans MT";
    src: url(../fonts/gill_sans_std/GillSansStd.otf);
}

*,
*:before,
*:after {
    box-sizing: border-box;
    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;
}
*.key-nav-selected {
    outline: 2px solid green;
    z-index: 1;
}

body {
    margin: 0;
    font-family: "Gill Sans MT", Arial, Helvetica, sans-serif;
    width: 100vw;
    height: 100vh;
    color: #010101;
    overflow: hidden;
}

#ariaContainer,
#ariaContainer * {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

section.screens {
    position: absolute;
    left: 0;
    top: 0;
    width: 700px;
    height: 500px;
}

/* Loader style */
.loaderContainer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 120px;
    height: 120px;
    margin: auto;
    font-size: 14px;
}

.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;
}
/*---*/

#container {
    position: relative;
    /* left: 0;
    top: 0; */
    /* right: 0; */
    /* bottom: 0; */
    width: 700px;
    height: 500px;
    margin: 0 auto;
    box-shadow: 0 0 0 2px #0969c0 inset;
    font-size: 14px;
}

.loaderContainer.show + #container {
    display: none;
}

#screen_0_cnt {
    background-color: #81a4da;
    overflow: hidden;
}

#start_intro_screen {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
}
#start_intro_screen > h1 {
    font-size: 40px;
    margin: 100px 150px 0 150px;
}
#start_intro_screen > button {
    margin: 80px;
    width: 150px;
    height: 50px;
}
#start_intro_screen > p {
    margin: 20px 120px;
}
#start_continue_screen {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
#start_continue_screen > p {
    margin: 60px 110px;
    padding: 10px;
}
#start_continue_screen > button {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 100px;
}

#canvas {
    position: absolute;
    right: 1px;
    top: 0;
    width: 551px;
    height: 500px;
}

.screen_1_instruction {
    position: absolute;
    right: 0;
    bottom: 95px;
    width: 500px;
    height: 18px;
    margin: 0 20px 2px 20px;
    text-align: center;
    z-index: 100;
}

.screen_1_instruction:not(#screen_1_instruction_1) {
    bottom: 80px;
    color: #950202;
}

#drag_main_cnt {
    position: absolute;
    left: 0;
    top: 0;
    width: 148px;
    height: 100%;
    border-right: 2px solid #0969c0;
}
#title_txt {
    font-family: "Gill Sans MT", Arial, Helvetica, sans-serif;
    font-size: 17px;
    color: #016026;
    padding: 8px;
    text-align: center;
    margin: 0;
    line-height: 24px;
    border-bottom: 2px solid #0969c0;
    height: 66px;
}
#drag_item_cnt {
    position: relative;
    top: 0;
    left: 2px;
    width: 100%;
    height: calc(100% - 66px);
}
.organ-item {
    position: relative;
    display: inline-block;
    width: 72px;
    height: 72px;
    vertical-align: middle;
    background-color: #ffffff;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    border-style: none;
}

.organ-item > img {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    margin-left: -36px;
    margin-top: -45px;
    width: 144px;
    height: 144px;
    transform: scale(0.45) translateZ(0);
}

.organ-item:nth-child(odd) {
    border-right: 1px solid #0969c0;
}

.organ-item:not(:nth-child(11)):not(:nth-child(12)) {
    border-bottom: 1px solid #0969c0;
}

.organ-item > label {
    position: absolute;
    display: inline-block;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 2px;
    font-size: 10px;
    text-align: center;
    margin: 0 auto;
    line-height: 10px;
}
/* 
.organs-item.clone-dragging .drag-tooltip-box {
    display: none !important;
} */

.sub-organs-cnt {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    z-index: 1;
    border-radius: 3px;
}

.sub-organs-cnt > .organ-item.focussed {
    outline: none;
    box-shadow: 0 0 0 2px red inset;
}

.sub-organs-cnt > .organ-item.key-nav-selected {
    outline: none;
    box-shadow: 0 0 0 2px green inset;
}

.sub-organs-cnt:not(.show) {
    height: 0 !important;
}

.sub-organs-cnt:not(.clone-dragging) {
    overflow: hidden;
}
.sub-organs-cnt.clone-dragging.show {
    border: none;
}
.sub-organs-cnt.clone-dragging > .organ-item:not(.ui-draggable-dragging) {
    display: none;
}
.sub-organs-cnt > .organ-item:nth-child(2) {
    border-right: 1px solid #0969c0;
    border-bottom: none;
}
.sub-organs-cnt.show {
    width: 72px;
    border-bottom: 1px solid #0969c0;
    border-top: 1px solid #0969c0;
    transition: height linear 0.4s;
}

.sub-organs-cnt > .organ-item:first-child {
    border-bottom: inherit;
}

/* Drag and Drop Style */
.clone-drag {
    transform: scale(2);
    background-color: rgba(255, 255, 255, 0.0001);
    border: none !important;
}
.clone-drag > div,
.clone-drag > label {
    display: none;
}
/* ---- */

/* Drag item Tooltip Style */
.organ-item > label,
.organ-item > img {
    pointer-events: none;
}
.drag-tooltip-box {
    position: absolute;
    left: 166px;
    top: 117px;
    width: 270px;
    height: 110px;
    background-color: #ffffff;
    border-style: solid;
    border-width: 1px 1px 1px 0;
    border-color: #62c7db;
    pointer-events: none;
    z-index: 999;
}
.drag-tooltip-box {
    display: none;
}
/* .organ-item:hover > .drag-tooltip-box, */
.organ-item:not(.clone-drag) > .drag-tooltip-box.show {
    display: block;
}
.organ-item > .drag-tooltip-box {
    left: 90px;
    top: 0;
    bottom: 0;
    margin: auto 0;
}
.organ-item:nth-of-type(11) > .drag-tooltip-box,
.organ-item:nth-of-type(12) > .drag-tooltip-box {
    top: -40px;
}
.drag-tooltip-box > p {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
    line-height: 14px;
    margin: 5px 0;
    z-index: 1;
    pointer-events: none;
}
.drag-tooltip-box > span {
    position: absolute;
    display: inline-block;
    left: -71px;
    top: 0;
    width: 110px;
    height: 108px;
    transform: scaleX(0.5);
    overflow: hidden;
    pointer-events: none;
}
.drag-tooltip-box > span:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 100%;
    height: 100%;
    border-style: solid;
    border-width: 1px 1px 0 0;
    border-color: #62c7db;
    transform: rotate(-135deg);
    background-color: #ffffff;
}
/*---*/

/* Dropped item popup box */
.dropped-organ-popup-cnt {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}
.dropped-organ-popup {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 450px;
    height: 300px;
    border: 5px solid #7da8d3;
    border-radius: 10px;
    background-color: #f4ffff;
}

.dropped-organ-popup-cnt:not(.show),
.dropped-organ-popup:not(.show) {
    display: none;
}

.dropped-organ-popup > p {
    margin: 0;
    padding: 25px;
}

#screen_1_continue_btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 100px;
}

/* Screen two */
#screen_2_drag_cnt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 150px;
    background: url(../images/bg/animal_icon.png) 4px 25px / 125px auto
            no-repeat,
        url(../images/bg/plant_icon.png) 570px 40px / 125px auto no-repeat;
    z-index: 10;
}
#screen_2_drag_cnt label#title_label {
    position: absolute;
    display: inline-block;
    left: 120px;
    top: 5px;
    padding: 3px;
    width: 390px;
}
#screen_2_drag_cnt label#animal_label {
    position: absolute;
    display: inline-block;
    left: 140px;
    top: 60px;
    width: 80px;
}
#screen_2_drag_cnt label#plant_label {
    position: absolute;
    display: inline-block;
    top: 60px;
    right: 125px;
    width: 80px;
}
#screen_2_drag_cnt button {
    position: absolute;
    right: 10px;
    top: 3px;
    width: 130px;
}
/* Drag item */
#screen_2_drag_item_cnt {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 101px;
    height: 42px;
    margin: 40px auto;
    z-index: 103;
}
.screen_2_drag_item {
    position: absolute;
    display: inline-block;
    left: 0;
    top: 0;
    width: 101px;
    min-height: 28px;
    line-height: 14px;
    font-size: 14px;
}
#screen_2_drag_item_cnt > .screen_2_drag_item {
    height: 100%;
}

.screen_2_drag_item > label {
    display: inline-block;
    width: 100%;
}
#screen_2_drag_item_cnt > .screen_2_drag_item > label {
    height: 100%;
}
.screen_2_drag_item > label > span:not(.vertical-support) {
    display: inline-block;
    text-align: center;
    margin-top: 2px;
    width: calc(100% - 1px);
    padding: 4px;
    border: 2px solid #0969c0;
    background-color: #c8ebff;
    border-radius: 6px;
    vertical-align: middle;
    cursor: pointer;
}
.screen_2_drag_item > label > .vertical-support {
    display: inline-block;
    width: 1px;
    height: 100%;
    vertical-align: middle;
}
:not(#screen_2_drag_item_cnt)
    > .screen_2_drag_item
    > label
    > .vertical-support {
    display: none;
}
.screen_2_drag_item > .screen_2_drag_popup {
    position: absolute;
    left: -50%;
    top: 112%;
    width: 300px;
    height: 200px;
    background-image: url(../images/organs/img_1.svg);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: auto 80px;
    padding: 10px 10px 10px 80px;
    background-color: #c8ebff;
    border: 1px solid #0969c0;
    border-radius: 10px;
    text-align: left;
    pointer-events: none;
    line-height: 15px;
}
#screen_2_animal_drop.screen_2_drop_area
    > .screen_2_drag_item
    > .screen_2_drag_popup {
    left: -20%;
}
#screen_2_plant_drop.screen_2_drop_area
    > .screen_2_drag_item
    > .screen_2_drag_popup {
    left: calc(150% - 300px);
}
#screen_2_animal_drop.screen_2_drop_area
    > .screen_2_drag_item:nth-child(3)
    ~ .screen_2_drag_item
    > .screen_2_drag_popup,
#screen_2_animal_plant_drop.screen_2_drop_area
    > .screen_2_drag_item:nth-child(6)
    ~ .screen_2_drag_item
    > .screen_2_drag_popup,
#screen_2_plant_drop.screen_2_drop_area
    > .screen_2_drag_item:nth-child(3)
    ~ .screen_2_drag_item
    > .screen_2_drag_popup {
    top: calc(-12% - 200px);
}
.screen_2_drag_item > .screen_2_drag_popup:not(.show) {
    display: none;
}
.screen_2_drag_item:not(:hover) > .screen_2_drag_popup {
    /* display: none; */
}
#container > .screen_2_drag_item.ui-draggable-dragging,
.screen_2_drag_item > .screen_2_drag_popup.show,
.screen_2_drop_area .screen_2_drag_item:hover,
.screen_2_drop_area.show {
    z-index: 100;
}
/* --- */
#screen_2_drop_cnt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

#screen_2_drop_cnt:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background: url(../images/bg/animal_cell_wall.svg) 4px 90px / 490px auto
        no-repeat;
}
#screen_2_drop_cnt:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background: url(../images/bg/plant_cell_wall.svg) 155px 85px / 545px auto
        no-repeat;
}

#screen_2_drop_label {
    position: absolute;
    left: 0;
    top: 128px;
    width: 100%;
    height: 34px;
    z-index: 1;
}

#screen_2_drop_label label {
    position: absolute;
    display: inline-block;
    left: 0;
    top: 0;
    padding: 2px 10px;
    border-radius: 4px;
}
#screen_2_drop_label label#unique_animal_label {
    left: 20px;
    background-color: #f2e9c7;
}
#screen_2_drop_label label#similar_label {
    left: 280px;
    background-color: #d4d4d4;
}
#screen_2_drop_label label#unique_plant_label {
    left: 430px;
    background-color: #dce7a6;
}

#drag_blue_arrow {
    position: absolute;
    left: 308px;
    top: 24px;
    width: 39px;
    height: 18px;
}
#click_blue_arrow {
    position: absolute;
    right: 160px;
    top: 10px;
    width: 26px;
    height: 20px;
}

/* Drop area style */
.screen_2_drop_area {
    position: absolute;
    left: 0;
    top: 86px;
    width: 170px;
    height: 400px;
    padding: 70px 5px 5px 5px;
    text-align: center;
    /* border: 1px solid #000000; */
    z-index: 1;
}

.screen_2_drop_area.show,
.screen_2_drop_area:hover {
    z-index: 102 !important;
}

#screen_2_animal_drop {
    left: 10px;
}
#screen_2_animal_plant_drop {
    left: 180px;
    width: 280px;
}
#screen_2_plant_drop {
    left: 460px;
    width: 190px;
}
.screen_2_drop_area > .screen_2_drag_item:not(.ui-draggable-dragging) {
    position: relative;
    left: 0 !important;
    top: 0 !important;
    /* margin: 5px; */
    margin: 0;
    vertical-align: middle;
}

.screen_2_drop_area > .screen_2_drag_item.ui-draggable-dragging {
    position: absolute;
}

/* Screen 2 Score styles */
#screen_2_correct_wrong_cnt {
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 64px;
    text-align: center;
    z-index: 1;
}
#screen_2_correct_wrong_cnt > div {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 64px;
    font-size: 24px;
    background: url(../images/bg/mark.svg) 0 0 / 32px no-repeat;
    margin: 0 100px 0 40px;
}
#screen_2_correct_wrong_cnt > div:before,
#screen_2_correct_wrong_cnt > div:after {
    position: absolute;
    right: 0;
    width: 32px;
    height: 32px;
    padding: 5px;
}
#screen_2_correct_wrong_cnt > div:before {
    content: attr(data-correct);
    top: 0;
    color: #016026;
}
#screen_2_correct_wrong_cnt > div:after {
    content: attr(data-wrong);
    bottom: 0;
    color: #950202;
}
/* --- */

/* Good job popup */
.organ_modal_popup,
.modal_popup {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    z-index: 9999;
}
.organ_modal_popup {
    background-color: rgba(0, 0, 0, 0.4);
}
.organ_modal_popup > div,
.modal_popup > div {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    height: 310px;
    margin: auto;
    border: 4px solid #0969c0;
    background-color: #a9d3c5;
    font-size: 14px;
    color: #010101;
    border-radius: 20px;
    z-index: 9999;
}
.organ_modal_popup > div {
    width: 300px;
    height: 150px;
    border: 2px solid #0c4375;
    color: #0c4375;
    background-color: #d1eaff;
    border-radius: 5px;
}
#screen_2_end_popup > div {
    height: 200px;
    font-size: 28px;
}
#screen_1_start_popup > div {
    height: 300px;
}
.organ_modal_popup > div > p,
.modal_popup > div > p {
    margin: 20px 25px;
    padding: 10px;
}
#screen_2_restart_popup > div > p {
    font-size: 21px;
}
.organ_modal_popup > div > p {
    font-size: 16px;
    margin: 30px 50px 0 60px;
}
#screen_1_first_place_popup.organ_modal_popup > div > p {
    margin: 30px 40px 0 40px;
}
.organ_modal_popup > div > button,
.modal_popup > div > button {
    position: absolute;
    display: inline-block;
    left: 0;
    right: 0;
    width: 100px;
    margin: 20px auto;
    /* background-image: linear-gradient(#e2efea, #b9d1c9); */
}
.organ_modal_popup > div > button.organ_popup_close {
    position: absolute;
    left: auto;
    top: 10px;
    right: 10px;
    bottom: auto;
    width: 25px;
    height: 25px;
    margin: 0;
    background: none;
    background-color: #e16ea7;
    border: 2px solid #8a1774;
}
.organ_modal_popup > div > button.organ_popup_close:before,
.organ_modal_popup > div > button.organ_popup_close:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 150%;
    border-left: inherit;
    margin: auto;
    transform: rotate(45deg);
    background: none;
    background-color: transparent;
}
.organ_modal_popup > div > button.organ_popup_close:after {
    transform: rotate(-45deg);
}
/* --- */

/* Common button ui */
button {
    position: relative;
    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;
    cursor: pointer;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
}
button.green {
    background: linear-gradient(#e1eeea, #b9d1c9) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#b6b9bb, #596064) 0 0 / 100% 100% no-repeat;
}
button: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;
}
button.green:hover {
    background: linear-gradient(#e1eeea, #b9d1c9) 2px 1px / calc(100% - 4px)
            calc(100% - 2px) no-repeat,
        linear-gradient(#009dff, #009dff) 0 0 / 100% 100% no-repeat;
}
button:before,
button: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.green:before,
button.green:after {
    background: linear-gradient(#e1eeea, #b9d1c9) 0 0 / 100% 100% no-repeat;
}
button:before {
    right: 1px;
}
button:after {
    left: 1px;
}
*.disabled,
*[disabled] {
    opacity: 0.5 !important;
    cursor: default !important;
    pointer-events: none;
}
/* --- */
