html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    visibility: hidden;
    background: -webkit-gradient(linear, left top, left bottom, from(#36b1f0), to(#00c2c7));
    background: linear-gradient(#36b1f0, #00c2c7);
}

body::after {
    content: "";
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1;
}

body.lock::after {
    display: block;
}

#stage {
    position: fixed;
    left: 50%;
    top: 50%;
}

#stage::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    display: block;
    position: absolute;
    left: -5px;
    top: -5px;
}

#map {
    width: 4624px;
    height: 3524px;
    display: block;
    position: absolute;
    left: -2970px;
    top: -2288px;
}

#character {
    width: 159px;
    height: 179px;
    text-indent: -9999px;
    position: absolute;
    left: -82.5px;
    top: -179px;
}

#character::before {
    content: "";
    width: 159px;
    height: 179px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    background: url("../image/game/character.png");
    display: block;
}

#character::after {
    content: "";
    width: 100px;
    height: 40px;
    margin-left: -50px;
    position: absolute;
    left: 50%;
    bottom: -10%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    display: block;
}

#character.tl::before {
    background-position: left top;
}

#character.tr::before {
    background-position: -318px top;
}

#character.bl::before {
    background-position: -159px top;
}

#character.br::before {
    background-position: right top;
}

#intro {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 6;
    display: table;
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
}

#intro .outer {
    text-align: center;
    vertical-align: middle;
    display: table-cell;
}

#intro .inner {
    display: inline-block;
    position: relative;
}

#intro .inner img {
    width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
}

@media (max-width: 420px) {
    #intro .inner img {
        width: 95%;
    }
}

#intro .inner .close {
    width: 17%;
    padding-bottom: 11%;
    top: 11%;
    left: 41%;
    border-radius: 50%;
    opacity: 0;
    position: absolute;
    cursor: pointer;
    text-indent: -9999px;
    background: rgba(255, 255, 255, 0.3);
    display: block;
    -webkit-transition: all .3s;
    transition: all .3s;
}

#intro .inner .close:hover {
    opacity: 1;
}

@media (max-width: 420px) {
    #intro .inner .close:hover {
        opacity: 0;
    }
}

#score {
    left: 45%;
    right: 45%;
    padding: 10px;
    text-align: center;
    bottom: 20px;
    position: fixed;
    line-height: 65px;
    font-style: italic;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    color: #FFF;
    background: #85674d;
    border-radius: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    cursor: default;
    -webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6);
}

#start {
    left: 30%;
    right: 30%;
    padding: 10px;
    position: fixed;
    bottom: 130px;
    line-height: 65px;
    font-style: italic;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    color: #FFF;
    background: #86a200;
    border-radius: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    cursor: pointer;
    -webkit-transition: all .3s;
    transition: all .3s;
    text-align: center;
}

#start:hover {
    background: #d6471c;
}

#start:hover::before {
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
}

#question {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 6;
}

#question li {
    display: none;
    vertical-align: middle;
    text-align: center;
}

#question li .outer {
    display: inline-block;
    width: 95%;
    max-width: 1080px;
    padding: 25px;
    background: #a7bf2e;
    border-radius: 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
}

#question li .outer .tip {
    width: 366px;
    height: 280px;
    background-image: url("../image/game/dialog_background.png");
    background-size: 100%;
    background-position: 0;
    background-repeat: no-repeat;
    border-radius: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    padding: 80px 0;
}

.wrap a.lock {
    pointer-events: none;
}

.tip p {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: .5px;
    color: #eb0f0f;
    cursor: default;
}

.tip a {
    width: 220px;
    margin: 20px auto 0 auto;
    padding: 5px 0;
    background: #fee73b;
    border-style: solid;
    border-width: 3px 0 0 3px;
    border-color: #FFF;
    border-radius: 10px;
    -webkit-box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    font-size: 28px;
    color: #ec6c00;
    font-weight: bold;
    text-align: center;
    display: block;
    -webkit-transition: all .3s;
    transition: all .3s;
    cursor: pointer;
}

.tip a:hover {
    background: #ec6c00;
    color: #FFF;
}

.open {
    width: 60%;
    height: 70vh;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 8;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

@media (max-width: 1536px) {
    .open {
        height: 60vh;
    }

    #question li .outer .tip {
        width: 366px;
        height: 280px;
    }
}

@media (max-width: 1024px) {
    .open {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .open {
        width: 100%;
        height: 50vh;
    }
}

@media (max-width: 420px) {
    .open {
        height: 40vh;
    }
}

.open iframe {
    width: 100%;
    height: 100%;
}

.open_title {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffffff;
    position: absolute;
    bottom: 5%;
    left: 50%;
    z-index: 8;
    -webkit-transform: translate(-50%, -100%);
    transform: translate(-50%, -100%);
    cursor: default;
}

@media (max-width: 768px) {
    .open_title {
        font-size: 24px;
    }
}

@media (max-width: 420px) {
    .open_title {
        font-size: 20px;
        bottom: 15%;
    }
}

@media (max-width: 375px) {
    .open_title {
        font-size: 18px;
    }
}

@media (max-width: 320px) {
    .open_title {
        font-size: 16px;
    }
}

.white_overlay {
    width: 100%;
    height: 100vh;
    background: -webkit-gradient(linear, left top, left bottom, from(#000000), color-stop(#1773ae), to(#10517c));
    background: linear-gradient(#000000, #1773ae, #10517c);
    opacity: .5;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 7;
}

#question li .inner {
    border-radius: 10px;
    text-align: left;
}

#question li .inner h1 {
    position: relative;
    padding-left: 0;
    font-size: 40px;
    color: #FFF;
    letter-spacing: 1px;
    font-weight: bold;
    cursor: default;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

#question li .inner h1 span {
    position: static;
    padding-right: 5px;
    top: 5px;
    font-style: italic;
    color: #ffc400;
}

#question li .inner .wrap {
    margin-top: 20px;
    overflow: hidden;
}

#question li .inner .wrap a {
    width: 47%;
    height: 140px;
    margin: 1.5%;
    padding: 20px 20px 20px 60px;
    font-size: 35px;
    letter-spacing: 1px;
    font-weight: bold;
    color: #FFF;
    background: #b1d500;
    border-radius: 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    float: left;
    display: block;
    position: relative;
    -webkit-transition: all .3s;
    transition: all .3s;
    cursor: pointer;
}

@media (max-width: 1536px) {
    #question li .inner .wrap a {
        height: 60px;
        padding: 10px 10px 10px 40px;
        font-size: 25px;
    }
}

#question li .inner .wrap a:before {
    content: "";
    position: absolute;
    left: 10px;
    top: 30px;
    display: inline-block;
    width: 40px;
    height: 70px;
    background-size: 100% auto;
    font-size: 36px;
    color: #85674d;
    line-height: 70px;
    text-align: center;
    vertical-align: middle;
}

@media (max-width: 1536px) {
    #question li .inner .wrap a:before {
        width: 20px;
        height: 50px;
        font-size: 30px;
        line-height: 50px;
        top: 5px;
    }
}

#question li .inner .wrap a:nth-child(1):before {
    content: "1";
}

#question li .inner .wrap a:nth-child(2):before {
    content: "2";
}

#question li .inner .wrap a:nth-child(3):before {
    content: "3";
}

#question li .inner .wrap a:nth-child(4):before {
    content: "4";
}

#question li .inner .wrap a:hover {
    background: #86a200;
}

#finish {
    position: fixed;
    left: 0;
    top: 0;
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 6;
}

#finish > li {
    display: none;
    vertical-align: middle;
    text-align: center;
}

#finish > li .outer {
    display: inline-block;
    max-width: 300px;
    border-radius: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#finish > li .inner {
    padding: 20px;
    border-radius: 10px;
}

#finish > li .inner:before {
    content: "";
    display: block;
    width: 281px;
    height: 0px;
    margin: 0 auto 20px auto;
    background-size: 500% auto;
}

#finish > li:nth-child(1) .inner:before {
    background-position: left top;
}

#finish > li:nth-child(2) .inner:before {
    background-position: -100% top;
}

#finish > li:nth-child(3) .inner:before {
    background-position: -200% top;
}

#finish > li:nth-child(4) .inner:before {
    background-position: -300% top;
}

#finish > li:nth-child(5) .inner:before {
    background-position: right top;
}

#finish > li .inner h6 {
    font-size: 30px;
    line-height: 36px;
    color: #FFF;
    font-weight: bold;
    cursor: default;
}

#finish > li .inner p {
    font-size: 26px;
    line-height: 30px;
    color: #f7931e;
    font-weight: bold;
    cursor: default;
}

#finish > li .inner .accept {
    display: block;
    width: 220px;
    margin: 20px auto 0 auto;
    padding: 5px 0;
    background: #fee73b;
    border-style: solid;
    border-color: #FFF;
    border-radius: 40px;
    -webkit-box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    font-size: 30px;
    line-height: 36px;
    color: #ec6c00;
    font-weight: bold;
    text-align: center;
    -webkit-transition: all .3s;
    transition: all .3s;
    cursor: pointer;
}

#finish > li .inner .accept:hover {
    background: #ec6c00;
    color: #FFF;
}

#finish > li.game-over {
    z-index: 1;
}

#finish > li.game-over .outer {
    width: 366px;
    height: 280px;
    background-image: url("../image/game/dialog_background.png");
    background-size: 100%;
    background-position: 0;
    background-repeat: no-repeat;
    padding: 50px 0;
}

#finish > li.game-over .inner {
    border-color: #f29c9f;
}

#finish > li.game-over .inner .accept {
    background: #51d0ec;
    color: #1080b5;
}

#finish > li.share .outer {
    background: #4868ab;
}

#finish > li.share .inner {
    border-color: #88abda;
}

#finish > li.share .inner .accept {
    background: #f7c94c;
    color: #c5620e;
}

@media (max-width: 900px) {
    #question li .inner .wrap a {
        float: none;
        width: 100%;
        height: auto;
        margin: 10px auto;
        padding: 10px;
        text-align: center;
    }

    #question li .inner .wrap a:before {
        position: static;
        display: inline-block;
        width: 40px;
        height: 40px;
        margin-right: 10px;
        font-size: 25px;
        line-height: 40px;
    }

    #finish > li .inner h6 {
        font-size: 30px;
        line-height: 36px;
        color: #FFF;
        font-weight: bold;
        cursor: default;
    }

    #finish > li .inner p {
        font-size: 24px;
        line-height: 30px;
        font-weight: bold;
        cursor: default;
    }

    #finish > li .inner:before {
        width: 0px;
        height: 0px;
    }

    #finish > li .inner .accept {
        font-size: 30px;
    }
}

.tip p {
    font-size: 28px;
}

.tip a {
    font-size: 24px;
    padding: 20px 0;
}

@media (max-width: 1280px) {
    #score {
        left: 40%;
        right: 40%;
    }

    #start {
        left: 22%;
        right: 22%;
    }
}

@media (max-width: 768px) {
    #score {
        left: 30%;
        right: 30%;
        font-size: 30px;
        line-height: 40px;
    }

    #score:before {
        width: 30px;
        height: 30px;
    }

    #start {
        left: 15%;
        right: 15%;
        padding: 10px;
        font-size: 30px;
        line-height: 40px;
        text-align: center;
        bottom: 90px;
    }

    #start:before {
        width: 30px;
        height: 30px;
    }

    #start:hover {
        background: #d6471c;
    }
}

@media (max-width: 480px) {
    #score {
        left: 15%;
        right: 15%;
        -webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6);
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6);
    }

    #start {
        left: 5%;
        right: 5%;
        -webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
        bottom: 90px;
    }

    #question li .inner h1 {
        font-size: 20px;
    }

    #question li .inner .wrap {
        margin-top: 10px;
    }

    #question li .inner .wrap a {
        font-size: 16px;
    }

    #question li .inner .wrap a:before {
        width: 30px;
        height: 30px;
        font-size: 20px;
        line-height: 30px;
    }

    .tip p {
        font-size: 24px;
    }

    .tip a {
        font-size: 20px;
        padding: 10px 0;
    }

    nav {
        background-color: transparent;
        border-bottom: none;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
}
