@charset "utf-8";
@import url(font.css);

html {
	-webkit-text-size-adjust: 100%; /* Chrome, Safari, newer versions of Opera */
	-ms-text-size-adjust: 100%; /* IE */
	text-size-adjust: 100%; /* Modern browsers without prefixes */
}

html, body {
	margin: 0px;
	padding: 0px;
	font-family: 'Pretendard', sans-serif;
}

* {
	user-select: none;
	box-sizing: border-box;
}

ul {
	list-style: none;
	padding: 0;
    margin: 0;
}

#app {

}

#gatepage1,
#testarea,
#resultarea,
.resultarea {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: #fff;
	/* display: none; */
	z-index: 0;
	overflow: hidden;
}

#gatepage1.active,
#testarea.active,
#resultarea.active,
.resultarea.active {
	/* display: block; */
	z-index: 1;
}
#resultarea.active,
.resultarea.active {
	display: block;
}

.gatepage {

}
.gatepage h1 {
	font-size: 46px;
	line-height: 60px;
	font-weight: bold;
	text-align: center;
	margin: 70px 70px 60px;
}
.gatepage h1>span {
	display: inline-block;
}
.gatepage h2 {
	font-family: 'GyeonggiTitleM', sans-serif;
	font-weight: normal;
	font-size: 56px;
	margin: 0;
}
.gatepage p {
	font-family: 'Pretendard', sans-serif;
	font-size: 28px;
	margin: 0;
}
#gatepage1 {

}

.gatepage>ul {
	list-style: none;
	/* display: flex; */
	padding: 0;
	margin: 0;
	text-align: center;
}
.gatepage li.pbox {
	position: relative;
    display: inline-block;
    border-radius: 20px;
    width: 580px;
    height: 290px;
    padding: 100px 70px;
    background-repeat: repeat-x;
    background-position: 0% 0%;
    text-align: left;
    margin: 0 20px 35px;
    transition: all 0.1s;
    cursor: pointer;
    max-width: 85%;
}
.gatepage li.pbox::after {
	position: absolute;
	bottom: -27px;
    right: 40px;
	background-size: 100%;
    background-repeat: no-repeat;
}

.gatepage li.pbox h2 {
	margin-bottom: 20px;
	letter-spacing: -5px;
}

.gatepage li.pbox.type1 {
	background-image: url('../images/boxbg01.png');
}
.gatepage li.pbox.type1::after {
	/* content: url(../images/chartype01.png); */
	content: ' ';
    width: 286px;
    height: 280px;
    background-image: url(../images/chartype01.png);
    background-position: 100% 92%;
    max-width: 45%;
	bottom: -53px;
	right: 10px;
	transition: all 0.1s;
}

.gatepage li.pbox.type1 h2 {
	color: #681DAE;
}
.gatepage li.pbox.type1 h2::after {
	content: '기초 문제';
}
.gatepage li.pbox.type1 p::after {
	content: '기초를 다져요';
}

.gatepage li.pbox.type2 {
	background-image: url('../images/boxbg02.png');
}
.gatepage li.pbox.type2::after {
	/* content: url(../images/chartype02.png); */
	content: ' ';
    width: 242px;
    height: 238px;
    background-image: url(../images/chartype02.png);
    background-position: 100% 85%;
    max-width: 40%;
    bottom: -2px;
    right: 40px;
	transition: all 0.1s;
}

.gatepage li.pbox.type2 h2 {
	color: #1F53A9;
}
.gatepage li.pbox.type2 h2::after {
	content: '유사 문제';
}
.gatepage li.pbox.type2 p::after {
	content: '실력을 다져요';
}

.gatepage li.pbox.type3 {
	background-image: url('../images/boxbg03.png');
}
.gatepage li.pbox.type3::after {
	content: ' ';
    width: 242px;
    height: 238px;
    background-image: url(../images/chartype03.png);
    background-position: 100% 85%;
    max-width: 40%;
    bottom: -13px;
    right: 40px;
	transition: all 0.1s;
}

.gatepage li.pbox.type3 h2 {
	color: #546B0E;
}
.gatepage li.pbox.type3 h2::after {
	content: '보충 문제';
}
.gatepage li.pbox.type3 p::after {
	content: '한 번 더 확인해요';
}

.gatepage li.pbox.type4 {
	background-image: url('../images/boxbg04.png');
}
.gatepage li.pbox.type4::after {
	content: ' ';
    width: 242px;
    height: 238px;
    background-image: url(../images/chartype04.png);
    background-position: 100% 85%;
    max-width: 40%;
    bottom: 0px;
    right: 20px;
	transition: all 0.1s;
}

.gatepage li.pbox.type4 h2 {
	color: #A14719;
}
.gatepage li.pbox.type4 h2::after {
	content: '응용 문제';
}
.gatepage li.pbox.type4 p::after {
	content: '응용 문제에 도전해요';
}
#testarea {
	display: flex;
    flex-direction: column;
}
#headstep {
	position: relative;
	height: 124px;
	text-align: center;
	border-bottom: 6px solid #ccc;
}

#headstep>.gauge {
	position: absolute;
	bottom: -6px;
	width: 100%;
	height: 6px;
	background-color: #FF8343;
	/* transition: width 0.1s; */
}
.headstep li,
#headstep li {
	position: relative;
	display: inline-block;
	width: 72px; height: 72px;
	background-color: #F5F6F9;
	border:2px solid #ddd;
	border-radius: 18px;
	line-height: 72px;
	font-size: 38px;
	font-weight: bold;
	color: #bbb;
	margin: 24px 10px;
}
/* #headstep li.success,
#headstep li.fail, */
#headstep li.active {
	background-color: rgba(255,107,0,0.1);
	border: 4px solid #FF6B00;
	color: #FF6B00;
}
/* #headstep li.active::before {
	position: absolute;
	content: url(../images/headstep_tail.svg);
	width: 14px;
	height: 9px;
	margin: auto;
    bottom: 0px;
    left: 0;
    right: 0;
    top: 0;
} */

.headstep li.success::after,
#headstep li.success::after {
	position: absolute;
    margin: auto;
    top: -20px;
    left: 0;
    right: 0;
    width: 34px;
    height: 34px;
	content: ' ';
	background: url(../images/ico_success.png) no-repeat 50%;
	background-size: 100% auto;
}

.headstep li.fail::after,
#headstep li.fail::after {
	position: absolute;
    margin: auto;
    top: -20px;
    left: 0;
    right: 0;
    width: 34px;
    height: 34px;
	content: ' ';
	background: url(../images/ico_fail.png) no-repeat 50%;
	background-size: 100% auto;
}

#contents iframe {
	width: 100%;
	height: 100%;
	position: absolute;
    top: 0;
    left: 0;
	margin:auto;
	right:0;
	/* width: 90%; */
    max-width: 1000px;
}
#contents {
	/* display: flex; */
	flex-grow: 1;
	width: 100%;
	padding: 0;
	white-space: nowrap;
}
#contents>li {
	width: 100%;
	margin: 0;
    padding: 0;
    display: inline-block;
    height: 100%;
	transition: transform 0.1s;
	text-align: center;
	position: relative;
}

#resultarea,
.resultarea {
	text-align: center;
	padding: 0px 40px 40px;
	display: none;
}

#resultarea ul.headstep,
.resultarea ul.headstep {
	/* margin-top: 120px; */
	width: 100%;
	border-bottom: 6px solid #FF8343;
}

#resultarea img.pic_result,
.resultarea img.pic_result {
	position: relative;
    margin-top: 30px;
    margin-bottom: 20px;
}

#resultarea .lbl_result,
.resultarea .lbl_result {
	display: block;
    font-weight: bold;
    font-size: 32px;
    color: #009CED;
}

#resultarea .result_box,
.resultarea .result_box {
	position: relative;
    height: 340px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    /* margin-top: 70px; */
	transform: scale(0.75);
}

#resultarea .score_box,
.resultarea .score_box {
	position: absolute;
    background-image: url(../images/scorebg.png);
	background-repeat: no-repeat;
	background-size: 100%;
    width: 412px;
    height: 187px;
    margin: auto;
    left: 0;
    right: 0;
    top: 10px;
    bottom: 0;
	font-size: 90px;
	font-family: "GyeonggiTitleM", sans-serif;
}
#resultarea .lbl_cnt,
.resultarea .lbl_cnt {
	position: absolute;
	width: 80px;
	height: 90px;
	color: #11A065;
	top: 100px;
    left: 40px;
}
#resultarea .lbl_sum,
.resultarea .lbl_sum {
	position: absolute;
	width: 80px;
	height: 90px;
	color: #000;
	top: 100px;
    left: 280px;
}

#resultarea .button_box,
.resultarea .button_box {
    position: fixed;
    height: 112px;
    text-align: center;
    width: 100%;
    left: 0px;
    bottom: 40px;
}

#resultarea .btn_reset,
.resultarea .btn_reset {
	width: 280px;
	height: 90px;
	border-radius: 20px;
	outline: 0;
	border: 0px;
	/* background-color: #424242; */
	background-color: #1A5ABA;
	color:#fff;
	margin:0 20px;
	font-size: 30px;
	font-weight: bold;
	vertical-align: top;
	cursor: pointer;
}

#resultarea .btn_save,
.resultarea .btn_save {
	width: 280px;
	height: 90px;
	border-radius: 20px;
	outline: 0;
	border: 0px;
	background-color: #FF6B00;
	color:#fff;
	margin:0 20px;
	font-size: 33px;
	font-weight: bold;
	vertical-align: top;
	cursor: pointer;
}

#keypad {
	position: fixed;
	/* padding: 20px 128px 20px 40px; */
	padding: 20px 40px;
	background-color: #CBCCCE;
	left: 0;
    bottom: 0;
    width: 100%;
    z-index: 10;
	text-align: center;
	transform: translateX(-200%);
	transition: all 0.1s;
	min-width: 478px;
    /* white-space: nowrap; */
}
#keypad.active {
	transform: translateX(0px);
}
#keypad .ln1,
#keypad .ln2 {
	display: inline-block;
	position: relative;
}

#keypad .ln2 {
	padding-right: 104px;
}

#app.landscape #keypad .ln2 {
	padding-right: 4px;
}

#keypad .delkey,
#keypad .numkey {
	width: 94px;
    height: 86px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-color: #fff;
    border-radius: 13px;
    font-size: 38px;
    font-weight: bold;
    line-height: 87px;
    color: #868686;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    margin: 5px 5px;
    box-shadow: 0px 3px 0px 0px #999;
}
#keypad .delkey {
	width: 94px;
    height: 86px;
    background: url(../images/key_del.svg) no-repeat;
    background-color: #fff;
    background-position: 50% 50%;
    background-size: 80px auto;
    cursor: pointer;
    position: absolute;
    top: 17px;
    right: 40px;
}
#keypad .delkey.ln {
	width: 94px;
    height: 86px;
    background: url(../images/key_del.svg) no-repeat;
    background-color: #fff;
    background-position: 50% 50%;
    background-size: 80px auto;
    cursor: pointer;
    position: relative;
    top: 0px;
    right: 0px;
	vertical-align: bottom;
}

#keypad .ln1 .delkey {
	/* position: absolute;
	right: -104px; */
}

#keypad .keydown {
	background-color: rgba(0, 0, 0, 0.03);
}

.resultarea {
	opacity: 1;
	z-index: 0;
}

@media (min-width: 1280px) {
	#contents iframe {
		width: 80%;
	}
}

@media (min-width: 1280px) and (min-height: 1000px) {
	.gatepage h1 {
		margin: 230px 70px 90px;
		font-size: 70px;
	}
}

/* @media (min-width: 1500px) and (min-height: 1025px) {
	.gatepage h1 {
		margin: 300px 70px;
		font-size: 70px;
	}
} */

@media (min-width: 1280px) and (max-height: 800px)  {
	.gatepage h1 {
		margin: 100px 50px;
		font-size: 70px;
	}

	#resultarea ul.headstep {
		margin-top: 20px;
		transform: scale(0.6);
	}
	#resultarea  img.pic_result {
		margin-top: 10px;
		margin-bottom: 10px;
		width: 200px;
	}
	#resultarea  .result_box {
		margin-top: 50px;
		height: 150px;
	}
	#resultarea .score_box {
		width: 270px;
		height: 120px;
		font-size: 50px;
	}
	#resultarea .lbl_cnt {
		top: 65px;
		left: 14px;
		height: 50px;
	}
	#resultarea .lbl_sum {
		top: 65px;
		left: 178px;
		height: 50px;
	}
	#resultarea .btn_reset {
		font-size: 18px;
		height: 80px;
		width: 180px;
	}
	#resultarea .btn_save {
		font-size: 18px;
		height: 80px;
		width: 180px;
	}
}

@media (min-width: 1280px) and (max-height: 680px)  {
	#resultarea img.pic_result {
		width: 140px;
	}
	#resultarea .result_box {
		margin-top: 20px;
		height: 150px;
	}
}

@media (orientation: portrait) {
	/* #keypad>div:nth-child(5)::after {
		content: "\A";
	} */
	.gatepage h1>span {
		display: block;
	}

	#resultarea img.pic_result {
		margin-top: 30%;
	}
}

.mode {
	position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
	cursor: pointer;
	display: none;
}

.mode .active {
	position: absolute;
    width: fit-content;
    height: fit-content;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    background: #ffffff;
    font-size: 50px;
    text-align: center;
    vertical-align: middle;
    padding: 20px 70px;
    border-radius: 30px;
	font-family: 'Pretendard', sans-serif;
	font-weight: bold;
	line-height: 60px;
}