@charset "utf-8";

.game-body .bg {left: 0%; transform: translateX(0)}
.game-body .bg-obj {height:auto}

.icon-home {background-color: #FFB649; box-shadow: 2px 2px #EB9026}
.icon-close {background-color: #FFB649}
.bx h3 {color: #E23333}

/* 버튼 */
.btn, .btn-start {background: #ED3F3F; border-color: #FA8686; box-shadow: 0px 8px #C00D0D !important}
.btn-reset{background: #FF9A3E; border-color: #FFBA7B; box-shadow: 0px 8px #F86817 !important}
.btn-replay, #ending .btn-reset  {background: #68A4FF; border-color: #ABCDFF; box-shadow: 0px 8px #1469EA !important}
.btn.btn-circle {background: #FFB36C;border-color: #FFDEC0;box-shadow: 0px 8px #EA872A !important}

/* modal */
#modal-guide .icon-close {background-color: #FF8A8A}
.modal-title {color: #E23333}
.guide-item .num {background: #FFB36C}
.modal-content {box-shadow: 6px 6px #E6DBFF}
.modal-alert .modal-content{box-shadow: 12px 12px #E6DBFF}

/* 홈 */
#home .bg-obj {left: 0; transform: none; z-index: 30}
#home.show .bg-obj {animation: certain 0.7s}
#home .home-title {top: 100px; width: 413px; transform: translate(-50%, -100%); opacity:0}
#home.show .home-title {transform: translate(-50%, 0); transition: .5s; transition-duration: 1s; transition-delay: 1s; opacity:1}
#home.show>.btn {animation-delay: 2s}
.home-balloon {background: #FF9533; border-color: #facea6}
.home-balloon:after {background-image: url(../img/game04/home-tail.png)}

/* home */
.home-ai{top: 257px;margin-left: -18px;width: 704px;height: 381px;background: url(../img/game04/home-ai.png) no-repeat 0 0 / 100% auto}
#home.show .home-ai{animation: home-ani 2s infinite .4s steps(2)}
@keyframes home-ani {
    100% {
        background-position: 0 -762px
    }
}

/* 인트로 */
#intro .bg-obj {width: 106%; top:-30px; max-width: none; z-index: 30}
#intro .intro-obj00 {left:28px; height: 100%; transform: none; opacity: 0}
#intro.show .intro-obj00 {animation:fadeIn 1s .5s both}
.intro-obj01 {top: 36px; width:100%}
.intro-obj02 {bottom:0; left: 90% !important; width:225px}
.intro-obj03 {right: 212px;bottom: 56px;left: auto !important;width: 95px;animation: speaker 1.5s linear infinite alternate;transform: none !important;}

#intro .pages{top: 0;bottom: 0;left: 0;z-index: 2;width: 50%;transform: none}
#intro .pages [class^=intro-ai]{top: auto;bottom:0;left: 0;width: 450px;height:475px;background: url(../img/game04/intro-ai01.png) no-repeat 0 0 / 100% auto;transform: translateX(-100%)}
#intro .pages .intro-ai02{background-image: url(../img/game04/intro-ai02.png)}
#intro .pages .intro-ai03{width:585px;background-image: url(../img/game04/intro-ai03.png)}
#intro.show .pages [class^=intro-ai] {transform: translateX(0);transition: all .5s;/*animation: intro-ani 2s infinite .4s steps(2)*/}
/* 인트로 화면 애니 주석
@keyframes intro-ani {
    100% {
        background-position: 0 -950px
    }
} */

/* 엔딩 */
#ending.show .light {animation:fadeIn 1s .5s both}
#ending .bx {display: flex; justify-content: center; align-items: center; top:80px; width: 600px; min-height: 200px;border-color: #FFC46C; box-shadow: 8px 8px #EC7837; color: #834545}
#ending.show .bx {opacity: 0; transition:.4s .5s, opacity .5s 3.5s;}
#ending .btn-reset {opacity: 0}
#wrap.finish .btn-reset{animation-delay: 5s}
.fail #ending .light, .fail #ending .bx ,.fail .page03 [class*=end-obj0], .fail .conpetti {display: none}
[class^=end-ai0]{background-position: 0 0;background-repeat: no-repeat;background-size: 100% auto}
.end-ai01{top: 334px;width: 350px;height: 300px;margin-left: -10px;background-image: url(../img/game04/end-ai01.png);}
.end-ai02{top: 328px;width: 527px;height: 253px;margin-left: -11px;background-image: url(../img/game04/end-ai02.png);}
.end-ai03{top: 228px;width: 700px;height: 320px;background-image: url(../img/game04/end-ai03.png);}
#ending.show .end-ai01{animation: end-ani01 2s infinite steps(2)}
#ending.show .end-ai02{animation: end-ani02 2s infinite steps(2)}
#ending.show .end-ai03{animation: end-ani03 2s infinite steps(2)}
.fail #ending.show [class^=end-ai0]{animation: none;}
.fail #ending.show .end-ai01{background-position: 0 -600px;}
.fail #ending.show .end-ai02{background-position: 0 -506px;}
.fail #ending.show .end-ai03{background-position: 0 -640px;}
@keyframes end-ani01 {
    100% {
        background-position: 0 -600px
    }
}
@keyframes end-ani02 {
    100% {
        background-position: 0 -506px
    }
}
@keyframes end-ani03 {
    100% {
        background-position: 0 -640px
    }
}

/* 라운드 */
#round .bg-obj {width: 106%; top:-30px; max-width: none}
#round .round-obj {bottom:0; left: 35%;}
#round .bx{top:106px;bottom:43px;width:1200px; z-index: unset}
#round .bx-inner{display: flex;flex-direction: column;align-items: center;justify-content: center; padding: 40px 68px;border-color: #FFC46C;box-shadow: 10px 10px #EC7837}
#life {background-color: #FFC46C; box-shadow: 8px 0px 0px 0px #EC7837}
#life i{background-image: url(../img/game04/icon-star.png)}
#life i.off{background-image: url(../img/game04/icon-star-off.png)}
.round-bubble{background: #F37935;border: 3px solid #FFAE81;box-shadow: 0px 6px 0px 0px #E55809}
.round-bubble:after{background-image: url(../img/game04/round-tail.png)}
#intro .step-bx{border-color:#FFC46C;border-radius: 35px;padding:64px 38px 38px;box-shadow: 8px 8px 0px 0px #FFE4C6 inset;}
#intro .step-bx .bx{background: #FFEFC5;border:4px solid #FFF3EA;border-radius: 30px;box-shadow: 8px 8px 0px 0px #FFE0B0 inset}
#intro .step-bx .bx h3{color: #752D2D;}

/* page01 */
.page01 .result-ai.correct p, [data-page="1"] .result-ai.correct p{bottom: 203px;left: 184px}
.page01 .result-ai.wrong p, [data-page="1"] .result-ai.wrong p{bottom: 182px;left: 175px}
.page01 .retry .result-ai.wrong p, [data-page="1"] .retry .result-ai.wrong p{bottom: 199px;left: 193px}
#intro .page01 .home-char-1 {bottom: 42px; left:11px !important; width:400px; height:335px}
#ending .page01 .light {width:462px}
#ending .page01 .home-char-1 {bottom:88px; left:455px !important; width:360px; height: 308px}
.fail #ending .page01 .home-char-1 {background-image: url(../img/game04/page01/fail-char01.png)}

/* page02 */
.page02 .result-ai.correct p, [data-page="2"] .result-ai.correct p{bottom: 195px;left: 195px;transform: rotate(9deg)}
.page02 .result-ai.wrong p, [data-page="2"] .result-ai.wrong p{bottom: 178px;left: 178px;transform: rotate(8deg)}
.page02 .retry .result-ai.wrong p, [data-page="2"] .retry .result-ai.wrong p{bottom: 197px;left: 196px}
#intro .page02 .home-char-2 {bottom: 34px; left:11px !important; width:390px; height:332px}
#ending .page02 .light {width:896px}
#ending .page02 .home-char-1 {bottom:140px; left: 364px !important; width:311px; height: 262px}
#ending .page02 .home-char-2 {bottom:140px; left: 646px !important; width:256px; height: 213px}
.fail #ending .page02 .home-char-1 {background-image: url(../img/game04/page02/fail-char01.png)}
.fail #ending .page02 .home-char-2 {background-image: url(../img/game04/page02/fail-char02.png)}

/* page03 */
#intro .page03 .home-char-3 {bottom: 28px; left:53px !important; width:455px; height:424px}
#ending .page03 .light {width:1065px; animation-delay: 2.5s}
#ending .page03 .home-char-1 {bottom:188px; left:310px !important; width:218px; height: 185px}
#ending .page03 .home-char-2 {bottom:188px; left:782px !important; width:188px; height: 158px}
#ending .page03 .home-char-3 {bottom:208px; left:517px !important; width:286px; height: 258px}
.fail #ending .page03 .home-char-1 {background-image: url(../img/game04/page03/fail-char01.png)}
.fail #ending .page03 .home-char-2 {background-image: url(../img/game04/page03/fail-char02.png)}
.fail #ending .page03 .home-char-3 {background-image: url(../img/game04/page03/fail-char03.png)}
.page03 [class*=end-obj0] {width: 50%; transform: none}
.page03 .end-obj01 {left: 0}
#ending.show .page03 [class*=end-obj0] {animation:certain-2 2s linear 2.5s both}
#ending.show .page03 .end-obj02 {animation-name: certain-3}
#ending .page03 .bx {transform: translate(-50%, 0) !important; transition: .4s}
#ending.show .page03 .bx {transform: translate(-50%, 50%) !important; opacity: 0; transition:.4s, opacity .5s 2s;}

.conpetti {width: 100%;height: 100%}
.conpetti img {position: absolute; top: -50%; left:0}
#ending.show .conpetti img {animation: conpetti 3s linear infinite}
#ending.show .conpetti img:nth-child(4) {animation-delay: 1s}
#ending.show .conpetti img:nth-child(1),
#ending.show .conpetti img:nth-child(3) {animation-delay: .5s}

.modal-body{padding:72px 47px;}

/* social */
/* .social #round .bx{top:90px} */

@keyframes certain {
	0%{
        transform: translate(0, -70%)
    }
    100%{
        transform: translate(0, 0)
    }
}
@keyframes certain-2 {
	0%{
        transform: translateX(0)
    }
    100%{
        transform: translateX(-100%)
    }
}
@keyframes certain-3 {
	0%{
        transform: translateX(0)
    }
    100%{
        transform: translateX(100%)
    }
}
@keyframes speaker {
	0%{
        transform: translateX(-10%) scale(1)
    }
    100%{
        transform: translateX(10%) scale(0.9)
    }
}
@keyframes conpetti {
    0% {
        transform: translateY(0%)
    }
    75% {
        transform: translateY(580px)
    }
    100% {
        transform: translateY(650px)
    }
}