*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


* {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 100%;
  line-height: 1.5;
}

*:active,
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

body {
  font-family: Arial, sans-serif;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

canvas{
  display: block;
  width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}



a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100svh;
  width: 56.221889055vh;
  max-width: 100%;
}


body {
  height: 100%;
  width: 100%;
  display: flex;
  justify-self: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

.step1 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  z-index: 4;
}

.step1-next {
  position: absolute;
  top: 46%;
  width: 40%;
}

.footer {
  position: absolute;
  bottom: 2.5%;
  text-align: center;
  color: #fff;
  font-size: 10px;
  z-index: 1;
}

.result-footer {
  position: absolute;
  bottom: 1%;
  text-align: center;
  color: #fff;
  font-size: 10px;
  z-index: 1;
}


.step1-sounds, .step1-sounds-ipad {
  position: absolute;
  width: 105%;
  top: 16%;
  animation: scaleUp 4s ease-in-out infinite;
}

.step2,
.step3,
.step4,
.step5,
.step6,
.step7,
.step8,
.result {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 4;
}

.step8{
  background-color: #000;
  display: block;
}

.float-img {
  position: absolute;
  width: 11%;
  z-index: -1;
}


.float-img1 {
  top: 0%;
  left: -3%;
  animation: floatAnim 4s ease-in-out infinite;
  animation-delay: 0.3s;
}

.float-img2 {
  top: 11%;
  right: -6%;
  animation: floatAnim2 6s ease-in-out infinite;
  animation-delay: 0.8s;
}

.float-img3 {
  top: -4%;
  left: 38%;
  width:12%;
  animation: floatAnim3 5s ease-in-out infinite;
  animation-delay: 1.2s;
}

.float-img4 {
  top: 48%;
  left: -4%;
  animation: floatAnim 3.5s ease-in-out infinite;
  animation-delay: 0.6s;
  width: 18%;
}

.float-img5 {
  top: 87%;
  left: 6%;
  width : 16%;
  animation: floatAnim2 4.5s ease-in-out infinite;
  animation-delay: 0.4s;
}

.float-img6 {
  top: -4%;
  right: 2%;
  animation: floatAnim3 5.5s ease-in-out infinite;
  animation-delay: 1s;
  width: 8%;
}

.float-img7 {
  bottom: 23%;
  right: 12%;
  animation: floatAnim 4s ease-in-out infinite;
  animation-delay: 0.7s;
  width: 9%;
}

.float-img8 {
  bottom: 19%;
  left: 12%;
  animation: floatAnim2 6s ease-in-out infinite;
  animation-delay: 0.5s;
  width : 14.5%;
}

.float-img9 {
  bottom: 15%;
  right: 37%;
  animation: floatAnim3 8s ease-in-out infinite;
  animation-delay: 0.9s;
  width: 24%;
}

.float-img10 {
  top: 80%;
  right: 17%;
  width: 6.5%;
  animation: floatAnim 3.5s ease-in-out infinite;
  animation-delay: 0.2s;
  
}

.float-img11 {
  top: 10%;
  left: 15%;
  width: 6.5%;
  animation: floatAnim2 4.5s ease-in-out infinite;
  animation-delay: 0.6s;
}

.float-img12 {
  top: -7%;
  right: -7%;
  width: 5%;
  animation: floatAnim3 12s ease-in-out infinite;
  animation-delay: 1.1s;
}

.float-img13 {
  top: 20%;
  left: -4%;
  width: 23%;
  animation: floatAnim 4s ease-in-out infinite;
  animation-delay: 0.4s;
}

.float-img14 {
  top: 43%;
  right: 3%;
  width: 7%;
  animation: floatAnim2 6s ease-in-out infinite;
  animation-delay: 0.8s;
}

.float-img15 {
  top: 51%;
  right: -5%;
  animation: floatAnim3 8s linear infinite;
  animation-delay: 0.3s;
  width : 17%;
}

.float-img16 {
  top: 35%;
  right: 76%;
  width: 16%;
  animation: floatAnim 3.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.float-img17 {
  top: 27%;
  right: 5%;
  width: 21%;
  animation: floatAnim2 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.float-img18 {
  bottom: 10%;
  right: -1%;
  width: 17%;
  animation: floatAnim3 4s ease-in-out infinite;
  animation-delay: 1s;
}

.float-img19 {
  top: 68%;
  left: 7%;
  width: 8%;
  animation: floatAnim 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.step2-text {
  z-index: 1;
}


.step2-start {
  position: absolute;
  bottom: 23%;
  width: 40%;
  z-index: 4;
}

.step3-input-wrapper {
  position: absolute;
  width: 60%;
  top: 34%;
}

.step3-nickname {
  position: absolute;
  width: 100%;
  top: 62%;
  font-size: 1rem;
  text-align: center;
  font-weight: 700;
  font-family: "Noto Sans TC", sans-serif;
  border: 0;
  background-color: transparent;
}

.step3-next {
  position: absolute;
  bottom: 10%;
  width: 40%;
  right: 5%;
}

.step3-back {
  position: absolute;
  bottom: 10%;
  width: 35%;
  left: 5%;
}



.step4-next {
  position: absolute;
  bottom: 10%;
  width: 40%;
  right: 5%;
}

.step4-back {
  position: absolute;
  bottom: 10%;
  width: 35%;
  left: 5%;
}

.step5-next {
  position: absolute;
  bottom: 10%;
  width: 40%;
  right: 5%;
}

.step5-back {
  position: absolute;
  bottom: 10%;
  width: 35%;
  left: 5%;
}

.step6-next {
  position: absolute;
  bottom: 10%;
  width: 40%;
  right: 5%;
}

.step6-back {
  position: absolute;
  bottom: 10%;
  width: 35%;
  left: 5%;
}

.step7-next {
  position: absolute;
  bottom: 10%;
  width: 60%;
  right: 1%;
}

.step7-back {
  position: absolute;
  bottom: 10%;
  width: 35%;
  left: 2%;
}

.step5-list {
  position: absolute;
  width: 95%;
  top: 37%;
  left: 5%;
}



.step4-dot-list {
  position: absolute;
  width: 16%;
  bottom: 23%;
  display: flex;
  justify-content: center;
}

.step4-dot {
  width: 10%;
  position: absolute;
  left: 0;
}

.swiper, .swiper-2 {
  position: absolute;
  max-width: 100%;
  top: 34%;
  width: 100%;
  padding: 0 19%;
}



.swiper-pagination {
  bottom: -1% !important;
}
.swiper-pagination-2 {
  bottom: -1% !important;
} 

.swiper-pagination-bullet {
  margin: 0 3px !important;
}

.swiper-pagination-bullet-active {
  background: #000;
  /* 妳要的顏色，例如黑色、品牌色 */
}


.swiper-pagination-2 {
  bottom: -1% !important;
}

.swiper-2 {
  position: absolute;
  max-width: 100%;
  top: 36%;
  width: 100%;
  padding: 0 19%;
}


.swiper-slide img {
  max-width: 100%;
  max-height: 100%;
}

.swiper-slide img {
  max-width: 100%;
  max-height: 100%;
}

.step7-list {
  position: absolute;
  top: 40%;
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.loading .float-img, .resultLoading .float-img{
  z-index: 0;
}

.loading-img1 {
  top: 4%;
  left: 15%;
  animation: floatAnim 3.0s ease-in-out infinite;
  animation-delay: 0.3s;
}

.loading-img2 {
  top: 27%;
  left: 15%;
  animation: floatAnim2 3.5s ease-in-out infinite;
  animation-delay: 0.8s;
}

.loading-img3 {
  top: -5%;
  left: 45%;
  animation: floatAnim3 4.0s ease-in-out infinite;
  animation-delay: 1.2s;
}

.loading-img4 {
  top: 60.6%;
  left: 1.1%;
  width: 22%;
  animation: floatAnim 4.5s ease-in-out infinite;
  animation-delay: 0.6s;
}

.loading-img5 {
  top: 92%;
  left: 12%;
  width : 13%;
  animation: floatAnim2 3.0s ease-in-out infinite;
  animation-delay: 0.4s;
}

.loading-img6 {
  top: 81.8%;
  left: 40%;
  width: 9%;
  animation: floatAnim2 3.5s ease-in-out infinite;
  animation-delay: 1.0s;
}

.loading-img7 {
  top: 25.7%;
  left: 80.2%;
  animation: floatAnim 4.0s ease-in-out infinite;
  animation-delay: 0.7s;
}

.loading-img8 {
  top: 75.6%;
  left: -2.4%;
  width: 18%;
  animation: floatAnim2 4.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.loading-img9 {
  top: 63.9%;
  width: 21%;
  left: 59.1%;
  animation: floatAnim2 5.0s ease-in-out infinite;
  animation-delay: 0.9s;
}

.loading-img10 {
  top: 78.7%;
  left: 60.6%;
  width: 8%;
  animation: floatAnim 3.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

.loading-img11 {
  top: 37.3%;
  left: 92.1%;
  width: 9%;
  animation: floatAnim2 4.0s ease-in-out infinite;
  animation-delay: 0.6s;
}

.loading-img12 {
  top: 0;
  right: 0;
  width: 7%;
  animation: floatAnim3 4.5s ease-in-out infinite;
  animation-delay: 1.1s;
}

.loading-img13 {
  top: 11%;
  left: -6%;
  width: 29%;
  animation: floatAnim 3.0s ease-in-out infinite;
  animation-delay: 0.4s;
}

.loading-img14 {
  top: 43%;
  right: 2.9%;
  width: 9%;
  animation: floatAnim2 3.5s ease-in-out infinite;
  animation-delay: 0.8s;
}

.loading-img15 {
  top: 51.2%;
  left: 86.3%;
  width: 20%;
  animation: floatAnim3 4.0s ease-in-out infinite;
  animation-delay: 0.3s;
}

.loading-img16 {
  top: 65.6%;
  width: 19%;
  left: 28.3%;

  animation: floatAnim 4.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.loading-img17 {
  top: 90.8%;
  left: 42.1%;
  width: 25%;
  animation: floatAnim2 3.0s ease-in-out infinite;
  animation-delay: 0.5s;
}

.loading-img18 {
  top: 70.8%;
  left: 91.8%;
  width: 24%;
  animation: floatAnim3 3.5s ease-in-out infinite;
  animation-delay: 1.0s;
}

.loading-img19 {
  width: 10%;
  top: 90%;
  left: 71.5%;
  animation: floatAnim 4.0s ease-in-out infinite;
  animation-delay: 0.5s;
}


.loading-img20 {
  width: 18%;
  top: 31%;
  left: 38.5%;
  animation: floatAnim 4.0s ease-in-out infinite;
  animation-delay: 0.5s;
}

.loading-img21 {
  width: 19%;
  top: 12%;
  left: 53.5%;
  animation: floatAnim3 7.0s ease-in-out infinite;
  animation-delay: 0.5s;
}


.loading-img22 {
  width: 9%;
  top: 7%;
  left: 76.5%;
  animation: floatAnim2 4.0s ease-in-out infinite;
  animation-delay: 0.5s;
}
.loading-img23 {
  width: 24%;
  top: 48%;
  left: -8.5%;
  animation: floatAnim 4.0s ease-in-out infinite;
  animation-delay: 0.5s;
}


.loading, .resultLoading{
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fcfc24;
}

.result-btn {
  position: absolute;
  bottom: 2%;
  width: 32%;
  right: 5%;
}

.result-join-btn {
  left: -3%;
  z-index: 4;
}

.result-share-btn {
  left: 22%;
  z-index: 3;
}

.result-info-btn {
  left: 47%;
  z-index: 2;
}

.result-retry-btn {
  left: 72%;
  z-index: 1;
}

.info-modal,
.gift-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 4;
}

.info-modal-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.info-modal-close {
  z-index: 8;
  position: absolute;
  top: 4%;
  right: 11%;
  width: 12%;
  height: 8%;
}

.gift-modal-close {
  z-index: 8;
  position: absolute;
  top: 4%;
  right: 11%;
  width: 12%;
  height: 8%;
}

.info-pic {
  position: absolute;
  top: 5%;
  left: 4%;
  width: 85%;
  height: 85%;
  overflow: auto;
}

.info-pic-wrapper {
  position: relative;
}

.gift-modal-wrapper {
  position: relative;
}

.go-to-fb {
  position: absolute;
  bottom: 0;
  height: 21.5%;
  width: 78%;
  left: 19%;
}

.desktop-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.result-video-producing {
  position: absolute;
  width: 55%;
  top: 18%;
  aspect-ratio: 9/16;
}

.result-video {
  position: absolute;
  width: 55%;
  top: 18%;
  aspect-ratio: 9/16;
}

.androidLongPress{
  position: absolute;
  bottom: 17%;
  width: 50%;
}


@keyframes floatAnim {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes floatAnim2 {
  0% {
    transform: translateX(0px) rotate(0deg);
  }

  50% {
    transform: translateX(-20px) rotate(-30deg);
  }

  100% {
    transform: translateX(0px) rotate(0deg);
  }
}


@keyframes floatAnim3 {
  0% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateX(-30px) translateY(50px) rotate(30deg);
  }

  100% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
  }
}


@keyframes scaleUp {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bounce {
  10% {
    transform: translateY(0%);
  }

  20% {
    transform: translateY(-20%);
  }

  30% {
    transform: translateY(0%);
  }

  40% {
    transform: translateY(20%);
  }

  50% {
    transform: translateY(0%);
  }

  60% {
    transform: translateY(-10%);
  }

  70% {
    transform: translateY(0%);
  }

  80% {
    transform: translateY(5%);
  }

  90% {
    transform: translateY(0%);
  }

  100% {
    transform: translateY(0%);
  }
}


.bounce {
  animation: bounce 0.6s linear;
}

.hidden {
  display: none;
}

@keyframes shrinkLoading {
  0% {
    width: 100%;
    height: 100%;
    transform: scale(1);
    opacity: 1;
  }
  100% {
    width: 0;
    height: 0;
    transform: scale(0);
    opacity: 0;
  }
}

.loading.shrink {
  animation: shrinkLoading 0.2s ease forwards;
}


@keyframes expandAnimation {
  0% {    
    width: 0;
    height: 0;
    transform: scale(0);
    opacity: 0;
  }
  100% {
    width: 100%;
    height: 100%;
    transform: scale(1);
    opacity: 1;
  }
}

.step8.expandAnimation {
  animation: expandAnimation 0.2s ease forwards;
}

.pcfooter{
  width: 100%;
  position: fixed;
  bottom: 0;
  background-color: #262626;
  padding: .6%;
}
