@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css");

body *{
  font-family: 'pretendard';
}

/* color palette*/
:root {
  --primary: #8C35FA;
  --secondary: #5B1EA8;
  --tertiary: #faf8ff;
  --sucess: #63ff63;
  --info: #FDE41F;
  --warning: red;
  --gray1: #ffffff;
  --gray2: #eaeaea;
  --gray3: #d3d3d3;
  --gray4: #bbbbbb;
  --gray5: #6F6f6f;
  --gray6: #222222;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

/* button {
  border: none;
} */

input:active, 
input:focus,
button:active,
button:focus{
  outline: none;
}

/* 공통 CSS*/
#wrap {
  color: var(--gray6);
  overflow: hidden;
}

#header {
  width: 100%;
  height: 50px;
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  background-color: var(--primary);
  color: var(--gray1);
  border: 0.5px solid #be83fd;
}

.header-btn-left {
  width: 24px;
  height: 24px;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.header-btn-left > img {
  width: 24px;
}

.header {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

#main {
  text-align: center;
}

.container {
  /* padding: 72px 24px; */
}

.container.topDown {
  padding: 72px 0;
}

.bg-white {
  background-color: var(--bg);
}

.bg-dark {
  background-color: var(--primary);
  color: var(--gray1);
}

.color-primary {
  color: var(--primary);
}

.color-info {
  color: var(--info);
}

.btn {
  width: 180px;
  height: 48px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  background-color: var(--secondary);
  border-radius: 10px;
  color: var(--gray1);
  cursor: pointer;
}

.btn-full {
  width: 100%;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
  color: var(--gray1);
}

.btn-small {
  min-width: 90px;
  margin: 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  background-color: var(--secondary);
  border-radius: 3px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--gray1);
}

.divider {
  height: 1px;
  background-color: var(--gray3);
  margin: 0 16px;
}

/* popup - alert */
#popup-wrap {
  max-width: 500px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3;
}

#popup {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#popup-alert {
  width: 68%;
  height: auto;
}

.popup-alert-txt {
  padding: 32px 16px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* popup - terms */
#terms-wrap {
  max-width: 500px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3;
}

#popup-term {
  width: 80%;
  height: auto;
}

#term-pop {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.terms-item {
  width: 100%;
}/* popup - terms */
#terms-wrap2 {
  max-width: 500px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 3;
}

#popup-term2 {
  width: 80%;
  height: auto;
}

#term-pop2 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* 목표 달성 프로그레스 바 */

.goal-text-container>small {
  display: block;
  margin-bottom: 3px;
}

.goal-text-container>p {
  display: flex;
}

/* .goal-text-container>p>#title {
  width: fit-content;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
} */

.achieved-percent {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.range {
  height: 100%;
}

.based-bar {
  width: 100%;
  background: #F0E5FF;
  border: 0.5px solid rgba(140, 53, 250, 0.40);
}

.active-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  background: linear-gradient(270deg, #8C35FA -3.24%, #5B1EA8 102.02%);
  transition: 0.5s width cubic-bezier(0.91, 0.38, 1, 1);
}

.btn-outline {
  color: var(--primary);
  border: 1px solid var(--primary);
  background-color: #FFE51F;
}
.contents-area {
  scrollbar-width: thin;
  scrollbar-color: transparent;
}

.contents-area::-webkit-scrollbar {
  width: 0px;
  background-color: transparent;
}
#footer {
  height: 100%;
  background-color: var(--secondary);
  color: var(--gray1);
}
#footer .info_box{
  padding: 30px 20px;
  box-sizing: border-box;
  border-top: 1px solid rgba(255,255,255,0.3);
  font-size: 12px;
  /* color: var(--tertiary); */
  line-height: 1.85;
  opacity: 0.85;
}




/* 모바일 메뉴 토글 */
#mobilePage.body-fixed{
  overflow: hidden;
}
.menu-overlay{
  display: none;
}
.menu-overlay.menu-open{
  display: block;
}
.menu-overlay.menu-open nav{
  left: 0;
  /* transition-delay: 0.2s; */
  animation: slideIn 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}
.menu-overlay.menu-close nav{
  animation: slideOut 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}
@keyframes slideIn {
  from {
    opacity: 0;
    left: -100%;
  }
  to {
    opacity: 1;
    left: 0;
  }
}
@keyframes slideOut {
  from {
    opacity: 1;
    left: 0;
  }
  to {
    opacity: 0;
    left: -100%;
  }
}
/* #custom-datepicker# */
#ui-datepicker-div{
  font-family: 'Noto Sans KR', sans-serif;
}
.ui-datepicker-header {
  background-color: rgba(140, 53, 250, 0.05);
  color: #444;
}
.ui-datepicker-title {
  font-weight: 500;
  background: #F9F5FF;
  border-radius: 10px;
  display: flex;
  gap: 15px;
  justify-content: center;
}
.ui-datepicker-title select{
  background: #F9F5FF;
  width: 35%;
}
.ui-datepicker-calendar thead th{
  font-weight: 500;
}
.ui-datepicker-title *:focus{
  outline: none;
}
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active{
  border: none;
  background: none;
  font-weight: normal;
  color: #444;
  text-align: center;
  padding: 6px;
}
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
  border: 1px solid var(--primary);
  background: var(--primary);
  border-radius: 5px;
  font-weight: normal;
  color: #fff;
}
.ui-widget-header .ui-icon {
  background-image: none;
}
.ui-datepicker-prev{
  background-image: url(/assets/images/icon_left.svg);
  background-repeat: no-repeat;
  background-position: 50%;
}
.ui-datepicker-next{
  background-image: url(/assets/images/icon_right.svg);
  background-repeat: no-repeat;
  background-position: 50%;
}

/* #custom radio button# */
input[type="radio"] {
  display: none;
}
input[type="radio"]#female:checked + label, input[type="radio"]#male:checked + label{
  font-weight: 800;
  border: 1px solid var(--primary);
  background: #F9F5FF;
}
.ui-datepicker-trigger {
  position: absolute;
  top:18px;
  right: 12px;
}

/* custom radio thumbnail */
input[type="radio"].selected-thumbnail + label{
  color: #ccc;
}
input[type="radio"].selected-thumbnail:checked + label{
  /* font-weight: 800; */
  border: 1px solid #04E000;
  background: rgb(255, 255, 255, 0.1);
  color: #04E000;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

.ui-datepicker-trigger {
  position: absolute;
  top:18px;
  right: 12px;
}

/* custom checkbox */
.custom-checkbox+ label div {
  background: url('/assets/images/checkbox.svg') no-repeat 0 / contain
}
.custom-checkbox:checked + label div {
  background: url('/assets/images/checkbox-active.svg') no-repeat 0 / contain
}

.input-validation input.active{
  border: 1px solid #DE3939;
  background: rgba(222, 57 ,57, .05);
}
.invalid-message.active{
  color: #DE3939;
  font-size: 13px;
  margin-top: 10px;
}


/* 메뉴 리스트 active */
/* .menu-overlay ul .active::before{
  content: '';
  position: absolute;
  left: -20px;
  right: -20px;
  top: 0;
  bottom: 0;
  display: block;
  background: var(--secondary);
  /* z-index: -1; } 
*/



/* slick slide dot custom*/
.slick-track{
  padding: 30px 0px;
}
.slick-dots {
  position: absolute;
  bottom: -15px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.slick-dots li {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 0 5px;
  padding: 0;
  background-color: rgba(140, 53, 250, 0.20);;
  cursor: pointer;
  overflow: hidden;
}

.slick-dots li.slick-active {
  background-color: var(--primary);
}

.slick-dots li button {
  color: transparent;
}
.slick-center {
  transform: scale(1.08); /* 크게 보이도록 확대 */
  transition: transform 0.1s ease; /* 부드러운 애니메이션 효과를 적용할 수 있습니다. */
}


/* datepicker icon */
.datepicker-cal{
  background-image: url(../assets/images/calendar.svg);
  background-position: 96% center;
  background-repeat: no-repeat;
}

/* tutorial-tab active */
.tutorial-content.active {
  display:block;
}

@media (min-width: 500px) {
  /* 펀딩리스트 카드 높이 */
  .list-container ul li article .card-user-img{
    height: 250px;
  }
  .img-app{
    height: 27vw !important;
  }
}