*,
*::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,
canvas,
svg {
  display: block;
  max-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;
  aspect-ratio: 9 / 16;
  max-width: 100%;
}


body {
  height: 100%;
  width: 100%;
  display: flex;
  justify-self: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  background-image: url(assets/bg.png);
  background-position: center;
  background-size: cover;
}

.step1 {
  background-image: url(assets/bg.png);
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.switch-lang-btn {
  width: 12%;
  position: absolute;
  top: 4%;
  left: 6%;
}

.step1-title {
  position: absolute;
  top: 11%;
  width: 88%;
}

.step1-instruction {
  position: absolute;
  width: 82%;
  top: 47%;
}

.step1-photos {
  width: 88%;
  position: absolute;
  top: 17%;
}

.prize {
  position: absolute;
  top: 71%;
  width: 64%;
}

.step1-btn {
  position: absolute;
  top: 82%;
  width: 44%;
}

.step1-bottom {
  position: absolute;
  bottom: 0;
}

.step2 {
  position: relative;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url(assets/HD%E8%83%8C%E6%99%AF.png);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}


.loading {
  top: 0;
  left: 0;
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url(assets/HD%E8%83%8C%E6%99%AF.png);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.step3 {
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url(assets/HD%E8%83%8C%E6%99%AF.png);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.result {
  width: 70%;
  position: absolute;
  top: 5%;
  aspect-ratio: 4 / 5;
}

.save-pic {
  position: absolute;
  top: 52.8%;
  width: 60%;
}

.save-pic.cn {
  top: 54.4%;
}

.step3-download-pic-btn {
  position: absolute;
  top: 58.5%;
  width: 52%;
}

.step3-download-pic-btn.cn {
  position: absolute;
  top: 58%;
  width: 50%;
}

.step3-share-btn,
.stpe3-coupon-btn {
  width: 42%;
  z-index: 5;
}

.step3-share-btn.cn,
.stpe3-coupon-btn.cn {
  width: 38%;
  z-index: 5;
}

.step3-share-btn {
  position: absolute;
  top: 65.5%;
  left: 7%;
}

.step3-share-btn.cn {
  position: absolute;
  top: 64.6%;
  left: 6%;
  width: 43%;
}

.step3-preparing {
  position: absolute;
  top: 65.3%;
  left: 7%;
  width: 43%;
  z-index: 5;
}

.step3-preparing.cn {
  position: absolute;
  top: 64.3%;
  left: 5%;
  width: 45%;
  z-index: 5;
}

.stpe3-coupon-btn {
  position: absolute;
  top: 65.5%;
  right: 9%;
}


.stpe3-coupon-btn.cn {
  width: 44%;
  z-index: 5;
  right: 6%;
  top: 64.5%;
}

.step3-rules {
  z-index: 1;
  width: 78%;
  top: 73%;
  position: absolute;
}

.step3-rules.cn {
  width: 100%;
}

.ads {
  position: absolute;
  bottom: 1%;
  width: 90%;
  left: 3%;
}


.step3-rules-btn {
  padding: 1rem;
  position: absolute;
  right: 8%;
  top: 0;
  height: 100%;
  width: 10%;
}

.step3-rules-btn.cn {
  padding: 0;
  height: 1rem;
  top: unset;
  bottom: -9%;
  right: 28%;
  width: 29%;
}

.camera-wrapper {
  width: 80%;
  aspect-ratio: 9 / 16;
  position: relative;
}

#canvas,
#video,
#canvas2,
.result {
  border: 2px solid #e5d893;
}

.logo {
  z-index: 1;
  width: 24%;
  position: absolute;
  top: 2%;
}

#video,
#canvas {
  aspect-ratio: 9 / 16;
  width: 100%;
  position: absolute;
  object-fit: cover;
  height: 72%;
  top: 6%;
}

#canvas2 {
  aspect-ratio: 4/5;
  width: 100%;
  position: absolute;
  object-fit: cover;
}

#video {
  z-index: 2;
}


.video-photo {
  z-index: -1;
}

.ai-photo,
.video-photo,
.lens-photo {
  position: absolute;
  aspect-ratio: 9 / 16;
  width: 100%;
}

.controls {
  position: absolute;
  z-index: 3;
  width: 100%;
  justify-content: space-around;
  display: flex;
  align-items: center;
  bottom: 10%;
}

.capture-btn {
  width: 20%;
}

.download-btn,
.share-btn {
  width: 16%;
}



.loading-loader {
  width: 72%;
  position: absolute;
  top: 20%;
}

.generating {
  position: absolute;
  bottom: 23%;
  width: 60%;
}

.loader {
  position: absolute;
  width: 72%;
  bottom: 17%;
}

.loader-content {
  border: 8px solid rgba(0, 0, 0, 0.1);
  border-top: 8px solid #000;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: spin 2s linear infinite;
  animation-delay: 250ms;
}

.policy-model {
  position: fixed;
  z-index: 5;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.8);
}

.policy {
  z-index: 3;
  background-color: wheat;
  aspect-ratio: 9 / 16;
  overflow: auto;
  height: 80%;
}

.policy-prize {
  width: 75%;
  margin-top: 20px;
  margin: auto;
  margin-top: 16px;
}

.policy-text {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.email {
  position: absolute;
  bottom: 22.6%;
  display: block;
  height: 2%;
  width: 80%;
  left: 5%;
}

.close-btn {
  padding: 5px;
  width: 6%;
  position: absolute;
  right: 9%;
  top: 6%;
}

.loading-icon {
  animation: spin 2s linear infinite;
}

.fb-on-android {
  z-index: 7;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8)
}

.fb-on-android-pic {
  width: 75%;
  margin-left: auto;
  margin-right: 2rem;
  margin-top: 1rem;
}


.hidden {
  display: none;
}

.mirror {
  transform: scaleX(-1);
}

/* Keyframes for the rotation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
