@charset "utf-8";

/* 인트로 */
#intro .intro-title {top:100px; z-index:20; transform:translate(-50%, calc(-100% - 100px));}
.game-wrp > .bg {position:absolute; top:0; left:0; width:100%; height:100%; background:pink url('../img/game05/bg_game05.jpg') no-repeat top center / auto 100%;}

.game05 .intro-char {width:427px; height:547px; /*background:url('../img/game05/intro_lion.png') no-repeat center center / contain;*/ bottom:0; left:44px; transform:translateX(0);}
.game05 .intro-char .head {width:425px; height:377px; position:absolute; z-index:100; top:3px; left:0; background:url('../img/game05/intro_lion_head.png') no-repeat center center / contain; animation:shakeHead 3.5s ease-in-out infinite;}
.game05 .intro-char .body {width:427px; height:547px; position:absolute; z-index:99; bottom:0; left:0; background:url('../img/game05/intro_lion_body.png') no-repeat center center / contain;}
.game05 .intro-obj {width:164px; height:164px; background:url('../img/game05/intro_ball_wrap.png') no-repeat 0 center / cover; z-index:10; left:492px; bottom:190px; 
    animation:introSpinBall .55s steps(1) infinite; transform:translateX(-50%) rotate(15deg);
}
.btn-start {background:#4555E9; border-color:#828DF5;}
.icon-close {background-color:#FE7091;}

@keyframes shakeHead {
    0% {transform:rotate(0deg);}
    33.3% {transform:rotate(-5deg);}
    66.6% {transform:rotate(5deg);}
    100% {transform:rotate(0deg);}
}
@keyframes introSpinBall {
    /* 0% {background-position: 0 center;}
    16.67% {background-position: -163px center;}
    33.33% {background-position: -326px center;}
    50% {background-position: -489px center;}
    66.67% {background-position: -652px center;}
    83.33% {background-position: -815px center;}
    100% {background-position: 0 center;} */

    0% {background-position: 0 center;}
    12.5% {background-position: -186px center;}
    25% {background-position: -370px center;}
    37.5% {background-position: -555px center;}
    50% {background-position: -741px center;}
    62.5% {background-position: -926px center;}
    75% {background-position: -1111px center;}
    87.5% {background-position: -1296px center;}
    100% {background-position: 0 center;}
/* 
    0% {background-position: 0 center;}
    14.29% {background-position: -186px center;}
    28.57% {background-position: -370px center;}
    42.86% {background-position: -555px center;}
    57.14% {background-position: -741px center;}
    71.43% {background-position: -926px center;}
    85.71% {background-position: -1111px center;}
    100% {background-position: -1296px center;} */
}

/* 플레이 */
#round > .bg {position:absolute; top:0; left:50%; width:100%; height:100%; background:pink url('../img/game05/bg_round.jpg') no-repeat top center / auto 100%;}
.icon-home {background-color:#FE7091; box-shadow: 2px 2px #DB2852}
#round .bx {top:75px; bottoM:75px;}

.game05 .round-char{left:30px}
.game05 .round-char {width:176px; height:215px; background:url('../img/game05/round_lion.png') no-repeat center center / contain; z-index:20; bottom:0; left:10px; transform:translateX(0); transition:left .3s;}
/* .game05 .round-obj{width:77px; height:77px; left:226px; bottom:86px} */
.game05 .round-obj {width:67px; height:67px; background:url('../img/game05/round_ball.png') no-repeat center center / cover; z-index:21; left:155px; bottom:67px; transform:translateX(0); animation:jumpBall 1s ease infinite; transition:left .3s;}

.game05 .round-char.hide {left:-264px;}
.game05 .round-obj.hide {left:-264px;}

.answer-type-choice label>div {box-shadow:8px 8px #C0CBDB}
#round .bx-inner {border:12px solid #FFCC6A; box-shadow:0 10px #FF900A;}
.bx h3 {width:100%; text-align:left; color:#FDA600;}

@keyframes jumpBall {
    0% {transform:translateY(0) rotate(0deg)}
    50% {transform:translateY(-18px) rotate(180deg)}
    100% {transform:translateY(0) rotate(360deg)}
}


.lion {width:237px; height:329px; position:absolute; z-index:102; bottom:16px; left:150px!important; transform:unset!important;}
.lion:not(.bounce) .body-bounce {display:none;}

/* 슛 하기 전 */
.lion.bounce {display:block;}
        
/* 그림자 효과 */
.lion .shadow_lion {position:absolute; z-index:100; width:101px; height:26px; border-radius:50%; background:rgba(101, 57, 27, 0.5); left:50%; transform:translate(-50%); bottom:-8px;}
.lion.bounce .shadow_ball {
    position:absolute; z-index:100; width:50px; height:11px; border-radius:50%; background:rgba(101, 57, 27, 0.5); bottom:5px; left:50%; transform:translateX(-50%); margin-left:93px;
    animation:shadow-ball-bounce 1s linear infinite;
}
.lion.bounce .body-bounce {
    position:absolute; z-index:102;
    animation:body 1s linear infinite;
}
.lion.bounce .ball {
    width:70px; height:70px; background:url('../img/game05/ball.png') no-repeat center center / cover; 
    position:absolute; z-index:102; bottom:50px; right:-20px;
    animation:bounce 1s linear infinite;
}

/* 슛 활성화 */
.lion .shoot:not(.ready) {display:none;}
.lion .shoot.ready {display:block;}
.lion .shoot .body {position:absolute; z-index:102;}
.lion .shoot .hand-left {width:100px; height:85px; background:url('../img/game05/lion_hand_left.png') no-repeat center center / cover; position:absolute; z-index:104; transform:rotate(25deg); bottom:82px; left:90px; /*bottom:93px; left:82px;*/}
.lion .shoot .hand-right {width:100px; height:85px; background:url('../img/game05/lion_hand_right.png') no-repeat center center / cover; position:absolute; z-index:101; transform:rotate(25deg); bottom:76px; right:-9px; /*bottom:87px; right:-9px;*/}
.lion .shoot .ball {
    display:block;
    width:70px; height:70px; background:url('../img/game05/ball.png') no-repeat center center / cover; 
    position:absolute; z-index:102;
    animation:ballReady 1s forwards;
}
.lion .shoot.ready .hand-left {animation:leftHand 1s forwards;}
.lion .shoot.ready .hand-right {animation:rightHand 1s forwards;}

/* 성공(정답)시 슛 애니메이션 */
/* .game-stage.success .lion .shoot.ready .ball.go {animation:shoot-success 2s linear forwards;}
.game-stage.success .lion .shoot.ready .ball.go.drop {animation:drop .7s linear forwards;}
.game-stage.success .lion .shoot.ready .ball.go.drop02 {animation:drop02 .5s ease-out forwards;} */
.game-stage.success .lion .shoot.ready .ball.go {animation:shoot-success 1.5s linear forwards;}
.game-stage.success .lion .shoot.ready .ball.go.drop {animation:drop .7s linear forwards;}
.game-stage.success .lion .shoot.ready .ball.go.drop02 {animation:drop02 .9s ease-out forwards;}


/* 실패(오답)시 슛 애니메이션 */
.game-stage.fail .lion .shoot.ready .ball.go {animation:shoot-fail 1.7s linear forwards;}
.game-stage.fail .lion .shoot.ready .ball.go.drop {animation:drop-fail .7s linear forwards;}
.game-stage.fail .lion .shoot.ready .ball.go.drop02 {animation:drop02-fail .5s ease-out forwards;}
/* .game-stage.fail .lion .shoot.ready .ball.go {animation:shoot-fail 1.25s linear forwards;}
.game-stage.fail .lion .shoot.ready .ball.go.drop {animation:drop-fail .7s linear forwards;}
.game-stage.fail .lion .shoot.ready .ball.go.drop02 {animation:drop02-fail .9s ease-out forwards;} */



/* 엔딩 */
#ending > .bg {position:absolute; top:0; left:50%; width:100%; height:100%; background:pink url('../img/game05/bg_ending.jpg') no-repeat top center / auto 100%;}
#ending .goal {width:327px; height:261px; background:url('../img/game05/goal_back.png') no-repeat center center / cover; position:absolute; z-index:100; top:0; left:unset; transform:translateX(0); right:214px;}
#ending .goal_ring_top {width:133px; height:15px; background:url('../img/game05//goal_ring_top.png') no-repeat center center / cover; position:absolute; z-index:101; bottom:45px; left:50%; transform:translateX(-50%);}
#ending .goal_ring_bottom {width:134px; height:98px; background:url('../img/game05//goal_ring_bottom.png') no-repeat center center / cover; position:absolute; z-index:103; bottom:unset; left:unset; top:215px; right:310px; transform:unset;}

.game-stage.success .lion .shoot .body.jump {animation:endingJump 1s ease infinite;}
.game-stage.success .lion .shadow_lion.jump {animation:shadowJump 1s ease infinite;}

.game-stage.fail .lion .shoot .body.fail {bottom:3px;}

.game-stage .result-txt {width:600px; height:200px; background:#FFF; position:absolute; z-index:101; transform:unset; top:115px; left:80px; border-radius:30px; border:6px solid #E0EDFF; box-shadow:8px 8px 0 0 #53A7F4; display:flex; justify-content:center; align-items:center; display:none;}
.game-stage .result-txt p {font-size:42px; line-height:63px; color:#2847EA; text-align:center;}
.game-stage.fail .result-txt {border:6px solid #FFC7CA; box-shadow:8px 8px 0 0 #EA7080;}
.game-stage.fail .result-txt p {color:#FA6377;}
.game-stage.fail .result-txt p + span {display:block; font-size:28px; line-height:42px; margin-top:8px; color:#575F6F;}

#wrap .finish .btn-reset {z-index:104; background:#FF7C1D; border:4px solid #FFA463; box-shadow:0px 8px 0px 0px #E45200!important;}


/* 공 제자리 드리블 애니메이션 */
@keyframes bounce {
    0% {transform:translateY(0);}
    10% {transform:translateY(0);}
    45% {transform:translateY(36px) rotate(90deg);}
    50% {transform:translateY(36px) rotate(90deg);}
    100% {transform:translateY(0) rotate(180deg);}
}
@keyframes shadow-ball-bounce {
    0% {width:50px; height:11px;}
    50% {width:35px; height:17px;}
    100% {width:50px; height:11px;}
}

@keyframes body {
    0% {transform:rotate(0deg);}
    10% {transform:rotate(0deg);}
    45% {transform:rotate(3deg);}
    100% {transform:rotate(0deg);}
}

/* 슛 준비자세 애니메이션 */
@keyframes leftHand {
    0% {bottom:82px; left:90px; transform:rotate(25deg);}
    100% {bottom:93px; left:82px; transform:rotate(0);}
}
@keyframes rightHand {
    0% {bottom:87px; right:-9px; transform:rotate(25deg);}
    100% {bottom:94px; right:-5px; transform:rotate(0);}
}
@keyframes ballReady {
    0% {offset-path:path('M 202 197 Q 528 -410, 867 -210'); offset-rotate:0deg;}
    100% {offset-path:path('M 202 160 Q 528 -410, 867 -210'); offset-rotate:25deg;}
}


/* 슛 애니메이션 - success */
/* 공이 포물선을 그리며 날아가는 스타일 */
/* @keyframes shoot-success {
    0% {offset-path:path('M 202 160 Q 648 -750, 920 290'); offset-rotate:25deg;}
    100% {offset-path:path('M 202 160 Q 648 -750, 920 290'); offset-rotate:270deg; offset-distance:100%;}
}
@keyframes drop {
    0% {offset-path:path('M 920 290 Q 960 170, 1000 290'); offset-rotate:25deg; offset-distance: 0%;}
    100% {offset-path:path('M 920 290 Q 960 170, 1000 290'); offset-rotate:140deg; offset-distance:100%;}
}
@keyframes drop02 {
    0% {
        offset-path: path('M 1000 290 Q 1025 240, 1050 290');
        offset-rotate: 140deg;
        offset-distance: 0%; 
    }
    100% {
        offset-path: path('M 1000 290 Q 1025 240, 1050 290');
        offset-rotate: 240deg;
        offset-distance: 100%;
    }
} */


/* 슛 애니메이션 - success */
/* 공이 포물선을 그리며 날아가다가 직선으로 떨어지는스타일 */
@keyframes shoot-success {
    0% {offset-path:path('M 202 160 Q 340 -410, 752 -210'); offset-rotate:25deg;}
    100% {offset-path:path('M 202 160 Q 340 -410, 752 -210'); offset-rotate:270deg; offset-distance:100%;}
}
@keyframes drop {
    0% {offset-path:path('M 752 -210 Q 752 195, 752 295'); offset-rotate:25deg; offset-distance: 0%;}
    100% {offset-path:path('M 752 -210 Q 752 195, 752 295'); offset-rotate:180deg; offset-distance:100%;}
}
@keyframes drop02 {
    0% {
        offset-path: path('M 752 295 Q 780 240, 830 295');
        offset-distance: 0%;
    }
    100% {
        offset-path: path('M 752 295 Q 780 240, 830 295'); 
        offset-rotate: 90deg;
        offset-distance: 100%;
    }
}


/* 엔딩 점프 */
@keyframes endingJump {
    0% {transform:translateY(10px);}
    50% {transform:translateY(-15px);}
    100% {transform:translateY(10px);}
}
@keyframes shadowJump {
    0% {width:55px; height:26px; bottom:-8px;}
    50% {width:101px; height:34px; bottom:-11px}
    100% {width:55px; height:26px; bottom:-8px;}
}


/* 슛 애니메이션 - fail */
/* 공이 포물선을 그리며 날아가는 스타일 */
@keyframes shoot-fail {
    0% {offset-path:path('M 202 160 Q 462 -560, 842 290'); offset-rotate:25deg;}
    100% {offset-path:path('M 202 160 Q 462 -560, 842 290'); offset-rotate:270deg; offset-distance:100%;}
}
@keyframes drop-fail {
    0% {offset-path:path('M 842 290 Q 892 200, 940 290'); offset-rotate:25deg; offset-distance: 0%;}
    100% {offset-path:path('M 842 290 Q 892 200, 940 290'); offset-rotate:140deg; offset-distance:100%;}
}
@keyframes drop02-fail {
    0% {
        offset-path: path('M 940 290 Q 970 260, 1000 290');
        offset-rotate: 140deg;
        offset-distance: 0%;
    }
    100% {
        offset-path: path('M 940 290 Q 970 260, 1000 290');
        offset-rotate: 240deg;
        offset-distance: 100%;
    }
}

/* 슛 애니메이션 - fail */
/* 공이 포물선을 그리며 날아가다가 직선으로 떨어지는스타일 */
/* @keyframes shoot-fail {
    0% {offset-path:path('M 202 160 Q 300 -350, 630 -210'); offset-rotate:25deg;}
    100% {offset-path:path('M 202 160 Q 300 -350, 630 -210'); offset-rotate:270deg; offset-distance:100%;}
}
@keyframes drop-fail {
    0% {offset-path:path('M 630 -210 Q 630 195, 630 295'); offset-rotate:25deg; offset-distance: 0%;}
    100% {offset-path:path('M 630 -210 Q 630 195, 630 295'); offset-rotate:180deg; offset-distance:100%;}
}
@keyframes drop02-fail {
    0% {
        offset-path: path('M 630 295 Q 654 240, 704 295');
        offset-rotate: 180deg;
        offset-distance: 0%;
    }
    100% {
        offset-path: path('M 630 295 Q 654 240, 704 295');
        offset-rotate: 270deg;
        offset-distance: 100%;
    }
} */


/* game05 */
.game05 .result-ai.correct p, [data-page="2"] .result-ai.correct p{bottom: 207px;left: 200px}
.game05 .result-ai.wrong p, [data-page="2"] .result-ai.wrong p{bottom: 184px;left: 187px}
.game05 .retry .result-ai.wrong p, [data-page="2"] .retry .result-ai.wrong p{bottom: 203px;left: 202px}

/* .overlay 닫힘 후 다음 문제 보이기 전까지 클릭 방지 */
.click-blocker {position:fixed; top:0; left:0; width:100%; height:100%; background-color:transparent; z-index:99999;}
