@font-face {
  font-family: 'TTTogether';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/TTTogetherA.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

h3 {
  font-size: 17px; /* override bootstrap settings */
}

h4 {
  font-size: 16px; /* override bootstrap settings */
}

.btn-blue-fill {
  padding: 6px 12px;
  word-break: keep-all;
}

.btn-login {
  display: block;
  width: 100%;
  font-size: 1.6rem;
  font-weight: 500;
  color: #fff !important;
  background-color: var(--color-blue-50);
  border: none; 
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  position: relative;
}
.btn-login-wrapper .position-absolute {
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  text-align: center;
  padding: 4px 8px;
  font-size: 1.2rem;
  color: #fff;
  background-color: var(--color-grey-80);
  border-radius: 6px;
  line-height: 1.6;
  box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.15);
}
.btn-login-wrapper .position-absolute span {
  color: #3beaff;
}
.btn-login-wrapper .position-absolute::before {
  position: absolute;
  bottom: -3px;
  left: 50%;
  content: ' ';
  border-radius: 2px;
  background-color: var(--color-grey-80);
  width: 8.5px;
  height: 8.5px;
  transform: translateX(-50%) rotate(135deg);
}

.glowing {
  position: relative;
  transition: 0.7s;
  overflow: hidden;
}

.glowing > span.position-absolute {
  display: block;
}

.glowing > span.position-absolute:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-blue-50));
  animation: glowing-top 2.5s linear infinite;
}
@keyframes glowing-top {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}
.glowing span.position-absolute:nth-child(2) {
  top: -100%;
  right: 0;
  width: 1.5px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--color-blue-50));
  animation: glowing-right 2.5s linear infinite;
  animation-delay: 0.25s;
}
@keyframes glowing-right {
  0% { top: -100%; }
  50%, 100% { top: 100%; }
}
.glowing span.position-absolute:nth-child(3) {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, var(--color-blue-50));
  animation: glowing-bottom 2.5s linear infinite;
  animation-delay: 0.50s;
}
@keyframes glowing-bottom {
  0% { right: -100%; }
  50%, 100% { right: 100%; }
}
.glowing span.position-absolute:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 1.5px;
  height: 100%;
  background: linear-gradient(360deg, transparent, var(--color-blue-50));
  animation: glowing-left 2.5s linear infinite;
  animation-delay: 0.75s;
}
@keyframes glowing-left {
  0% { bottom: -100%; }
  50%, 100% { bottom: 100%; }
}

/* 띠배너 */
main .toast-container {
  width: inherit;
}

.banner {
  position: relative;
  width: 100%;
  padding: 5px 1rem;
  font-weight: 300;
  font-size: 1.3rem;
  background-color: #004DF0; 
  border-radius: 5px;
}

.banner .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0.6;
}

.toast-black-transparent {
  position: absolute;
  z-index: -1;
  max-width: calc(700px - 4.5rem);
  width: calc(100% - 4.5rem);
  transform: translateX(1.8rem);
  top: 1.5rem;
  padding: 5px 1rem;
  font-weight: 400;
  font-size: 1.4rem;
  border-radius: 5px;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.25);
  background-color: rgba(0, 0, 0, 0.9);
}
.toast-black-transparent button[data-bs-dismiss="toast"] {
  background: none;
  font-weight: bold;
  color: var(--color-blue-50);
  font-size: 1.4rem;
  min-width: 26px;
}
.toast-black-transparent.coinone-apikeyuser button.cta {
  padding: 8px 1rem;
  border-radius: 7px;
  background: var(--color-blue-50);
  color: white;
  font-weight: bold;
  min-width: 74px;
  font-size: inherit;
}

/* menu */
.menu-explain {
  margin: 3rem 0;
}

.menu-explain .divider {
  width: 100%;
  height: 1px;
  background: #e8ebed;
}
.menu-explain .text {
  margin: 0 1rem;
  min-width: fit-content;
}

.menu__imgbox {
  background-color: var(--color-grey-20);
  padding: 8px;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 5px;
  justify-self: center;
}
.menu__imgbox.menu-mission {
  background-color: #e9f3ff;
}
.menu__imgbox + span {
  display: inline-block;
  margin-top: 5px;
  color: var(--color-grey-80) !important;
  font-size: 1.4rem;
}

.menu__link {
  padding: 0px 16px;
}
.menu__link .badge {
  left: -1px;
  bottom: 0px;
}

.menu-explain .text  {
  font-weight: 500;
  background:linear-gradient(90deg, var(--color-blue-50), #9ea4aa);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: shine 2.7s ease-in infinite;
}

@keyframes shine {
  0% {
    background-position: 20%;
  }

  20% {
    background-position: 60%;
  }

  50% {
    background-position: 100%;
  }

  80% {
    background-position: 80%;
  }

  100% {
    background-position: 20%;
  }
}


/* carousel - swiper ver. */
.swiper.carousel .swiper-wrapper {
  box-sizing: border-box;
}
.swiper.carousel .swiper-slide > a {
  display: block;
  border-radius: 5px;
  padding: 1.4rem 1.6rem;
  font-size: 1.6rem;
  color: var(--color-grey-80);
  background-size: cover; 
  background-position: right;
}
.swiper.carousel .swiper-slide p {
  margin-bottom: 0;
  white-space: nowrap;
}
.swiper.carousel .swiper-pagination {
  left: inherit;
  right: -2px;
  bottom: 0;
  width: fit-content;
  padding: 0 5px;
  margin: 0 1rem 8px 0;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-grey-40);
  border-radius: 22px;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.swiper.carousel .swiper-pagination-current {
  color: #fff;
}
.swiper.carousel .swiper-pagination-total + span {
  background-image: url(https://cdn.bitsaving.kr/img/carousel-pause.webp);
  display: inline-block;
  width: 14px;
  height: 15px;
  background-position: center;
  background-size: contain;
  vertical-align: sub;
  margin-left: 3px;
}
.swiper.carousel .swiper-pagination-total + span.paused {
  background-image: url(https://cdn.bitsaving.kr/img/carousel-play.webp);
}

.swiper .img-title {
  height: 54px;
  margin: 4px 0; /* 배너높이 62px 유지합니다.*/
}
.swiper #smartEth .img-title {
  height: 44px;
  margin: 9px 0; /* 이미지 사이즈를 줄이는 만큼, 마진을 키워 배너높이 62px 유지합니다. */
}
.swiper #referral-banner .img-title {
  height: 5rem;
  margin: 6px 0;
}
.swiper #referral-banner .img-title[src="https://cdn.bitsaving.kr/img/referral/banner-title-after-start.webp"] {
  height: 6rem;
  margin: 1px 0;
}
.swiper #promoStudent .img-title {
  width: 300px;
}

.swiper #smartEth a {
  background-image: url('https://cdn.bitsaving.kr/img/main.carousel.smart-eth.bg.png'); /* 360px 표준 적용 */
}
.swiper #promoStudent a {
  background-image: url('https://cdn.bitsaving.kr/img/main.carousel.promo-student.bg-sm.webp');
}
.swiper #referral-banner a {
  background-image: url('https://cdn.bitsaving.kr/img/main.carousel.referral.bg-sm.webp');
}
.swiper #sslive a {
  background-image: url('https://cdn.bitsaving.kr/img/main.carousel.sslive-1.bg-sm.webp');
}
.swiper #promoCampaignClosed a {
  background-image: url('https://cdn.bitsaving.kr/img/main.carousel.campaign-2-closed.bg-new.webp');
}

@media (min-width: 500px) {
  .swiper #smartEth a {
    background-image: url('https://cdn.bitsaving.kr/img/main.carousel.smart-eth.bg-lg.png');
  }
  .swiper #promoStudent a {
    background-image: url('https://cdn.bitsaving.kr/img/main.carousel.promo-student.bg-lg.webp'); 
  }
  .swiper #promoStudent .img-title {
    width: inherit;
  }
  .swiper #referral-banner a {
    background-image: url('https://cdn.bitsaving.kr/img/main.carousel.referral.bg-lg.webp');
  }
  .swiper #sslive a {
    background-image: url('https://cdn.bitsaving.kr/img/main.carousel.sslive-1.bg-lg.webp');
  }
}

#yieldCard {
  background-color: #fafbfc;
  color: var(--color-grey-70);
  white-space: nowrap;
  border-radius: 5px;
  font-size: 1.4rem;
}
#yieldCard strong {
  font-size: larger;
}

/* Pygg list */
h3 + a[href="/pygg"] {
  color: var(--color-grey-60);
  font-size: 1.4rem;
}
h3 + a[href="/pygg"] > span > strong {
  color: var(--color-pink-50);
}

#pyggList > div, 
div.eventPygg {
  border-radius: 5px;
  margin-bottom: 14px;
}

.eventPygg ul {
  padding: 2rem 2.8rem 2rem 2rem; 
  font-size: 1.3rem;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
} 

.eventPygg li:not(:nth-child(5)) {
  margin-bottom: 0;
}

.eventPygg .days {
  font-size: 1.5rem;
}
  
.eventPygg .amount p:nth-child(2) {
  font-size: 2rem;
  font-weight: 500;
}

.eventPygg .coin {
  font-size: 2.4rem;
  color: #fff; 
}

.eventPygg .coin {
  font-weight: 500;
}

/* EventPygg Progress Effect */
.eventPygg .graphic {
  background-color: var(--color-P_BTC1);
  min-height: 140px;
}
.eventPygg .graphic div:first-child {
  top: 0; 
  left: calc(50% - 70px);
  width: 140px;
}
.eventPygg .graphic .curtain {
  top: 0; 
  left: calc(50% - 70px);
  width: 140px;
  height: 140px; /* starts from 140px. gradually decrease as saving every day */
  opacity: 0.85;
  border-bottom: 1px dashed #fff;
  background-color: var(--color-P_BTC1);
}
.eventPygg .graphic .curtain::before { 
  position: absolute;
  bottom: -5px;
  right: -25px;
  content: ' ';
  border-radius: 2px;
  background-color: #3beaff;
  width: 8.5px;
  height: 8.5px;
  transform: rotate(135deg);
}
.eventPygg .graphic .curtain::after { /* balloon */
  position: absolute;
  bottom: -12px;
  right: -85px; 
  width: 6.5rem;
  padding: 2px 0;
  color: var(--color-grey-70);
  background-color: #3beaff;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 2px;

  display: block;
  clear: both;
  content: attr(data-content); /* js 로 data-content 할당 */
}

@media screen and (max-width: 320px) {
  .eventPygg .graphic .curtain::before {
    right: -12px;
    width: 7px;
    height: 7px;
  }
  .eventPygg .graphic .curtain::after { 
    right: -73px; 
  }
}

.plusbox {
  margin: 1.4rem 0;
  font-size: 1.7rem; 
  background-color: var(--color-blue-50);
  border: none; 
  border-radius: 5px;
  cursor: pointer;
}
.plusbox-prime {
  margin-bottom: 1.4rem;
  font-size: 1.6rem;
  font-weight: normal !important;
  color: #9ea4aa !important;
  border: 1.5px dashed var(--color-grey-40);
  border-radius: 5px;
  cursor: pointer;
}
.plus {
  text-decoration: none;
  font-weight: 500;
  color: #fff;
}

.plusbox:hover,
.plusbox-prime:hover {
  font-weight: 800;
}

/* Simulation */
.simulation {
  padding-top: 20px;
  margin-top: 20px;
  background-color: #FAFBFC;
  white-space: nowrap;
}

.simulation > small {
  color: var(--color-grey-60);
}

.simulation .simulation__options > .col > label { /* 상품 */
  display: block;
  padding: 7px 10px;
  font-weight: 500;
  color: var(--color-grey-40);
  background-color:#E8EBED;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s linear;

  width: 100%;
  text-align: center;
}

.simulation .simulation__options > .col > label.active {
  color: #fff;
  background-color: #33658A;
}

.simulation__results > .col > div { /* 기간 */
  padding: 10px 5px;
  color: var(--color-grey-60);
  font-size: 15px;
  font-weight: 300;
  background-color: #fff;
  border-radius: 5px;
  transition: all 0.2s linear;
}

.simulation__results > .col > div > span {
  display: block;
  color: var(--color-grey-60);
  font-size: 13px;
}

.simulation__results:last-child div span:last-child {
  font-size: 1.5rem;
}

.simulation__results > div:not(:last-child) {
  padding-right: 3px; /* override bootstrap settings */
}

/* solution to bootstrap modal removes scroll bar */
body { 
  padding-right: 0 !important; 
}
.modal-open { 
  overflow: inherit; 
} 
.modal { 
  padding-right: 0 !important; 
}

/* Section - Story */
#page-container {
  margin-bottom: 0; /* so that story sticks to the bottom */
}

section.story .swiper {
  overflow: visible; /* 그림자 잘리지 않도록 하기 위함 */
}

section.story {
  margin-top: 5rem;
  height: 40rem;  
  padding: 2rem 1.4rem 2rem;
  background-color: #FAFBFC;
  overflow: hidden;
  white-space: nowrap;
}

section.story article {
  padding: 200px 0 100px 100px;
  height: auto;
}

section.story a.see-all {
  display: block; 
  color: var(--color-grey-60);
  font-size: 14px;
  font-weight: bold;
}
section.story a.see-all span {
  vertical-align: middle;
}

section.story figure {
  max-height: 300px; 
  max-width: 310px;
  border-radius: 10px;
  box-shadow: 10px 10px 50px 0 rgba(0, 0, 0, 0.1);
  overflow: auto;
  background-color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease-out;
}

section.story figure .figure-img {
  height: 170px; 
  background-size: cover;
  background-position: center;
}

section.story figure figcaption {
  padding: 1.8rem 2rem;
}

section.story figure figcaption h3.title {
  height: 4.5rem;
  line-height: 2.4rem; 
  margin-bottom: 2rem;
  color: var(--color-grey-80); 
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: pre-wrap;
}

section.story figure figcaption .tag {
  color: #9ea4aa; 
  font-weight: 500;
  font-size: 1.4rem;
}

section.story figure.figure:hover {
  transform: translateY(-8px); 
}

/* 이메일인증 요청 모달 */
.modal#validateEmail {
  background-image: linear-gradient(rgba(255, 255, 255, 0.75) 0 0);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(5px); /* for Safari */
}
.modal#validateEmail .modal-content {
  background: none;
  white-space: nowrap;
  color: var(--color-grey-80);
  font-weight: bold;
  font-size: 1.8rem;
}
.modal#validateEmail button.text-white {
  width: 25rem;
  padding: 1rem;
  border-radius: 100px;
  box-shadow: 0 0 25px 0 rgba(0, 77, 240, 0.25);
  background-color: var(--color-blue-50); 
}

/* new product list */
#productList a,
#strategyList a {
  display: flex;
  align-items: center;
  height: 85px;
}
#productList .imgbox,
#strategyList .imgbox {
  padding: 1.4rem;
  margin-right: 10px;
  height: fit-content;

  background-color: var(--color-grey-20);
  border-radius: 10px;
}
#strategyList .imgbox {
  padding: 8px 4px 0 4px;
}
#productList .imgbox.smart {
  background-color: #f3f0ff;
}
#strategyList .imgbox.smart {
  background-color: #edfae9;
}
#productList .imgbox img {
  width: 40px;
}
#strategyList .imgbox img {
  width: 60px;
}
 
#productList .imgbox + div,
#strategyList .imgbox + div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
#productList .badge-text,	
#strategyList .badge-text {	
  color: #00a6ed;	
  font-size: 1.3rem;	
}
#productList .textbox .fullname,
#strategyList .textbox .fullname {
  margin-bottom: 0;
  margin-right: 10px;
  color: var(--color-grey-70);
  font-weight: 600;
  word-break: keep-all;
}
#productList .textbox .fullname img,
#strategyList .textbox .fullname img {
  vertical-align: text-top;
}
#productList .textbox .caption,
#strategyList .textbox .caption {
  margin-top: 2px;
  margin-bottom: 0;
  font-size: 12px;
  color: #9ea4aa;
  word-break: keep-all;
}

#section-product-lists:has(input.input-switch:checked) article#strategyList,
#section-product-lists:not(:has(input.input-switch:checked)) article#productList {
  display: block;
}
#section-product-lists:has(input.input-switch:checked) article#productList,
#section-product-lists:not(:has(input.input-switch:checked)) article#strategyList {
  display: none;
}

#section-product-lists article > p {
  color: var(--color-grey-60);
  font-size: 1.4rem;
}

/* 수확하기 상품으로 스위치 */
#switch-product-list .form-check-input {
  width: 12.5rem;
  height: 3rem;
  background-color: #e8ebed;
  border-color: #e8ebed;
  border-radius: 5px;

  background-image: url('https://cdn.bitsaving.kr/img/main.switch.basic.webp') !important; /* 저금Only  */
  background-position: left center;
  transition: background-position .15s ease-in-out;
  position: relative;
}
#switch-product-list .form-check-input:checked {
  background-position: right center;
  background-image: url('https://cdn.bitsaving.kr/img/main.switch.strategy.webp')!important; /* 저금&수확 */
}
#switch-product-list .form-check-input::before {
  position: absolute;
  right: 2px;
  bottom: 5px;
  content: '저금&수확'; /* 플레이스홀더 */
  width: 5.3rem;
  font-size: 1.1rem;
  background-color: #e8ebed;
  color: #9ea4aa;
  font-weight: 500;
}
#switch-product-list .form-check-input:checked::before {
  z-index: -10; /* 체크 표시되면 플레이스홀더는 뒤에 숨음 */
}
#switch-product-list .form-check-input:checked::after {
  position: absolute;
  left: 5px;
  bottom: 5px;
  content: '저금 Only'; /* 플레이스홀더 */
  width: 5.3rem;
  font-size: 1.1rem;
  background-color: #e8ebed;
  color: #9ea4aa;
  font-weight: 500;
}

/* 수확하기 상품으로 스위치 툴팁 가이드 */
#switch-product-list .position-absolute.switch-guide-wrapper  {
  top: -35px;
  right: 0;
  width: fit-content;
  white-space: nowrap;
  border-radius: 5px;
  padding: 4px 10px;
  padding-right: 5px;
  background-color: var(--color-grey-80);
  font-size: 1.3rem;
  font-weight: 300;
  color: #fff;
  z-index: 100;
}
#switch-product-list .position-absolute.switch-guide-wrapper::before {
  position: absolute;
  bottom: -3px;
  right: 32px;
  content: ' ';
  border-radius: 2px;
  background-color: var(--color-grey-80);
  width: 8.5px;
  height: 8.5px;
  transform: rotate(135deg);
  z-index: -1; 
}