@charset "utf-8";
@import url('https://cdn.rawgit.com/moonspam/NanumSquare/master/nanumsquare.css');

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


/* ==============================
   글쓰기 폼 통일 (message 전용)
   - #bo_w .board-write 기준
   - 폭 800px, 라벨/입력칸 그리드
============================== */
#bo_w .board-write{
  --form-max: 800px;
  --label-w : 110px;
  --gap     : 10px;
  max-width: var(--form-max);
  margin: 0 auto;
  padding: 12px 0;
}

/* 라벨 / 입력칸 2열 그리드 */
#bo_w .board-write dl{
  display: grid;
  grid-template-columns: var(--label-w) 1fr;
  align-items: center;
  gap: var(--gap);
  margin: 10px 0;
}

#bo_w .board-write dt{
  margin: 0;
  text-align: right;
  padding-right: 6px;
  white-space: nowrap;
  font-size: 13px;
  color: #4a4a4a;
  opacity: .95;
}

#bo_w .board-write dd{
  margin: 0;
}

/* 공통 입력요소 스타일 */
#bo_w .board-write .frm_input,
#bo_w .board-write .frm_input.full,
#bo_w .board-write .frm_file.full,
#bo_w .board-write textarea,
#bo_w .board-write select{
  width: 100%;
  border: 1px solid rgba(110,70,50,.25);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  font: inherit;
  color: #333;
  outline: none;
}

#bo_w .board-write select{
  height: 36px;
  padding: 6px 12px;
}

#bo_w .board-write input[type="file"]{
  padding: 6px 8px;
}

#bo_w #char_count_desc,
#bo_w #char_count_wrap{
  font-size: 12px;
  color: #666;
}

/* 작성완료 / 취소 버튼 */
#bo_w .btn_confirm{
  margin-top: 16px;
  text-align: center;
}

#bo_w .btn_confirm .ui-btn{
  display: inline-block;
  background: #fff;
  color: #222;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 10px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

#bo_w .btn_confirm .ui-btn:hover{
  background: #f5f5f5;
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
}

#bo_w .btn_confirm .ui-btn.point{
  background: #ae5d5c;
  border-color: #ae5d5c;
  color: #fff;
}

/* 모바일일 때 한 줄 레이아웃 */
@media (max-width:800px){
  #bo_w .board-write{
    max-width: 100%;
    padding: 8px 0;
  }
  #bo_w .board-write dl{
    grid-template-columns: 1fr;
  }
  #bo_w .board-write dt{
    text-align: left;
    padding-right: 0;
  }
}

/* 기본 스킨 쪽 고정 폭 해제 (중복 방지용) */
#bo_w .board-write input[type="text"],
#bo_w .board-write input[type="url"],
#bo_w .board-write input[type="file"],
#bo_w .board-write select,
#bo_w .board-write textarea,
#bo_w .board-write .frm_input,
#bo_w .board-write .frm_input.full,
#bo_w .board-write .frm_file.full,
#bo_w .board-write .wr_content{
  width: 100% !important;
  max-width: 100% !important;
}

.wr_content{
  margin: 0 !important;
}

/* message 글쓰기 전용 버튼 스타일 (일반 말풍선 / 선택지 세트) */
#bo_w .board-write #add-general,
#bo_w .board-write #add-choice-set{
  display: inline-block;
  margin: 6px 4px 14px 0;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Paperlogy-4Regular';
}

#bo_w .board-write #add-general:hover,
#bo_w .board-write #add-choice-set:hover{
  background: #f5f5f5;
}

/* (선택) 말풍선 한 줄도 폼 느낌 살짝 맞추기 */
#bo_w .board-write .dialogue-line{
  margin: 6px 0;
}
#bo_w .board-write .dialogue-line .bubble-side{
  border-radius: 8px;
  border: 1px solid rgba(110,70,50,.25);
  padding: 4px 8px;
  width: 13.5% !important;
}
#bo_w .board-write .dialogue-line .bubble-text{
  border-radius: 8px;
  border: 1px solid rgba(110,70,50,.25);
  padding: 6px 9px;
}

/* 선택지 세트 박스 정리 */
#bo_w .board-write .choice-set{
  border-radius: 10px;
  border: 1px solid rgba(110,70,50,.25);
  background: #f9f9f9;
}

div#dialogue-block-container{ margin-left: 5%; }


/* ==============================
   카테고리/상단 버튼
============================== */
.ico-category{ background:#000; color:#fff; border-radius:10px; padding:0 5px }
.simple-category{ display:flex; flex-wrap:wrap; gap:5px; margin-bottom:20px; justify-content:center }
.simple-category li{
  background:#fff; color:#444; border-radius:10px; padding:4px 6px;
  border:1px inset #333; transition:background .2s; white-space:nowrap; text-align:center
}
.simple-category li:hover{ background:#dcbfbe; color:#444 }
.simple-category li.selected{ background:#ae5d5c }
.simple-category li.selected a{ color:#fff !important }

#bo_btn_top{ margin:10px 0 }
#bo_btn_top:after,.bo_fx:after,#bo_sch:after{ content:""; display:block; clear:both }
.bo_fx{ margin-bottom:5px; float:right }
.bo_fx ul,.btn_bo_user,.btn_bo_adm{ margin:0; padding:0; list-style:none }
.btn_bo_user{ float:right }
.btn_bo_user li{ float:left; margin-left:5px }
.btn_bo_adm{ float:left }
.btn_bo_adm li{ float:left; margin-right:5px }

#bo_btn_top .btn_bo_user a.ui-btn,
#bo_btn_top .btn_bo_user a.point{
  display:inline-block !important; background:#fff !important; color:#222 !important;
  border:1px solid rgba(0,0,0,.15) !important; border-radius:10px !important;
  padding:6px 14px !important; text-decoration:none !important; font-weight:600 !important; line-height:1.2 !important;
  box-shadow:0 1px 3px rgba(0,0,0,.06) !important; 
}
#bo_btn_top .btn_bo_user a.ui-btn:hover,
#bo_btn_top .btn_bo_user a.point:hover{
  background:#f5f5f5 !important; box-shadow:0 2px 6px rgba(0,0,0,.10) !important
}

/* 관리자 버튼 */
.list-option.btn{
  display:flex;
  gap:6px;
  justify-content: flex-end;
  font-size: 10px;
  padding: 0;
  height: 20px;
}

.list-option{ opacity:.2; transition:opacity .2s }
.list-option:hover{ opacity:1 }

.list-option.btn a{
  display:inline-block;
  background:#fff !important;
  color:#222 !important;
  border:1px solid rgba(0,0,0,.18) !important;
  border-radius:5px;
  padding:3px;
  font-size: 0.8em;
  line-height:1.2;
  text-decoration:none !important;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
  transition:background .15s ease, box-shadow .15s ease, transform .02s ease;
}
.list-option.btn a:hover{
  background:#f6f7f8 !important;
  box-shadow:0 2px 8px rgba(0,0,0,.22);
}
.list-option.btn a:active{
  transform:translateY(.5px);
}


.gallery-board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.pic-header {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
}

.list-option {
    display: flex;
    flex: 1;
    gap: 5px;
	margin-bottom: 3px;
	opacity: 20%;
}

.list-option:hover {
	opacity: 100%;
}

.gall_chk {
    z-index: 10;
}

.gallery-item,
.gallery-board > .gallery-grid {
  width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.gallery-item img {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 이미지에 트랜지션 적용 */
.gallery-item {
  transition: transform 0.3s ease;
  transform-origin: center center;
}

/* 호버 시 이미지 확대 배율 조정 */
.gallery-item:hover {
  transform: scale(1.1);  /* 1.1배 확대, 필요에 따라 값 변경 가능 */
}

/*
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
  /* backdrop-filter: blur(3px);  필요 없으면 주석 */
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-close {
    position: relative;
    top: 0;
    left: 0px;
    font-size: 45px;
    cursor: pointer;
    color: #ffffff;
    text-shadow: 0px 0px 3px black;
}

.modal-description {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 15px;
    border-radius: 20px;
}

.modal-title {
    font-family: 'Paperlogy-4Regular';
    font-size: 18px;
    font-weight: bold;
}

.modal-meta {
    display: none;
    font-family: 'Paperlogy-4Regular';
    font-size: 12px;
    font-weight: normal;
    color: #bbb;
}

.modal-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-nav-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  padding: 0 10px;
  color: #eee;
  text-shadow: 3px 3px 3px black;
}

.modal-img {
  max-width: 100%;
  display: block;
}
*/


::-webkit-scrollbar {
  display: none;
}

/* 모바일 */
@media (max-width: 800px) {
	.gallery-board {
		gap: 10px !important;
	}
	.pic-header {
		display: none !important;
	}
}



/* =============================== */

/* ───── 제목 카드형 리스트 ───── */
.msg-card {
  flex: 1;
  padding: 12px 16px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.msg-card-inner {
  word-break: keep-all;
  white-space: normal;
  line-height: 1.4;
}

.msg-card-title {
  font-weight: bold;
  font-size: 1.1em;
  color: #444;
  word-break: keep-all;
  white-space: normal;
  line-height: 1.4;
  font-family: 'Paperlogy-4Regular';
}

.tag-list {
  display: flex;
  justify-content: center;
}
.tag-badge {
  font-size: 0.9em;
  white-space: nowrap;
  font-family: 'Paperlogy-4Regular';
}

.msg-card:hover {
}


/* ───── 모달 구조 ───── */
/* 모달 오버레이 + 블러 백그라운드 */
.somsg-modal {
  position: fixed;
  inset: 0;
  display: block;
  overflow-y: auto;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  padding: 40px 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  background-color: rgba(0,0,0,0.3);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.somsg-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 팝업 등장 애니메이션 */
.somsg-modal-content {
  position: relative;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;

  width: 95vw;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 15px;
  border: 1px solid #c1bebd;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background-color: #645a5a;
}

.somsg-modal.show .somsg-modal-content {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
@media (max-width:800px){ 
  .somsg-modal.show .somsg-modal-content {
    transform: translate(-50%, -60%) scale(1);
  }
}

.somsg-close {
  position: absolute;
  right: 15px;
  top: 31px;
  font-size: 24px;
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
}

/* ───── 상단바 시계 ───── */
.somsg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #645a5a; 
}
.somsgtopbar {
  padding-top: 5px;
  height: 25px;
  display: flex;
  background-color: #645a5a;
  border-radius: 10px 10px 0px 0px;
  font-family: 'Paperlogy-4Regular';
}
.somsgclock {
  font-size: clamp(11px, 2.2vw, 13px);
  color: #fff;
  text-align: center;
  margin: 0 auto;
}

.somsg-titlebar {
  text-align: center;
  color: #fcfcfc;
  display: inline-block;
  width: 100%;
}

.somsg-title {
  background-color: #645a5a;
  padding: 10px 0;
  display: inline-block;
  width: 100%;
  font-family: 'Paperlogy-4Regular';
  border-bottom: 4px solid #504646;
}

.somsg-deco {
  font-size: clamp(14px, 2.2vw, 16px);
  color: #beb4aa;
}

.somsg-name {
  font-size: clamp(16px, 2.2vw, 18px);
  color: #ffffff;
}

.somsg-area {
  padding: 10px 15px;
    background-color: rgba(241, 237, 236, 1);
}
@media (max-width: 800px) {
  .somsg-area {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* ───── 기본 말풍선 레이아웃 ───── */
.somsg,
.somsg2 {
  display: flex;
  margin: 10px 2%;
  font-family: 'Paperlogy-4Regular';
  font-size: clamp(13px, 2.2vw, 15px);
}
.somsg2 {
  justify-content: flex-end;
  align-items: flex-start;
}
.somsg-img {
  border: 1px solid rgb(100, 90, 90, 0.5);
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: #ddd;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}

/* ───── 말풍선 ───── */
.somsgbubble1 {
  margin-left: 20px;
    margin-right: auto;
  position: relative;
    width:fit-content;
    height:fit-content;
  padding: 15px;
  background-color: #fff;
  border-radius: 10px;
  color: #444;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
  max-width: 70%;
}
.somsgbubble1:after {
  content: '';
  position: absolute;
  top: 25px;
  left: -13px;
  border-right: 14px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transform: translateY(-50%);
  filter: drop-shadow(-3px 0px 2px rgba(0, 0, 0, 0.1));
}

.somsgbubble2 {
  margin-right: 20px;
    margin-left: auto;
  position: relative;
    width:fit-content;
    height:fit-content;
  padding: 15px;
  background-color: #968c82;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
  max-width: 70%;
}
.somsgbubble2:after {
  content: '';
  position: absolute;
  top: 25px;
  right: -14px;
  border-left: 14px solid #968c82;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transform: translateY(-50%);
  filter: drop-shadow(3px 0px 2px rgba(0, 0, 0, 0.1));
}

.somsgbubble1 img,
.somsgbubble2 img {
  display: block;
  border-radius: 5px;
}

.somsgbubble1:has(img:only-child),
.somsgbubble2:has(img:only-child) {
  display: inline-block;
  width: auto;
  max-width: 37%;
  padding: 8px;
}

/* ───── 선택지 버튼 ───── */
.msg-choice-btn {
  width: 55%;
  background: #fff;
  color: #444;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Paperlogy-4Regular';
  margin: 3px auto;
  font-size: clamp(13px, 2.2vw, 15px);
  transition: transform 0.2s ease, background 0.2s ease;
  transform: scale(1);
}
.msg-choice-btn:hover {
  background: #645a5a;
  color: #fff;
  transform: scale(1.05);
}
.msg-choice-btn.selected {
  background: #ae5d5c;
  color: #fff;
  font-weight: bold;
  transform: scale(1.1);
}
.msg-choice-btn.unselected {
  transform: scale(0.9);
  opacity: 0.5;
}
.msg-choice-btn.unselected:hover {
  transform: scale(1);
  opacity: 1;
}


.choice-box {
  text-align:center;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  margin-top: 25px !important;
  padding-top: 25px;
  display: grid;
  margin: 0 auto;
}

.choice-result::after {
  content: "";
  display: block;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  margin: 25px auto;
}

.choice-result + .choice-box,
.choice-box + .choice-box {
  border-top: none;
  padding-top: 0px;
}

/* 연속된 선택지 세트일 때(= .choice-result 다음에 .choice-box) */
.choice-result:has(+ .choice-box)::after {
  margin-bottom: 0;
  content: "";
}
.choice-result:has(+ .choice-box) {
  margin-bottom: 10px !important;
}

/* 마지막 choice-result 의 구분선 없애기 */
.choice-result:last-of-type::after {
  content: none !important;
}
/* 대신 요소 자체에 아래쪽 여백 추가 */
.choice-result:last-of-type {
  margin-bottom: 25px !important;
}


.gallery-grid > .gallery-item {
  flex: 0 0 clamp(120px, 20vw, 150px);  /* 카드 너비 */
  max-width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ui-paging {
  display: none !important;
}


/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: none;
}

/* Firefox 스크롤바 */
* {
    scrollbar-width: none;
}