/* 김은혜과학학원 커스텀 스타일시트 (아이보리 & 딥차콜 테마) */

@charset "UTF-8";

/* 부드러운 스크롤 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

/* 폰트 및 바디 기본 설정 */
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  word-break: keep-all;
  overflow-x: hidden;
  background-color: #FAF7F2;
  color: #222730;
}

/* 원자 아이콘 회전 애니메이션 */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* 커스텀 스크롤바 (아이보리 & 딥차콜) */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #F4EFE6;
}

::-webkit-scrollbar-thumb {
  background: #D8CEBD;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #303641;
}

/* 탭 전환 스타일 */
.tab-content {
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

.tab-content.hidden {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.tab-content.block {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 테이블 모바일 가로 스크롤 대응 */
table th, table td {
  white-space: nowrap;
}

@media (min-width: 768px) {
  table th, table td {
    white-space: normal;
  }
}

/* 텍스트 드래그 선택 색상 */
::selection {
  background-color: #171B22;
  color: #FAF7F2;
}
