@font-face {
  font-family: 'Pretendard';
  font-weight: 300;
  font-style: normal;
  src: url('/fonts/Pretendard-Regular.woff2') format('woff2'),
    url('/fonts/Pretendard-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-style: normal;
  src: url('/fonts/Pretendard-Medium.woff2') format('woff2'),
    url('/fonts/Pretendard-Medium.woff') format('woff');
}

@font-face {
  font-family: 'Pretendard';
  font-weight: 500;
  font-style: normal;
  src: url('/fonts/Pretendard-SemiBold.woff2') format('woff2'),
    url('/fonts/Pretendard-SemiBold.woff') format('woff');
}

@font-face {
  font-family: 'Pretendard';
  font-weight: 600;
  font-style: normal;
  src: url('/fonts/Pretendard-Bold.woff2') format('woff2'),
    url('/fonts/Pretendard-Bold.woff') format('woff');
}

@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-style: normal;
  src: url('/fonts/Pretendard-ExtraBold.woff2') format('woff2'),
    url('/fonts/Pretendard-ExtraBold.woff') format('woff');
}
/* 모든 하이퍼링크: 밑줄 유지, 빨간색 */
a,
a:visited {
  color: #e60012;
  text-decoration: underline;
}
a:hover,
a:active {
  color: #e60012;
}
html {
  cursor: url('img/cursor1.svg'), crosshair; /* 커스텀 커서 이미지 */
}
body {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #fff;
  caret-color: #e60012; /* 텍스트 입력 커서(캐럿) 색상 */
  font-family: 'Pretendard', sans-serif;
  word-break: keep-all;
  overflow-wrap: normal;
}
/* 홈 배경 로고 */
.bg-logo {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 1200px;
  min-width: 320px;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* 중앙 텍스트 로고 */

/* 카테고리 원 */
.category-circle {
  position: absolute;
  width: 120px;
  height: 120px;
  background: #ff9696;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 1.1em;
  color: #222;
  border: 2px solid #222;
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  z-index: 3;
  user-select: none;
  animation: spin 3.5s linear infinite;
}
.category-circle:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.contents_wrap {
  width: 100vw;
  height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.main_logo {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.main_logo img {
  width: 80vw;
}
/*# sourceMappingURL=main.css.map */

/* 스크롤바 변경 크롬, 사파리 등 Webkit 계열 */
::-webkit-scrollbar {
  width: 10px;
  background: #f0f0f0;
}
::-webkit-scrollbar-thumb {
  background: #96fa4e;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: #f0f0f0;
}

/* Firefox */
html {
  scrollbar-color: #96fa4e #f0f0f0;
  scrollbar-width: thin;
}

.popup-container {
  display: none;
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.popup {
  background: white;
  padding: 30px;
  max-width: 400px;
  border-radius: 10px;
  font-family: sans-serif;
  position: relative;
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.popup-content {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.5;
}

/* --- 팝업 스타일 (book 카테고리와 동일하게) --- */
.book-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-popup {
  background: #fff;
  width: 50vw;
  max-width: 600px;
  max-height: 80vh;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.book-popup-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 60px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.book-popup-header {
  font-size: 1.1em;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.6;
  color: #222;
}
.book-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 2em;
  color: #ff2222;
  cursor: pointer;
  z-index: 10;
  transition: color 0.15s;
}
.book-popup-close:hover {
  color: #b10000;
}
@media (max-width: 900px) {
  .book-popup {
    width: 90vw;
    max-width: 98vw;
    max-height: 90vh;
  }
  .book-popup-content {
    padding: 18px 8px 12px 8px;
  }
}
