@font-face {
  font-family: "dfpheiw3-gbregular";
  src: url("assets/fonts/11w3-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "dfpheiw7-gbregular";
  src: url("assets/fonts/13w7-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "dfpheiw9-gbregular";
  src: url("assets/fonts/14w9-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "dfpheiw12-gbregular";
  src: url("assets/fonts/15w12-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

html {
  /* font-size: 6.3px; */
  /* font-size: 16px; */
  font-size: 14px;
}
body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  overflow: hidden; /* disable scrolling / rubberband effect on mobile */
  height: 100vh;

  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #ffffff;
}

canvas {
  display: block;
  position: absolute;
  outline: 0;

  width: 100%;
  height: 100%;
  /* max-width: 500px; */
}

#root_div {
  position: absolute;
  pointer-events: none;
  /* top:-9.6%;
    height: 109.6%; */
  width: 100%;
  height: 100%;
  background-color: #ffffff;

  display: flex;
  flex-direction: row;
  justify-content: center;

  /* max-width: 750px; */
}
#root_container {
  width: 100%;
  height: 100%;
}

/* @media (min-width: 500px){
    html{
        font-size: 12px;
    }

    #root_div{
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: #ffffff;

        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    #root_container{
        width: 100%;
        height: 100%;
        max-width: 500px;
        background-color: #eac78c;
    }
} */

.page_container {
  position: absolute;

  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;

  transition: opacity 500ms ease-in;

  z-index: 1;
}

.dark_font {
  color: #30221b;
}

.light_font {
  color: #9a690b;
}

/*============================================
 *               Page 1
 *=============================================**/
#page1_container {
  position: absolute;
  /* top:-10%; */
  width: 100%;
  height: 100%;
}
.page_bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}
#page1_bg {
  /* background-image: url(assets/helps/page1_ref.jpg); */
  /* background-image: url(assets/page1_bg.jpg); */
}
#page1_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  /* height: 43%; */
  height: 50%;
  margin-top: -21%;
}
#page1_title_container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  margin-top: 21%;

  /* width: 17rem; */
  /* height: 6rem; */
}

#page1_title1 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  width: 100%;
}

#page1_logo {
  background-image: url(assets/logo.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  /* height: 2rem; */
  height: 3.4rem;
  padding-left: 0.8rem;
  aspect-ratio: 56/32;
  /* width:calc(3.4rem * (56/32)); */
}

#page1_subtitle {
  font-family: "dfpheiw3-gbregular";
  font-size: 1.65rem;
  margin-top: 0.3rem;
  color: #938059;
}

#page1_title2 {
  font-family: "dfpheiw9-gbregular";
  font-size: 2.5rem;
  /* margin-left: 3%; */
  margin-top: 1rem;
  color: #938059;
}

#page1_button_start {
  font-family: "dfpheiw7-gbregular";
  /* height: 2.6rem; */
  /* width: 7rem; */
  width: 66%;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: #30221b;
  /* width: 40%; */
  height: 3rem;

  font-family: "dfpheiw7-gbregular";
  font-size: 1rem;
  border-radius: 8rem;
  text-align: center;
  /* border: 0.1rem outset red; */

  overflow: hidden;
  white-space: nowrap;
}
.button:active {
  /* box-shadow:7px 6px 28px 1px rgba(0, 0, 0, 0.24); */
  transform: translate(1px, 1px);
  /* -webkit-box-shadow: inset 0px 0px 5px #c1c1c1;
     -moz-box-shadow: inset 0px 0px 5px #c1c1c1;
          box-shadow: inset 0px 0px 5px #c1c1c1;
   outline: none; */
}

/*============================================
 *               Page 2
 *=============================================**/

#page2_container {
  /* display: none; */
  opacity: 0;
  pointer-events: none;
  /* top:-5%; */
  width: 100%;
  height: 100%;
}
.page_bg_blur {
  /* filter:blur(10px); */
}
#page2_bg {
  /* background-image: url(assets/helps/page2_ref.jpg); */
  /* background-image: url(assets/page2_bg.jpg); */
}
#page2_wrapper {
  width: 100%;
  height: 79%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-top: 10%;
}
.page2_center_wrapper {
  width: 80%;
  margin: 0;
  margin-top: 0.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#page2_title {
  /* margin-top: 19%;
    font-size: 3.8rem;
    width: 57%;
    text-align: center; */
  font-family: "dfpheiw9-gbregular";
  font-size: 1.35rem;
  line-height: 2rem;
  align-self: flex-start;
  margin-left: 1%;
}
#page2_selection_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 70.5%;
  margin-top: 4%;
}
#selection_text {
  font-family: "dfpheiw3-gbregular";
  font-size: 0.9375rem;
  line-height: 1.04rem;
  align-self: flex-start;
  margin-left: 2%;
  text-align: left;
  /* margin-top: 0.3rem; */
}
#selection_tip {
  font-family: "dfpheiw3-gbregular";
  font-size: 0.9375rem;
  text-align: center;
  line-height: 1rem;
  margin-top: 0.3rem;
}

#page2_button_unfold {
  width: 96%;
  padding: 0;
}

#page2_selection_container {
  width: 96%;
  height: 80%;
  /* border: solid red; */
  margin-top: 2%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.selection_swippable {
  width: 100%;
  height: 40%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
}
.selection_fixed {
  /* width: 100%; */
  height: 27%;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  background-color: #dfc7a1;
  border-radius: 10px;

  /* border: solid blue; */
}
.page2_swiper_wrapper {
  /* background-color: #B4914F;
   border-radius: 10px; */
  /* border: solid green; */
}

.selection_idle {
  background-color: #ffffff;
  color: #754c01;
}
.selection_selected {
  background-color: #754c01;
  color: #fff;
}
.selection_title_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;

  margin-right: 13%;
  margin-top: 1rem;
}
.selection_title1 {
  font-family: "dfpheiw9-gbregular";
  font-size: 1.2rem;
}
.selection_title2 {
  font-family: "dfpheiw3-gbregular";
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

.icon_fixed {
  height: 100%;
  margin-left: 4%;
  aspect-ratio: 1;
  width: auto;
  background-size: contain;
  background-repeat: no-repeat;
}
#icon_saving {
  background-image: url(assets/icon_saving.png);
}
#icon_fun {
  background-image: url(assets/icon_fun.png);
}
#icon_medical {
  background-image: url(assets/icon_medical.png);
}
#icon_education {
  background-image: url(assets/icon_education.png);
}
#icon_retirement {
  background-image: url(assets/icon_retirement.png);
}
#icon_house {
  background-image: url(assets/icon_house.png);
}
#icon_self {
  background-image: url(assets/icon_self.png);
}

.option_swiper {
  height: 100%;
  background-color: #b4914f;
  border-radius: 10px;
}

.option-swiper-wrapper {
  width: 100%;
  height: 100%;
}

.option {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  color: #fff;
  /* background-color: #B4914F;
    border-radius: 10px; */
}
.icon_swippable {
  height: 70%;
  margin-left: 4%;
  aspect-ratio: 1;
  width: auto;
  background-size: contain;
  background-repeat: no-repeat;
}
.option_title_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;

  margin-right: 13%;
  margin-top: 0.2rem;
}
.option_title1 {
  font-family: "dfpheiw9-gbregular";
  font-size: 1.2rem;
}
.option_title2 {
  font-family: "dfpheiw3-gbregular";
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

.option-swiper-button-prev {
  background-image: url(assets/arrow_left.svg);
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-swiper-button-next {
  background-image: url(assets/arrow_right.svg);
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-arrow {
  background-size: contain;
  background-repeat: no-repeat;
  position: relative;
  width: 4%;
  aspect-ratio: 45 / 77;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 250ms ease-in;
}
/* .option-arrow.fadeInArrow {
   opacity: 0;
   -webkit-animation: fadeInMenu 0.5s 1;
   animation: fadeInMenu 0.5s 1;
 }
 .option-arrow.fadeInArrow {
   opacity: 0;
   -webkit-animation: fadeInMenu 0.5s 1;
   animation: fadeInMenu 0.5s 1;
 }

 @-webkit-keyframes fadeInArrow {
   0% {
     opacity: 0.0;
   }
   100% {
     opacity: 1.0;
   }
 }
 
 @keyframes fadeInArrow {
   0% {
     opacity: 0.0;
   }
   100% {
     opacity: 1.0;
   }
}
@-webkit-keyframes fadeOutArrow {
   0% {
      opacity: 1.0;
   }
   100% {
      opacity: 0.0;
   }
   }
   
   @keyframes fadeOutArrow {
   0% {
      opacity: 1.0;
   }
   100% {
      opacity: 0.0;
   }
} */
/*============================================
 *               Story Page 3
 *=============================================**/

#page3_container {
  /* display: none; */
  opacity: 0;
  pointer-events: none;
}

.story_swiper {
  width: 100%;
  height: 100%;
  --swiper-pagination-bullet-size: 7px;
  --swiper-pagination-bottom: 9%;
  --swiper-pagination-bullet-horizontal-gap: 3%;
}
.story_image {
  background-size: cover;
  background-repeat: no-repeat;
}

.footer_logo {
  position: absolute;
  right: 10%;
  bottom: 4%;

  width: 12.4%;
  aspect-ratio: 49/27;
  height: auto;
  background-image: url(assets/footer_logo.png);
  background-size: contain;
  background-repeat: no-repeat;
}
.footer_logo_style2 {
  background-image: url(assets/footer_logo2.png);
}

.swiper-pagination {
  /* target all bullets */
  .swiper-pagination-bullet {
    background-color: #d9d9d9;
    opacity: 1;
    /* height:0.5rem; */
  }
  .swiper-pagination-bullet-active {
    background-color: #b4914f;
    opacity: 1;
    /* height:0.5rem; */
  }
}

#story_swiper_pagination {
  transition: opacity 500ms ease-in;
}

.page-clickable {
  cursor: pointer;
}
/* .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color:#000;
  } */
#story1_swiper {
  display: none;
}

#story2_swiper {
  display: none;
}

#story3_swiper {
  display: none;
}

#story4_swiper {
  display: none;
}

#story5_swiper {
  display: none;
}

/*============================================
 *               Story 1
 *=============================================**/

.flex_snap_bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.story_content_text {
  color: #30221b;
  font-family: "dfpheiw3-gbregular";
  font-size: 0.9375rem;
  line-height: 1.11rem;
  vertical-align: top;
}

.conversation_wrapper {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  text-align: left;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #b4914f;
}

#story1_page1 .conversation_wrapper {
  background-image: url(assets/story1_1_bubble.svg);
  position: absolute;
  top: 33.0635%;
  left: 22.8244%;
  /* height: 4.5rem; */
  aspect-ratio: 203/71;
  height: auto;
}

.conversation {
  /* padding-left: 0.6rem;
    padding-right: 0.6rem;
    margin-top: -0.5rem;
    margin-left: 0.6rem; */
  margin-right: 0.5rem;
  margin-top: -0.5rem;
  margin-left: 0.8rem;

  font-family: "dfpheiw3-gbregular";
  text-align: left;
}
.conversation_text {
  color: #b4914f;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.05rem;
}

.conversation_click_indicator {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transform: translate(-50%, -50%);

  .conversation_click_indicator_content {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 100%;
    border: 2px solid #d9c590;
    animation: ripple 1.5s linear infinite;
    transition: all 0.7s ease;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

@keyframes ripple {
  0% {
    transform: scale(100%);
    box-shadow: 0 0 0 0 rgba(217, 197, 144, 0.3),
      0 0 0 1px rgba(217, 197, 144, 0.3), 0 0 0 3px rgba(217, 197, 144, 0.3),
      0 0 0 5px rgba(217, 197, 144, 0.3);
  }
  50% {
    transform: scale(130%);
  }
  100% {
    transform: scale(100%);
    box-shadow: 0 0 0 0 rgba(217, 197, 144, 0.3),
      0 0 0 4px rgba(217, 197, 144, 0.3), 0 0 0 20px rgba(217, 197, 144, 0),
      0 0 0 30px rgba(217, 197, 144, 0);
  }
}

#story1_page1 .content {
  position: absolute;
  left: 22%;
  top: 17%;
  width: 49%;
}

/* #story1_page2 .story_content_wrapper {
  left: 20%;
  top: 17%;
  width: 66%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
} */

#story1_page2 .content {
  position: absolute;
}

#story1_page3 .content {
  position: absolute;
}

#story1_page4 .content {
  position: absolute;
}

#story1_page5 .conversation_wrapper {
  background-image: url(assets/story1_5_bubble.svg);
  position: absolute;
  aspect-ratio: 203/94;
}

#story1_page5 .conversation {
  color: #b4914f;
  font-family: "dfpheiw3-gbregular";
  opacity: 1;
}

#story1_page5 .content {
  position: absolute;
  top: 19%;
  left: 51%;
  width: 12rem;
  color: #9a690b;
}

.story_result_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 12%;
  width: 100%;
  height: 79%;
  z-index: 1;
}
.result_content_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 8%;
  width: 100%;
  height: 74%;
  z-index: 1;
}
.result_logo {
  background-image: url(assets/logo_big.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  aspect-ratio: 56/32;

  /* height: 10%; */
  width: 40%;
}
.result_content {
  font-family: "dfpheiw3-gbregular";

  line-height: 1.7rem;
  /* margin-top: -2rem; */
  margin-top: 2rem;
  color: #ffffff;
  width: 80%;
  height: 29%;
  text-align: center;
  vertical-align: top;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.result_content_part1 {
  font-size: 1.125rem;
}
.result_content_part2 {
  font-size: 1.125rem;
}
.result_button_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 78%;
}
.result_button_finish {
  width: 100%;
  background-color: #b4914f;
}

.result_button_back {
  width: 100%;
  margin-top: 1rem;
}

.result_aggrements_wrapper {
  width: 77%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  font-family: "dfpheiw3-gbregular";
}

.result_aggrements_content_wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.result_aggrements_title {
  font-size: 0.95rem;
}

.result_aggrements_content {
  font-size: 0.35rem;
  margin-top: 0.5rem;
  line-height: 0.6rem;
}

.result_aggrements_tip {
  font-size: 0.35rem;
  margin-top: 1.1rem;
  align-self: flex-start;
}

.transluctant_black_mask {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #2318157b;
}

/*============================================
 *               Story 2
 *=============================================**/
#story2_page1 .conversation_wrapper {
  background-image: url(assets/story2_1_bubble.svg);

  position: absolute;
  /* height: 4rem; */
  aspect-ratio: 213/69;
}

#story2_page1 .content {
  position: absolute;
  /* left: 16%;
  top: 17%;
  width: 74%; */
}

#story2_page2 .content {
  position: absolute;
  /* left: 18%;
  top: 38%;
  width: 43%; */
}

#story2_page3 .content {
  position: absolute;
  /* left: 19%;
  top: 16%;
  width: 64%; */
}

#story2_page4 .content {
  position: absolute;
}

#story2_page5 .conversation_wrapper {
  background-image: url(assets/story2_5_bubble.svg);

  position: absolute;
  /* height: 5rem; */
  aspect-ratio: 237/77;

  color: #b4914f;
}

#story2_page5 .text_part1 {
  position: absolute;
  /* left: 26%;
  top: 29%;
  width: 42%; */
  color: #fff;
}

#story2_page5 .text_part2 {
  position: absolute;
}

/*============================================
 *               Story 3
 *=============================================**/
#story3_page1 .conversation_wrapper {
  background-image: url(assets/story3_1_bubble.svg);

  position: absolute;
  /* height: 4rem; */
  aspect-ratio: 169/66;

  color: #b4914f;
}

#story3_page1 .content {
  position: absolute;
  left: 19%;
  top: 15%;
  width: 57%;
  color: #7e6a3f;
}

#story3_page2 .content {
  position: absolute;
}

#story3_page3 .content {
  position: absolute;
  color: #fff;
}

/* #story3_page2 .text_part1 {
  left: 5%;
  top: 26%;
  width: 29%;
}
#story3_page2 .text_part2 {
  left: 50%;
  top: 15%;
  width: 34%;
} */

#story3_page4 .content {
  position: absolute;
  /* left: 21%;
  top: 17%;
  width: 59%; */
}

#story3_page5 .content {
  position: absolute;
  /* left: 40%;
  top: 18%;
  width: 53%; */
}

/*============================================
 *               Story 4
 *=============================================**/
#story4_page1 .conversation_wrapper {
  background-image: url(assets/story4_1_bubble.svg);

  position: absolute;
  /* height: 4rem; */
  aspect-ratio: 180/69;

  color: #b4914f;
}

#story4_page1 .content {
  position: absolute;
  /* left: 24%;
  top: 15%;
  width: 48%; */
  color: #7e6a3f;
}

#story4_page2 .content {
  position: absolute;
  /* left: 29%;
  top: 17%;
  width: 56%; */
}

#story4_page3 .content {
  position: absolute;
  /* left: 21%;
  top: 16%;
  width: 57%; */
}

#story4_page4 .content {
  position: absolute;
}

#story4_page5 .content {
  position: absolute;
  /* left: 19%;
  top: 40%;
  width: 36%; */
  color: #7e6a3f;
}
#story4_page5 .conversation_wrapper {
  background-image: url(assets/story4_5_bubble.svg);

  position: absolute;
  /* height: 4rem; */
  aspect-ratio: 237/90;

  color: #b4914f;
}

/*============================================
 *               Story 5
 *=============================================**/
#story5_page1 .conversation_wrapper {
  background-image: url(assets/story5_1_bubble.svg);

  position: absolute;
  /* height: 4rem; */
  aspect-ratio: 172/69;

  color: #b4914f;
}

#story5_page1 .content {
  position: absolute;
  /* left: 23%;
  top: 17%;
  width: 56%; */
}

#story5_page2 .content {
  position: absolute;
  color: #7e6a3f;
}

#story5_page3 .content {
  position: absolute;
  /* left: 60%;
  top: 19%;
  width: 35%; */
}

#story5_page4 .content {
  position: absolute;
  /* left: 21%;
  top: 17%;
  width: 59%; */
}

#story5_page5 .content {
  position: absolute;
  /* left: 24%;
  top: 32%;
  width: 55%; */
  color: #7e6a3f;
}

#story5_page5 .conversation_wrapper {
  background-image: url(assets/story5_5_bubble.svg);
  position: absolute;
  /* height: 4rem; */
  aspect-ratio: 210/74;

  color: #b4914f;
}
