body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: '굴림', 'Gulim', sans-serif;
  background: #ffffff;
}

#top {
  height: 100px;
  width: 100%;
  border-bottom: 2px inset #EBD311;
}

#topFrame {
  width: 100%;
  height: 100%;
  border: none;
}

#menu {
  background: #eeeeee;
  padding: 0 4px 4px 0;
  overflow-y: auto;
  border-right: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  box-shadow: inset -2px -2px 0 #888888;
}

#notice-bar {
  height: 24px;
  background: #000;
  color: #00ffcc;
  font-size: 14px;
  overflow: hidden;
  padding-left: 10px;
  display: flex;
  align-items: center;
  border-top: 2px outset #ccc;
  border-bottom: 2px inset #ccc;
  position: relative;
  margin-top: 2px;
}

#notice-wrapper {
  position: absolute;
  top: 0;
  left: 10px;
  transition: transform 0.5s ease-out;
}

.notice-item {
  height: 24px;
  line-height: 24px;
  white-space: nowrap;
}

.tag-notice {
  color: #00ffcc;
}

.tag-important {
  color: #ff6666;
}

.tag-info {
  color: #ffff66;
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

#main {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}

#content {
  width: 100%;
  border: none;
  position: relative;
}

.layer {
    position: absolute;
    inset: 0;
}
.hidden {
    display: none;
}

iframe#content {
  border: 2px inset #ccc;
  background: #ffffff;
  width: calc(100% - 6px);
  height: calc(100vh - 136px);
  margin-right: 6px;
  margin-bottom: 8px;
}

iframe#menu {
  height: calc(100vh - 140px);
  width: 212px;
  overflow: hidden;
}

#menuToggle {
  display: none;
}

#contentWrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 60px);
}

@media (max-width: 768px) {
  #top {
    font-size: 18px;
    border-bottom: 1px solid #003366;
    text-align: center;
  }

  #notice-bar {
    font-size: 14px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background: #000;
    color: #00ffcc;
  }

  #main {
    display: block;
  }

  #menuToggle {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 40px;
    background: #c0c0c0;
    color: black;
    text-align: center;
    line-height: 40px;
    font-size: 12px;
    font-weight: bold;
    border: 2px outset #ffffff;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000;
  }

  #menuToggle:active {
    border: 2px inset #ffffff;
  }

  #menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 200px;
    height: 100%;
    background: #eeeeee;
    border-right: 3px outset #ffffff;
    transition: transform 0.3s ease;
    z-index: 999;
  }

  #menu.open {
    transform: translateX(250px);
  }

  iframe#content {
    width: 100%;
    height: calc(100vh - 48px);
    border: 2px inset #ccc;
    background: #ffffff;
  }

  iframe#menu {
    height: calc(100% - 8px);
  }

  body {
    overflow: hidden;
    margin: 0;
    font-family: '굴림', 'Gulim', sans-serif;
    background: #f5f5f5;
  }
}

/* ==================================================
   90s Retro Scrollbar (CSS only, cross-browser)
   ================================================== */

/* ---------- Firefox ---------- */
* {
    scrollbar-width: auto; /* thin 방지 */
    scrollbar-color: #c0c0c0 #b0b0b0;
}

/* ---------- WebKit (Chrome, Edge, Safari) ---------- */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
    background: #c0c0c0;
}

/* 트랙: 도트/패턴 느낌 */
::-webkit-scrollbar-track {
    background: repeating-linear-gradient( 45deg, #c0c0c0, #c0c0c0 2px, #b0b0b0 2px, #b0b0b0 4px );
    border: 1px solid #808080;
}

/* thumb: Win95 입체 버튼 */
::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #404040;
    border-right: 2px solid #404040;
}

    /* hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #bcbcbc;
    }

    /* active (눌린 느낌) */
    ::-webkit-scrollbar-thumb:active {
        border-top: 2px solid #404040;
        border-left: 2px solid #404040;
        border-bottom: 2px solid #ffffff;
        border-right: 2px solid #ffffff;
    }

/* corner */
::-webkit-scrollbar-corner {
    background: #c0c0c0;
}
