@import "./common/header.css";
@import "./common/footer.css";

@media (min-width: 768px) {
    #animation_container_mobile {
        display: none;
    }
}

@media (max-width: 767.98px) {
    #animation_container {
        display: none;
    }
}

#gameFormStart {
    display: none;
}

#gameForm {
    display: none;
}

#gameFormDone {
    display: none;
}

.game_popup_fadeout {
    animation-name: fadeout;
    animation-duration: 1.2s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

@keyframes fadeout {
    from {
        top: 50%;
    }

    to {
        top: 70%;
        opacity: 0;
    }
}

.game_popup_fadein {
    animation-name: fadein;
    animation-duration: 1.2s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes fadein {
    from {
        top: 70%;
        opacity: 0;
    }

    to {
        top: 50%;
    }
}

.game_main_border_dark_green {
    border: 5px solid #458514;
    border-radius: 20px;
    width: 510px;
    height: 400px;
    background-color: #C9E3A3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.game_main_border_green {
    width: 499px;
    height: 390px;
    border: 5px solid #C9E3A3;
    background: #FFFFFF;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game_main_content {
    width: 460px;
    text-align: center;
}

.game_main_title {
    font-weight: 500;
    font-size: 26px;
    line-height: 36px;
    text-align: center;
    letter-spacing: 0.07em;
    width: 400px;
    border-bottom: 1px solid #E0E2E6;
    padding-bottom: 20px;
    margin: 0 auto 15px;
}

.game_main_title_2 {
    font-weight: 600;
    font-size: 26px;
    line-height: 36px;
    text-align: center;
    letter-spacing: 0.06em;
    width: 450px;
    padding-bottom: 100px;
}

.game_main_content_start_word {
    font-weight: 500;
    margin: 20px auto;
    text-align: justify;
    font-size: 20px;
    line-height: 35px;
    width: 400px;
}

.game_form {
    margin: 0 auto;
}

.game_label {
    font-weight: 500;
    font-size: 22px;
    line-height: 35px;
}

.game_input {
    border: 3px solid #C9E3A3;
    border-radius: 6px;
    width: 300px;
    height: 45px;
    margin-left: 32px;
    margin-bottom: 10px;
    outline: medium;
    padding-left: 10px;
    font-size: 18px;
}

.game_input:hover {
    border: 3px solid #458514;
}

.game_input:focus {
    border: 3px solid #458514;
}

.form_remind_txt {
    font-weight: 500;
    font-size: 18px;
    line-height: 35px;
    letter-spacing: 0.1em;
    color: #EF1D1D;
    text-align: center;
}

.game_form_btn {
    cursor: pointer;
    margin-top: 14px;
    background: #458514;
    border: 4px solid #C9E3A3;
    border-radius: 12px;
    width: 220px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 29px;
    color: #fff;
    box-shadow: 0px 5px 0px #458514;
    margin: 0 auto;
}

.game_form_btn:hover {
    transform: scale(1.06);
}

.game_form_btn_med {
    margin-top: 10px;
}

.game_form_btn_input {
    border: 0;
    background-color: #458514;
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    color: #FFFFFF;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    cursor: pointer;
}

.game_form_a_btn {
    display: block;
    color: #fff;
    width: 100%;
    height: 100%;
}

.game_main_content_2 {
    width: 450px;
    margin-top: 90px;
    text-align: center;
}

.game_main_two_btn {
    display: flex;
    justify-content: space-between;
}

.game_form_btn_gohome {
    width: 210px;
    height: 50px;
    margin: 70px auto 50px;
}

.game_form_btn_again {
    margin-top: 14px;
    background: #FA841F;
    border: 4px solid #FFC390;
    border-radius: 12px;
    width: 210px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: #fff;
    box-shadow: 0px 5px 0px #fa841f;
    margin: 0 auto;
    cursor: pointer;
}

.game_form_btn_again:hover {
    transform: scale(1.06);
}

/* ================ game web css ================ */
.animation_container_bg {
    background-color: #98BCF8;
    display: flex;
    align-items: center;
    justify-items: center;
}

#animation_container {
    margin: 0 auto;
}

#animation_container_mobile {
    margin: 0 auto;
}

@media (min-width: 1600px) {
    #animation_container {
        max-width: 1600px;
        max-height: 900px;
    }

    #canvas {
        max-width: 1600px;
        max-height: 900px;
    }

    #dom_overlay_container {
        max-width: 1600px;
        max-height: 900px;
    }

    .game_main_border_dark_green {
        border: 5px solid #458514;
        border-radius: 20px;
        width: 640px;
        height: 400px;
        background-color: #C9E3A3;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .game_main_border_green {
        width: 631px;
        height: 391px;
        border: 5px solid #C9E3A3;
        background: #FFFFFF;
        border-radius: 15px;
        display: flex;
        justify-content: center;
        align-items: center;

    }

    .game_main_content {
        width: 480px;
        text-align: center;
    }

    .game_main_title {
        font-weight: 500;
        font-size: 26px;
        line-height: 36px;
        text-align: center;
        letter-spacing: 0.07em;
        width: 480px;
        border-bottom: 1px solid #E0E2E6;
        padding-bottom: 20px;
        margin-bottom: 15px;
    }

    .game_main_title_2 {
        font-weight: 600;
        font-size: 26px;
        line-height: 36px;
        text-align: center;
        letter-spacing: 0.06em;
        width: 600px;
        padding-bottom: 100px;
    }

    .game_main_content_start_word {
        font-weight: 500;
        margin: 25px auto;
        font-size: 24px;
        line-height: 35px;
        text-align: left;
    }

    .game_form {
        margin: 0 auto;
    }

    .game_label {
        font-weight: 500;
        font-size: 24px;
        line-height: 35px;
    }

    .game_input {
        border: 3px solid #C9E3A3;
        border-radius: 6px;
        width: 357px;
        height: 45px;
        margin-left: 32px;
        margin-bottom: 10px;
        outline: medium;
        padding-left: 10px;
        font-size: 18px;
    }

    .game_input:hover {
        border: 3px solid #458514;
    }

    .game_input:focus {
        border: 3px solid #458514;
    }

    .game_form_btn {
        cursor: pointer;
        margin-top: 14px;
        background: #458514;
        border: 5px solid #C9E3A3;
        border-radius: 15px;
        width: 330px;
        height: 71px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 400;
        font-size: 24px;
        line-height: 29px;
        color: #fff;
        box-shadow: 0px 5px 0px #458514;
        margin: 0 auto;
    }

    .game_form_btn:hover {
        transform: scale(1.06);
    }

    .game_form_btn_med {
        margin-top: 10px;
    }

    .game_form_btn_input {
        border: 0;
        background-color: #458514;
        font-weight: 500;
        font-size: 24px;
        line-height: 30px;
        color: #FFFFFF;
        width: 100%;
        height: 100%;
        border-radius: 15px;
        cursor: pointer;
    }

    .game_main_content_2 {
        width: 600px;
        margin-top: 90px;
        text-align: center;
    }

    .game_main_two_btn {
        display: flex;
        justify-content: space-between;
    }

    .game_form_btn_gohome {
        width: 260px;
        height: 71px;
    }

    .game_form_btn_again {
        margin-top: 14px;
        background: #FA841F;
        border: 5px solid #FFC390;
        border-radius: 15px;
        width: 260px;
        height: 71px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 500;
        font-size: 24px;
        line-height: 30px;
        color: #fff;
        box-shadow: 0px 5px 0px #FA841F;
        margin: 0 auto;
        cursor: pointer;
    }

    .game_form_btn_again:hover {
        transform: scale(1.06);
    }
}

@media (min-width: 1400px) {
    .animation_container_bg {
        width: 100% !important;
        height: calc(100vh - 78px - 85px);
    }

    #animation_container {
        width: calc((calc(100vh - 78px - 85px)) * 1.77) !important;
        height: calc(100vh - 78px - 85px) !important;
        min-width: calc((calc(100vh - 78px - 85px)) * 1.77) !important;
    }

    #canvas {
        width: calc((calc(100vh - 78px - 85px)) * 1.77) !important;
        height: calc(100vh - 78px - 85px) !important;
        min-width: calc((calc(100vh - 78px - 85px)) * 1.77) !important;
    }

    #dom_overlay_container {
        width: calc((calc(100vh - 78px - 85px)) * 1.77) !important;
        height: calc(100vh - 78px - 85px) !important;
        min-width: calc((calc(100vh - 78px - 85px)) * 1.77) !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .animation_container_bg {
        width: 100%;
        height: calc(100vh - 78px - 85px);
    }

    #animation_container {
        width: 1056px !important;
        height: 594px !important;
    }

    #canvas {
        width: 1056px !important;
        height: 594px !important;
    }

    #dom_overlay_container {
        width: 1056px !important;
        height: 594px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .animation_container_bg {
        width: 100%;
        height: calc(100vh - 78px - 85px);
    }

    #animation_container {
        width: 980px !important;
        height: 551.25px !important;
    }

    #canvas {
        width: 980px !important;
        height: 551.25px !important;
    }

    #dom_overlay_container {
        width: 980px !important;
        height: 551.25px !important;
    }
}

@media (max-width: 992px) {
    .game_main_border_dark_green {
        width: 390px;
        height: 300px;
        border: 3px solid #458514;
        border-radius: 10px;
    }

    .game_main_border_green {
        width: 384px;
        height: 294px;
        border: 3px solid #C9E3A3;
        border-radius: 9px;
    }

    .game_main_title {
        font-weight: 400;
        font-size: 20px;
        line-height: 15px;
        width: 300px;
        border-bottom: 1px solid #E0E2E6;
        padding-bottom: 15px;
        margin: 10px auto;
    }

    .game_main_content {
        width: 370px;
        height: 265px;
    }

    .form_remind_txt {
        font-size: 14px;
    }

    .game_main_content_start {
        width: 370px;
        height: 220px;
    }

    .game_main_content_start_word {
        margin: 10px auto;
        font-size: 18px;
        line-height: 25px;
        width: 300px;
    }

    .game_form_btn {
        width: 200px;
        height: 40px;
        font-size: 14px;
        border: 3px solid #C9E3A3;
        border-radius: 10px;
    }

    .game_label {
        font-size: 18px;
    }

    .game_input {
        width: 215px;
        height: 36px;
        font-size: 15px;
        margin-left: 20px;
        margin-bottom: 5px;
    }

    .game_form_btn_med {
        margin-top: 5px;
    }

    .game_form_btn_input {
        font-size: 14px;
    }

    .game_main_content_2 {
        width: 320px;
        margin-top: 70px;
    }

    .game_main_title_2 {
        width: 320px;
        font-size: 22px;
        padding-bottom: 70px;
    }

    .game_form_btn_gohome {
        width: 140px;
        height: 40px;
        box-shadow: 0px 3px 0px #458514;
        margin: 50px auto;
    }

    .game_form_btn_again {
        width: 140px;
        height: 40px;
        font-size: 14px;
        border: 3px solid #FFC390;
        box-shadow: 0px 3px 0px #fa841f;
        border-radius: 10px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .animation_container_bg {
        width: 100%;
        height: calc(100vh - 78px - 75px);
    }

    #animation_container {
        width: 752px !important;
        height: 423px !important;
    }

    #canvas {
        width: 752px !important;
        height: 423px !important;
    }

    #dom_overlay_container {
        width: 752px !important;
        height: 423px !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .animation_container_bg {
        position: relative;
        width: 100%;
        height: calc(100vh - 78px - 65px);
        display: flex;
        justify-content: center;
        align-items: center;

    }

    #animation_container_mobile {
        background-color: rgba(255, 255, 255, 1.00);
        width: 412.5px !important;
        height: 600.6px !important;
    }

    #canvas_mobile {
        width: 412.5px !important;
        height: 600.6px !important;
    }

    #dom_overlay_container_mobile {
        width: 412.5px !important;
        height: 600.6px !important;
    }
}

@media (min-width: 440px) and (max-width: 575.98px) {
    #animation_container_mobile {
        background-color: rgba(255, 255, 255, 1.00);
        width: 412.5px !important;
        height: 600.6px !important;
    }

    #canvas_mobile {
        width: 412.5px !important;
        height: 600.6px !important;
    }

    #dom_overlay_container_mobile {
        width: 412.5px !important;
        height: 600.6px !important;
    }
}

@media (max-width: 575.98px) {
    .animation_container_bg {
        width: 100%;
        position: relative;
        height: calc(100vh - 65px - 56px);
    }
}

@media (max-width: 439.98px) {
    .animation_container_bg {
        align-items: inherit;
    }

    #animation_container_mobile {
        background-color: rgba(255, 255, 255, 1.00);
        width: 100vw !important;
        height: 145.6vw !important;
    }

    #canvas_mobile {
        width: 100vw !important;
        height: 145.6vw !important;
        display: block;
        background-color: rgba(255, 255, 255, 1.00);
    }

    #dom_overlay_container_mobile {
        width: 100vw !important;
        height: 145.6vw !important;
        pointer-events: none;
        overflow: hidden;
        width: 375px;
        height: 546px;
        position: absolute;
        left: 0px;
        top: 0px;
        display: block;
    }

    /* ============== game_main ============== */
    .game_main_border_dark_green {
        width: 300px;
        height: 270px;
        border: 3px solid #458514;
        border-radius: 10px;
    }

    .game_main_border_green {
        width: 294px;
        height: 264px;
        border: 3px solid #C9E3A3;
    }

    .game_main_content {
        width: 260px;
        height: 238px;
    }

    .game_main_title {
        width: 260px;

    }

    .game_main_content_start_word {
        margin: 14px auto;
        width: 260px;
        font-size: 16px;
    }

    .game_label {
        font-size: 16px;
    }

    .game_input {
        border: 2px solid #C9E3A3;
        margin-left: 5px;
    }

    .game_input:hover {
        border: 2px solid #458514;
    }

    .game_input:focus {
        border: 2px solid #458514;
    }

    .game_main_title_2 {
        width: 300px;
    }

    .form_remind_txt {
        font-size: 10px;
        line-height: 16px;
    }

    .game_form_btn_gohome {
        width: 130px;
        margin: 30px auto;
    }

    .game_form_btn_again {
        width: 130px;
    }
}

@media (max-width: 320px) {
    .animation_container_bg {
        height: calc(100vh - 50px - 56px);
        align-items: center;
    }

    #animation_container_mobile {
        width: 250px !important;
        height: 364px !important;
    }

    #canvas_mobile {
        width: 250px !important;
        height: 364px !important;
    }

    #dom_overlay_container_mobile {
        width: 250px !important;
        height: 364px !important;
    }
}