@charset "utf-8"; .btn { background: #ffac30; border-color: #ffc977; box-shadow: 0 8px #ed8b19 !important; }
.icon-home { background-color: #009906; box-shadow: 2px 2px #005a04; }
.icon-close { background-color: #009906; }
.btn-start { background: #1aa6f4; border-color: #70ccff; box-shadow: 0px 8px #007aea !important; }
.btn-reset { background: #79d76a; border-color: #9be98f; box-shadow: 0px 8px #52b143 !important; }
.btn-finish { background: #ffb11b; border-color: #ffdb5b; box-shadow: 0px 8px #ff8a00 !important; }
.btn-replay { background: #ff5a5a; border-color: #ff9393; box-shadow: 0 8px #e84242 !important; }
.btn.btn-circle { right: 72px; background: #ffd300; border-color: #ffec8f; box-shadow: 0 8px #ffa800 !important; }
#ending .btn-reset { background: #ff5a5a; border-color: #ff9393; box-shadow: 0px 8px #e84242 !important; }

.modal-content { box-shadow: 6px 6px #a9d9ab; }
.modal-alert .modal-content { box-shadow: 12px 12px #84cd78; }
.modal-title { color: #339424; }
.modal-title p { color: #678363; }
#modal-guide .icon-close { background-color: #98df86; }
#modal-guide .modal-dialog { max-width: 876px; }
#modal-guide .modal-title { color: #57ba5b; }
.guide-item .num { background: #ffae74; }

.home-balloon { background: #ff9900; border: 4px solid #ffbe18; }
.home-balloon:after { background-image: url(../img/game02/home-tail.png); }
.round-bubble:after { background-image: url(../img/game02/round-tail.png); }
#intro .step-bx .bx { padding: 28px 0; background: #dffcda; border: 4px solid #ebffe8; border-radius: 30px; box-shadow: 10px 10px 0px 0px #cff2c9 inset; }
#intro .step-bx .bx h3 { color: #44893a; }

#home .home-title { top: 36px; width: 827px; transform: translate(-50%, calc(-100% - 87px)); }
.bg-obj01 { left: 66px; top: 348px; transform: scale(-1, 1) rotate(-10deg); animation: flying-ani01 3s linear 0.25s infinite alternate; }
.bg-obj02 { left: 137px; top: 282px; animation: flying-ani01 5s linear 0.5s infinite alternate; }
.bg-obj03 { left: 1102px; top: 285px; animation: flying-ani01 3.5s linear 0.75s infinite alternate; }
.bg-obj04 { left: 1161px; top: 369px; transform: scale(-1, 1) rotate(-10deg); animation: flying-ani02 2.5s linear 0.25s infinite alternate; }
.home-ai { top: 329px; width: 693px; margin-left: 5px; }
.home-ai01 { left: 1px; top: 0px; width: 686px; height: 262px; background: url(../img/game02/home-ai01.png) no-repeat 0 0 / 100% auto; }
#home.show .home-ai01 { animation: animal-ani04 2s infinite 0.4s steps(2); }
@keyframes animal-ani04 { 100% { background-position: 0 -524px; }
 }
.home-ai .home-obj { position: absolute; top: 143px; }
.home-ai02 { left: 176px; }

.show .home-ai > *:not(.home-ai01) { animation: obj-move 2s ease-in-out 0s forwards; }
.end-ai { top: 246px; width: 918px; }
.end-obj { top: 214px; left: 42px; height: 223px; width: 806px; }
[class^='end-ai0'] { background-position: 0 0; background-repeat: no-repeat; background-size: auto 100%; }
.end-ai01 { left: 38px; top: 44px; width: 267px; height: 311px; background-image: url(../img/game02/end-ai01.png); }
.end-ai02 { left: 335px; top: 0; width: 249px; height: 252px; background-image: url(../img/game02/end-ai02.png); }
.end-ai03 { left: 594px; top: 83px; width: 240px; height: 246px; background-image: url(../img/game02/end-ai03.png); }
.end-ai04 { top: 138px; left: 326px; width: 300px; }
.end-ai04::after { content: ''; background-image: url(../img/game02/end-ai04-1.png); width: 10px; height: 10px; }
#ending.show .end-ai01 { animation: animal-ani01 5s infinite steps(5); }
#ending.show .end-ai02 { animation: animal-ani02 5s infinite steps(5); }
#ending.show .end-ai03 { animation: animal-ani03 5s infinite steps(5); }
@keyframes animal-ani01 { 100% { background-position: -1445px 0; }
 }
@keyframes animal-ani02 { 100% { background-position: -1441px 0; }
 }
@keyframes animal-ani03 { 100% { background-position: -1504px 0; }
 }
@keyframes obj-move { 30%,
 100% { transform: translateY(0); }
 }
@keyframes flying-ani01 { 50% { margin-top: -20px; }
 }
@keyframes flying-ani02 { 50% { margin-top: -6px; margin-right: -3px; }
 }
.bx h3 { color: #339424; }
#intro .step-bubble { left: 47px; padding-top: 14px; background-image: url(../img/game02/step-bubble.png); }
#intro .step-wrp { top: 124px; left: 457px; }
#intro .step-bx { box-shadow: 8px 8px 0 0 #cefac7 inset; border-color: #9eeb92; }
#intro .step-index li { background-color: #84cd78; color: #a1eb95; }
#intro .step-index li.active { background-color: #9eeb92; }
.intro-obj01 { top: 469px; width: 693px; margin-left: -446px; }
.intro-obj02 { top: 522px; width: 219px; margin-left: 530px; }
#intro .bg-obj01 { left: 134px; top: 291px; transform: scale(-1, 1) rotate(-2deg); }
#intro .bg-obj02 { left: 255px; top: 219px; transform: rotate(-10deg); }
#intro .bg-obj03 { left: 1190px; top: 303px; }
#intro .bg-obj04 { left: 1210px; top: 391px; }
#intro .pages { top: auto; bottom: 0; left: 0; z-index: 2; width: 50%; transform: none; }
#intro .pages img { top: auto; right: 43px; bottom: 34px; left: auto; width: 600px; transform: translateX(-100%); }
#intro.show .pages img { transform: translateX(0); transition: all 0.5s; }
.round-bubble { background: #84cd78; border-color: #a6e39c; box-shadow: 0 6px 0 0 #6fb664; }
.result-desc > div { width: 806px; }
#round .bx { box-shadow: 10px 10px #79c26e !important; }
#round .bx-inner { border-color: #9eeb92; box-shadow: none; }
[class^='round-obj'] { bottom: 0; left: 0; z-index: 5; transform: none !important; }
.round-obj01 { left: 0 !important; }
.round-obj02 { left: auto !important; right: 0; }
#life { background: #9eeb92; box-shadow: 8px 8px #79c26e; }
#life i { background-image: url(../img/game02/icon-star.png); }
#life i.off { background-image: url(../img/game02/icon-star-off.png); }
.guide-line { bottom: 156px; left: 50%; transform: translateX(-50%); }
.guide-open .guide-line { animation: flash 1s infinite forwards; }
.guide-line:before,
.guide-line:after { content: ''; position: absolute; left: -293px; width: 105px; height: 37px; background: url(../img/game02/guide-line.png) no-repeat center / cover; }
.guide-line:after { left: 257px; transform: scale(-1, 1); }
.guide-balloon { bottom: 313px; left: 482px; width: 315px; padding: 20px 31px; background: rgba(53, 61, 66, 0.9); border: none; font-size: 26px; text-align: center; }
.guide-balloon:after { top: 100%; right: auto; left: 50%; width: 28px; height: 9px; background-image: url(../img/game02/guide-tail.png); transform: translateX(-50%); }

[class^='item'] { background-position: center; background-repeat: no-repeat; background-size: cover; }
[class^='item1'] { width: 207px; height: 110px; }
.item11 { height: 127px; width: 220px; background-image: url(../img/game02/ingredients01-1.png); position: absolute; top: -181px; left: -11px; }
.item12 { height: 127px; width: 220px; background-image: url(../img/game02/ingredients01-2.png); position: absolute; top: -181px; left: 35px; }
.item14 { height: 127px; width: 220px; background-image: url(../img/game02/ingredients01-4.png); position: absolute; top: -181px; left: -20px; }
.item15 { height: 127px; width: 220px; background-image: url(../img/game02/ingredients01-5.png); position: absolute; top: -181px; left: -27px; }
.catch .item12 { left:-30px; }

[data-page='2'] .item11 { width: 221px; height: 129px; background-image: url(../img/game02/ingredients01-1-catch.png); top: -198px; left: 2px; transform: rotate(1deg); }
[data-page='2'] .item12 { width: 221px; height: 129px; background-image: url(../img/game02/ingredients01-2-catch.png); top: -197px; left: 5px; }
[data-page='2'] .item13 { width: 221px; height: 129px; background-image: url(../img/game02/ingredients01-3-catch.png); top: -199px; left: 1px; transform: rotate(1deg); }
[data-page='2'] .item14 { width: 221px; height: 129px; background-image: url(../img/game02/ingredients01-4-catch.png); top: -197px; left: 11px; transform: rotate(2deg); }
[data-page='2'] .item15 { width: 221px; height: 129px; background-image: url(../img/game02/ingredients01-5-catch.png); top: -199px; left: 12px; transform: rotate(1deg); }
.item-hide { position: relative; bottom: calc(100% - 6px); order: 20; z-index: 20 !important; width: 245px; height: 0; margin: 0 !important; opacity: 0; }

[data-page='3'] .item11 { width: 221px; height: 129px; top: -205px; left: 2px; transform: rotate(1deg); }
[data-page='3'] .item12 { width: 221px; height: 129px; top: -203px; left: 8px; }
[data-page='3'] .item13 { height: 127px; width: 227px; top: -212px; left: 16px; }
[data-page='3'] .item14 { top: -216px; left: -6px; transform: rotate(1deg); width: 238px; height: 139px; }
[data-page='3'] .item15 { width: 221px; height: 129px; top: -199px; left: 12px; transform: rotate(1deg); }

.item11 + .item-hide { background-image: url(../img/game02/ingredients01-1-hide.png); }
.item12 + .item-hide { background-image: url(../img/game02/ingredients01-2-hide.png); }
.item13 + .item-hide { background-image: url(../img/game02/ingredients01-3-hide.png); }
.item14 + .item-hide { background-image: url(../img/game02/ingredients01-4-hide.png); }
.item15 + .item-hide { background-image: url(../img/game02/ingredients01-5-hide.png); }

.item21 { width: 180px; height: 101px; background-image: url(../img/game02/ingredients02-1-catch.png); }
.item22 { width: 195px; height: 101px; background-image: url(../img/game02/ingredients02-2-catch.png); }
.item23 { width: 160px; height: 101px; background-image: url(../img/game02/ingredients02-3-catch.png); }
.item24 { width: 180px; height: 110px; background-image: url(../img/game02/ingredients02-4-catch.png); }
/* .item25 { width: 156px; height: 101px; background-image: url(../img/game02/ingredients02-2-catch.png) } */

#basket .vector { background: url(../img/game02/vector.png) no-repeat; width: 100px; height: 100px; z-index: inherit; }
.basket-inner .item21 { width: 235px !important; height: 135px; background-image: url(../img/game02/ingredients02-1-catch.png); bottom: 68px; left: -3px; }
.basket-inner .item22 { width: 227px; height: 116px; background-image: url(../img/game02/ingredients02-2-catch.png); bottom: 78px; left: 8px; }
.basket-inner .item23 { width: 197px; height: 122px; background-image: url(../img/game02/ingredients02-3-catch.png); bottom: 84px; left: 11px; }
.basket-inner .item24 { width: 186px; height: 114px; background-image: url(../img/game02/ingredients02-4-catch.png); bottom: 84px; left: 25px; }

.basket-inner .item25 { width: 231px; height: 121px; background-image: url(../img/game02/ingredients02-5-catch.png); bottom: 75px; left: 4px; }

[data-page='3'] .basket-inner .item13 { top: -208px; left: -1px; height: 132px; }
[data-page='3'] .basket-inner .item15 { top: -204px; left: 4px; }
[data-page='3'] .basket-inner .item23 { bottom: 86px; left: -5px; width: 231px; height: 137px; }

.item31 { width: 89px; height: 84px; background-image: url(../img/game02/ingredients03-1.png); }
.item32 { width: 89px; height: 84px; background-image: url(../img/game02/ingredients03-2.png); }
.item33 { width: 89px; height: 84px; background-image: url(../img/game02/ingredients03-3.png); }
.item34 { width: 89px; height: 84px; background-image: url(../img/game02/ingredients03-4.png); }
.item35 { width: 89px; height: 84px; background-image: url(../img/game02/ingredients03-5.png); }
.basket-inner [class^='item3'] { width: 258px; }

.basket-inner .item31 { width: 89px; height: 84px; background-image: url(../img/game02/ingredients03-1-catch.png); bottom: 161px; left: 69px; }
.basket-inner .item32 { width: 89px; height: 84px; background-image: url(../img/game02/ingredients03-2-catch.png); bottom: 171px; left: 66px; }
.basket-inner .item33 { width: 89px; height: 84px; background-image: url(../img/game02/ingredients03-3-catch.png); bottom: 161px; left: 70px; }
.basket-inner .item34 { width: 89px; height: 84px; background-image: url(../img/game02/ingredients03-4-catch.png); bottom: 161px; left: 74px; }
.basket-inner .item35 { width: 89px; height: 84px; background-image: url(../img/game02/ingredients03-5-catch.png); bottom: 161px; left: 71px; }

#floor { position: absolute; height: 40px; width: 100%; bottom: 0; }

.basket-container { position: absolute; bottom: 74px; z-index: 10; width: 100%; height: 48px; padding: 0 80px; }
#basket { position: absolute; left: 500px; width: 200px; height: 100%; }
/* 토핑 이 빙수위에 바로 떨어지도록 */
[data-page="2"] .basket-container { height: 170px; }
/* 아이스크림이 빙수위에 바로 떨어지도록 */
[data-page="3"] .basket-container { height: 230px; }

#basket .basket2 { background: url(../img/game02/group.png); }
.char { position: absolute; bottom: -88px; left: -100px; width: 542px; height: 337px; }
.char:before,
.char:after { content: ''; position: absolute; top: -5px; left: 38px; width: 457px; height: 103%; background: url(../img/game02/act-ai01.png) no-repeat 0 -8% / 100% auto; }
.char:after { background-image: url(../img/game02/act-ai01-s.png); transition: 0.5s; opacity: 1; width: 100%; left: -5px; top: -8px; }
.game-wrp:not(.guide-open) .char:after { opacity: 0; }
.game-wrp.guide-open .basket-container,
#basket.ui-draggable-disabled { pointer-events: none; }
.basket-inner { display: flex; align-items: center; flex-direction: column-reverse; position: absolute; bottom: 44px; left: 0; width: 200px; height: auto; }

.basket-inner:after { content: ''; position: absolute; bottom: 93px; right: calc(100% - 31px); width: 106px; height: 54px; background: url(../img/game02/ai-miss.png) no-repeat center / 100%; transform-origin: bottom left; transform: scale(0); transition: none; }
.basket-inner [class^='item'] { position: absolute; margin-right: auto; margin-left: auto; }
.basket-inner [class^='item1'] { margin-bottom: 0 !important; }
.basket-inner > * { display: flex; flex-direction: column-reverse; position: relative; width: 100%; height: 15px; flex-wrap: nowrap; align-items: center; }
.basket-inner > *:first-child { height: 10px; }
.basket-inner > *:nth-child(2),
.basket-inner > * > *:nth-child(2) { z-index: 2; }
.basket-inner > *:nth-child(3),
.basket-inner > * > *:nth-child(3) { z-index: 3; }
.basket-inner > *:nth-child(4) { z-index: 4; }
.basket-inner > *:nth-child(5) { z-index: 5; }
.basket-inner > *:nth-child(6) { z-index: 6; }
.basket-inner > * > * + * { margin-bottom: 20px; }

#act:not(.miss) #basket.dragging:before { animation: animal-moving 2s infinite steps(1); }
@keyframes animal-moving { 25%,
 75% { background-position: 0 -337px; }
 50% { background-position: 0 0; }
 }
.ingredients li.miss { animation: miss-ani 2s forwards; }
@keyframes miss-ani { 20%,
 40%,
 60%,
 100% { opacity: 0; }
 30%,
 50% { opacity: 0.2; }
 }
 .success .char:after { opacity: 1 !important; }
 .success .ingredients li { animation: fadeOut 0.5s forwards; }
 .miss .basket-inner:after { transform: scale(1); transition: 0.25s 0.25s; animation: fadeOut 0.5s 1.5s forwards; }
 .basket-inner .miss { position: absolute; bottom: 85px; height: 0; animation: missAni1 1s linear forwards; }
 .miss .ingredients .hits.miss > div { animation: missAni2 1s linear forwards; }
 /* .miss .ingredients .hits>div { opacity: 0; } */
 .miss .char:before { background-position: 0px -552px; }
/* .success .char:after { opacity: 1 !important } */
.success .ingredients li { animation: fadeOut .5s forwards }
.miss .basket-inner:after { transform: scale(1); transition: .25s .25s; animation: fadeOut .5s 1.5s forwards }
.miss .basket-inner .catch { position: absolute; bottom: 85px; height:0; animation: missAni 1s linear forwards }
.miss .basket-inner .catch>div { animation: missAni2 1s linear forwards }
/* .ingredients .miss li { animation: fadeOut .5s forwards } */

@keyframes missAni1 {
 0% { transform: translate(0px, 0px) scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate(-50%, -50%); animation-timing-function: cubic-bezier(0.25, 0.25, 0.75, 0.75); }
 20% { transform: translate(-55px, -40px) scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate(-50%, -50%); animation-timing-function: cubic-bezier(0.25, 0.25, 0.75, 0.75); }
 40% { transform: translate(-98px, -65px) scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate(-50%, -50%); animation-timing-function: cubic-bezier(0.25, 0.25, 0.75, 0.75); }
 60% { transform: translate(-141px, -70px) scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate(-50%, -50%); animation-timing-function: cubic-bezier(0.25, 0.25, 0.75, 0.75); }
 80% { transform: translate(-159px, -20px) scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate(-50%, -50%); animation-timing-function: cubic-bezier(0.25, 0.25, 0.75, 0.75); }
 100% { transform: translate(-190px, 92px) scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate(-50%, -50%); }
 }
@keyframes missAni2 { 20% { transform: scale(0.8) rotate(-83deg); }
 40% { transform: scale(0.8) rotate(-136deg); }
 60% { transform: scale(0.8) rotate(-189deg); }
 80% { transform: scale(0.8) rotate(-242deg); }
 100% { transform: scale(0.8) rotate(-366deg); top: 224px; left: -124px; }
 }
[data-page] .ingredients,
.guide-balloon [class^='page0'] { display: none; opacity: 1; }
.ingredients { position: relative; z-index: 10; width: 100%; margin: 0; }
.ingredients li { position: absolute; left: 0; transform: translateY(-100%); }
.ingredients li:first-child { top: -129px; left: 104px; }
.ingredients li:nth-child(2) { left: 329px; top: -90px; }
.ingredients li:nth-child(3) { left: 667px; }
/* .ingredients li:nth-child(4) { top: -167px; left: 782px } */
.ingredients li:last-child { top: -117px; left: 1004px; }
.ingredients li.catch { animation: fadeOut 0.5s forwards; }

[data-page='1'] .ingredients.page01,
[data-page='2'] .ingredients.page02,
[data-page='3'] .ingredients.page03 { display: block; }
[data-page='1'] .guide-balloon .page01,
[data-page='2'] .guide-balloon .page02,
[data-page='3'] .guide-balloon .page03 { display: inline-block; }
[data-page='2'] .basket-inner,
[data-page='3'] .basket-inner { bottom: 42px; left: -22px; }

[data-page='2'] .guide-line { bottom: 124px; }
[data-page='2'] .guide-line:before { left: -279px; }
[data-page='2'] .guide-line:after { left: 208px; }
/* [data-page='2'] .guide-balloon { bottom: 380px; }  */
[data-page='2'] .ingredients li:first-child { top: -58px; left: 124px; }
[data-page='2'] .ingredients li:nth-child(2) { left: 376px; top: -4px; }
[data-page='2'] .ingredients li:nth-child(3) { left: 689px; }
/* [data-page="2"] .ingredients li:nth-child(4) { left: 794px; top: -75px } */
[data-page='2'] .ingredients li:last-child { left: 989px; top: -98px; }
[data-page='2'] .char:before { background-image: url(../img/game02/act-ai02.png); left: 41px; width: 86.3%; top: -53px; }
[data-page='2'] .char:after { background-image: url(../img/game02/act-ai02-s.png); left: 3px; top: -2px; }

[data-page='3'] .guide-line { bottom: 168px; }
[data-page='3'] .guide-line:before { left: -295px; }
[data-page='3'] .guide-line:after { left: 197px; }
[data-page='3'] .guide-balloon { bottom: 351px; }
[data-page='3'] .ingredients li:first-child { left: 136px; top: -31px; }
[data-page='3'] .ingredients li:nth-child(2) { left: 442px; top: -91px; }
[data-page='3'] .ingredients li:nth-child(3) { left: 760px; }
/* [data-page="3"] .ingredients li:nth-child(4) { left: 754px; top: -69px } */
[data-page='3'] .ingredients li:last-child { left: 1000px; top: -103px; }
[data-page='3'] .char:before { background-image: url(../img/game02/act-ai03.png); width: 83.5%; left: 28px; top: -70px; }
[data-page='3'] .char:after { background-image: url(../img/game02/act-ai03-s.png); left: -15px; top: -66px; }
#ending .item-hide { height: 103px; opacity: 1; }


[data-page='1']  .guide-balloon,[data-page='3']  .guide-balloon{left:451px; width:385px}


/* #center { position: absolute; top: 577px; background: blue; width: 100%; height: 142px; } */

.page01 .result-ai.wrong p, [data-page="1"] .result-ai.wrong p { left:181px; bottom:180px }

.page02 .result-ai.correct p, [data-page="2"] .result-ai.correct p { left:186px; bottom:204px }
.page02 .result-ai.wrong p, [data-page="2"] .result-ai.wrong p { left:178px; bottom:183px }
.page02 .retry .result-ai.wrong p, [data-page="2"] .retry .result-ai.wrong p { left:191px; bottom:200px }

.page03 .result-ai.correct p, [data-page="3"] .result-ai.correct p { left: 199px; bottom: 206px }
.page03 .result-ai.wrong p, [data-page="3"] .result-ai.wrong p { left: 188px; bottom: 185px }
.page03 .retry .result-ai.wrong p, [data-page="3"] .retry .result-ai.wrong p { left: 203px; bottom: 203px }
.selected-items {width: 283px; height: 250px; background-image: url(../img/game02/bowl.png); background-size: 100% 100%;background-repeat: no-repeat;background-position: center;position: absolute;top: 130px;left: 50%;transform: translateX(-50%) scale(0.8);}
.selected-items>div {position: absolute;width: 100%;height: 100%;background-size: 100% 100%;background-repeat: no-repeat;background-position: center;}
.selected-items>div:nth-child(1) {top: 232px;left: 27px}
.selected-items>div:nth-child(2) {top: 28px;left: 51px;}
.selected-items>div:nth-child(3) {top: -16px;left: 102px;}
