/* ------------------------------------------------*/
/* Base CSS Styles Start */
/* ------------------------------------------------*/
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

button:active,
button:focus {
  outline: none !important;
}

button::-moz-focus-inner {
  border: 0 !important;
}

input::-moz-focus-inner {
  border: 0 !important;
}

::-moz-selection {
  background-color: #343434;
  color: #b6b6b6;
  text-shadow: none;
}

::selection {
  background-color: #343434;
  color: #b6b6b6;
  text-shadow: none;
}

html {
  font-family: "pretendard", sans-serif;
  font-size: 36.5%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-user-select: none;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

@media only screen and (min-width: 1200px) {
  html {
    font-size: 56%;
  }
}

@media only screen and (min-width: 1400px) {
  html {
    font-size: 62.5%;
  }
}

body {
  position: relative;
  min-width: 320px;
  background-color: #343434;
  color: #616161;
  line-height: 1;
  overflow-x: hidden !important;
}

img {
  text-decoration: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  outline: 0;
}

a:hover,
a:active,
a:visited {
  text-decoration: none;
}

.overflow-hidden {
  overflow: hidden !important;
}

.color-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.color-layer-medium {
  background-color: rgba(0, 0, 0, 0.4);
}

.color-layer-dark {
  background-color: rgba(0, 0, 0, 0.3);
}

.color-layer-gd {
  background: rgb(0, 0, 0);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 1) 100%
  );
}

/* ------------------------------------------------*/
/* Base CSS Styles End */
/* ------------------------------------------------*/

.ps-ab-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ------------------------------------------------*/
/* Loading Animation End */
/* ------------------------------------------------*/
/* ------------------------------------------------*/
/* Section Tap Start */
/* ------------------------------------------------*/

.section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ------------------------------------------------*/
/* Section Tap End */
/* ------------------------------------------------*/
/* ------------------------------------------------*/
/* Select Start */
/* ------------------------------------------------*/

.content-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 1rem;
  border-radius: 2rem;
  padding: 3rem;
  background-color: rgba(246, 246, 246, 1);
  box-shadow: 1rem 1rem 1rem rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.top-bar {
  margin: initial;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 2rem;
  background-color: #ffffff;
  padding: 2rem 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #343434;
}

.top-bar-first {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.logo-img {
  height: 2.8rem;
  object-fit: contain;
}

.vertical-dash {
  content: "";
  width: 0.15rem;
  height: 2.3rem;
  border-radius: 100px;
  background-color: #888;
  vertical-align: middle;
}

.top-bar-first h1 {
  letter-spacing: -1px;
  text-transform: uppercase;
}
.top-bar-second {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.top-bar-second h1 {
  display: none;
}
@media only screen and (min-width: 1280px) {
  .top-bar-second h1 {
    display: block;
  }
}
.top-bar-second h2 {
  font-size: 3rem;
  transition: color 0.2s ease-in-out;
}
.top-bar-second h2:hover {
  color: #0e9b70;
}

#return {
  cursor: pointer;
}

.dong-menu-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 0;
  border-radius: 2rem;
  overflow-x: auto;
}
.dong-menu-bar::-webkit-scrollbar {
  display: none;
}
.dong-menu-btn {
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  color: #343434;
  background: #fff;
  border: 1px solid #0e9b70;
  border-radius: 500px;
  padding: 1.7rem 2.2rem;
  line-height: 0;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}
.dong-menu-btn.active,
.dong-menu-btn:hover {
  background: #0e9b70;
  color: #fff;
}

.center-content {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 2rem;
  border-radius: 2rem;
  background-color: #fff;
}

.menu-bar {
  display: flex;
  flex-direction: column;
  width: 40%;
  border-radius: 0.8rem;
  background-color: #fff;
}

.select-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scrollbar-color: rgb(141, 141, 141) rgba(255, 255, 255, 0);
  -ms-overflow-style: none; /* for Internet Explorer, Edge */
  scrollbar-width: none; /* for Firefox */
}
.select-container ::-webkit-scrollbar {
  display: none;
}
@media only screen and (min-width: 820px) {
  .select-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 1400px) {
  .select-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.select-box {
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 45rem;
  border-radius: 2rem;
  background-color: rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}
.select-box:hover .select-box-img img {
  transform: scale(1.05);
}
.select-box:hover .select-name-btn {
  background-color: #c4e201;
}
.select-box-img {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
}
.select-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: all 0.2s ease-in-out;
}

.select-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: #ffffff;
  width: 90%;
  padding: 2rem 5rem;
  border-radius: 500px;
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 3px 3px 5px 1px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.2s ease-in-out;
}
.select-name.non-active {
  opacity: 0.2;
}
.select-name-txt {
  display: flex;
  flex-direction: column;
  align-items: left;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}
.select-name-txt h1 {
  font-size: 3rem;
  font-weight: 700;
}
.select-name-txt h2 {
  font-size: 1rem;
  font-weight: 100;
}
.select-name-btn {
  font-size: 1.8rem;
  font-weight: 200;
  text-transform: uppercase;
  text-align: center;
  color: #343434;
  padding: 1.5rem;
  border-radius: 500px;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease-in-out;
}

/* ------------------------------------------------*/
/* Select End */
/* ------------------------------------------------*/
/* ------------------------------------------------*/
/* Chart Start */
/* ------------------------------------------------*/

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 2rem;
  padding: 7rem 3rem;
  background-color: rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  -ms-overflow-style: none; /* for Internet Explorer, Edge */
  scrollbar-width: none; /* for Firefox */
}

.card::-webkit-scrollbar {
  display: none;
}
@media only screen and (min-width: 1400px) {
  .card {
    padding: 5rem 3rem;
  }
}

.chart-title {
  font-size: 2rem;
  font-weight: 800;
  color: #222;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 2rem;
}

.counts {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #555;
  text-align: center;
}

#age-filter-bar {
  position: absolute;
  left: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
#age-filter-bar button {
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background-color: rgb(14, 155, 112);
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 0.78rem;
  padding: 0.5rem 1rem;
  max-width: 4.8rem;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}
#age-filter-bar button:hover {
  color: rgb(14, 155, 112);
  background-color: #fff;
  border: 1px solid #0e9b70;
}
#age-filter-bar button.active {
  color: rgb(14, 155, 112);
  background-color: #fff;
  border: 1px solid #0e9b70;
}

/* ------------------------------------------------*/
/* Chart End */
/* ------------------------------------------------*/
/* ------------------------------------------------*/
/* PDF Start */
/* ------------------------------------------------*/
.pdf-dropdown {
  position: relative;
  display: inline-block;
  margin-left: -0.5rem;
}

.pdf-dropbtn {
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 2.5rem;
  font-weight: 600;
  background: none;
  border: none;
  gap: 0.5rem;
}

.pdf-dropbtn span {
  font-size: 1rem;
  font-weight: 600;
}

.pdf-dropbtn img {
  width: auto;
  height: 2.3rem;
  object-fit: contain;
}

.pdf-dropdown-content {
  pointer-events: none;
  position: absolute;
  top: 120%; /* 버튼 아래로 바로 붙음 */
  left: 0;
  width: max-content; /* 내용에 맞는 너비(너무 길면 min/max-width 추가) */
  border-radius: 1rem;
  border: 1px solid rgba(14, 155, 112, 0.7);
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  transform: scaleY(0);
  transform-origin: top left;
  background-color: #ffffff;
  box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 9999;
  display: block; /* block이 스크롤에 더 적합 */
}

.pdf-dropdown.open .pdf-dropdown-content {
  opacity: 1;
  pointer-events: auto;
  transform: scaleY(1);
  visibility: visible;
}

.pdf-dropdown-scroll {
  display: flex;
  flex-direction: column;
  max-height: 20rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  overscroll-behavior: contain;
  gap: 0.5rem;
}

.pdf-dropdown-scroll::-webkit-scrollbar {
  width: 3px;
  background: #eee;
}

.pdf-dropdown-scroll::-webkit-scrollbar-thumb {
  background: #0e9b70;
  border-radius: 5px;
}

.pdf-dropdown-content a {
  display: block;
  color: #222;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1.6rem;
  font-weight: 400;
  border-radius: 0.5rem;
  white-space: nowrap;
  transition: background 0.3s;
}

.pdf-dropdown-content a:before {
  content: "▷";
  font-size: 1.2rem;
  margin-right: 1.5rem;
  color: #0e9b70;
}

.pdf-dropdown-content a:hover {
  background-color: #eaeaea;
}

#pdf-overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
}

#pdf-popup {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 0 2rem #0008;
  width: 80vw;
  height: 80vh;
  display: flex;
  flex-direction: column;
}

#pdf-popup-close {
  align-self: flex-end;
  margin: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

#pdf-popup-frame {
  flex: 1 1 0;
  width: 100%;
  border: none;
  border-radius: 0 0 1rem 1rem;
}
/* ------------------------------------------------*/
/* PDF End */
/* ------------------------------------------------*/

/* ------------------------------------------------*/
/* Login Start */
/* ------------------------------------------------*/
#login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.login-box {
  background: #fff;
  border-radius: 2rem;
  padding: 3.5rem 4rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
  text-align: center;
}

.login-box h2 {
  font-size: 2.5rem;
  margin: 0 auto;
  margin-bottom: 4rem;
  color: #0e9b70;
}

.login-field {
  margin-bottom: 2rem;
  text-align: left;
}

.login-field label {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.login-field input {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: #2a2a2a;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

.login-field input::placeholder {
  color: #9c9c9c;
}

#login-btn {
  margin-top: 2rem;
  width: 100%;
  padding: 0.9rem;
  font-size: 1.2rem;
  background: #0e9b70;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

#login-btn:hover {
  background: #0c7a58;
}

.login-error {
  color: #c00;
  font-size: 1rem;
  margin-top: 0.8rem;
}

/* input-icon-wrapper: 아이콘을 input 안에 겹치게 배치 */
.input-icon-wrapper {
  position: relative;
}
.input-icon-wrapper input {
  width: 100%;
  padding-right: 3rem; /* 아이콘 공간 확보 */
  box-sizing: border-box;
}
.pwd-toggle {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c7a58;
  transition: color 0.2s;
}
.pwd-toggle:hover {
  color: #333;
}

.pwd-toggle .material-symbols-outlined {
  font-size: 2rem;
}

/* 로그아웃 버튼 스타일 */
#logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: #858585;
  border-radius: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
#logout-btn:hover {
  color: #0e9b70;
}

/* ------------------------------------------------*/
/* Login End */
/* ------------------------------------------------*/

/* ------------------------------------------------*/
/* Etc Start */
/* ------------------------------------------------*/

.bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-transition: 0.6s;
  transition: 0.6s;
}

.blank-height {
  display: block;
  position: relative;
  width: 100%;
  height: 3rem;
}

.blank-height.md {
  height: 1.5rem;
}

.blank-height.xs {
  height: 0.7rem;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ------------------------------------------------*/
/* Etc End */
/* ------------------------------------------------*/
