/* ── 공통 리셋 ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 2px 2px;
  text-align: center; /* 인라인/텍스트 요소 중앙 정렬 */
  border-radius: 10px;
  outline-offset: 2px;
}

/* ── 전체 콘텐츠 중앙 정렬 ── */
html {
  height: 100%;
  margin: 0 auto;

}
/* ── 기본 스타일: 전체 테마 ── */
/* ── 기본 스타일: 전체 테마 ── */
body {
  font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
  text-align: center;

  position: relative;
  width: 97%;
  max-width: 100vw;           /* 뷰포트 초과 방지 */
  background: linear-gradient(135deg, #ffffffdf, #ffffffea);
  color: #292929b8;             /* 흰색 글씨 */
  font-weight: bold;          /* 글씨 두껍게 */
  text-shadow: 1px 1px 8px rgba(178, 178, 178, 0.7); /* 중앙 그림자 효과 */

  display: flex;

  flex-direction: column; /* 위 아래 쌓기 방식 */
  margin: 0 auto;

  overflow-x: auto;           /* ← 좌우 스크롤 가능하게 설정 */
  overflow-y: auto;
}



h1, h2, h3 {
  text-align: center;         /* 가운데 정렬 */
  margin-inline-start: 0;
  margin-inline-end: 0;
  unicode-bidi: isolate;
}


/* ── 배경 애니메이션 컨테이너 ── */
/* ── 배경 애니메이션 컨테이너 ── */
.orbit-container {
  position: absolute;

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -5000;
  pointer-events: none;
  overflow: hidden;
  background: transparent; /* 배경 투명하게 명시 */

}

/* ── 원 애니메이션 ── */
/* ── 원 애니메이션 (속도 느림 + 위치 재배치) ── */
.circle {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  opacity: 0.2; /* 약간 더 투명하게 */
  animation: randomMove 40s ease-in-out infinite; /* 느리게 변경 */
  filter: blur(0px); /* 블러 효과 */
  box-shadow: 0 0 80px rgba(0, 255, 0, 0); /* 네온 글로우 느낌 */
}


@keyframes randomMove {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(200px, -150px); }
  40%  { transform: translate(-250px, 120px); }
  60%  { transform: translate(180px, 200px); }
  80%  { transform: translate(-200px, -180px); }
  100% { transform: translate(0, 0); }
}

/* 새롭게 재배치된 원 좌표 */
.circle:nth-child(1) { top: 5%;  left: 10%; background: radial-gradient(circle, rgba(255,92,92,0.9), rgba(255,0,0,0.9)); animation-delay: 0s; }
.circle:nth-child(2) { top: 60%; left: 5%;  background: radial-gradient(circle, rgba(92,255,92,0.9), rgba(0,255,0,0.9)); animation-delay: 2s; }
.circle:nth-child(3) { top: 30%; left: 25%; background: radial-gradient(circle, rgba(92,92,255,0.9), rgba(0,0,255,0.9)); animation-delay: 4s; }
.circle:nth-child(4) { top: 10%; left: 40%; background: radial-gradient(circle, rgba(255,92,255,0.9), rgba(255,0,255,0.9)); animation-delay: 6s; }
.circle:nth-child(5) { top: 75%; left: 55%; background: radial-gradient(circle, rgba(255,255,92,0.9), rgba(255,255,0,0.9)); animation-delay: 8s; }
.circle:nth-child(6) { top: 50%; left: 35%; background: radial-gradient(circle, rgba(92,255,255,0.9), rgba(0,255,255,0.9)); animation-delay: 10s; }


/* ── 태극 곡선 ── */

/* ── 푸터 영역 (글래스+아래쪽 태극 곡선) ── */
footer {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* 글래스 배경 */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);

  /* flex를 이용해 내부 텍스트를 아래쪽 중앙에 배치 */
  display: flex;
  justify-content: center;      /* 가로 중앙 */
  align-items: flex-end;        /* 세로 하단 */
  padding-bottom: 20px;         /* 아래쪽 여백 (필요에 따라 조절) */
  border-radius: 12px 12px 0 0;

  box-sizing: border-box;
}

footer::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 200px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23007bff' fill-opacity='0.4' d='M0,100 C360,200 720,0 1080,100 C1260,160 1440,100 1440,100 L1440,200 L0,200 Z' /%3E%3C/svg%3E") no-repeat bottom;
  pointer-events: none;
  z-index: -1;
}

/* ── 푸터 콘텐츠 예시 ── */
footer .content {
  /* position: relative은 없어도 됩니다. */
  text-align: center;
  font-size: 1rem;
}




/* ── 햄버거 & 메뉴 오버레이 ── */
.hamburger {
  background: none;
  color: rgb(255, 255, 255);
  font-size: 1.8rem;
  cursor: pointer;
}
.menu-overlay {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100%;
  background: rgba(255, 7, 7, 0.266);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 4px 0 30px rgba(0,0,0,0.5);
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: left 0.4s ease;
  z-index: 999;
}
.menu-overlay.active {
  left: 0;
}

/* ── 메뉴 리스트: 3D 블루 글라스 ── */
.menu {
  list-style: none;
  padding: 80px 1px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 350px;

}
.menu-item {
  width: 90%;
  max-width: 350px;
  margin-bottom: 10px;
  padding: 7px 7px;
  background: rgba(255, 0, 0, 0.439);
  backdrop-filter: blur(0px) saturate(100%)hue-rotate(145deg)	 ;
  -webkit-backdrop-filter: blur(16px) saturate(200%)  
  ;
  border: 0px solid rgba(255, 255, 255, 0.058);
  border-radius: 20px;
  box-shadow: 
inset 0px 0px 3.03px -9px rgb(62 63 184 / 32%), inset 1px 0.01px 0px -14px rgb(30 37 163 / 56%), inset 0px 0px 10px 3px rgb(82 80 112 / 20%), 0px 0px 2px 1px rgb(47 43 93 / 53%), 0.3px 0.3px 1px rgb(123 125 238 / 30%);


  transform: translateZ(20px) translateY(0);
  opacity: 0;
  animation: slideIn 0.5s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-item:hover {
  transform: translateY(-5px) translateZ(20px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5), inset 0 0 12px rgba(255,255,255,0.25);
}
@keyframes slideIn {
  to { opacity: 1; transform: translateZ(20px) translateX(0); }
}
.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }
.menu-item:nth-child(7) { animation-delay: 0.7s; }

/* ── 드롭다운 ── */
.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.dropdown-content {
  list-style: none;
  padding-left: 20px;
  margin-top: 10px;
  display: none;
  font-size: 1rem;
  text-align: center;
}
.menu-item.dropdown.active > .dropdown-content {
  display: block;
}

/* ── 링크: 네온 오렌지 + 화이트 ── */
.menu-item a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s, text-shadow 0.3s;
  font-weight: bold;          /* 글씨 두껍게 */

}
.menu-item a:hover {
  color: #ff00009c;
  text-shadow: 0 0 6px rgba(225, 255, 0, 0.652), 0 0 8px rgba(229, 255, 0, 0.6);
}

/* ── 메인 콘텐츠 여백 ── */
.main-content {
  padding-top: 80px;
}

/* ── 테이블: 3D 블루 글라스 ── */
table {
  padding: 6px 8px;

  margin: 5px auto;
  border-collapse: collapse;
  table-layout: fixed;
  border-radius: 30px;
  backdrop-filter: blur(56px) saturate(200%) hue-rotate(90deg)	 ;
  -webkit-backdrop-filter: blur(16px) saturate(200%) 
  ;
  border: 3px solid rgba(255, 255, 255, 0.058);

  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(184, 184, 184, 0.113));
  box-shadow: 
inset 0px 0px 3.03px -9px rgb(62 63 184 / 32%), inset 1px 0.01px 0px -14px rgb(30 37 163 / 56%), inset 0px 0px 10px 3px rgb(82 80 112 / 20%), 0px 0px 2px 1px rgb(47 43 93 / 53%), 0.3px 0.3px 1px rgb(123 125 238 / 30%);


  border: 0px solid rgba(255, 255, 255, 0); /* 얇은 경계선 */
    transform: translateZ(10px);
  transition: transform 0.3s ease;
}
table th, table td {
  padding: 6px;
  text-align: center;
  word-wrap: break-word;

}
table th {
  font-size: 16px;
}
table td:hover {
  background: rgba(255, 255, 255, 0);
  cursor: pointer;
}

/* ── 폼: 3D 블루 글라스 ── */
form {
  padding: 6px 12px;
  margin: 0 auto 10px auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;

  width: fit-content;
  min-width: 70px;
  max-width: 100%;
  box-sizing: border-box;
  border: 3px solid rgba(255, 255, 255, 0.058);

  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(184, 184, 184, 0.113));
  backdrop-filter: blur(56px) saturate(200%) hue-rotate(135deg)	;
  -webkit-backdrop-filter: blur(16px) saturate(200%)  
  ;
  box-shadow:
inset 0px 0px 3.03px -9px rgb(62 63 184 / 32%), inset 1px 0.01px 0px -14px rgb(30 37 163 / 56%), inset 0px 0px 10px 3px rgb(82 80 112 / 20%), 0px 0px 2px 1px rgb(47 43 93 / 53%), 0.3px 0.3px 1px rgb(123 125 238 / 30%);


  transition: all 0.3s ease-in-out;
}

/* ── 숫자 입력 & 셀렉트: 3D 블루 글라스 ── */
/* ── 수정된 글래스모피즘 3D input & select ── */
input[type="number"],
input[type="text"],
select {
  position: relative;
  padding: 5px;
  width: 70%;
  min-width: 70px;
  max-width: min-content;
    background: rgba(197, 1, 1, 0.717);
  /* 블러 효과 제거 */
  /* backdrop-filter: blur(12px); */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  text-align: center;
  font-size: 1rem;
  color: #eef6ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow:
    /* 네온 블루 힌트 */
    0 0 10px rgba(0, 180, 255, 0.3),
    /* 떠 있는 듯한 외부 그림자 */
    0 8px 24px rgba(0, 0, 0, 0.20),
    /* 내부 하이라이트 */
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transition: all 0.25s ease-in-out;
  transform: perspective(400px) translateZ(4px);
}

/* 반사광 레이어 (::before) */
input[type="number"]::before,
input[type="text"]::before,
select::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: rotate(45deg) translateX(-100%);
  opacity: 0.4;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

input[type="number"]:hover::before,
input[type="text"]:hover::before,
select:hover::before {
  transform: rotate(45deg) translateX(100%);
  opacity: 0.2;
}

/* 네온 레드 그라데이션 글로우 (::after) - 블러 제거 */
input[type="number"]::after,
input[type="text"]::after,
select::after {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: inherit;
  background: linear-gradient(
    45deg,
    rgba(255, 0, 0, 0.3),
    rgba(255, 0, 0, 0)
  );
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

/* 포커스 시 강조 */
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 0, 0, 0.8);
  box-shadow:
    /* 붉은 포커스 글로우 */
    0 0 15px rgba(255, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  outline: none;
  transform: perspective(400px) translateZ(8px);
}

/* ── 버튼: 레드 네온 글라스 ── */
button {
  padding: 6px 12px;

  font-size: 1.0rem;
  background: rgb(255, 0, 0);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.504);
  border-radius: 6px;
  color: #fff;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.335), 0 0 12px rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  transform: none; /* ← 수정: 클릭 위치 이상 방지 */
  vertical-align: top; /* ← 클릭 상단 정렬 */
}
button:hover {
  background: rgba(8, 103, 158, 0.331);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.507), 0 0 16px rgba(255,255,255,0.8);
}

/* ── 체크박스: 네오뮤퍼즘 + 블루-퍼플 글라데이션 글라스 ── */
.filter-pill input[type="checkbox"] {
  appearance: none;
  width: 26px;
  height: 26px;
  background: linear-gradient(145deg, rgba(150, 180, 255, 0.15), rgba(200, 155, 255, 0.15));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  box-shadow:
    /* 외곽 라이트 쉐도우 */
    -4px -4px 8px rgba(255, 255, 255, 0.6),
    /* 외곽 다크 쉐도우 */
    4px 4px 8px rgba(0, 0, 0, 0.2),
    /* 내부 글라스 효과 */
    inset 0 0 6px rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease-in-out;
  margin-right: 8px;
  flex-shrink: 0;
  vertical-align: middle;
}

.filter-pill input[type="checkbox"]:hover {
  box-shadow:
    -4px -4px 12px rgba(255, 255, 255, 0.8),
    4px 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 0 8px rgba(255, 255, 255, 0.3);
}

.filter-pill input[type="checkbox"]:active {
  transform: scale(0.95);
}

.filter-pill input[type="checkbox"]:checked {
  background: linear-gradient(145deg, rgba(150, 180, 255, 0.3), rgba(200, 155, 255, 0.3));
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 2px 2px 4px rgba(0, 0, 0, 0.25),
    inset -2px -2px 4px rgba(255, 255, 255, 0.4);
}

.filter-pill input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid rgba(50, 50, 50, 0.8);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 선택 해제 버튼에 글라스 호버 효과 추가 */
#clearFilter:hover {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), 0 0 4px rgba(255,255,255,0.2);
  transition: all 0.2s ease-in-out;
}




/* ── 헤더: 3D 블루 글라스 ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 1rem;
  background: linear-gradient(145deg, rgba(39, 15, 224, 0.196), rgba(96, 0, 239, 0.293));
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 0 12px 12px;
  box-shadow:
inset 0px 0px 3.03px -9px rgb(62 63 184 / 32%), inset 1px 0.01px 0px -14px rgb(30 37 163 / 56%), inset 0px 0px 10px 3px rgb(82 80 112 / 20%), 0px 0px 2px 1px rgb(47 43 93 / 53%), 0.3px 0.3px 1px rgb(123 125 238 / 30%);
  color: #fff;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  transition: background 0.3s ease;
  z-index: 20000;
  
}
header:hover {
  background: linear-gradient(145deg, rgba(215, 9, 9, 0.702), rgba(223, 21, 21, 0.795));
}

/* ── 헤더 레이아웃 ── */
.header-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-container .logo-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3.5s ease-in-out infinite;
}
@keyframes pulse {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50%  { transform: translate(-50%, -50%) scale(1.7); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
}
.logo:hover {
  animation: shake 0.5s;
}
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}



/* ── 반사광 애니메이션 재정의 (헤더 외 다른 요소에도 적용 가능) ── */
.shine-effect {
  position: relative;
  overflow: hidden;
}
.shine-effect::before {
  content: "";
  position: absolute;
  top: 0; left: -150%;
  width: 150%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.351) 50%,
    transparent 70%
  );
  transform: skewX(-25deg);
  animation: shine 6s infinite;
  pointer-events: none;
}

/* ── 느린 반사광 키프레임 ── */
@keyframes shine-slow {
  0%   { left: -150%; }
  50%  { left: 150%; }
  100% { left: 150%; }
}

/* ── 헤더와 shine-effect 클래스 반사광 속도 조정 ── */
header::before,
.shine-effect::before {
  animation: shine-slow 6s infinite;
}










  /* ===== 탭 컨테이너 스타일 ===== */
  .tabs { 
    display: flex;              /* 가로로 버튼을 나열하는 Flex 컨테이너 */
    border-bottom: 2px solid #ff00001f; /* 탭 아래 경계선 */
    margin-bottom: 0em;         /* 콘텐츠와 간격 */
  }
  .tabs button {
    flex: 1;                    /* 모든 버튼 동일한 너비 */
    padding: 0;                 /* 내부 여백 제거 */
    margin: 0;                  /* 버튼 간 마진 제거 */
    background:rgba(25, 3, 104, 0.097);        /* 배경색 변경 */
    border: none;               /* 기본 테두리 제거 */
    border-right: 1px solid #ddd; /* 버튼 사이 경계선 */
    cursor: pointer;            /* 마우스 커서 변환 */
    font-size: 0.75em;          /* 글자 크기 더 작게 */
    transition: background 0.2s; /* 호버 시 배경 전환 효과 */
  }
  .tabs button:last-child { 
    border-right: none;         /* 마지막 버튼에는 우측 경계선 제거 */
  }
  .tabs button:hover { 
    background:rgba(0, 0, 0, 0.1);        /* 호버 시 배경색 변경 */
  }
  .tabs button.active {
    background:rgba(255, 0, 0, 0.643);             /* 활성 탭 배경 */
    border-bottom: 3px solidrgba(255, 0, 0, 0.54); /* 활성 탭 강조 밑줄 */
    font-weight: bold;          /* 활성 탭 글자 굵게 */
  }

  /* ===== 탭 콘텐츠 스타일 ===== */
  .tab-content > div {
    display: none;              /* 기본적으로 모든 콘텐츠 숨김 */
    padding: 0.8em;             /* 내부 여백 */
    background:rgba(255, 0, 0, 0);        /* 배경색 변경 */
    border: 1px solid #f7000056;     /* 테두리 */
    border-top: none;           /* 위쪽 테두리는 탭과 겹침 방지 */
    border-radius: 30px 30px 30px 30px; /* 하단 모서리 둥글게 */
    font-size: 0.9em;           /* 글자 크기 */
  }
  .tab-content > div.active { 
    display: block;             /* 활성 탭에 해당하는 콘텐츠만 보이기 */
  }