@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 {
  font-family: 'MabinogiClassicR';
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.chat-window {
  position: absolute;
  top: 300px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 550px;
  border: 1px solid #888;
  font-family: 'MabinogiClassicR', sans-serif;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
}

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

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

.chat-window .title-bar {
  height: 28px;
  background: linear-gradient(#EDEDED, #ADADAD); /* 타이틀바 배경색(그라데이션) */
  color: white;
  font-size: 12px;
  line-height: 28px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.title-bar .title {
  font-weight: bold;
  text-transform: uppercase;
}

.title-bar .window-buttons {
  display: flex;
  gap: 4px;
}

.title-bar .window-buttons button {
  width: 16px;
  height: 16px;
  border: none;
  background: #EDEDED; /* 버튼 색 */
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.title-bar .window-buttons button:hover {
  background: #F8F8F8; /* 버튼 마우스오버 색 */
}

.title-bar .window-buttons button:active {
  background: #999999; /* 버튼 클릭 시 색 */
}

.title-bar .window-buttons .minimize::before {
  content: "–";
  position: absolute;
  top: 1px;
  left: 4px;
  font-size: 14px;
  color: #555;
}

.title-bar .window-buttons .maximize::before {
  content: "▢";
  position: absolute;
  top: 0;
  left: 3px;
  font-size: 12px;
  color: #555;
}

.title-bar .window-buttons .close::before {
  content: "✕";
  position: absolute;
  top: 0;
  left: 3px;
  font-size: 12px;
  color: #555;
}

.chat-window .menu-bar {
  margin: 0;
  padding: 0 6px;
  height: 22px;
  background: #eee;
  display: flex;
  align-items: center;
  list-style: none;
  border-bottom: 1px solid #ccc;
  font-size: 12px;
}

.chat-window .menu-bar li {
  margin-right: 12px;
  cursor: default;
  color: #333;
}

.chat-window .menu-bar li:last-child {
  margin-right: 0;
}

.chat-window .menu-bar li:hover {
  text-decoration: underline;
}

.chat-window .toolbar {
  height: 28px;
  background: #f0f0f0;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 12px;
  color: #555;
}

.toolbar .toolbar-icons {
  display: flex;
  gap: 6px;
  margin-right: 6px;
}

.toolbar .toolbar-icons .icon {
  width: 18px;
  height: 18px;
  background: #ddd;
  border: 1px solid #bbb;
  border-radius: 2px;
  cursor: default;
}

.toolbar .toolbar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-window .main-content {
  flex: 1;
  display: flex;
  background: #fff;
  overflow: hidden;
}

.main-content .sidebar {
  width: 36px;
  background: #fafafa;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 8px;
}

.sidebar .icon {
  width: 20px;
  height: 20px;
  background: #ddd;
  border: 1px solid #bbb;
  border-radius: 2px;
  cursor: default;
}

.main-content .chat-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: #fff;
}

.chat-window .search-bar {
  height: 30px;
  background: #f0f0f0;
  border-top: 1px solid #ccc;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 4px;
}

.search-bar select {
  height: 20px;
  font-size: 12px;
}

.search-bar button {
  height: 22px;
  font-size: 12px;
  padding: 0 8px;
  cursor: pointer;
  border: 1px solid #aaa;
  background: #e8e8e8;
}

.search-bar button:hover {
  background: #ddd;
}

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

.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;
}
