@charset "utf-8";

/* ------------------------------------------------ */
/* Rollstory20 skin stylesheet v1.2.1 */
/* ------------------------------------------------ */ 

@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;
}

/* 카카오톡 팝업 시작 */
<style>
  /* 전체 팝업 스타일 */
.kakao-chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px; /* BGM은 왼쪽, 카톡은 오른쪽에 배치 */
    width: 280px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10001;
    overflow: hidden;
    font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
  .chat-header {
    padding: 12px 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  }
  .chat-name { font-weight: bold !important; font-size: 14px !important; color: #000 !important; }
  .minimize-btn { background: none !important; border: none !important; font-size: 24px !important; cursor: pointer !important; color: #333 !important; }

  /* 스크롤 영역 강제 설정 */
  .chat-content {
    background-color: #b2c7da !important;
    height: 350px !important; /* 높이 고정 */
    overflow-y: auto !important; /* 내부 스크롤 허용 */
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* 스크롤바 모양 */
  .chat-content::-webkit-scrollbar { width: 4px; }
  .chat-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 10px; }

  .msg-row { display: flex !important; margin-bottom: 15px !important; flex-shrink: 0 !important; }
  .msg-row.other { flex-direction: column !important; }
  .msg-row.me { justify-content: flex-end !important; align-items: flex-end !important; }

  .profile-box { display: flex !important; align-items: center !important; margin-bottom: 5px !important; }
  .profile-img { width: 35px !important; height: 35px !important; border-radius: 40% !important; object-fit: cover !important; margin-right: 8px !important; }
  .user-name { font-size: 11px !important; color: #333 !important; font-weight: bold !important; }

  .bubble-group { display: flex !important; align-items: flex-end !important; }
  .other .bubble-group { flex-direction: row !important; margin-left: 43px !important; }
  .me .bubble-group { flex-direction: row-reverse !important; }

  .bubble { padding: 8px 12px !important; border-radius: 10px !important; font-size: 13px !important; max-width: 180px !important; line-height: 1.4 !important; word-break: break-all !important; color: #000 !important; }
  .other .bubble { background: #fff !important; }
  .me .bubble { background: #fee500 !important; }

  .chat-time { font-size: 10px !important; color: #444 !important; margin: 0 5px !important; white-space: nowrap !important; }

  .chat-footer { display: flex !important; background: #fff !important; padding: 10px !important; border-top: 1px solid #eee !important; }
  .chat-input { flex: 1 !important; border: none !important; outline: none !important; font-size: 13px !important; color: #000 !important; }
  .send-btn { background: #fee500 !important; border: none !important; padding: 5px 12px !important; border-radius: 5px !important; font-size: 12px !important; font-weight: bold !important; }

  .chat-launcher {
    position: fixed !important; bottom: 20px !important; right: 20px !important; width: 60px !important; height: 60px !important;
    background-color: #fee500 !important; border-radius: 25px !important; display: none; z-index: 10001 !important; overflow: hidden !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important; cursor: pointer !important;
  }
  .chat-launcher img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
</style>

/* 카카오톡 팝업 끝 */


/* 기본 설정 */
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;
    word-break: keep-all;
    line-height: 1.5;
}

.article ul li,
.article ol li {
    margin: .25em;
}

figure.imageblock.alignCenter {
    margin: .85em auto;
    text-align: center;
}

.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;
    word-break: keep-all;
    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;
    word-break: keep-all;
    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;
    word-break: keep-all;
    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;
    word-break: keep-all;
    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;
    word-break: keep-all;
    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;
    word-break: keep-all;
    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 {
    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;
    }
}


/* - - - BGM 플레이어 관련 - - - */
.mm-bgm{
  position: fixed;
  top: 15px; /* 우측상단 원하면 bottom을 top 으로 변경 */
  right: 15px;
  z-index: 9999; /* 맨위로 */
  border: none;
}
/* - - - BGM 플레이어 끝 - - -*/