@font-face {
  font-family: "DungGeunMo";
  src: url("/static/fonts/DungGeunMo.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "IyagiGGC";
  src: url("/static/fonts/IyagiGGC.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body, pre, textarea,
input.cmd-input,
input.login-inline-input,
input.field-name, input.field-file, input.field-email,
input.field-home, input.field-password, input.field-title {
  font-size: 12pt;
  font-family: "DungGeunMo", "굴림체", monospace;
}

html[data-font="iyagiggc"],
html[data-font="iyagiggc"] * {
  font-family: "IyagiGGC", "굴림체", monospace !important;
}

body, pre, input.cmd-input {
  background-color: #000080;
  color: white;
  margin: 0;
}

html {
  background-color: #000080;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* ── 터미널 스크린 (플렉스 컨테이너) ── */
.terminal-screen {
  width: 800px;
  height: 640px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── 헤더 (고정, 스크롤 없음) ── */
.terminal-header {
  flex-shrink: 0;
  line-height: 21px;
  margin: 0;
  white-space: pre-wrap;
}

/* ── 본문 영역 (스크롤) ── */
.terminal-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-color: #4477cc #001133;
  scrollbar-width: thin;
}

.terminal-body::-webkit-scrollbar { width: 10px; }
.terminal-body::-webkit-scrollbar-track { background: #001133; }
.terminal-body::-webkit-scrollbar-thumb { background-color: #4477cc; border-radius: 4px; }
.terminal-body::-webkit-scrollbar-thumb:hover { background-color: #6699ee; }

pre {
  line-height: 21px;
  margin: 0;
  white-space: pre-wrap;
}

/* ── 명령 입력 ── */
input.cmd-input {
  height: 24px;
  margin: 0;
  padding: 0 0 2px 0;
  width: 290px;
  border: none;
  outline: none;
}

/* ── 링크 ── */
a.menu-link:link, a.menu-link:visited,
a.current-menu:link, a.current-menu:visited,
a.bbs-label:link, a.bbs-label:visited,
a.bottom-menu:link, a.bottom-menu:visited {
  color: white;
  text-decoration: none;
}

a.menu-link:hover,
a.current-menu:hover,
a.bbs-label:hover,
a.bottom-menu:hover {
  background-color: black;
  position: relative;
  top: 0; left: 0;
  margin: -1px;
  border: 1px solid gray;
  border-right-color: #303030;
  border-bottom-color: #303030;
}

/* ── 제목 장식 ── */
.title-deco-hl   { background-color: white; color: #000088; }
.title-deco-top  { color: #0000FF; }
.title-deco-bottom { color: #000000; }

/* ── 역상 ── */
.reverse {
  color: #000080;
  background-color: white;
}

/* ── 구분선: 둥근모 기준, 이야기 구분선 비표시 ── */
.sep-iyagi { display: none !important; }

/* ── 바닥 바 ── */
.bottom-bar {
  background-color: #000080;
  color: white;
  padding: 2px 0;
}

/* ── 메시지 박스 ── */
.msg-box {
  display: inline-block;
  min-width: 200px;
}

/* ── 메인 메뉴 3컬럼 그리드 ── */
.main-menu-grid {
  display: flex;
  gap: 6px;
  width: 790px;
  padding: 6px 0 10px 0;
  font-size: 12pt;
}

.menu-box {
  flex: 1;
  border: 2px solid;
  display: flex;
  flex-direction: column;
}

.menu-box-title {
  display: block;
  text-align: center;
  padding: 2px 4px;
  font-weight: bold;
  letter-spacing: 1px;
}

.menu-title-c {
  font-style: italic;
}

.menu-box-items {
  display: flex;
  flex-direction: column;
  padding: 5px 10px;
  gap: 2px;
  flex: 1;
}

.menu-box-items a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.menu-box-items a:hover {
  background-color: rgba(255, 255, 255, 0.18) !important;
  border: none !important;
  margin: 0 !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
}

/* Communication — 녹색 */
.menu-box-comm { border-color: #00bb00; }
.menu-box-comm .menu-box-title { background-color: #00bb00; color: #000080; }
.menu-box-comm .menu-box-items { color: #aaffaa; }

/* Contents — 핑크/마젠타 */
.menu-box-cont { border-color: #ff55ff; }
.menu-box-cont .menu-box-title { background-color: #ff55ff; color: #000080; }
.menu-box-cont .menu-box-items { color: #ffaaff; }

/* Hi-Special — 보라 */
.menu-box-hisp { border-color: #9900cc; background-color: #110033; }
.menu-box-hisp .menu-box-title { color: #ffff00; }
.menu-box-hisp .menu-box-items { color: #eeaaff; }

.menu-hisp-star { color: #ffff00; }

/* 구현된 메뉴 강조 */
.menu-box-items a.menu-active { color: #ffffff; font-weight: bold; }

/* ── 디버그 프레임 (숨김) ── */
.debug-frame {
  display: none;
}

/* ── 게시판 본문 ── */
.post-content {
  width: 790px;
  padding-left: 8px;
}

.post-content-print {
  width: 790px;
  padding-left: 8px;
}

/* ── 새글 / 조회 / 추천 강조 ── */
.new-post   { color: red; }
.hot-hit    { color: #00ff00; }
.hot-recom  { color: #00ffff; }
.hot-both   { color: #ffff00; }

/* ── 글쓰기 폼 ── */
.write-form {
  height: 430px;
  position: relative;
}

.field-wrap {
  position: absolute;
  padding: 1px;
}
.field-title-wrap  { left: 8px;  top: 0; }
.field-name-wrap   { left: 8px;  top: 27px; }
.field-pass-wrap   { left: 488px; top: 27px; }
.field-email-wrap  { left: 8px;  top: 54px; }
.field-home-wrap   { left: 8px;  top: 81px; }
.field-text-wrap   { left: 8px;  top: 108px; }
.field-file-wrap   { left: 368px; top: 107px; }
.field-submit-wrap { left: 8px;  top: 400px; }

label.field-label {
  padding: 3px;
  cursor: pointer;
  height: 24px;
  width: 100px;
  text-align: center;
  display: inline-block;
}
label.required { color: orange; }

input.field-name, input.field-file, input.field-email,
input.field-home, input.field-password, input.field-title {
  border: none;
  border-bottom: 2px solid white;
  color: white;
  padding: 1px;
  height: 22px;
  background-color: transparent;
  outline: none;
}
input.field-email,
input.field-home,
input.field-title   { width: 680px; }
input.field-name,
input.field-password { width: 200px; }
input.field-file    { width: 320px; }

textarea.field-text {
  position: absolute;
  left: 0; top: 27px;
  padding: 1px;
  width: 780px;
  height: 260px;
  margin: 0;
  overflow: auto;
  border: none;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  color: white;
  background-color: transparent;
  font-family: inherit;
  font-size: 12pt;
  resize: none;
  outline: none;
}

input.field-submit {
  width: 780px;
  height: 25px;
  font-family: inherit;
}

/* ── 글삭제 폼 ── */
.delete-form {
  height: 150px;
  padding-left: 5px;
  position: relative;
}

/* ── 인증 폼 ── */
.auth-form input[type=text],
.auth-form input[type=password] {
  background-color: transparent;
  color: white;
  border: none;
  border-bottom: 2px solid white;
  font-family: inherit;
  font-size: 12pt;
  outline: none;
  width: 300px;
}

/* ── 하이텔 로그인 인라인 입력 ── */
input.login-inline-input,
input.login-inline-input:focus {
  background: transparent;
  color: #00ffff;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  width: 280px;
  height: 20px;
  padding: 0 2px;
  vertical-align: baseline;
}

/* 브라우저 autofill 흰 배경 제거 */
input.login-inline-input:-webkit-autofill,
input.login-inline-input:-webkit-autofill:hover,
input.login-inline-input:-webkit-autofill:focus,
input.login-inline-input:-webkit-autofill:active {
  -webkit-text-fill-color: #00ffff !important;
  -webkit-box-shadow: 0 0 0 1000px #000080 inset !important;
  box-shadow: 0 0 0 1000px #000080 inset !important;
  caret-color: #00ffff;
}

/* ── 하이텔 로그인 화면 ── */
.login-green-box {
  display: block;
  background-color: #006600;
  color: #ffffff;
  padding: 4px 8px 7px 2px;
  border-bottom: 1px solid #00cc00;
  width: 71ch;
}

.login-tshin-wrap {
  display: block;
  margin-top: 2px;
}

.login-tshin-label {
  color: #000080;
  background-color: #aaaaaa;
  padding: 0 2px;
  font-weight: bold;
}

.login-tshin-body {
  color: #ffffff;
}

input.login-inline-input[readonly] {
  color: #aaaaaa;
  opacity: 0.7;
}

.login-guide {
  color: #00ffff;
}

.login-recom {
  color: white;
}

.login-diamond {
  color: #ffff00;
}

.login-error {
  color: #ff6666;
}

/* 이용자ID 입력 대기 커서 */
.login-cursor::after {
  content: "█";
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
