@charset "utf-8";

.bo_fx {position:relative;padding:20px 0;}

@media all and (max-width: 640px) {
	.bo_fx	{
		display: block;
		width: 100%;
		box-sizing: border-box;
		padding: 20px 10px !important;
	}
	.bo_fx a	{
		display: block;
		width: 100%;
	}
}

#bo_v_bot	{ padding: 20px 0; overflow: hidden; }
.bo_v_nb	{ float: left; }
.bo_v_com	{ float: right; }


@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'YeongdeokSea';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2307-1@1.1/YeongdeokSea.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/************************* list *************************/
#navi_category { text-align: center; padding: 20px 0; }
#navi_category li { display: inline-block; padding: 0 20px; }

.list_dialog {position: relative; display: flex; flex-wrap:wrap; gap: 20px;}
.list_dialog > li {position: relative; width: calc(50% - 10px); height: 250px;}
.list_dialog > li > a {display: block; width: 100%; height: 100%;}
.list_dialog > li .dia_thumb {position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 15px; width: 100%; height: 100%; background: rgba(255,255,255,0.5);}
.list_dialog > li .dia_thumb:after {content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));}
.list_dialog > li .dia_thumb i {font-size: 80px; transition: all 0.3s;}
.list_dialog > li .dia_thumb img {width: 100%; height: 100%; object-fit: cover; transition: all 0.3s;}

.list_dialog > li > a:hover .dia_thumb *,
.list_dialog > li > a:focus .dia_thumb * {transform: scale(1.05);}
.list_dialog > li .dia_subj {position: absolute; left: 20px; bottom: 20px; color: #fff; max-width: calc(100% - 200px); font-size: 20px; font-family: 'Paperlogy'; line-height: 1.2;}
.list_dialog > li .dia_actors {position: absolute; bottom: 10px; display: flex; justify-content: flex-end; gap: 10px; padding-right: 15px; width: 100%; box-sizing: border-box;}
.list_dialog > li .dia_actors li {position: relative;}
.list_dialog > li .dia_actors li .actor_thumb {overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 0 auto; width: 70px; height: 70px; border-radius: 100px; background: #F4F5FA; border: 1px solid transparent; font-size:30px; color: #d3d6dd;}
.list_dialog > li .dia_actors li .actor_name {position: absolute; top: -25px; left: 50%; transform:translateX(-50%); padding: 2px 10px; border-radius: 20px; text-align: center; font-family: 'Pretendard'; width: max-content; background: #fff; border-color: #fff; color: #333; opacity: 0; transition: all 0.3s;}
.list_dialog > li .dia_actors li .actor_name:after {content: ''; position: absolute; bottom: -5px; left: 50%; transform:translateX(-50%); border-top: 5px solid #fff; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top-color: inherit;}
.list_dialog > li .dia_actors li:hover .actor_name {top: -30px; opacity: 1;}

.dia_config {position: absolute; padding: 0px 4px; top: 5px; right: 5px; background: #fff; border-radius: 100px; z-index: 2; font-size: 12px;}
.dia_config a {margin: 0 1px; color: #333;}

@media (max-width:1000px) {
    .list_dialog > li {height: 27vw;}
}

@media (min-width:681px) and (max-width:768px) {    
    .list_dialog > li .dia_subj {max-width: calc(100% - 160px);}
    .list_dialog > li .dia_actors li .actor_thumb {width: 50px; height: 50px; font-size: 25px;}
}

@media (max-width:680px) {
    .list_dialog > li {width: 100%; height: 48vw;}
}

@media (max-width:420px) {
    .list_dialog > li {height: 200px;}
    .list_dialog > li .dia_subj {max-width: calc(100% - 160px);}
    .list_dialog > li .dia_actors li .actor_thumb {width: 50px; height: 50px; font-size: 25px;}
}


/************************* view *************************/
.view_dialog {overflow: hidden; margin-bottom: 10px; border-radius: 20px; font-family: 'Pretendard'; background: #fff; font-size: 12px;}
.view_dialog .dialog_top_deco {display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; height: 30px; background: #fff;}
.view_dialog .dialog_top_deco .deco_icon a {display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; width: 20px; height: 20px; color: #2a2b2e; font-size: 15px;}

.view_dialog .dialog_subj {border-radius: 15px 15px 0 0; width: 100%; color: #fff; text-align: center; font-size: 32px;}
.view_dialog .dialog_subj .subj_txt {position: relative; padding: 10px 20px; line-height: 1.5; color: #333; font-family: 'Paperlogy'; word-break: keep-all;}
.view_dialog .dialog_subj .dialog_back {overflow: hidden; position: relative; height: 400px; margin-bottom: -40px;}
.view_dialog .dialog_subj .dialog_back img {width: 100%; height: 100%; object-fit: cover;}
.view_dialog .dialog_subj .subj_txt {position: relative;}
.view_dialog .dialog_subj .dialog_back:after {content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; background: linear-gradient(180deg, transparent, #FFF);}

.view_dialog .dl_list_wrap {position: relative; background: #fff;padding: 30px 20px;}

/* 캐릭터 */
.actor_wrap {display: flex; justify-content: center; gap:10px; max-width: 250px; margin: 0 auto 20px;}
.actor_wrap .actor {max-width: calc(50% - 5px);}
.actor_wrap .actor_img {display: flex; align-items: center; justify-content: center; margin: 0 auto; width: 100px; height: 100px; border-radius: 100px; overflow: hidden; background: #F4F5FA; font-size: 40px; color: #d3d6dd;}
.actor_wrap .actor_img img {width: 100%;}
.actor_wrap .actor_name {padding: 3px 10px;border-radius: 20px;border: 1px solid #e1e3e7;color: #333;margin-top: 10px; text-align: center; word-break: keep-all;}
.actor_wrap .actor_id {margin-top: 5px; text-align: center; color: #999; font-family: 'YeongdeokSea';}

/* 타래 리스트 */
.view_dl_list {margin: 0 auto; max-width: 800px;}
.view_dl_list * {box-sizing: border-box;}
.view_dl_list > li {position: relative; margin-bottom: 10px; padding: 20px 0; border-radius: 15px; border: 1px solid #fff; background: #F4F5FA;}
.view_dl_list > li:hover {border-color: #c9cddd;}
.view_dl_list > li:last-child {margin-bottom: 0;}
.view_dl_list > li > .dialog_start {padding: 0 30px;}
.view_dl_list > li > a.flip_dialog {position: absolute; bottom: 0; right: 0; padding: 5px !important; font-size: 20px;}
.view_dl_list > li > a.flip_dialog_up {display: none;}
.view_dl_list > li:has(.dialog_sub) > .dialog_start {padding-bottom: 20px;}
.view_dl_list > li:has(.dialog_sub) > a.flip_dialog_up {display:block;}
.view_dl_list > li:has(.dialog_sub) > a.flip_dialog_down {display:none;}

.view_dl_list > li .dialogue_wrap {padding: 0 30px; overflow-y: auto; max-height: 600px;}
.view_dl_list > li .dialogue_wrap::-webkit-scrollbar-thumb {background: #c2c4d3;}
.view_dl_list > li .dialogue_wrap::-webkit-scrollbar-track {background: transparent; box-shadow: none;}

.btn_dia_type {margin-bottom: 20px; text-align: center;}
.btn_dia_type .ui-btn {background: #eee; color: #999; border-color:#eee;}

/* 대화 박스 */
.view_dl_list > li .dialog_box {display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 15px;}
.view_dl_list > li .dialog_box:first-child {margin-top: 0;}
.view_dl_list > li .dialog_box.dialog_top {margin-top: 0;}
.view_dl_list > li .dialog_box.right {justify-content: end;}
.view_dl_list > li .dialog_box .dialog_img {overflow: hidden; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 100px; background: #c2c4d3; color: #fff; font-size: 20px;}
.view_dl_list > li .dialog_box.right .dialog_con {order: 2;}
.view_dl_list > li .dialog_box.right .dialog_img {order: 3;}

.view_dl_list > li .dialog_box.left + .left > .dialog_img,
.view_dl_list > li .dialog_box.right + .right > .dialog_img {opacity: 0;}
.view_dl_list > li .dialog_box.left + .left > .dialog_con:after,
.view_dl_list > li .dialog_box.right + .right > .dialog_con:after {content: none;}

.dialog_start:has(.left) + .dialogue_wrap .left:first-of-type > .dialog_img {opacity: 0;}
.dialog_start:has(.left) + .dialogue_wrap .left:first-of-type > .dialog_con:after {content: none;}
.dialog_start:has(.right) + .dialogue_wrap .right:first-of-type > .dialog_img {opacity: 0;}
.dialog_start:has(.right) + .dialogue_wrap .right:first-of-type > .dialog_con:after {content: none;}

.view_dl_list .con_date {order: 1; align-self: flex-end; color: #c2c4d3; font-weight: 200; letter-spacing: -0.03em;}

/* 타래 시작 날짜 */
.view_dl_list > li .dialog_box .dialog_date {position: absolute; top: 15px;left: -10px;background: #fff;padding: 2px 5px;border: 1px solid #bec4db;transform: rotate(-5deg);width: 90px;letter-spacing: -0.05em; box-shadow: -5px 2px 3px rgba(0,0,0,0.07); color: #818595; font-weight: 300;}
.view_dl_list > li .dialog_box .dialog_date::before {content:''; position: absolute; top: 0; right: 0; width: 15px; height: 100%; background: #333;}
.view_dl_list > li .dialog_box.left .dialog_date {left: auto; right: -10px; transform: rotate(5deg); text-align: right; box-shadow: 5px 2px 3px rgba(0,0,0,0.07);}
.view_dl_list > li .dialog_box.left .dialog_date::before {left: 0; right: auto;}

/* 말풍선 */
.dialog_con {position: relative; display: inline-flex; flex-wrap:wrap; align-items: center; max-width: 60%; border-radius: 10px; padding: 10px 15px; background: #fff; font-size: 15px; line-height: 1.4; color: #333; box-shadow: 0 2px 10px rgba(0,0,0,0.04); word-break: break-word; margin-left: 15px;}
.dialog_con * {word-break: break-word;}
.dialog_con:after {content: '';position: absolute;top: 15px;width: 0;height: 0;border: 14px solid transparent;border-top: 0;margin-bottom: -7px;}
.left .dialog_con:after {left: 0;border-right-color: #fff;border-left: 0;margin-left: -14px;}
.right .dialog_con:after {right: 0;border-left-color: #fff;border-right: 0;margin-right: -14px;}
.right .dialog_con {margin-left: 0; margin-right: 15px;}

/* 제목 라인 */
.separator {margin: 5px auto; border: 0;}
.separator--dots {position: relative;overflow: visible;border: 0;}
.separator--dots,
.separator--dots:before,
.separator--dots:after {background-color: #333;display: block;height: 5px;width: 5px;border-radius: 50%;}
.separator--dots:before,
.separator--dots:after {content: '';position: absolute;left: 32px;animation: dot-move-right 1s ease-out forwards;}
.separator--dots:before {left: -32px;animation: dot-move-left 1s ease-out forwards;}

@keyframes dot-move-right {
    0% {
      left: 0;
    }
    100% {
      left: 32px;
    }
}
@keyframes dot-move-left {
    0% {
      left: 0;
    }
    100% {
      left: -32px;
    }
}

@media (max-width:640px) {
    .view_dialog .dialog_subj .dialog_back {height: 30vw;}
    .view_dl_list > li {margin-bottom: 20px;}
    .view_dl_list > li .dialog_box .dialog_date {top: -8px;}
    .view_dl_list > li > .dialog_start,
    .view_dl_list > li .dialogue_wrap {padding: 0 15px;}
    .dialog_con {max-width: calc(100% - 75px);}
    .view_dl_list .con_date {order: 4; margin-left: 0px; width: 100%;}
    .view_dl_list .left .con_date {padding-left: 75px;}
    .view_dl_list .right .con_date {text-align: right; padding-right: 75px;}
    .view_dl_list .left + .left,
    .view_dl_list .right + .right {margin-top:5px}
}

@media (max-width:480px) {
    .view_dialog .dialog_subj {font-size: 24px;}
    .view_dl_list > li .dialog_box .dialog_date {font-size: 10px; width: 80px; line-height: 1.3;}
    .dialog_con {font-size: 13px;}
    .view_dl_list .con_date {font-size: 11px;}
}

/* 1인 스타일 */
.view_dl_list > li.list_one {display: flex; flex-direction: column; gap: 15px; padding: 30px; max-height: 700px; overflow: auto;}
.view_dl_list > li.list_one::-webkit-scrollbar-thumb {background: #c2c4d3;}
.view_dl_list > li.list_one::-webkit-scrollbar-track {background: transparent; box-shadow: none;}
.view_dl_list > li.list_one .dialog_box {margin-top: 0;}
.view_dl_list > li.list_one .dialog_con {max-width: calc(100% - 100px); margin: 0;}
.view_dl_list > li.list_one .dialog_con:after {content: none !important;}
.view_dl_list > li.list_one .con_date {padding: 0;}

@media (max-width:640px) {
    .view_dl_list > li.list_one {padding: 30px 15px; gap: 5px 15px;}
    .view_dl_list > li.list_one .dialog_box {flex-wrap: wrap; gap: 5px 25px;}
    .view_dl_list > li.list_one .dialog_con {max-width: 100%;}
}

/* 수정, 삭제 관련 */
.view_dl_list > li .dialog_modify {align-self: flex-end; font-weight: 200; order: 2;}
.view_dl_list > li .dialog_modify a {}
.view_dl_list > li .right .dialog_modify {order: 0; margin-left: 0;}
.dialog_form {display: none; width: 100%;}
.dialog_con form {margin-top: 5px; width: 100%; text-align: right;}
.dialog_con textarea {overflow: hidden; display: block; padding: 5px; line-height: 1.2; border-radius: 5px; width: 100%; min-height: auto; color: #fff; font-weight: 300; font-family: inherit; font-size: inherit; resize: none; border: 1px solid #fff; background: #000; text-align: left;}

@media (max-width:640px) {
    .view_dl_list > li .dialog_modify {display: none}
}

/* 이미지 출력 */
.img_show {display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0, 0.6); z-index: 100;}
.img_show .img_show_close {position: absolute; top: 20px; right: 20px; font-size: 30px; border: none; background: none;color: #fff;}
.img_show .img_show_wrap {display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;}
.img_show img {max-width: 90%; max-height: 90vh;}


/************************* write *************************/
#ca_name option[value="공지"] {display: none;}
.board-write	{padding: 0 10px;}
.board-write h3	{font-size: 26px;text-align: center;padding: 30px 0 20px;} 
.board-write .write-notice	{padding: 10px;font-size: 11px;}
.board-write dl {position:relative;}
.board-write dl > dt { width:70px;position:absolute;line-height:32px;text-align:center; }
.board-write dl > dd { width:100%;margin-left:0;padding-left:80px;box-sizing:border-box;line-height:32px;}
.board-write input.frm_input.full	{ width: 100%; display:block;margin:1px 0;}

.square .clr-field button {width: 22px;height: 22px;left: 5px;right: auto;border-radius: 5px;}
.square .clr-field input {padding-left: 36px; width: 120px;}

.loader{display: none; position: fixed;top: 0; left: 0;width: 100%;height: 100%;background-color: rgba(0,0,0, 0.7);z-index: 9999;opacity: 1;transition: 0.5s ease;}
.loader i{font-size: 80px;position: absolute;top: 50%; left: 50%;margin: -40px 0 0 -40px;color: #fff;}