@font-face {
  font-family: "NanumSquareRound";
  src: url("/font/NanumSquareRoundB.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

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

body {
  margin: 0;
  font-family: "NanumSquareRound", Arial, sans-serif;
}

.layout {
  display: block; /* flex 제거 (sidebar fixed랑 충돌 방지) */
  width: 100%;
  margin: 0;
}

/* 메인 */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 255px;
}

.topbar {
  height: 50px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #ddd;
}

.content {
  padding: 20px;
}

.main-image {
  max-width: 600px;
  width: 100%;
  border-radius: 10px;
}

.notice-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.notice-popup {
  width: min(460px, calc(100vw - 32px));
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.notice-popup-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  object-position: center center;
  background: #f3f4f6;
}

.notice-popup-body {
  padding: 22px 22px 18px;
}

.notice-popup-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.notice-popup-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  text-align: center;
  word-break: keep-all;
}

.notice-popup-actions {
  display: flex;
  justify-content: center;
  padding: 0 22px 24px;
}

.notice-popup-close {
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  padding: 12px 24px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.notice-popup-close:hover {
  background: #1f2937;
}

body.notice-popup-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .notice-popup-overlay {
    padding: 16px;
  }

  .notice-popup-image {
    max-height: 44vh;
  }

  .notice-popup-body {
    padding: 18px 18px 14px;
  }

  .notice-popup-title {
    font-size: 20px;
  }

  .notice-popup-text {
    font-size: 15px;
  }
}
