/* made by EDUMARU */

/* 기본 css import  */
@import "./jquery.mCustomScrollbar.css";
@import "./reset.css";
@import "./fonts.css";

/* 공통 */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-touch-callout: none;  /* iOS Safari */
    -webkit-user-select: none;    /* Chrome/Safari/Opera */
    -khtml-user-select: none;     /* Konqueror */
    -moz-user-select: none;       /* Firefox */
    -ms-user-select: none;        /* Internet Explorer/Edge */
    user-select: none;            /* Non-prefixed version, currently not supported by any browser */
}
body.fullScreen {
    background-color: #000000;
}

/* 전체 영역 */
div#wrapper {
    position: relative;
    width: 100%;
    height: 100%;
	margin: 0 auto;
    font-size: 16px;
	font-family: NanumGothicB;
	letter-spacing: -1px;
	word-spacing: 1px;
    overflow: hidden;
}

/* 콘텐츠 영역 */
#wrapper section#section { /* 높이는 common.js에서 자동 설정 */
    position: relative;
    width: 100%;
	background: url("../images/bg/bg_contents.png") no-repeat;
    background-size: contain;
    background-position: center;
    overflow: hidden;
}
#wrapper section#section.mobile {
    overflow: hidden;
}

/* 콘텐츠 영역 - play 버튼(화면) */
#section .playingDiv {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
	z-index: 100;
	display: none;
}
#section .playingDiv.view {
	display: block;
}
#section .playingDiv .playingBg {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.1;
}
#section .playingDiv .playingImg {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -50px;
    cursor: pointer;
    width: 100px;
    height: 100px;
	background: url('../images/common/btn_playing.png') no-repeat;
}
#section .playingDiv .playingImg:hover {
	background-position: -100px 0;
}

/* 콘텐츠 영역 - 로딩 이미지 */
#section .loadingDiv {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
	z-index: 99;
	display: none;
}
#section .loadingDiv.view {
	display: block;
}
#section .loadingDiv .loadingBg {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.1;
}
#section .loadingDiv .loader {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -56px;
	margin-left: -56px;
	width: 80px;
	height: 80px;
	border: 16px solid #f3f3f3;
	border-radius: 50%;
	border-top: 16px solid #3498db;
}
#section .loadingDiv.view .loader {
	-webkit-animation: loading 2s linear infinite;
	animation: loading 2s linear infinite;
}
@-webkit-keyframes loading {
	0% { -webkit-transform: rotate(0deg); }
	100% { -webkit-transform: rotate(360deg); }
}
@keyframes loading {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* 콘텐츠 영역 - 스크립트(자막) */
#section .scriptDiv {
	position: absolute;
	bottom: -84px;
	left: 0px;
	width: 100%;
	height: 84px;
	transition: bottom 0.5s;
	z-index: 1002;
}
#section .scriptDiv.on {
	bottom: 0px;
	transition: bottom 0.5s;
}
#section .scriptDiv .script {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 10px;
    background-color: #333333;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    box-sizing: border-box;
}
#section .scriptDiv .script .scriptText {
    position: relative;
    height: 60px;
    font-size: 16px;
    line-height: 20px;
    color: #ffffff;
    word-break: keep-all;
}
#section.mobile .scriptDiv .script .scriptText {
    overflow: scroll;
}

/* 콘텐츠 영역 - 메뉴 */
#section .menuDiv {
	position: absolute;
	bottom: 0;
	left: -305px;
	width: 305px;
	height: 514px;
	background: url('../images/menu/bg_menu.png') no-repeat;
    background-size: contain;	
	transition: left 0.5s;
	z-index: 102;
}
#section .menuDiv.view {
	left: 0px;
	transition: left 0.5s;
}

/* 콘텐츠 영역 - 메뉴 - 메뉴 상세 */
.menuDiv .menuCloseBtn {
	position: absolute;
	top: 0;
	right: 0;
	width: 37px;
	height: 37px;
	background: url('../images/menu/btn_menu_close.png') no-repeat;
	background-position: 0 0;
	cursor: pointer;
}
.menuDiv .menuCloseBtn:hover {
	background-position: -37px 0;
}
.menuDiv .menuInner {
	position: absolute;
	left: 0px;
	width: 100%;
}
.menuDiv .menuInner_1 { 	top: 30px; }
.menuDiv .menuInner_2 { top: 165px; }
.menuDiv .menuInner_3 { 	top: 350px; }
.menuDiv .menuInner_4 { 	top: 390px; }

/* 콘텐츠 영역 - 메뉴 - 메뉴 상세 - 메인메뉴 */
.menuDiv .menuInner .mainMenu {
	position: relative;
	height: 32px;
	line-height: 32px;
	margin-bottom: 3px;
	padding-left: 42px;
	font-size: 22px;
	color: #ffffff;
	box-sizing: border-box;
	font-family: 'NanumSquareB';
	cursor: pointer;
}
.menuDiv .menuInner .mainMenu::after {
	content: '';
	position: absolute;
	bottom: 1px;
	left: 12px;
	width: calc(100% - 24px);
	border-bottom: 1px solid #ffffff;
}
.menuDiv .menuInner .mainMenu.active,
.menuDiv .menuInner .mainMenu:hover {
	color: #D3EC17;
}
.menuDiv .menuInner .mainMenu.active::after,
.menuDiv .menuInner .mainMenu:hover::after {
	border-bottom: 1px solid #D3EC17;
}
.menuDiv .menuInner .mainMenu .bullet {
	position: absolute;
	top: 3px;
	left: 14px;
	width: 24px;
	height: 24px;
	background: url('../images/menu/icon_menu.png') no-repeat;
}
.menuDiv .menuInner_1 .mainMenu .bullet				{ background-position: 0 0; }
.menuDiv .menuInner_2 .mainMenu .bullet				{ background-position: -24px 0; }
.menuDiv .menuInner_3 .mainMenu .bullet				{ background-position: -48px 0; }
.menuDiv .menuInner_4 .mainMenu .bullet				{ background-position: -72px 0; }
.menuDiv .menuInner_1 .mainMenu.active .bullet	,
.menuDiv .menuInner_1 .mainMenu:hover .bullet		{ background-position: 0 -24px; }
.menuDiv .menuInner_2 .mainMenu.active .bullet	,
.menuDiv .menuInner_2 .mainMenu:hover .bullet		{ background-position: -24px -24px; }
.menuDiv .menuInner_3 .mainMenu.active .bullet	,
.menuDiv .menuInner_3 .mainMenu:hover .bullet		{ background-position: -48px -24px; }
.menuDiv .menuInner_4 .mainMenu.active .bullet	,
.menuDiv .menuInner_4 .mainMenu:hover .bullet		{ background-position: -72px -24px; }

/* 콘텐츠 영역 - 메뉴 - 메뉴 상세 - 서브메뉴 */
.menuDiv .menuInner .subMenu {
	position: relative;
	line-height: 20px;
	border-top-left-radius: 32px;
	border-bottom-left-radius: 32px;
	margin-bottom: 3px;
	color: #ffffff;
	font-size: 18px;
	box-sizing: border-box;
	margin-left: 18px;
	padding: 2px 10px 2px 32px;
	word-break: keep-all;
	font-family: 'NanumSquareB';
	cursor: pointer;
}
.menuDiv .menuInner.menuInner_2 .subMenu {
	padding-left: 40px;
}
.menuDiv .menuInner .subMenu .bulletNum {
	position: absolute;
	top: 2px;
	left: 20px;
}
.menuDiv .menuInner .subMenu .bullet {
    position: absolute;
    top: 0px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: url(../images/menu/icon_menu.png) no-repeat;
}
.menuDiv .menuInner .subMenu .bullet { background-position: -96px 0; }
.menuDiv .menuInner .subMenu.active .bullet,
.menuDiv .menuInner .subMenu:hover .bullet { background-position: -96px -24px; }
.menuDiv .menuInner .subMenu.active,
.menuDiv .menuInner .subMenu:hover {
	color: #3E4322;
	background-color: #D3EC17;
}
.menuDiv .menuInner .menu.active {
	cursor: default;
	pointer-events: none;
}

/* 콘텐츠 영역 - 콘텐츠(영상 및 퀴즈, 정리하기 등) */
#section .contentsDiv {
    position: relative;
    width: 100%;
    height: 100%;
/*    overflow: hidden;*/
}

#section .contentsDiv .introSkipBtn {
	position: absolute;
	font-size: 32px;
	text-shadow: 1px 1px 0px #ffffff, -1px -1px 0px #ffffff, 1px -1px 0px #ffffff, -1px 1px 0px #ffffff;
	cursor: pointer;
	display: none;
}
#section .contentsDiv .introSkipBtn.view { display: block; }

/* 콘텐츠 영역 - 과정명 및 차시명 */
#section .contentsDiv .chapterTitle {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
}
#section .contentsDiv .contents {
    width: 100%;
    height: 100%;
}
#section .contentsDiv .contents.none { display: none; }

/* 컨트롤러 */
#wrapper footer#footer { /* 높이는 common.js에서 자동 설정 */
    position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #171717;
	z-index: 1000;
}
#footer .controllerDiv {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 컨트롤러 - 메뉴 버튼 */
.controllerDiv .menuBtnDiv {
    position: absolute;
	top: 0;
	left: 0;
}
.controllerDiv .menuBtnDiv .btns.menuBtn {
	width: 45px;
	height: 40px;
	background: url('../images/controller/btn_menu.png') no-repeat;
	cursor: pointer;
}
.controllerDiv .menuBtnDiv .btns.menuBtn.open,
.controllerDiv .menuBtnDiv .btns.menuBtn:hover { background-position: -45px 0px; }

/* 컨트롤러 - 타임라인 */
.controllerDiv .ctrlTimeDiv {
	position: absolute;
	top: 0;
	left: 60px;
	height: 100%;
}
.controllerDiv .ctrlTimeDiv > div {
	float: left;
}
.controllerDiv .ctrlTimeDiv::after { /* float: left 해제 */
	content: '';
	clear: both;
}
.controllerDiv .ctrlTimeDiv .timelineDiv {
    position: relative;
	top: 15px;
	margin-right: 20px;
}
.controllerDiv .ctrlTimeDiv .timelineDiv .timeline {
    position: relative;
	width: 360px;
    height: 10px;
	background-color: #cacaca;
	border-radius: 5px;
}
.controllerDiv .ctrlTimeDiv .timelineDiv .timeline .timelinePlayed { /* 재생된 영역 표시 */
    position: absolute;
	top: 0px;
	left: 0px;
    width: 0px;
    height: 10px;
	border-radius: 5px;
    background-color: #9ba613;
	z-index: 1000;
}
.controllerDiv .ctrlTimeDiv .timelineDiv .timeline .playhead { /* 재생바 플레이헤드 */
    position: absolute;
    top: -9px;
    left: -14px;
    width: 28px;
    height: 28px;
    font-size: 0; /* forcus 될 때 input 깜빡임 방지 */
    cursor: pointer;
	outline: none;
	z-index: 1001;
	background: url('../images/controller/btn_playhead.png') no-repeat;
}

/* 컨트롤러 - 재생시간 */
.controllerDiv .ctrlTimeDiv .timeDiv {
	position: relative;
	top: 10px;
}
.controllerDiv .ctrlTimeDiv .timeDiv::after {
	content: '';
	clear: both;
}
.controllerDiv .ctrlTimeDiv .timeDiv > div {
	float: left;
}
.controllerDiv .ctrlTimeDiv .timeDiv .cTime {
	font-size: 20px;
    color: #ffffff;
}
.controllerDiv .ctrlTimeDiv .timeDiv .dTime {
	position: relative;
	top: 3px;
	color: #BAB8BC;
}
.controllerDiv .ctrlTimeDiv .timeDiv .separator {
	position: relative;
	top: 1px;
	margin: 0 8px;
	height: 18px;
	border-right: 2px solid #999999;
	transform: rotate(20deg);
}

/* 컨트롤러 - 컨트롤 버튼 */
.controllerDiv .ctrlBtnDiv {
    position: absolute;
	top: 0;
	right: 235px;
	overflow: hidden;
}
.controllerDiv .ctrlBtnDiv .ctrlBtn {
    position: relative;
    width: 40px;
    height: 40px;
    float: left;
    cursor: pointer;
    background: url('../images/controller/btn_controller.png') no-repeat;
}
.controllerDiv .ctrlBtnDiv .ctrlBtn:not(:last-child) {
	margin-right: 2px;
}
.controllerDiv .ctrlBtnDiv .ctrlBtn:last-child {
	margin-left: 5px;
}
.controllerDiv .ctrlBtnDiv .playBtn			{ background-position: 0 0; }
.controllerDiv .ctrlBtnDiv .pauseBtn			{ background-position: -40px 0; }
.controllerDiv .ctrlBtnDiv .replayBtn			{ background-position: -80px 0; }
.controllerDiv .ctrlBtnDiv .scriptBtn			{ background-position: -120px 0; }
.controllerDiv .ctrlBtnDiv .volumeBtn		{ background-position: -160px 0; }
.controllerDiv .ctrlBtnDiv .volumeBtn.off	{ background-position: -200px 0; }
.controllerDiv .ctrlBtnDiv .playBtn.on,
.controllerDiv .ctrlBtnDiv .playBtn:hover { background-position: 0 -40px; }
.controllerDiv .ctrlBtnDiv .pauseBtn.on,
.controllerDiv .ctrlBtnDiv .pauseBtn:hover { background-position: -40px -40px; }
.controllerDiv .ctrlBtnDiv .replayBtn.on,
.controllerDiv .ctrlBtnDiv .replayBtn:hover { background-position: -80px -40px; }
.controllerDiv .ctrlBtnDiv .scriptBtn.on,
.controllerDiv .ctrlBtnDiv .scriptBtn:hover { background-position: -120px -40px; }
.controllerDiv .ctrlBtnDiv .volumeBtn.on,
.controllerDiv .ctrlBtnDiv .volumeBtn:hover { background-position: -160px -40px; }
.controllerDiv .ctrlBtnDiv .volumeBtn.off:hover { background-position: -200px -40px; }

/* 컨트롤러 - 볼륨 영역 */
#footer.mobile .controllerDiv .volumelineDiv {
    display: none;
}
.controllerDiv .volumelineDiv {
    position: absolute;
	top: 17px;
	right: 170px;	
}
.controllerDiv .volumelineDiv .volumeline {
    position: relative;
    width: 60px;
    height: 6px;
	border-radius: 3px;
    background-color: #D8D8D8;
}
.controllerDiv .volumelineDiv .volumeline .volumeWidth { /* 볼륨 영역 표시 */
    position: absolute;
	top: 0px;
	left: 0px;
    width: 0px;
    height: 6px;
	border-radius: 3px;
    background-color: #9ba613;
}
.controllerDiv .volumelineDiv .volumeline .volumehead {
    position: absolute;
    top: -8px;
    left: 28px;
    width: 24px;
    height: 24px;
    font-size: 0; /* forcus 될 때 input 깜빡임 방지 */
    border: none;
    outline: none;
    cursor: pointer;
	background: url('../images/controller/btn_volumehead.png') no-repeat;
}

/* 컨트롤러 - 페이지 이동 버튼 */
.controllerDiv .pageCtrlDiv {
	position: absolute;
	top: 0px;
	right: 5px;
	overflow: hidden;
}
.controllerDiv .pageCtrlDiv > div {
	float: left;
}
.controllerDiv .pageCtrlDiv .ctrlBtn {
    position: relative;
    width: 40px;
    height: 40px;
    float: left;
    cursor: pointer;
    background: url('../images/controller/btn_controller.png') no-repeat;
}
.controllerDiv .pageCtrlDiv .prevPageBtn			{ background-position: -240px 0; }
.controllerDiv .pageCtrlDiv .prevPageBtn:hover	{ background-position: -240px -40px; }
.controllerDiv .pageCtrlDiv .nextPageBtn			{ background-position: -280px 0; }
.controllerDiv .pageCtrlDiv .nextPageBtn:hover	{ background-position: -280px -40px; }

/* 컨트롤러 - 페이지 표기 */
.controllerDiv .pageCtrlDiv .pageDiv {
	position: relative;
	top: -1px;
	height: 40px;
	overflow: hidden;
	margin: 0 5px;
}
.controllerDiv .pageCtrlDiv .pageDiv > div {
	float: left;
}
.controllerDiv .pageCtrlDiv .pageDiv .pageNum {
	position: relative;
	text-align: center;
}
.controllerDiv .pageCtrlDiv .pageDiv .cPageNum {
	top: 8px;
	width: 27px;
    color: #ffffff;
	font-size: 24px;
}
.controllerDiv .pageCtrlDiv .pageDiv .tPageNum {
	top: 13px;
	width: 20px;
    color: #BAB8BC;
	font-size: 18px;
}
.controllerDiv .pageCtrlDiv .pageDiv .separator {
	position: relative;
    top: 10px;
    margin: 0 8px;
    height: 20px;
    border-right: 2px solid #BAB8BC;
}
/* 컨트롤러 - 다음 말풍선 */
.controllerDiv .textBubble {
	position: absolute;
    bottom: 40px;
    right: 0;
    width: 202px;
    height: 31px;
    line-height: 31px;
    text-align: center;
    font-size: 19px;
	color: #292B23;
    padding-left: 5px;
    box-sizing: border-box;
	letter-spacing: -2px;
	word-spacing: 2px;
	background: url('../images/common/icon_bubble.png') no-repeat;
	cursor: pointer;
	display: none;
	z-index: 101;
}
.controllerDiv .textBubble.view { display: block; }
