/* root */
:root {
	/* 색상 관련 root */
	--color-white: #fff;
	--color-light-gray: #fefefe;
	--color-light-gray-alt2: #d8d8d8;
	--color-white-gray: #e0e0e0;
	--color-medium-gray: #9e9e9e;
	--color-dark-gray: #4d4d4d;
	--color-neutral-gray: #808080;
	--color-pale-gray: #f2f2f2;
	--color-gray: #ccc;
	
	--color-content-bg: #bbb;
	--color-content-bg-alt: #f2f4f7;
	--color-header-menu-bar-bg: #e5e5e5;
	--color-header-toolbar-bg: #222;
	--color-input-bg: #ffffff00;
	
	--color-mocha: #715951;
	--color-accent: #58391f;
	--color-highlight: #5a371e;
	--color-dark-highlight: #412f21;
	--color-primary: #000000;
	--color-charcoal: #222;
	
	--color-scrollbar-thumb: #c4c4c4;
	--color-transparent: transparent;
	--color-transparent-black: rgba(0, 0, 0, 0.05);
	
	--color-teal: #0097a7;
	--color-light-teal: #2bbbad;
	--color-bright-teal: #02a39f;
	--color-sky-blue: #0277bd;
	--color-indigo-blue: #3f51b5;
	--color-indigo-blue-active: #5c6bc0;
	--color-strong-blue: #1860cc;
	--color-deep-blue: #124899;
	--color-light-sky-blue: #81d4fa;
	--color-light-blue: #29b6f6;
	--color-dark-teal: #00695c;
	--color-dark-blue-gray: #546e7a;
	--color-blue-gray: #607d8b;
	--color-neutral-green: #008000;
	--color-olive-green: #c6cb30;
	--color-olive-drab: #76791c;
	--color-light-green: #66bb6a;
	--color-forest-green: #43a047;
	
	--color-dark-red: #94060c;
	--color-dark-red-alt2: #c62828;
	--color-neutral-red: #ff0000;
	--color-neutral-red-light: #e53935;
	--color-orange: #ef6c00;
	--color-light-orange: #ffb74d;
	--color-light-orange-active: #ffb74d;
	
	--color-deep-purple: #673ab7;
	--color-light-purple: #b39ddb;
	--color-lavender: #ab47bc;
	
	--color-bright-yellow: #ffd646;;
	
	/* 전체 크기및 간격 */
	--scrollbar-border-radius: 22px;
	--scrollbar-border-width: 6px;
	--authtool-height: 30px;
	--header-height: 99px;
	--scaleable-height: 840px;
	--scaleable-padding-top: 42px;
	
	/* 스크롤바 크기 및 생상 지정 변수 */
	--scrollbar-thumb-height: 30%;
	--div-top-padding: 10px;
	--popup-top-padding: 70px;
	--scrollbar-track-color: transparent;
	--scaleable-width: 1120px;
	--scrollbar-width: 24px;
	
	/* 폰트관련 root */
	--nanum-S-R-B: NanumSquareRoundB;
	--suit-Sb: SUIT-SemiBold;
}

/*==========================*/
/* 리셋 부분 (Reset Section) */
/*==========================*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	border: 0;
	font: inherit;
	font-size: 100%;
	margin: 0;
	padding: 0;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
}

table {
	border-spacing: 0;
}

/*==============================*/
/* 개별로 지정할 수 있는 부분 (Individual Section) */
/*==============================*/

button {
	border: none;
	border: 0;
	cursor: pointer;
}

pre {
	font-family: 'NanumSquareRoundB', sans-serif;
	font-size: 40px;
}

.icplayer {
	display: table;
	margin: 0 auto;
	transform-origin: left top;
}

.ic_page .ic_image img {
	vertical-align: top;
}

.pull-left {
	float: left;
}

.clear {
	clear: both;
}

/*==========================*/
/* 공통으로 지정할 수 있는 부분 (Common Section) */
/* 리셋 css 마지막 */
/*==========================*/

/* 기존 viewer.js 역역 */
input,
div {
	-moz-box-sizing: border-box; /* Firefox, other Gecko */
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	box-sizing: border-box;
	color: var(--color-primary);
	/* height: inherit; */
}

#_QPlayer input, #_QPlayer textarea {
	-moz-box-sizing: border-box; /* Firefox, other Gecko */
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	box-sizing: border-box;
	height: inherit;
	padding: 0 5px !important;
	opacity: 1;
	resize: none;
}

.ic_text textarea {
	line-height: 1.4;
}


/* 스크롤바 너비 */
.scroll_contents::-webkit-scrollbar {
	width: 20px; /* 스크롤바의 기본 너비 */
}

#viewer_container::-webkit-scrollbar,
.question::-webkit-scrollbar,
.top_panel::-webkit-scrollbar,
.solve::-webkit-scrollbar {
	width: var(--scrollbar-width);
}

.scroll_contents::-webkit-scrollbar {
	width: 20px; /* 스크롤바의 너비 (내 포맷으로) */
}

/* 스크롤바의 길이, 색상, 모양 */
#viewer_container::-webkit-scrollbar-thumb,
.question::-webkit-scrollbar-thumb,
.top_panel::-webkit-scrollbar-thumb,
.solve::-webkit-scrollbar-thumb,
.scroll_contents::-webkit-scrollbar-thumb {
	background: var(--color-scrollbar-thumb);
	background-clip: padding-box;
	border: var(--scrollbar-border-width) solid var(--color-transparent);
	border-radius: var(--scrollbar-border-radius);
	height: var(--scrollbar-thumb-height);
}

/* 스크롤바 트랙의 모양 */
#viewer_container::-webkit-scrollbar-track,
.question::-webkit-scrollbar-track,
.top_panel::-webkit-scrollbar-track,
.solve::-webkit-scrollbar-track,
.scroll_contents::-webkit-scrollbar-track {
	background: var(--scrollbar-track-color);
	border-radius: 10px;
}

/* ** 뷰어 영역 ** */
.underline_math {
	border-bottom: solid 3px var(--color-primary);
	padding-bottom: 2px;
	text-decoration: none;
}

.authtool {
	align-items: center;
	background-color: var(--color-pale-gray);
	display: none;
	height: var(--authtool-height);
	padding: 5px;
	text-align: center;
}

#scaleable-wrapper {
	align-items: center;
	background: var(--color-white);
	border-radius: 32px 0 0 0;
	box-sizing: border-box;
	flex-direction: column;
	height: var(--scaleable-height);
	padding-top: var(--scaleable-padding-top);
	position: absolute;
	width: var(--scaleable-width);
}

#viewer_container {
	background: var(--color-white);
	overflow-x: hidden;
	overflow-y: auto;
	width: var(--scaleable-width);
}

.viewer-top {
	background: var(--color-white);
	height: var(--scaleable-padding-top);
	left: 0;
	position: absolute;
	top: 0;
	width: 500px;
}

#viewer_container:after {
	background: url('../../../assets/bg.png') center top/ 100% auto no-repeat;
	content: '';
	height: 50px;
	position: absolute;
	right: -1px;
	top: -2px;
	width: 50px;
}

.without-after-element:after {
	visibility: hidden;
}

.div_top_padding {
	background-color: var(--color-pale-gray);
	padding-top: var(--div-top-padding);
}

.question {
	background-color: var(--color-white);
}

.popup {
	bottom: 0;
	font-family: 'NanumSquareRoundB', sans-serif;
	font-size: 40px;
	left: 0;
	position: fixed;
	width: 100%;
	z-index: 1000;
}

.popup-on {
	bottom: 0;
	display: block;
	font-family: 'NanumSquareRoundB', sans-serif;
	font-size: 40px;
	height: auto;
	left: 0;
	overflow: hidden;
	position: fixed;
	width: 100%;
	z-index: 1000;
}

.popup_contents {
	background-color: var(--color-white);
	bottom: 0;
	box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.102);
	color: #666666;
	height: 420px;
	left: 0;
	overflow: hidden;
	padding: 20px;
	position: relative;
	text-align: justify;
	width: 100%;
	z-index: 1000;
}

.step-name {
	align-items: center;
	background: url('../../../assets/tape_bg.png') center/ 100% auto no-repeat;
	color: var(--color-highlight);
	display: none;
	font-family: 'NanumSquareRoundB', sans-serif;
	font-size: 25px;
	height: 40px;
	justify-content: center;
	margin-bottom: 8px;
	margin-left: 90px;
	width: 151px;
}

.closeBtn {
	background: url('../../../assets/button/close_popup_btn_gray.svg') center/
    100% auto no-repeat;
	cursor: pointer;
	height: 30px;
	position: absolute;
	right: 25px;
	top: 25px;
	width: 30px;
	z-index: 1001;
}

.font_bold {
	color: var(--color-highlight);
	font-family: 'NanumSquareRoundEB', sans-serif;
	margin-bottom: 10px;
}

.dotLine {
	border-bottom: 5px dotted var(--color-accent);
	box-sizing: border-box;
	height: 5px;
	margin: 10px 0 18px;
	width: 100%;
}

.scroll_container {
	overflow-x: hidden;
	overflow-y: hidden;
}

.scroll_inner {
	height: 1000px;
	padding-right: 15px;
}

.scroll_contents {
	line-height: 1.4;
	overflow-x: hidden;
	overflow-y: auto;
}

.comment_char {
	background-color: var(--color-highlight);
	border: 4px solid var(--color-dark-highlight);
	border-radius: 40px;
	bottom: 10px;
	color: var(--color-white);
	cursor: pointer;
	display: none;
	font-family: 'NanumSquareRoundB', sans-serif;
	font-size: 34px;
	margin: 0 auto;
	padding: 2px 20px;
	position: fixed;
	text-align: center;
	z-index: 1;
}

.horizontal {
	align-items: flex-start;
	display: flex;
	justify-content: left;
}

.vertical {
	display: table-cell;
}

.horizontal .font_bold {
	color: var(--color-primary);
	flex-shrink: 0;
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 0;
}

.scroll_inner .slideLine {
	background: var(--color-white-gray);
	display: block;
	height: 1px;
	margin: 20px 0;
	width: 100%;
}

.scroll_inner .panswer,
.scroll_inner .psolve {
	color: var(--color-dark-gray);
	display: block;
	font-size: 16px;
	font-weight: 400;
	padding: 0 8px;
	width: auto;
}

.scroll_inner .psolve div.type_text,
.scroll_inner .panswer div.type_text {
	white-space: pre-wrap;
}

#marking {
	content: '';
	display: block;
	height: 70px;
	left: 20px;
	position: absolute;
	top: 0;
	width: 70px;
}

.marking_correct_jimun,
.marking_incorrect_jimun,
.marking_triangle_jimun {
	content: '';
	display: block;
	height: 70px;
	left: 20px;
	position: absolute;
	top: 0;
	width: 70px;
}

.marking_correct,
.marking_incorrect,
.marking_triangle {
	content: '';
	display: block;
	height: 70px;
	left: 20px;
	position: absolute;
	top: 90px;
	width: 70px;
}

.psolve {
	display: none;
	font-family: var(--suit-Sb), sans-serif;
	font-size: 29.5px;
	height: 600px;
	line-height: 1.4;
	margin-top: 0;
	max-width: 950px;
	padding-right: 25px;
	text-align: left;
	width: 100%;
}

.panswer {
	display: none;
	line-height: 1.4;
	padding-right: 25px;
	text-align: left;
	width: 950px;
	word-wrap: break-word;
	font-family: var(--suit-Sb), sans-serif;
	font-size: 29.5px;
}

.marking_correct,
.marking_correct_jimun {
	background: url('../../../assets/marking/marking_correct_icon.svg') center/
    100% auto no-repeat;
}

.marking_incorrect,
.marking_incorrect_jimun {
	background: url('../../../assets/marking/marking_incorrect_icon.svg') center/ 100% auto no-repeat;
}

.marking_triangle,
.marking_triangle_jimun {
	background: url('../../../assets/marking/marking_star_icon.svg') center/
    100% auto no-repeat;
	height: 75px;
}

.answerImage {
	display: none;
	height: auto;
	max-width: 930px;
}

.solveImage {
	display: none;
	height: auto;
	max-width: 940px;
}

.solveMovie {
	background: url('../../../assets/solve_movie.png') center/ 100% auto no-repeat;
	border: none;
	height: 70px;
	padding: 0;
	width: 188px;
}

.bottomBar {
	background-color: var(--color-white);
	bottom: 0;
	height: 80px !important;
	position: absolute;
	width: 100% !important;
}

.topButton {
	background-color: var(--color-content-bg-alt);
	/* font-size: 14px; */
	border: 1px solid #d9d9d9;
	box-sizing: border-box;
	color: var(--color-primary);
	height: 24px;
	margin: 0 10px 0 0;
	padding: 0 9px;
}

.MathJax_Display {
	font-family: 'NanumSquareRoundB', sans-serif;
	text-align: left !important;
}

.mtext > span {
	font-family: 'NanumSquareRoundB', sans-serif !important;
}

.container {
	height: 100vh;
}

.viewer_inner {
	height: 100%;
	margin-right: 20px;
	position: relative;
	width: calc(100% - 20px);
}

.viewer_inner .icplayer {
	left: 0;
	position: absolute;
	top: 0;
}

#MathJax_Font_Test {
	left: -9999px !important;
	top: -9999px !important;
}

#hideHint {
	display: none;
}

img.external-link-button-image {
	max-width: 100%
}

.addon_Math_Input {
	border: 4px solid rgb(90, 55, 30) !important;
	border-radius: 15px;
	overflow: hidden;
}

.addon_Math_Input math-field {
	border: 0;
	font-size: 26px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
}