@charset "utf-8";

#ct{padding: 30px 20px}
.flex-center{padding-bottom: 40px}
.toggle-change>* {position: relative}

.bg-brw{background: #6a3d1f !important}
.bg-org{background: #ffe4c3 !important}
.bg-grn{background: #cce6d9 !important}
.bg-ylw{background: #ffea87 !important}
.bg-pink{background: #fdeded !important}
.bg-beige{background: #fdeaca !important}
.bg-red{background: #f4beaf !important}
.bg-red2{background: #f00 !important}
.bg-blue{background: #c6eafa !important}
.bg-purple{background: #bcb9d6 !important}
.bg-gray{background: #e6e6e9 !important}
.bg-0 {background: none !important}
.text-brw{color: #cb5b2b !important}
.text-darkbrw{color: #6a3d1f !important}
.text-black{color: #000 !important}
.text-purple{color: #7e4296 !important}
.text-gray{color: #939598 !important}
.text-blue{color: #5d88c6 !important}
.text-grn{color: #92bf9b !important}
.text-red2{color: #dc6c70 !important}
.text-pink{color: #ec008b !important}

#hd .text-blue {color: #617fcd !important;}
#hd .text-grn {color: #97db8f !important;}

.modal-content:before{background: url(../img/math/bg-modal.png) no-repeat 0 0/100%}
.modal-title-img{position: absolute;top: 25px;left: 95px;background-repeat: no-repeat;background-size: 100% auto;font-size: 0;color: transparent;text-indent: -9999em}
.modal-title-ex{width: 90px;height: 84px;background-image: url(../img/math/modal-title-ex.png)}
.modal-title-act{width: 132px;height: 63px;background-image: url(../img/math/modal-title-act.png)}
.modal-title-img+.modal-body{padding: 125px 90px}

.modal-explain .tit{font-size: 40px;}
.modal-explain .text{margin-top: 20px;font-size: 55px;}

.modal-inter .modal-content{height: 680px;margin-top: 0}
.modal-inter .modal-dialog{margin: 20px auto}
.modal-inter .modal-content{border-radius: 30px}
.modal-inter .modal-content:before{display: none}
.modal-inter .modal-body{padding: 25px}
.modal-inter .icon-reset{position: absolute;bottom: 25px;right: 25px}

.table-title{display: block;max-width: 70%;margin: 0 auto;padding: 5px;text-align: center;font-size: 35px;font-weight: 700;border: 5px solid #c2d2d6;border-radius: 18px 18px 0 0;border-bottom: 0;}
.table-title.purple{border-color: #d2d0f7 !important}
.tb-purple tr>*{border-color: #d2d0f7 !important}
.tb.tb-purple th{background: #f0efff !important}
.tb-ylw tr>*{border-color: #fcdca3 !important}
.tb-ylw th{background: #fef2dc}

.bx-outline-dash {border:5px dashed #c2d2d6}
.bx-outline-purple{border-color: #d2d0f7;background: #fff}
.bx-outline-org{border-color: #f9d29c;background: #ffebcf}
.bx-outline-ylw{border-color: #ffe699;background: #fff2cc}
.bx-outline-grn {border-color: #cce6d9}
.bx-outline-red {border-color: #f4beaf}
.bx-outline-blue {border-color: #c6eafa}

/* label */
.label{background: #e2f3ff;display: inline-flex;align-items: center;padding: .15em .385em;border-radius: .3em}
.label-write, .label-read{height: 80px;background: #a7896f;border-radius: 40px;color: #fff;font-size: 45px;padding: 0 25px 0 0;display: inline-flex;align-items: center}
.label-write:before, .label-read:before{content: '';width: 80px;height: 80px;background: url(../img/math/label-write.png) no-repeat 0 0/auto 100%}
.label-read:before{background-image: url(../img/math/label-read.png)}
.label-write.md, .label-read.md {height: 60px; font-size: 40px; padding-right: 10px}
.label-write.md:before, .label-read.md:before {width: 60px; height: 60px}
.badge{font-size: 33px;padding: 10px 13px;background: #9a7d6c;border-radius: 2em;display: inline-block;color: #fff}
.badge-ex{display: inline-block; width: 58px; height: 58px; text-align: center; font-size: 33px; background: #ff5b5b;color: #fff; border-radius: 100%;vertical-align: middle; line-height: 1.75; margin-top: -10px}

/* badge */
.num-circle-gray{background: #A3AEB4}

/* nav */
.tab-star {padding: 0 10px !important}

/* icon */
.icon-qustion{width: 62px;height: 60px;background-image: url(../img/math/icon-question.png); vertical-align: unset}
.icon-star{width: 20px;height: 20px;background-image: url(../img/math/icon-star.png); margin-top: -5px}
.nav-circle .tab-star:hover .icon-star{background-image: url(../img/math/icon-star-on.png)}
.nav-circle .tab-star.active .icon-star{background-image: url(../img/math/icon-star-on.png)}
.icon-angle {width: 68px; height: 69px; background-image: url(../img/math/angle.png)}
.icon-btn {width: 68px; height: 69px; background-image: url(../img/icon-btn.png)}
.icon-click-blink{position: relative;width: 48px;height: 67px;background-image: url(../img/icon-click-pointer.png)}
.icon-click-blink::before{content: '';position: absolute;left: 0;top: 0;display: block;width: 48px;height: 67px;opacity: 0;background: url(../img/icon-click-blink.png) no-repeat 50% 50% / auto 100%;animation: click-blink .8s infinite}
@keyframes click-blink {
   100% { opacity: 1;}
}

/* short-answer */
.short-answer {min-width: auto}
.short-answer.circle{min-width: 85px; padding: 0; border-radius: 100%}
.short-answer.circle:not(.active):before {border-radius: 100%}
.short-answer-clear{border: 0 !important;background-color: transparent !important; min-width: auto; padding: 0}
.short-answer-clear:not(.active):before{background-color: transparent !important}
/*정사각형 답박스*/
.short-answer.square {width: 92px; padding-left: 0; padding-right: 0;font-family:'NotoSerif', serif !important;font-weight: 700}
.short-answer.square.fs-lg {width: 126px;}
.short-answer.square.fs-md {width: 77px; height: 77px;}
.short-answer.square.fs-sm {width: 70px; height: 70px;} 
.short-answer.square.fs-sm:not(.active):before {background-size: 45px auto;}
.short-answer.square.fs-xs {width: 62px;}


/* 텍스트 */
.text-circle{display: flex;align-items: center;justify-content: center;width: 3.3em;font-size: 46px;font-weight: 700;border: 5px solid transparent;border-radius: 100%}
.text-circle:before{content: '';padding-bottom: 100%;margin-bottom: -1px}
.c-10000{background: #bcb9d6;border-color: #9193bb;color: #5e5b99}
.c-1000{background: #fddf91;border-color: #ddb04a;color: #b97033}
.c-100{background: #c0da94;border-color: #83c271;color: #268042}
.c-10{background: #f4beaf;border-color: #ec9989;color: #b9484c}
.c-1{background: #a6cae1;border-color: #77a6cc;color: #286ba7}
.lh-15 {line-height: 1.5 !important}

/* page */
.choice.active [data-answer]+span:before{min-width: 100px;min-height: 100px;width: 120%;height: 100%;background: none;border: 5px solid #f00;border-radius: 50%; z-index: 1}
.round-box{background: url(../img/math/round-box.png) no-repeat 0 0/100% 100%;padding: 70px 100px !important}
.round-box .font-maple{font-size: 73px;line-height: 1.2}
.round-box-sm{background: #fff;border-radius: 20px;line-height: 1.5}
.round-box-sm .short-answer{line-height: 1.1}
.font-maple .text-purple {position: relative}
.font-maple .text-purple .font-serif {line-height: 1;}
.font-maple .text-purple .icon-qustion {position: absolute; left:-72px; top:12px}

.bx-badge .badge {position: absolute; top:-28px; left: 32%}
.underline {display: inline-block; border-bottom: 4px solid #ED028C;}

/* 배울 내용 */
.learn{width: 1143px;height: 573px;background-repeat: no-repeat;background-size: 100% auto;margin: 0 auto}
.learn .num-circle{width: 70px;line-height: 70px;font-size: 58px;margin: 4px 20px 0 0}
.learn-current{background-image: url(../img/math/learn-current.png)}
.learn-title{height: 212px;text-align: center;display: flex;align-items: center;font-weight: 700;color: #fff;justify-content: center;flex-direction: column;padding: 0 15px}
.learn-title h1{display: flex;align-items: center}
.learn-title .text-black{font-size: 52px}
.learn-title>p{font-size: 40px}
.learn-title>*+*{margin-top: 5px}
.learn-title .num-circle{background: #e67a2b}
.learn-title-label{line-height: 70px;padding: 0 30px;border-radius: 40px;font-size: 46px;background: #e67a2b;align-self: flex-start}
.learn-info{height: 326px;margin-top: 34px;padding: 44px;font-weight: 700;align-items: center}
[class*=label-icon-]{min-width: 130px;text-align: center;justify-content: center;margin-right: 25px}
[class*=label-icon-]:before{display: none}
.learn-sup{display: flex;min-height: 130px;background: #fff;border-radius: 30px;width: 100%;display: flex;overflow: hidden;margin: auto 0 0}
.label-icon-sup{height: auto;flex-shrink: 0;border-radius: 0;margin: 0;display: flex;align-items: center;justify-content: center;line-height: 1.2}
.learn-sup dd{flex: 1;padding: 10px 30px;text-align: center;align-self: center;line-height: 65px}
.learn-split{align-self: center;margin: 0 25px;width: 3px;height: 55px;background: #ffc56e;border: 2px}
.learn-next{background-image: url(../img/math/learn-next.png)}
.learn-next .num-circle{background: #578ddd}
.learn-next .learn-split{background: #a0deff}
.learn-supplies{display: inline-block;vertical-align: top;line-height: 60px;padding-left: 20px;font-size: 40px;color: #6a3d1f;border: 3px solid;border-radius: 40px;margin-left: 10px}
.learn-supplies .font-serif{display: inline-block;vertical-align: top;background: #6a3d1f;color: #fff;border-radius: 40px;min-width: 62px;margin: -1px;margin-left: 10px;padding: 0 20px;height: 62px}
.corner-title .learn-supplies{height: 52px; line-height: 43px; font-size: 35px}
.corner-title .learn-supplies .font-serif{height: 48px}
.learn-next .learn-title-label{background: #578ddd}
.learn-info>.col-auto:first-child{min-width: calc(50% - 35px)}
.learn-info dd{flex: 1;text-align: center}

/* 도입 */
.goal-list{font-size: 85px}
.page-bubble{width: 1180px;height: 585px;background-repeat: no-repeat;background-size: 100% auto;position: relative}
.page-bubble.start{background-image: url(../img/math/start.png)}
.page-bubble.last{background-image: url(../img/math/last.png)}
.page-bubble.think{background-image: url(../img/math/think.png)}
.page-bubble.active{background-image: url(../img/math/active.png)}
.page-bubble.last-cartoon{background-image: url(../img/math/last-cartoon.png)}
.page-bubble.cartoon-last{background-image: url(../img/math/cartoon-last.png)}
.page-bubble .btn-play{position: absolute;width: 100px;height: 100px;top: 360px;left: 583px}
[class*=ch-start]{position: absolute;background-repeat: no-repeat;background-size: auto 100%}
.ch-start1{width: 253px;height: 93px;background-image: url(../img/math/ch-start1.png);top: 0;left: 546px}
.ch-start2{width: 182px;height: 124px;background-image: url(../img/math/ch-start2.png);top: 455px;left: 998px}
.ch-start3{top: 360px;left: 0;animation: jump .5s linear alternate infinite}
.ch-start3:before{content: '';display: block;width: 174px;height: 175px;background: url(../img/math/ch-start3.png) no-repeat 0 0/auto 100%;animation: ch-start3 .5s steps(2) infinite}
@keyframes ch-start3 {
   100% { background-position: -347px}
}
@keyframes jump {
  0%   {transform: translate3d(0,0,0)}
  50%  {transform: translate3d(0,10%,0)}
  100% {transform: translate3d(0,30%,0)}
}
.ch-start3-shadow{width: 125px;height: 25px;border-radius: 100%;background: #f2f2f2;left: 20px; top: 573px;animation: shadow .5s linear alternate infinite}

@keyframes shadow {
  0%   {transform: scale(.5)}
  50%  {transform: scale(.7)}
  100% {transform: scale(1)}
}

.ch-ani{display: block;width: 123px;height: 119px;background: url(../img/math/ch-ani.png) no-repeat 0 0/auto 100%;animation: ch-ani .5s steps(2) infinite}
@keyframes ch-ani {
   100% { background-position: -247px; }
}

/* 전개 */
.corner-title{font-size: 46px;color: #e45700;line-height: 50px}
.corner-title .num{display: inline-block;vertical-align: top;line-height: 50px;width: 50px;text-align: center;color: #fff;background: #ff8400;border-radius: 100%;margin: 2px 15px 0 0;font-size: 40px;box-shadow: 0 8px 5px #ffb400 inset, 0 -8px 5px #ff6600 inset, 0 2px 2px rgba(0,0,0,.3)}
.corner-title-grn{color: #30ac00}
.corner-title-grn .num{background: #60c43a;box-shadow: 0 8px 5px #7cdc42 inset, 0 -8px 5px #33b700 inset, 0 2px 2px rgba(0,0,0,.3)}
.corner-title-blue{color: #0093e7}
.corner-title-blue .num{background: #20a9e9;box-shadow: 0 8px 5px #1cc9f1 inset, 0 -8px 5px #0097e5 inset, 0 2px 2px rgba(0,0,0,.3)}
.cnt .corner-title {margin-right: -15px}
.cnt .corner-title .num {margin-top: 17px; margin-right: 0}
.promise{width: 100%}
.promise .form-control{height: 260px}
.promise-title{display: flex;margin-bottom: 30px;align-items: center}
.promise-title:before{content: '';width: 58px;height: 58px;background: url(../img/math/promise-title.png) no-repeat 0 0/100% auto;margin-right: 25px}
.blank{vertical-align: middle;height: 1em;width: 1em;margin-top: -.15em}
.blank.circle {border-radius: 100%}
.ch-fox{position: absolute; right: 0; bottom: 0; width: 172px;height: 122px; background-image: url(../img/math/ch-fox.png); background-repeat: no-repeat; background-size: auto 100%; animation: ch-fox .8s steps(2) infinite}
.ch-fox-shadow{position: absolute; right: 12px; top: 575px; width: 103px;height: 14px; border-radius: 100%;background: #000; opacity: .1}
@keyframes ch-fox {
   100% { background-position: -344px}
}

/* 수학익힘 */
.bg-master{background: url(../img/math/bg-master.png) no-repeat center top / 100% auto;}

/* 드래그드롭 */
.drag-item{cursor: pointer;position: relative}
.drag-item.ui-draggable-disabled{display: none}

/* 선긋기 */
.canvas{position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 5;pointer-events: none}
.q-line{position: relative;text-align: center;margin: 15px 50px}
.line-bx{border: 5px solid #a0d1ff;border-radius: 16px;display: inline-block;vertical-align: top;padding: 2px 20px 5px}
.q-line-btn{cursor: pointer;position: relative}
.q-line-btn button{display:block;position:absolute;top:100%;left:50%;width:20px;height:20px;margin: 20px -10px;border:10px solid #222;background-color: #222; border-radius:50%;text-indent:-999em;color:rgba(0,0,0,0)}
.q-line-btn.top button, .q-line-btn.cross button[data-first]{top:auto;bottom:100%}
.q-line-btn.rt button, .q-line-btn.lt button, .cross.rt button[data-first]{top:50%;left:100%;margin:-4px 10px}
.cross.rt button[data-first]{bottom: auto}
.q-line-btn.lt button, .cross.rt button[data-first]{left:auto;right:100%}
.end-line .q-line-btn{pointer-events: none}
.q-line-btn .txt{line-height: 1.25}
.q-line-btn.line-start button{border-color: #085ec3}

/* 수식 */
.tb-fixed{table-layout: fixed}
table.math-table{margin:0 auto; text-align: center; font-family:'NotoSerif', serif !important;font-weight: 700}
table.math-table td {padding:3px 0}
table.math-table tr.line td{background: #000;height:3px !important;min-height:3px !important;overflow: hidden;padding:0;border:0}
table.math-table tr.line + tr td{padding-top: 3px; padding-bottom: 3px}
table.math-table .short-answer {min-width:.8em; width: 90%; padding:2px 2px 4px}
table.math-table tr.sup td{font-size: 0.6em}
table.math-table tr.sup .short-answer {width: 70%; font-size: 0.85em; line-height: 1}
table.math-table .short-answer:not(.active):before {background-size: 0.8em auto}
.short-answer .math-table {color: #f00}
.short-answer .math-table tr.line td {background: #f00}

.math-table-border tr:not(.line) td{border: 3px solid #e6e6e9; border-bottom: 0}
.math-table-border tr:not(.line):first-child>td{border-top: 0}
.math-table-border tr:not(.line) td:first-child{border-left: 0}
.math-table-border tr:not(.line) td:last-child{border-right: 0}
.math-table-border .line + tr td {border-top:0}

.math-slash{display: inline-block;position: relative}
.math-slash::before{content: ""; position: absolute;width:3px; height: 100%; text-align:center; top:5px;left: 50%; background:#ec008b; transform: rotate(45deg)}

.mark-div {position: relative}
.mark-div::after {content:""; display: inline-block; position: absolute; top:-2px;left:-10px; width: calc(200% + 10px); height:100%; background:url(../../common/img/math/mark-divided.png) no-repeat 0 0  / auto 100%}
.mark-div.v2::after {width: calc(300% + 10px)}
.mark-div.v3::after {width: calc(400% + 10px)}

/* 분수 */
.frac-block {display: inline-block;vertical-align: middle;line-height: 1em;text-align: center;}
.fraction-line{margin: 12px 0;border-top: 3px solid #000;}
.fraction-line+b{position:relative;top:-12px;}
.fraction-line+.invisible-area{top:-4px;}
/* @@질문안에 분수 */
.mix-num {position: relative; top: -5px;}
.qu-fraction{position: relative;top: -8px;}
.qu-fraction .fraction-auto{font-size: .8em;}
.qu-fraction .mix-num{position: relative; top: -7px; font-size: .8em;}
.page-hd .qu-fraction .fraction-auto{top: -6px;}
/* @@분수들만 나열 */
.fraction-wrp{position: relative;top: -6px;}
.fraction-wrp.d-inline-block{top: -19px;margin-top: 20px;}

.fraction{display: inline-block;line-height: 1em;vertical-align: middle;padding: 0 5px;text-align: center;position: relative;top: -13px;}
.fraction span{display: inline-block;vertical-align: middle;font-family:'NotoSerif',serif !important;}
/*.font-maple .fraction span{font-family: 'Maplestory',sans-serif !important;}*/
.fraction>span:first-of-type{margin-top:-10px;}
.fraction>span:last-of-type{border-top:3px solid #000;width: 100%;}
.bx .fraction{top: auto;}
.page-hd .fraction>span:last-of-type{border-color: #e45700;}
.font-maple .fraction{top: 0;}
.short-answer .fraction {top:-4px}
.short-answer .fraction>span:last-of-type{border-color: transparent;}
.short-answer.active .fraction>span:last-of-type{border-top:3px solid #f00;}
.color-a-blue .fraction span:last-child {border-color: #004eff ;}
.color-pinkred .fraction span:last-child {border-color: #ec008b !important ;}

.fraction-bar{border:4px solid #00b26a;}
.fraction-bar [class^=col]{border-right:4px dashed #00b26a;}
.fraction-bar [class^=col]:last-child{border-right:0}
.fraction-bar .active{background: #c6eafb}

.frac-block .short-answer{width: 100%;}
.frac-block>* .short-answer{width: auto;}
/* 대분수 */
.qu-fraction .mix-num{font-size: .8em;}
.short-answer .mix-num{position: relative;top: 6px;margin-left: -5px;}
/* 분수괄호*/
.fs-big{display: inline-block; font-size: 1.8em; vertical-align: middle;line-height: 1;margin-top: -22px;font-weight:300 !important;font-family: 'NotoSerif',serif !important;}

/* 문항 */
.card {display: inline-block; border:3px solid #55bda6; background-color: #d0e9e2; padding:5px; font-family:'NotoSerif', serif}
.card-inner {display: inline-block; border:3px solid #98d2c1; border-radius: 15px; background-color: #e6f3ee; padding:2px 14px 5px}
.card-ylw {border-color: #fbac43; background-color: #ffe1ba}
.card-ylw .card-inner {border-color: #fec57a; background-color: #feedd5}
.card-pink {border-color: #f5959d; background-color: #fbd3d3}
.card-pink .card-inner {border-color: #f7a6aa; background-color: #fde5e4}

/*정답 확인시 나오는 badge*/
.answer-badge {display: none;}
.answer-badge.active {display: block;}

/* 인터랙션 */
.interaction-wrap{display: inline-block;vertical-align: top;position: relative;}
.interaction-wrap .icon-click{position: absolute;bottom: -20px;right: -20px;width: 96px;height: 134px}
.interaction-wrap:hover .icon-click{background-image: url(../img/icon-click-hover.png)}
.interaction-wrap:active .icon-click{background-image: url(../img/icon-click-active.png)}
/*수식기호*/
.symbol{position: relative; top: -5px; font-family:'NotoSerif', serif !important;}
/*short-answer 정사각형*/
.short-answer.small {width: 80px; padding-left: 0; padding-right: 0;}


[data-invisible]:not(.active){display: revert;visibility: hidden}
[data-invisible] .short-answer:not(.active):before{transition: none}
