@charset "utf-8";

.error {
  position: relative;
  text-align: center;
  line-height: 1.8em;
  padding-top: 70px;
}
.error:before {
  content: "\ea0e";
  display: block;
  position: absolute;
  font-family: "icon";
  font-size: 50px;
  line-height: 50px;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
}
.error .btn-group {
  padding: 20px 0 0;
}

.ui-mmb-list-category {
  text-align: center;
}
.ui-mmb-list-category a {
  display: inline-block;
  position: relative;
  padding: 6px 10px;
  font-weight: bold;
  border-radius: 3px;
}
.ui-mmb-list-category a.on:before {
  content: "\ea10";
  font-family: "icon";
  padding-right: 5px;
}

.ui-mmb-button {
  text-align: center;
  /* padding-top: 10px; */
}

.help.ui-btn {
  width: 100%;
  padding: 8px;
  line-height: 1.2em;
  border-radius: 3px;
}
.ui-paging {
  margin-bottom: 0;
  padding-bottom: 0;
}

/***************************************
	List Page
****************************************/

.connect-wiget {
  min-height: 40px;
  text-align: center;
  line-height: 40px;
}

/** Notice Box **/
.board-notice {
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

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

#log_list {
  position: relative;
  margin-top: 30px;
  padding: 0;
}

#log_list .empty_list {
  text-align: center;
  line-height: 100px;
}

/** 항상 아래로 **/
#log_list .item,
#log_list .item .ui-comment,
#log_list .item .ui-pic,
#log_list .item:after {
  float: none;
  clear: both;
}
#log_list .item .ui-comment {
  width: 100% !important;
}

#log_list .item-comment-box {
  width: 100% !important;
  /* border-bottom: 1px solid var(--color-primary-300); */
}

#log_list .item.both .ui-comment,
#log_list .item.both .ui-pic,
#log_list .item.ui-wrap .ui-comment,
#log_list .item.ui-wrap .ui-pic {
  float: none;
  clear: both;
}
#log_list .item.both .ui-comment,
#log_list .item.ui-wrap .ui-comment {
  margin-left: 0;
  padding-top: 20px;
  width: 100% !important;
  box-sizing: border-box;
}

/** Picture */
#log_list .item .ui-pic {
  width: 100%;
  border-bottom: 1px solid var(--color-primary-300);
  padding: 12px 20px 10px;
}
#log_list .item .ui-pic .pic-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#log_list .item .ui-pic .pic-header .no {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-primary-300);
}

#log_list .item .ui-pic .pic-header .no .topbtn {
  display: inline-block;
}

#log_list .item .ui-pic .pic-header .del {
  font-size: 11.5px;
  display: inline-block;
  background: #611a1a;
  vertical-align: middle;
  font-weight: 400;
  padding: 1px 10px;
  color: #fff;
  border-radius: 9em;
}

#log_list .item .ui-pic .pic-header .mod {
  font-size: 11.5px;
  display: inline-block;
  background: #14526b;
  vertical-align: middle;
  font-weight: 400;
  padding: 1px 10px;
  color: #fff;
  border-radius: 9em;
  margin-left: 10px;
}

#log_list .item .ui-pic .pic-header .fav {
  display: inline-block;
  float: right;
  vertical-align: middle;
  position: relative;
  width: 14px;
  height: 30px;
  line-height: 30px;
  overflow: hidden;
  text-indent: -999px;
  padding-left: 10px;
}
#log_list .item .ui-pic .pic-header .fav:before {
  content: "\e9d9";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  line-height: 30px;
  text-indent: 0;
  text-align: center;
  font-size: 11px;
  font-family: "icon";
  font-weight: bold;
}
#log_list .item .ui-pic .pic-header .fav.on:before {
  color: yellow;
}
#log_list .item .ui-pic .pic-header .new {
  display: inline-block;
  float: right;
  vertical-align: middle;
  position: relative;
  width: 14px;
  height: 30px;
  line-height: 30px;
  overflow: hidden;
  text-indent: -999px;
  padding-left: 10px;
}
#log_list .item .ui-pic .pic-header .new:before {
  content: "\ea7e";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  line-height: 30px;
  text-indent: 0;
  text-align: center;
  font-size: 11px;
  font-family: "icon";
  font-weight: bold;
}

/* 카테고리 */
#log_list .item {
  padding: 0;
  margin-top: 15px;
}

#log_list .item .ui-pic .ico-category {
  font-size: 11px;
  font-weight: 400;
}

#log_list .item .ui-pic .pic-data {
  text-align: center;
}
#log_list .item .ui-pic .pic-data.ui-blind {
  overflow: hidden;
  height: 250px;
}
#log_list .item .ui-pic .pic-data.ui-slide > div {
  overflow: hidden;
  height: 470px;
}
#log_list .item .ui-pic .pic-data.ui-slide > div {
  -webkit-transition: none;
  -moz-transition: none;
  -ms-transition: none;
  -o-transition: none;
}
#log_list .item .ui-pic .pic-data.ui-slide > .ui-open-log {
  display: block;
  height: 25px;
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  line-height: 25px;
}

#log_list .item .ui-pic .pic-data.ui-slide-mobile > div {
  overflow: hidden;
  height: auto;
}
#log_list .item .ui-pic .pic-data.ui-slide-mobile > div > a {
  display: block;
  position: relative;
  overflow: hidden;
}
#log_list .item .ui-pic .pic-data.ui-slide-mobile > div > a:before {
  content: "";
  display: block;
  position: absolute;
  line-height: 300px;
  font-size: 18px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
}
#log_list .item .ui-pic .pic-data.ui-slide-mobile > div > a:after {
  content: "클릭 시 원본 이미지를 확인할 수 있습니다.";
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  color: #fff;
  transform: translateY(-50%);
  font-size: 15px;
}

#log_list .item .ui-pic .pic-data .ui-remove-blind {
  display: block;
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  overflow: hidden;
  text-align: center;
}
#log_list .item .ui-pic .pic-data .ui-remove-blind:before {
  content: "";
  display: inline-block;
  width: 0;
  height: 100%;
  vertical-align: middle;
}
#log_list .item .ui-pic .pic-data .ui-remove-blind span {
  display: inline-block;
  font-size: 14px;
  line-height: 1.5em;
  vertical-align: middle;
  color: var(--color-grey-400);
}

/** Comment */
/* 작성자 줄(.co-header)과 날짜·버튼(.co-footer)을 같은 행에 나란히 놓는다.
   원래는 .co-footer 를 position:absolute 로 헤더 위에 얹어놨는데, 화면이
   좁거나 캐릭터명+아이디가 길어지면 날짜가 이름 글자 위에 그대로 포개졌다.
   그리드로 두 칸을 나누면 서로 밀어내므로 겹칠 수가 없다. */
#log_list .item-comment {
  position: relative;
  margin-bottom: 5px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "header footer"
    "content content";
  align-items: start;
}

#log_list .item-comment .co-header {
  grid-area: header;
  min-width: 0;
}

#log_list .item-comment .co-content {
  grid-area: content;
}

#log_list .item-comment .co-header {
  padding: 0px 20px;
}

#log_list .item-comment .co-header:first-child {
  padding: 8px 20px 0;
}

#log_list .item-comment .co-header:after {
  content: "";
  display: block;
  clear: both;
}
#log_list .item-comment .co-header p {
  float: left;
}
#log_list .item .item-inner .item-comment .owner {
  /* background: var(--color-primary-300); */
  display: inline-block;
  border-radius: 20px;
  padding: 4px 0;
}

#log_list .item .item-inner .item-comment .owner span,
#log_list .item .item-inner .item-comment .owner a {
  /* color: #fff !important; */
  font-weight: 600;
}

#log_list .item .item-inner .item-comment .owner a img {
  display: inline-block;
  transform: translateY(-1.5px);
  margin-right: 4px;
}

img {
}

#log_list .item .item-inner .ui-comment .item-comment {
  border-bottom: 1px solid var(--color-primary-300);
  margin: 0 !important;
  padding: 0 0 4px;
}

#log_list .item .item-inner .ui-comment .item-comment:last-child {
  border: none;
}

#log_list .item-comment .co-header .link {
  float: right;
  padding-right: 5px;
}
#log_list .item-comment .co-header i {
  display: inline-block;
  /* height: 25px; */
}
#log_list .item-comment .co-header i img {
  max-height: 100%;
}

#log_list .item-comment .co-content {
  padding: 12px 20px;
  font-weight: 300;
}
#log_list .item-comment .co-content .log_link_tag:before {
  content: "\e936";
  font-family: "icon";
  padding-right: 5px;
}
#log_list .item-comment .co-content .member_call {
  padding: 0 5px;
}
#log_list .item-comment .co-content .member_call:before {
  content: "\e951";
  font-family: "icon";
  padding-right: 3px;
}
#log_list .item-comment .co-content .other-site-link {
  font-weight: bold;
}
#log_list .item-comment .co-content .other-site-link:before {
  content: "\e9cb";
  font-family: "icon";
  padding-right: 2px;
}

#log_list .item-comment .dice {
  display: block;
  padding-bottom: 10px;
}
#log_list .item-comment .dice img {
  border-radius: 3px;
  overflow: hidden;
}

#log_list .item-comment .link-box {
  display: block;
  padding-bottom: 10px;
}

#log_list .item-comment .co-footer {
  grid-area: footer;
  position: static;
  padding: 8px 20px 0 10px;
  white-space: nowrap;
}
#log_list .item-comment .co-footer:after {
  content: "";
  display: block;
  clear: both;
}
#log_list .item-comment .co-footer .date {
}

#log_list .item-comment .co-footer .del {
  font-size: 11.5px;
  display: inline-block;
  background: var(--color-primary-300);
  font-weight: 400;
  padding: 0 10px;
  color: var(--rc-on-gold);
  border-radius: 4px;
}

.btn_layout {
  display: inline-block;
  margin-right: 10px;
}

#log_list .item-comment .co-footer .mod {
  font-size: 11.5px;
  display: inline-block;
  background: var(--color-primary-300);
  font-weight: 400;
  padding: 0 10px;
  color: var(--rc-on-gold);
  border-radius: 4px;
  margin-left: 4px;
}

#log_list .item-comment-form-box > div {
  padding: 0px 20px 10px 20px;
}
#log_list .bo_vc_w {
  position: relative;
  padding-right: 70px;
}
#log_list .bo_vc_w .input-comment {
  position: relative;
  margin-bottom: 5px;
}
#log_list .bo_vc_w .input-comment textarea {
  display: block;
  width: 100%;
  height: 80px;
  box-sizing: border-box;
  margin: 0;
}

#log_list .bo_vc_w .btn_confirm {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 70px;
}
#log_list .bo_vc_w .btn_confirm .ui-comment-submit {
  display: block;
  width: 100%;
  height: 100%;
}

#log_list .modify_area {
  display: none;
  position: relative;
  padding-right: 60px;
}
#log_list .modify_area textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  padding: 10px;
}
#log_list .modify_area button {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  bottom: 0;
}

.log-item-box {
  justify-content: center;
  align-items: center;
  min-height: 40px;
  margin-bottom: 10px;
  display: flex;
  gap: 4px;
  background-color: rgba(var(--rc-accent-rgb), 0.12);
  border: 1px solid var(--color-primary-400);
  padding: 0 80px;
  margin: 0 auto 14px;
  width: fit-content;
  border-radius: 200px;
}
.log-item-box em {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
}

a {
}

.log-item-box p span {
  display: block;
}

/***************************************
	Write Page
****************************************/
#fwrite .theme-box {
  background: transparent;
  padding-left: 0;
  padding-top: 0;
  border: none;
}

#bo_w {
  /* max-width: 640px;
    margin: 0 auto;
    padding: 20px 0; */
}

#bo_w dd,
#bo_w dl,
#bo_w dt {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
}
#bo_w dl {
  overflow: hidden;
}

#bo_w label {
  cursor: pointer;
}

#bo_w dt {
  position: absolute;
  top: 0;
  left: 0;
  line-height: 30px;
  width: 70px;
  padding: 5px 0;
  font-size: 12px;
}
#bo_w dt select {
  box-sizing: border-box;
  width: 100%;
  font-size: 12px;
}
#bo_w dd {
  padding: 5px 0;
  min-height: 30px;
  line-height: 30px;
  margin-left: 70px;
}
#bo_w dd fieldset {
  display: inline-block;
  padding-right: 12px;
}

#view_image + dl dt {
  width: 100px;
}
#view_image + dl dd {
  margin-left: 100px;
}

#bo_w .frm_input {
  width: 100%;
}
#bo_w #wr_content {
  height: 300px !important;
  padding: 10px;
}

#view_image {
  position: relative;
  width: 100%;
  height: 330px;
  line-height: 330px;
  overflow: hidden;
  margin: 0 auto;
  text-align: center;
}
#view_image img {
  max-width: 100%;
  max-height: 330px;
}
#view_image em {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  line-height: 330px;
  text-align: center;
}
#view_image em img {
  width: 50px;
  height: 50px;
}
#view_image > span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  line-height: 30px;
  text-align: center;
}

#board_category {
  text-align: center;
}
#board_category input {
  display: none;
}
#board_category li {
  display: inline-block;
  line-height: 31px;
}
#board_category li label {
  display: inline-block;
  cursor: pointer;
  padding: 0 15px;
}
#board_category input:checked + label {
}
#board_category input:checked + label:before {
  content: "《 ";
}
#board_category input:checked + label:after {
  content: " 》";
}

#board_action {
  padding-top: 15px;
}

#load_log_board .inner {
}
@media all and (max-width: 640px) {
  /* 좁은 화면에서는 날짜·버튼을 이름 옆에 두면 이름 칸이 100px 남짓으로
     쪼그라들어 글자가 단어 중간에서 잘린다. 한 줄 아래로 내리고 오른쪽에
     붙인다. */
  #log_list .item-comment {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "footer"
      "content";
  }

  #log_list .item-comment .co-footer {
    justify-self: end;
    padding: 2px 20px 0 20px;
  }

  #load_log_board .inner {
    padding: 0;
  }
}

.comment-data {
  display: none;
  padding: 10px 0 10px 20px;
  border-left: 1px solid #996c33;
  margin-left: 5px;
}
.comment-data.on {
  display: block;
}
.comment-data input[type="text"],
.comment-data select {
  width: 100%;
  box-sizing: border-box;
}

.ui-mmb-list-write {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}
.ui-mmb-list-write span {
  display: inline-block;
  margin: 3px;
}
.upload-box + fieldset {
  padding: 10px 0;
}
.upload-box {
  position: relative;
  padding-left: 95px;
  padding-right: 80px;
  box-sizing: border-box;
}
.upload-box select {
  position: absolute;
  top: 0;
  left: 0;
  width: 95px;
}
.upload-box fieldset {
  display: block;
  position: relative;
}
.upload-box input[type="file"],
.upload-box input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}
.upload-box button {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 30px;
}

.guest-box {
  position: relative;
  padding-left: 50%;
  margin-bottom: 3px;
}
.guest-box input {
  width: 100%;
}
.guest-box .name {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  padding-left: 60px;
  box-sizing: border-box;
}
.guest-box .name label {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  line-height: 30px;
}
.guest-box .pw {
  position: relative;
  padding-left: 60px;
  box-sizing: border-box;
}
.guest-box .pw label {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  line-height: 30px;
}

@media (max-width: 960px) {
  #log_list .item .item-inner .ui-comment {
    padding-top: 0;
  }
}
/****************************************
	docs 컨테이너 (헤더 + 본문)
****************************************/

/* 마크업은 skin/board/_docs_head.php / _docs_foot.php 가 찍고,
   보이는 모양은 이 파일이 결정한다. 로그 게시판. 본문이 길어 기본 여백을 그대로 쓴다.
   다른 게시판과 다르게 하고 싶으면 이 블록만 고치면 된다. */

/* 치수 변수는 :root 에 둔다. .board_docs 안에 두면 조상인 .fix-layout 이
   읽지 못해(사용자 지정 속성은 아래로만 상속) padding 이 통째로 무효가 된다 */
:root {
  /* 화면 위아래로 비워 둘 '총' 여백. 컨테이너는 100dvh 에서 이 값을 뺀 높이가 되고
     남는 공간이 위아래로 똑같이 나뉘어 화면 정중앙에 놓인다.
     (헤더는 좌측 고정 사이드바라 세로로 가리지 않는다) */
  --board-docs-gap: 128px;
  --board-docs-side: 100px;
  --board-docs-header: 200px;
}

/* 스킨 자체의 .fix-layout 규칙(padding/min-height 등)을 눌러내고
   컨테이너를 화면 정중앙에 놓는다 */
.fix-layout:has(.board_docs) {
  max-width: none !important;
  min-height: 100dvh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 var(--board-docs-side) !important;
}

.board_docs {
  position: relative;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
  background-color: rgba(var(--rc-paper-rgb), 0.8);
  border: 1px solid var(--rc-line);
  border-radius: 4px;
  overflow: hidden;
  /* 플렉스 아이템이라 폭을 명시해야 1280px 까지 늘어난다 */
  width: 100%;
  max-width: 1280px;
  /* 목록 / 읽기 / 쓰기 어느 화면에서도 같은 크기를 유지한다 */
  height: calc(100dvh - var(--board-docs-gap));
  display: flex;
}

.board_docs .context_header {
  width: var(--board-docs-header);
  background-color: var(--color-grey-850);
  order: 1;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* --header-h / --header-w 는 _docs_foot.php 의 스크립트가 채워준다 */
.board_docs .context_header img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  width: var(--header-h, 850px);
  height: var(--header-w, 200px);
  object-fit: cover;
  object-position: left center;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
}

/* 컨테이너 높이가 고정이므로 본문이 안에서 스크롤된다 */
.board_docs .context_text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 40px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 스킨이 자체적으로 화면 높이를 잡으려 드는 경우를 무력화 */
.board_docs .context_text .frame-theme-BODY,
.board_docs .context_text .inner {
  min-height: 0;
  height: auto;
}

/* ===== 좁은 화면 : 헤더를 위로, 가로로 눕히고 회전 해제 ===== */
@media screen and (max-width: 800px) {
  :root {
    --board-docs-side: 0px;
    --board-docs-gap: 0px;
  }

  .board_docs {
    border-radius: 0;
    flex-direction: column;
  }

  .board_docs .context_header {
    width: 100%;
    height: 120px;
    order: -1;
  }

  .board_docs .context_header img {
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) rotate(0deg);
  }

  .board_docs .context_text {
    padding: 40px 24px;
  }

  /* 모바일에서는 컨테이너를 화면 높이에 가두지 않는다.
     데스크톱은 .board_docs 를 100dvh 로 고정하고 .context_text 가 안에서
     스크롤되지만, 좁은 화면에서 이 구조를 그대로 쓰면 페이지는 안 움직이고
     안쪽 상자만 움직여야 해서 아래쪽 내용에 닿지 못하는 일이 생긴다.
     높이를 내용에 맡기고 페이지가 통째로 스크롤되게 한다. */
  .fix-layout:has(.board_docs) {
    min-height: 0 !important;
    display: block !important;
  }

  .board_docs {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .board_docs .context_text {
    overflow: visible;
  }
}

/* 댓글 칸 아래 '일반행동 · 탐색 · 주사위 · 익명' 사이 간격(예전엔 &nbsp; 네 칸으로 띄웠다) */
#log_list .bo_vc_w .action-check label { margin-right: 14px; }
/* '댓글 N' 줄은 아치 틀 게시판(board-arch.css)에서만 보인다 */
#log_list .co-count { display: none; }
