@import url("./dialog.css");

/* 레이아웃 */
body {
  /* 100vh - Navigation Bar Height - Content Position */
  height: calc(100vh - 45px - 14px);
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
section {
  margin-bottom: 0;
}

/* 헤더 */
.header {
  background-color: var(--accent-color);
  background-image: url("../src/img_ranking_bg_shape.svg");
  background-repeat: no-repeat;
  padding: 30px 30px 40px 30px;
}
/* 헤더 - 닫기 버튼 */
.header__close {
  text-align: right;
}
.header__close button {
  width: auto;
  background: none;
  display: inline-flex;
  align-items: center;
  column-gap: 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--white-color);
  opacity: 0.6;
}
/* 헤더 - 프로필 */
.header-profile {
  width: 100%;
  display: flex;
  align-items: center;
  column-gap: 20px;
  margin-top: 20px;
}
.header-profile__thumbnail {
  width: 72px;
  height: 72px;
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  background: #f86600;
}
.header-profile__thumbnail img {
  width: 100%;
  height: auto;
}
.header-profile-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  flex: 1;
}
.header-profile-info__title {
  font-size: 21px;
  font-weight: 500;
  color: var(--white-color);
}
.header-profile-info__status {
  width: 100%;
  display: flex;
  align-items: center;
  column-gap: 5px;
}
.header-profile-info__status .medal {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--white-color);
  column-gap: 7px;
}
.header-profile-info__status .dot {
  width: 3px;
  height: 3px;
  border-radius: 100%;
  background: var(--white-color);
}
.header-profile-info__status .age {
  font-size: 13px;
  font-weight: 600;
  color: var(--white-color);
}

/* ---------------------------------------------------- */

/* 메인 */
.main-container {
  background: var(--white-color);
  position: relative;
  top: -20px;
  border-radius: 20px;
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100%;
  padding: 45px 25px 100px 25px;
}
.main-container::-webkit-scrollbar {
  display: none;
}

/* 사용 가능한 이용권 & 진행중인 뇌운동 & 뇌운동 사용 가이드 */
.ticket, .training, .guide {
}
.ticket-title,
.training-title,
.guide-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.ticket-title__count,
.training-title__count,
.guide-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  column-gap: 5px;
}
.ticket-title__expired,
.training-title__expired {
  background: none;
  width: auto;
  display: flex;
  align-items: center;
  color: rgba(35, 34, 33, 0.4);
  column-gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
.ticket-title__close {
  background: none;
  width: auto;
}

/* 아이템 리스트 */
.item-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 25px;
  row-gap: 15px;
}

/* 이용권 슬라이더 */
.ticket-swiper {
  position: relative;
}
.ticket-swiper .swiper-button-prev,
.ticket-swiper .swiper-button-next {
  width: 24px;
  height: 24px;
  opacity: 0.4;
  background-size: 14px 44px;
  margin-top: -33px;
}
.ticket-swiper .swiper-button-prev {
  left: 0;
  background-image: url("../src/ico_swiper_prev.svg");
}
.ticket-swiper .swiper-button-next {
  right: 0;
  background-image: url("../src/ico_swiper_next.svg");
}
.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
  opacity: 0 !important;
}

/* 이용권 카드 */
.ticket-card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  box-sizing: border-box;
  flex-direction: column;
}
.ticket-card {
  width: 280px;
  height: 150px;
  background-size: 280px 150px;
  background-repeat: no-repeat;
  padding: 25px 20px;
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
}
.ticket-card-name {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  column-gap: 5px;
}
.ticket-card-name img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(309deg) brightness(100%) contrast(103%);
}
.ticket-card-name span {
  font-size: 12px;
  font-weight: 600;
  color: var(--white-color);
  padding-top: 5px;
}
.ticket-card__desc {
  font-weight: 600;
  font-size: 18px;
  color: var(--white-color);
  margin-bottom: 15px;
}
.ticket-card__button {
  width: auto;
  background: rgba(0, 0, 0, 0.1);
  padding: 13px;
  color: var(--white-color);
  font-size: 12px;
  font-weight: 500;
  border-radius: 10px;
}
.ticket-card.expired {
  background-image: url("../src/img_ticket_expired.png");
}
.ticket-card.green {
  background-image: url("../src/img_ticket_green.png");
}
.ticket-card.blue {
  background-image: url("../src/img_ticket_blue.png");
}
.ticket-card.purple {
  background-image: url("../src/img_ticket_purple.png");
}
.ticket-card.empty {
  background-image: url("../src/img_ticket_empty.png");
}
.ticket-card.empty .ticket-card-name img {
  opacity: 0.4;
  filter: none;
}
.ticket-card.empty .ticket-card__desc {
  color: rgba(35, 34, 33, 0.3);
}
.ticket-card.empty .ticket-card__button {
  background: var(--accent-color);
  box-shadow: 0px 4px 12px 1px #00000026;
}
.ticket-card-info {
  display: flex;
  align-items: start;
  column-gap: 5px;
  margin-top: 15px;
  width: 280px;
}
.ticket-card-info > img {
  opacity: 0.4;
}
.ticket-card-info .ticket-card-name img {
  opacity: 0.4;
}
.ticket-card-info span {
  color: rgba(35, 34, 33, 0.4);
  font-size: 12px;
  word-break: break-all;
}

/* ---------------------------------------------------- */

/* 진행중인 뇌운동 */
.training {
}
.training-item-list {
  display: flex;
  margin-top: 20px;
  flex-direction: column;
  row-gap: 30px;
}
.training-item {
  display: flex;
  align-items: center;
  column-gap: 20px;
}
.training-item__img {
  width: 90px;
  height: 90px;
  border-radius: 20px;
}
.training-item-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}
.training-item-info__title {
  font-size: 15px;
  font-weight: 600;
}
.training-item-info__desc {
  font-size: 12px;
  font-weight: 500;
  color: rgba(35, 34, 33, 0.4);
  
}
.training-item-info__content {
  width: 100%;
  display: flex;
  align-items: center;
  column-gap: 12px;
}
.training-item-info__content button {
  width: auto;
  padding: 10px 15px;
  background: var(--accent-color);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white-color);
  box-shadow: 0px 4px 12px 1px #00000026;
}
.training-item-info-expire {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}
.training-item-info-expire__title {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-color);
  column-gap: 5px;
}
.training-item-info-expire__title img {
  padding-bottom: 3px;
}
.training-item-info-expire__bar {
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: #dddbda;
  position: relative;
  margin-right: 10px;
}
.training-item-info-expire__bar-active {
  position: absolute;
  width: 0;
  height: 4px;
  border-radius: 10px;
  background: var(--accent-color);
}
.training-item.closed {
  opacity: 0.4;
}
.training-item.closed .training-item-info__content button {
  background: rgba(35, 34, 33, 0.4);
  color: var(--body-font-color);
  box-shadow: none;
}
.training-item.open .training-item__img {
  opacity: 0.4;
}
.training-item.open .training-item-info__content button {
  background: #93C44B;
}
.training-item.hide {
  display: none;
}
.training-more {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.training-more button {
  display: flex;
  align-items: center;
  color: #BCB5AD;
  font-size: 15px;
  font-weight: 700;
  column-gap: 8px;
  width: auto;
  background: none;
}

/* ---------------------------------------------------- */

/* 뇌운동 사용 가이드 */
.guide {
  margin-top: 30px;
}
.guide-button-list {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 15px;
  margin-top: 20px;
}
.guide-button {
  width: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  padding: 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
  text-align: left;
  box-shadow: 4px 8px 8px 0px #BCB5AD33;
  
}
.guide-button.book {
  background: #64B8F6;
}
.guide-button.faq {
  background: #93C44B;
}
.guide-button.kakao {
  background: #FED71A;
}

/* ---------------------------------------------------- */

/* 기존 CSS */
/* main-popup */
#layer-popup header {
  background: var(--primary-color);
  color: var(--white-color);
  font-size: 18px;
  font-weight: 700;
}
#layer-popup .content ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#layer-popup .content ul li {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  gap: 20px;
  font-size: 18px;
  font-weight: 700;
}
#layer-popup .content li img {
  width: 100px;
  height: 100px;
}

/* pop-up */
#guide-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.8);
}
#guide-popup.show {
  display: block;
}
#guide-popup .popup-cancle {
  z-index: 99;
  width: auto;
  position: absolute;
  top: 13px;
  right: 28px;
  background: transparent;
  padding: 10px;
}
#guide-popup .popup-cancle svg {
  fill: var(--primary-color);
  width: 34px;
  height: 34px;
}
#guide-popup .guide-wrap {
  overflow: hidden auto;
  margin: 0 auto;
  max-width: 460px;
  width: 100%;
  height: 100%;
}
#guide-popup .guide-wrap .swiper-wrapper {
  align-items: center;
}
#guide-popup .guide-wrap .swiper-slide {
  height: fit-content;
  padding: 0 20px;
  box-sizing: border-box;
}
#guide-popup .guide-wrap .swiper-slide img {
  width: 100%;
}
/* faq-popup */
#faq-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.8);
}
#faq-popup.show {
  display: block;
}
#faq-popup .popup-cancle {
  z-index: 99;
  width: auto;
  position: absolute;
  top: 3%;
  right: 4%;
  background: transparent;
}
#faq-popup .popup-cancle svg {
  fill: var(--primary-color);
  width: 40px;
  height: 40px;
}
#faq-popup .popup-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  padding: 30px;
  max-width: 460px;
  width: 90%;
  height: 90%;
  border-radius: 30px;
  border: 5px solid #f28d45;
  background: #fff;
  box-sizing: border-box;
}
#faq-popup .popup-wrap .header {
  padding-bottom: 0 0 16px 0;
  text-align: center;
  border-bottom: 4px solid #f28d45;
  background: none;
}
#faq-popup .popup-wrap .header img {
  max-width: 395px;
  width: 80%;
}
.faq-list {
  overflow: hidden auto;
  padding-top: 20px;
  height: calc(100% - 110px);
  box-sizing: border-box;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.faq-list::-webkit-scrollbar {
  display: none;
}
.faq-list hr.line {
  width: 100%;
  background: #f28d45;
  height: 1px;
  border: 0;
}
.faq-list .item {
  overflow: hidden;
  border-radius: 20px;
}
.faq-list .item .quest {
  position: relative;
  display: flex;
  padding: 20px;
  line-height: 1.2;
  color: #fff;
  font-weight: 700;
  background: #FF8000;
  box-sizing: border-box;
}
.faq-list .item .quest p {
  width: calc(100% - 50px);
}
.faq-list .item .quest::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  margin-right: 10px;
  width: 20px;
  height: 25px;
  background: url("../src/ico_question.svg") no-repeat center/100% auto;
}
.faq-list .item .quest::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: block;
  width: 20px;
  height: 20px;
  background: url("../src/ico_arrow_down.png") no-repeat center/60% auto;
}
.faq-list .item .quest.on::after {
  background-image: url("../src/ico_arrow_up.png");
}
.faq-list .item .answer {
  position: relative;
  display: none;
  padding: 20px;
  line-height: 1.2;
  color: #000;
  font-weight: 700;
  background: #F2F0EF;
  box-sizing: border-box;
}
.faq-list .item .answer p {
  display: inline-block;
  width: calc(100% - 40px);
}
.faq-list .item .answer::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  margin-right: 10px;
  width: 20px;
  height: 20px;
  vertical-align: top;
  background: url("../src/ico_answer.svg") no-repeat center/100% auto;
}