@charset "utf-8";

@font-face {
  font-family: 'MabinogiClassicR';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2207-01@1.0/MabinogiClassicR.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.chat-area {
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-area::-webkit-scrollbar {
  display: none;
}

.board-notice {
  width: 264px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
background:#fff;
}

.qna-box {
  overflow: hidden;
}

.ui-option {
  clear: both;
  padding-bottom: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ui-write-box {
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.ui-write-box textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  box-sizing: border-box;
}

.ui-control {
  padding: 10px 0 0;
  overflow: hidden;
  text-align: right;
}

.ui-write-area.top {
  margin-bottom: 20px;
}

.ui-qna-list {
  position: relative;
  clear: both;
}

.ui-qna-list li {
  position: relative;
}

.ui-qna-list li p {
  clear: both;
  line-height: 1.5em;
  overflow: hidden;
}

.ui-qna-list li p i {
  position: relative;
  font-style: normal;
  padding-right: 10px;
  margin-right: 5px;
}

.ui-qna-list li p em {
  font-style: normal;
  margin-right: 20px;
  font-weight: bold;
}

.ui-qna-list li p strong a {
  display: inline-block;
  font-size: 9px;
  padding: 2px 5px;
  font-weight: normal;
}

.ui-qna-list li p span.date {
  float: right;
  opacity: 0.5;
}

.ui-qna-list li .qna-content {
  line-height: 1.3em;
  margin-right: 80px;
  border-radius: 10px 10px 10px 0;
}

.ui-qna-list li .qna-comment-content {
  line-height: 1.3em;
  border-radius: 10px 10px 0 10px;
  margin-bottom: 15px;
  border: none;
  text-align: right;
}

.ui-qna-list li ul {
  margin-left: 80px;
}

.ui-qna-list li ul li {
  padding: 0;
}

.ui-qna-list li ul li p {
  position: absolute;
  margin-left: -45px;
  margin-top: -50px;
}

.ui-qna-list li ul li strong {
  float: right;
}

.ui-qna-list .ui-qna-list-password label {
  padding-right: 10px;
}

.ui-qna-list .ui-qna-list-password label.blur {
  text-shadow: none;
}

.ui-qna-list .ui-qna-list-password input {
  position: relative;
  z-index: 1;
}

.ui-qna-list .ui-qna-list-password button {
  height: 28px;
  line-height: 28px;
  padding: 0 25px;
  font-family: 'Dotum';
  margin-left: -5px;
  border-left-width: 0;
}

@media all and (max-width: 370px) {
  .ui-qna-list .ui-qna-list-password {
    position: relative;
    padding-right: 90px;
  }
  .ui-qna-list .ui-qna-list-password .ui-submit {
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
  }
  .ui-qna-list .ui-qna-list-password input {
    width: 100%;
  }
}

.ui-qna-list li div.ui-write-area {
  padding: 0;
  margin-left: 80px;
  background: transparent;
  margin-bottom: 10px;
  border: none;
}

.ui-qna-list li div.ui-write-area button {
  white-space: nowrap;
  height: 28px;
  line-height: 28px;
  padding: 0 25px;
  margin-top: 10px;
}

.ui-qna-list li div.ui-write-area textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  box-sizing: border-box;
  border: none;
  word-break: break-all;
}

.ui-qna-list .no-data {
  text-align: center;
  line-height: 100px;
  padding-bottom: 50px;
}

.search-box {
  clear: both;
  float: right;
  margin-bottom: 10px;
}

@media all and (max-width: 535px) {
  .ui-control button {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 10px;
  }
}

@media all and (max-width: 435px) {
  .ui-control input[type="text"],
  .ui-control input[type="password"] {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 10px;
  }
}

@media all and (max-width: 380px) {
  .ui-qna-list .ui-qna-list-password label {
    display: none;
  }
}

#page_board_content {
  display: flex;
  flex-direction: column;
}

.ui-qna-list {
  order: 1;
}

.ui-write-area {
  order: 2;
}

.chat-area {
  display: flex;
  flex-direction: column;
  height: 370px;
}

#page_board_content {
  flex: 1 1 auto;
  overflow-y: auto;
}

.ui-write-area {
  flex-shrink: 0;
  margin-top: auto;
  padding: 10px;
}

html,
body {
    margin: 0;
    padding: 0;
    background: transparent;
}

.only-chat {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    background: #fff;
    border: none;
    box-sizing: border-box;
}

#page_board_content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.board-notice {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border-bottom: none;
background:#fff;
}

.ui-qna-list {
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
}

.ui-write-area {
    border-top: none;
    padding: 10px;
    box-sizing: border-box;
    background: #fff;
}

.ui-write-area textarea {
    width: 100%;
    height: 60px;
    resize: none;
    box-sizing: border-box;
}


/* 비회원 이름, 비밀번호 입력창 가로 폭 줄이기 및 외곽선 넣기 */
.ui-control input[type="text"],
.ui-control input[type="password"] {
    width: 70px;              /* 가로 길이를 축소 (원하는 크기로 조정 가능) */
    border: 1px solid #ec9a67; /* 외곽선을 아까 그 색상으로 변경 */
    padding: 4px 8px;          /* 안쪽 여백을 주어 깔끔하게 정렬 */
    box-sizing: border-box;
}

/* 내용 입력창(textarea) 외곽선 넣기 */
.ui-write-area textarea {
    border: 1px solid #ec9a67 !important; /* 기존 border: none 또는 다른 스타일 덮어쓰기 */
    padding: 10px;
    box-sizing: border-box;
}

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