@charset "utf-8";

/* ─────────── 기본 레이아웃 ─────────── */
#no_design_main {
  position: relative;
  padding: 20px 0;
}
#no_design_main:after {
  content: "";
  display: block;
  clear: both;
}

#main_visual_box {
  min-height: 100px;
  background: #000;
  margin-bottom: 20px;
}
#main_twitter_box {
  position: relative;
  width: 32%;
  height: 260px;
  float: left;
  margin-bottom: 20px;
}
.twitter { max-height: 100%; }

#main_image_box {
  position: relative;
  width: 32%;
  margin: 0 2%;
  height: 260px;
  text-align: center;
  line-height: 260px;
  float: left;
  margin-bottom: 20px;
}
#main_side_box {
  position: relative;
  width: 32%;
  height: 260px;
  float: right;
  margin-bottom: 20px;
}
#main_login_box { margin-bottom: 20px; }

#main_banner_box {
  padding: 20px;
  height: 130px;
  text-align: center;
  box-sizing: border-box;
}
#main_copyright_box {
  clear: both;
  text-align: center;
}

/* ─────────── 전체 페이지 ─────────── */
html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}
#main_body {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('/img/bg_texture.png') repeat;
  overflow: hidden;
}
.main-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  box-sizing: border-box;
}

/* ─────────── 달력/이미지/배너 라인 ─────────── */
.calendar-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.calendar-column {
  display: flex;
  flex-direction: column;
  width: 250px;
  gap: 10px;
  flex-shrink: 0;
}
.calendar-box,
.calendar-list-widget,
.calendar-top-widget {
  width: 100%;
  box-sizing: border-box;
}
.calendar-box { height: 250px; }
.calendar-list-widget { height: 72px; }
.calendar-top-widget {
  max-height: 300px;
  overflow-y: auto;
}

/* 가운데 이미지 */
.calendar-image {
  flex: none;
  width: 100px;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-image img {
  width: 100%;
  height: auto;
  max-height: 600px;
  opacity: 0.85;
}

/* 오른쪽 배너 묶음 */
.calendar-banner-widget {
  width: 540px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

/* SCRAP */
.scrap-widget-below {
  width: 320px;
  margin-top: 20px;
  margin-left: 10px;
  position: relative;
  top: -100px;   /* 위로 띄움 */
  left: -10px;
  z-index: 10;
}

/* ─────────── 위젯 공통 ─────────── */
.custom-widget {
  width: 100%;
  min-height: 300px;
  background: #f6f6f6;
  border: 1px solid #555;
  border-radius: 10px;
  box-shadow: 0 -6px 0 0 #b3bdb3, 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Galmuri11', sans-serif;
}
.notice-widget { min-height: 180px !important; }

/* 위젯 헤더 */
.widget-header {
  position: relative;
  display: flex;
  justify-content: center;   /* 중앙 기준 */
  align-items: center;
  background: #f0f0f0;
  height: 50px;
  line-height: 50px;
  font-size: 15px;
  border-radius: 10px 10px 0 0;
}

.widget-header span {
  position: absolute;
  left: 50%;                 /* 부모 기준 중앙 */
  transform: translateX(-50%); /* 진짜 중앙 고정 */
  font-size: 15px;
  font-weight: bold;
}

.widget-header a {
  position: absolute;
  right: 15px;                /* 항상 오른쪽 */
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #fff;
  text-decoration: none;
}


/* 위젯 바디 */
.widget-body {
  flex: 1;
  padding: 15px;
  font-size: 14px;
  line-height: 1.6;
  overflow-y: auto;
}

/* ─────────── 플로팅 이미지 ─────────── */
.main-floating-img {
  position: absolute;
  right: 50px;
  bottom: 35%;
  transform: translateY(-50%);
  width: 70px;
  z-index: 2000;
}

/* ─────────── Mac 스타일 헤더 ─────────── */
.mac-style-header {
  position: relative;
  height: 28px;
  background: #f0f0f0;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 8px;
  font-family: 'Galmuri11', monospace;
}
.mac-style-header .mac-buttons {
  display: flex;
  gap: 6px;
}
.mac-style-header .mac-buttons .btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.mac-style-header .btn.close { background: #ff5f57; }
.mac-style-header .btn.minimize { background: #ffbd2e; }
.mac-style-header .btn.maximize { background: #28c840; }
.mac-style-header .title {
  font-size: 13px;
  font-weight: bold;
  color: #000;
}

/* 그림자 */
.left-shadow-widget {
  box-shadow: -8px 8px 0 #B3BDB3 !important;
}
