/*
  [파일 역할]
  - 앱 전반의 공통 UI 스타일(헤더/본문/테이블/버튼/푸터/스킵 버튼)을 정의하는 기본 스타일 파일.

  [왜 필요한가]
  - 화면 전체에서 반복되는 스타일을 한 곳에서 관리해 유지보수성을 높이고, 화면 일관성을 보장한다.

  [핵심 기능]
  - 공통 타이포그래피/버튼 hover 효과
  - 메인 레이아웃(header/main/container/footer)
  - 멤버 테이블 구조 및 스크롤바 스타일
  - 미니게임 스킵 버튼 위치/상호작용 스타일
*/
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("/font/PretendardVariable.woff2") format("woff2-variations");
}

/* 버튼 속성 지정 */
button {
  /* 컬러 지정 */
  color: #fff;
  /* 포인터 지정 */
  cursor: pointer;
  /* transition 효과 추가 */
  transition: all 0.2s ease-in-out;
}

/* 버튼 호버시 */
button:hover {
  /* 더 크게 */
  transform: scale(1.05);
}

/* 스크롤바의 폭 너비 */
.scrollbar::-webkit-scrollbar {
  width: 6px;
}

.scrollbar::-webkit-scrollbar-thumb {
  background: #3372ff;
  /* 스크롤바 색상 */
  border-radius: 6px;
  /* 스크롤바 둥근 테두리 */
}

.scrollbar::-webkit-scrollbar-track {
  background: #e3e9ed;
  /*스크롤바 뒷 배경 색상*/
}

/* ===== Body ===== */
body {
  /* [수정] 스크롤 문제 해결 */
  /* overflow: hidden; -> 삭제: 콘텐츠가 넘치면 스크롤이 생겨야 함 */
  width: 100%; /* 100vw 대신 100% 사용 (스크롤바 너비 제외) */
  font-family: "Pretendard Variable";
  font-size: 14px;
  overflow-y: hidden;
}

/* ===== Header ===== */
header {
  height: 60px;
  width: 100%;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid #e3e9ed;
}

.logo {
  height: 50px;
}

.logo > a {
  display: block;
  height: 100%;
}

.logo > a > img {
  height: 100%;
  width: auto;
}

.header-btn-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  background-color: #fff;
  border: 1px solid #3372ff;
  font-weight: 600;
}

/* 기본 리스트 스타일 제거 */
.select-theme {
  list-style: none;
  width: 80px;
}

/* Theme 버튼 스타일 */
.theme-toggle-btn {
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* 화살표 모양 만들기 (CSS 삼각형) */
.arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #333;
  /* 아래 방향 화살표 */
  transition: transform 0.3s ease;
  /* 회전 애니메이션 */
}

/* 버튼이 활성화(active) 되었을 때 화살표 회전 */
.theme-toggle-btn.active .arrow {
  transform: rotate(180deg);
}

/* 슬라이드 대상이 되는 UL */
.theme-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-height: 0;
  /* 처음에는 숨김 */
  transition: max-height 0.3s ease-out;
  /* 슬라이드 애니메이션 */
  background-color: #f9f9f9;
}

/* UL 내부 버튼들 */
.theme-list button {
  width: 100%;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

.theme-list button:hover {
  background-color: #eee;
}

/* ===== Main ===== */
main {
  min-height: calc(100vh - 60px - 160px);
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.container {
  width: 960px;
  padding: 60px 0;
}

section {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #3372ff;
  border-radius: 12px;
  padding: 20px;
}

.members {
  margin-bottom: 40px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 36px;
}

.table {
  border-top: 2px solid #3372ff;
}

.table-row {
  height: 44px;
  display: flex;
  align-items: stretch;
}

.table-cells {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-checkbox {
  width: 44px;
}

.tc-number {
  width: 60px;
}

.tc-etc {
  width: calc((100% - 44px - 60px) / 4);
}

.table-header {
  font-weight: 600;
  border-bottom: 1px solid #454f57;
}

.table-data {
  border-bottom: 1px solid #454f57;
  max-height: 240px;
  overflow-y: auto;
}

.table-data-list {
  border-bottom: 1px solid #e3e9ed;
}

/* section의 h2 더 크게 */

section > h2 {
  font-size: 32px;
}

/* team-info의 h2 더 크게 */

.team-info > h2 {
  font-size: 40px;
}

/* input(number) 요소 내부의 텍스트 좀 더 오른쪽으로 */
input[type="number"] {
  padding-left: 5px;
  width: 70px;
  height: 30px;
}

/* input(checkbox) 요소 조금 더 크게 */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* 스킵 버튼 스타일 */
#skip-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10005; /* 게임 화면보다 위에 떠야 함 */
  padding: 10px 25px;
  background: rgba(0, 0, 0, 0.6); /* 반투명 검정 */
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.3s;
}

#skip-btn:hover {
  background: white;
  color: #333;
  border-color: white;
}

/* ==== Footer ===== */
footer {
  height: 160px;
  width: 100%;
  padding: 0 120px;
  background-color: #0f1b33;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

footer * {
  color: #8895a0;
}

footer .copyright {
  margin-top: 20px;
}
