@charset "utf-8";

/* ------------------------------------------------ */
/* Rollstory20 skin stylesheet v1.2.2 */
/* ------------------------------------------------ */

@font-face {
    font-family: "Pretendard Variable";
    src: url('images/PretendardVariable.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Pretendard Variable";
    src: url('images/PretendardVariable.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Pretendard Variable";
    src: url('images/PretendardVariable.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

/* 기본 설정 */
html {
    -webkit-text-size-adjust: none; /*Chrome, Safari, newer versions of Opera*/
    -moz-text-size-adjust: none; /*Firefox*/
    -ms-text-size-adjust: none; /*Ie*/
    -o-text-size-adjust: none; /*old versions of Opera*/
}

body {
    overflow-wrap: anywhere;
    margin: 0;
    padding: 0;
    background-color: var(--back);
    background-attachment: fixed;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 16px;
    color: var(--main);
    word-break: keep-all;
}

::selection {
    background-color: var(--main);
    color: var(--sub);
}

a {
    color: var(--main);
    text-decoration: none;
}

input {
    color: var(--main);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

input::placeholder {
    color: var(--main);
    opacity: .5;
}

/* 원클릭 스크롤 */
#top {
    display: none;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(335px);
    width: 24px;
    height: 24px;
    cursor: pointer;
}

#bottom {
    display: none;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(335px);
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* ***** Header ***** */
#headerBox {
    box-sizing: border-box;
    width: 100%;
    max-width: 640px;
    margin: 100px auto 0;
    padding: 0 32px;
}

#header {
    display: flex;
    margin: 0;
    padding: 0 0 6px;
    justify-content: space-between;
    align-items: flex-end;
}

#headerBox a {
    text-decoration: none;
}

/* 로고 */
#logo {
    max-width: 385px;
    margin: 0;
    padding: 0;
    font-size: 0;
    align-items: flex-end;
    word-wrap: break-word;
}

#logo a {
    color: var(--sub);
    font-family: "Pretendard Variable";
    font-size: 26px;
    font-weight: 900;
    line-height: 1.0;
}

#logo img {
    width: auto;
    max-width: 100%;
    max-height: 60px;
    vertical-align: bottom;
}

/* 검색 상자 */
#searchBox {
    display: flex;
    width: 180px;
    height: 30px;
    padding-right: 5px;
    background-color: var(--sub);
    border-radius: 6px;
    justify-content: space-between;
    align-items: center;
}

#searchBox input {
    width: 144px;
    padding: 0 0 0 10px;
    background: none;
    border: none;
    outline: none;
}

#searchBox .submit {
    width: 24px;
    height: 24px;
    padding: 2px 0 0 4px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

/* 수납 요소 */
#drawer {
    display: none;
}

#drawer a {
    color: var(--sub);
}

#drawer ul {
    margin: 10px 0;
    padding: 5px 2px;
    text-align: center;
}

#drawer li {
    display: inline-block;
    margin: 2px 2px;
    font-size: 0.875em;
    color: var(--sub);
    line-height: 1.0;
}

#drawer li:hover {
    font-weight: 700;
}

#slider {
    height: 14px;
    padding-bottom: 4px;
    color: var(--sub);
    text-align: center;
    cursor: pointer;
}

/* ***** content ***** */
#content {
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 35px 32px;
    background-color: var(--sub);
    border-radius: 6px;
}

/* 제목 파트 */
.icon {
    float: left;
    width: 14px;
    margin-right: 16px;
    vertical-align: bottom;
}

.name {
    margin-right: 8px;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.2em;
}

.admin {
    box-sizing: content-box;
    display: flex;
    width: 45px;
    margin: 4px 0 0 auto;
    justify-content: space-between;
}

.admin li {
    list-style: none;
}

.admin .first {
    margin-right: 13px;
}

/* 글 목록 */
.titleWrap {
    display: flex;
    margin-bottom: 10px;
}

#searchList {
    margin: 0;
    padding: 0;
}

#searchList ol {
    margin: 0;
    padding: 5px 0;
    list-style: none;
}

#searchList li {
    display: block;
}

#searchList .line {
    box-sizing: content-box;
    height: 2px;
    background-color: var(--main);
    opacity: .12;
}

#searchList .rule {
    overflow: hidden;
    float: left;
    width: 80px;
    margin-left: 10px;
    font-size: 0.9em;
    white-space: nowrap;
    opacity: .5;
}

#searchList .title {
    display: block;
    margin-right: 10px;
    margin-left: 110px;
    line-height: 19px;
}

#searchList .hoverline {
    display: block;
    position: relative;
    padding: 7px 0;
}

#searchList .hoverline::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--main);
    opacity: .06;
}

#searchList li:hover>.hoverline::before {
    width: 100%;
    transition: width .3s;
}

/* 페이징 */
#paging {
    padding-top: 20px;
    font-size: 0.95em;
    text-align: center;
}

#paging .numbox {
    margin-left: 6px;
    padding-left: 6px;
    font-size: 0.95em;
}

#paging .num {
    margin-right: 5px;
    padding-right: 8px;
}

.selected {
    font-weight: 700;
}

.no-more-prev {
    opacity: 0;
}

.no-more-next {
    opacity: 0;
}

/* 태그 목록 */
.taglog ul {
    margin: 10px 0 0;
    padding: 0;
    text-align: center;
    list-style: none;
}

.taglog li {
    display: inline-block;
}

.tag_button {
    margin: 4px 2px;
    padding: 2px 4px;
    background-color: var(--sub);
    border: 1px solid var(--main);
    border-radius: 6px;
    color: var(--main);
    font-size: 1em;
    font-family: "Pretendard Variable";
    cursor: pointer;
}

.tag_button:hover {
    background-color: var(--main);
    color: var(--sub);
    transition: all .2s;
}

/* 방명록 - 접근 제한 */
.restricted {
    display: flex;
    height: 300px;
    font-size: 1.3em;
    justify-content: center;
    align-items: center;
}

.restricted svg {
    margin-right: 8px;
}

/* 보호글 */
.entryProtected p {
    line-height: 1.75;
    text-align: center;
}

.entryProtected input {
    width: 160px;
    height: 30px;
    padding: 0 10px;
    background-color: var(--sub);
    border: 1px solid var(--main);
    border-radius: 6px;
    outline-color: var(--main);
}

.entryProtected .submit {
    width: 45px;
    height: 32px;
    padding: 1px 0 0;
    background-color: var(--main);
    border: none;
    border-radius: 6px;
    vertical-align: bottom;
    cursor: pointer;
}

/* 본문 */
.name h1 {
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-size: inherit;
}

.article {
    overflow: hidden;
    margin-top: 10px;
    padding: 0;
    font-size: 16px;
}

.article ul,
.article ol {
    margin: 0;
    line-height: 1.5;
}

.article ul li,
.article ol li {
    margin: .25em;
}

figure.imageblock.alignCenter {
    margin: .85em auto;
    text-align: center;
}

figure[data-ke-type='opengraph'], #tt-body-page figure[data-ke-type='opengraph'] {
    margin-top: 20px;
    margin-bottom: 20px;
}

figure[data-ke-type='opengraph'] a,
#tt-body-page figure[data-ke-type='opengraph'] a {
    border: 1px solid var(--main);
    border-radius: 6px;
}

figure[data-ke-type='opengraph'] div.og-image {
    border-right: none;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

figure[data-ke-type=opengraph] a div.og-image::before,
#tt-body-page figure[data-ke-type=opengraph] a div.og-image::before,
#tt-body-page .blogview_content figure[data-ke-type=opengraph] div.og-image::before {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

figure[data-ke-type='opengraph'] div.og-text p.og-title,
#tt-body-page figure[data-ke-type='opengraph'] div.og-text p.og-title,
figure[data-ke-type='opengraph'] div.og-text p.og-desc,
#tt-body-page figure[data-ke-type='opengraph'] div.og-text p.og-desc,
figure[data-ke-type='opengraph'] div.og-text p.og-host,
#tt-body-page figure[data-ke-type='opengraph'] div.og-text p.og-host {
    color: var(--main);
    text-indent: 0;
}

.textchatcontainer {
    all: initial;
    font-size: initial;
}

/* 본문 더보기 */
.btn-toggle-moreless,
.btn_more,
.btn_less {
    box-sizing: border-box;
    display: inline-block;
    width: 100%;
    height: 26px;
    margin-top: 12px;
    background-color: var(--main);
    border-radius: 6px;
    color: var(--sub) !important;
    font-size: 0.875em !important;
    font-weight: 700;
}

div[data-ke-type='moreLess'] {
    position: relative;
    text-align: center;
}

div[data-ke-type='moreLess']::after {
    content: '';
    position: absolute;
}

.btn-toggle-moreless::after,
.btn_more:before {
    content: '✚';
    margin-left: 5px;
}

.open .btn-toggle-moreless::after,
.btn_less:before {
    content: '✖';
    margin-left: 5px;
}

.moreless-content {
    margin-top: 12px;
    text-align: initial;
}

/* 본문 일반 텍스트 */
h2[data-ke-size="size26"] {
    margin: 1.25em 0 .375em;
    color: var(--main);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 1.75em;
    line-height: 1.2;
}

h3[data-ke-size="size23"] {
    margin: 1.25em 0 .375em;
    color: var(--main);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 1.5em;
    line-height: 1.2;
}

h4[data-ke-size="size20"] {
    margin: 20px 0 5px;
    color: var(--main);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 1.25em;
    line-height: 1.3125;
}

p[data-ke-size="size18"] {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 1.125em;
    line-height: 1.75;
}

p[data-ke-size="size16"] {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 1em;
    line-height: 1.75;
}

p[data-ke-size="size14"] {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 0.875em;
    line-height: 1.75;
}

/* 공감 버튼 제거 */
.container_postbtn {
    display: none !important;
}

/* 카테고리의 다른 글 목록 */
.area_related {
    margin-top: 60px;
    padding: 12px;
    border-top: 2px solid var(--main);
    border-bottom: 2px solid var(--main);
    color: var(--main);
    font-size: 1em;
}

.area_related .link_more {
    font-size: 0.875em;
}

.area_related .link_go {
    margin-left: 2px;
    opacity: 0;
}

.area_related .link_more:hover>.link_go {
    opacity: 1;
    transition: opacity .2s;
}

.area_related svg {
    position: relative;
    top: 2px;
    margin-right: 1px;
}

.area_related ul {
    margin: 10px 0 0;
    padding: 0;
    font-size: 0.875em;
}

.area_related li {
    margin: 5px 0;
    list-style: none;
}

.area_related .related {
    display: flex;
}

.area_related .dice {
    float: left;
    margin-right: 4px;
    opacity: 0;
}

.area_related a:hover {
    text-decoration: none;
}

.area_related .related:hover>.dice {
    opacity: 1;
    transition: opacity .2s;
}

/* BACK */
.back {
    margin-top: 20px;
    font-size: 1em;
    text-align: right;
}

.back svg {
    position: relative;
    top: 2px;
}

.back a:hover {
    color: var(--main);
    text-decoration: none;
}

/* ***** footer ***** */
#footer {
    margin: 25px auto 75px;
    font-size: 0.8em;
    color: var(--sub);
    text-align: center;
}

#footer a {
    color: var(--sub);
    text-decoration: none;
}

/* ***** scroll bar ***** */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main);
    border: 2px solid var(--sub);
    border-radius: 6px;
}

::-webkit-scrollbar-track {
    background-color: var(--sub);
}

/* ------------------------------------------------ */
/* 반응형 */
/* ------------------------------------------------ */
@media all and (max-width: 649px) {

    ::-webkit-scrollbar {
        display: none;
    }

    #headerBox {
        margin: 30px auto 0;
        padding: 0 5%;
    }

    #logo {
        max-width: 40%;
    }

    #content {
        padding: 25px 5%;
    }

    #searchList .rule {
        display: none;
    }

    #searchList .title {
        margin-left: 10px;
    }

    #footer {
        margin: 20px auto 30px;
    }
}

@media all and (max-width: 450px) {

    .article {
        font-size: 15px;
    }

    .message {
        font-size: 0.97em;
    }
}

@media all and (max-width: 340px) {

    #logo {
        max-width: 100%;
    }

    #searchBox {
        display: none;
    }

    .admin {
        display: none;
    }
}