@charset "utf-8";
* {
  box-sizing: border-box;
}
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #643831;
  font-family: Arial, sans-serif;
  background-image: url(images/bigbg.jpg);
  background-repeat: no-repeat;
  background-position: top center;
}
a {
  text-decoration: none;
}
/* --------------------------------index------------------------------------- */
.container {
  position: relative;
  max-width: 530px;
  height: 100%;
  margin: 0 auto;
  background-image: url(images/index.png);
  background-size: 100%;
  background-repeat: no-repeat;
}
.logo {
  position: relative;
  top: 20px;
  right: 4%;
  width: 21%;
  margin-left: auto;
}
.logo img {
  width: 100%;
}
.subword {
  position: relative;
  width: 31%;
  height: auto;
  margin-left: auto;
  margin-top: 580px;
  right: 1%;
  font-size: 20px;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}
.button {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-end;
  align-content: flex-end;
  width: 100%;
  position: relative;
}
.container .bhigh {
  position: relative;
  margin-top: 10px;
}
.button-container {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  width: auto;
  height: 58px;
  margin: auto;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.4);
  border-radius: 58px;
  margin-bottom: 10px;
}
.btn-left,
.btn-right {
  width: 49px;
  min-width: 49px;
  flex-shrink: 0;
  height: 100%;
  display: block;
}
.btn-left img,
.btn-right img {
  width: 100%;
  height: 100%;
  display: block;
}
.btn-center {
  flex-grow: 1;
  height: 100%;
  background: url("images/btbg_2.png") repeat-x center center;
  background-size: auto 100%;
  color: white;
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  line-height: 54px;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-left {
  margin-right: -2px;
}
.btn-right {
  margin-left: -2px;
}
.button-container:hover {
  transform: scale(1.01);
  filter: brightness(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
/* -------------------page1--------------------------*/
.container-B {
  position: relative;
  max-width: 530px;
  height: 100%;
  /*height: 100vh;*/
  margin: 0 auto;
  /*background-image: url(images/bg.png);
    background-size: 100%;
    background-repeat: no-repeat;*/
}
.logo-B {
  position: absolute;
  top: 20px;
  right: 4%;
  width: 21%;
}
.logo-B img {
  width: 100%;
}
.title-A {
  color: #f2edb3;
  font-size: 20px;
  margin: 0 auto;
  width: 80%;
  padding: 80px 2% 20px 2%;
  position: relative;
  letter-spacing: 1px;
  font-weight: 700;
  text-align: center;
}
.privacy {
  width: 80%;
  height: 530px;
  position: relative;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px 5%;
  text-align: justify;
  margin-bottom: 20px;
}
.line {
  width: 100%;
  height: 1px;
  background-color: #000;
  margin: 20px 0;
}
h1 {
  text-align: center;
}
.button .short {
  min-width: 200px;
}
/* -------------------page2 & page3--------------------------*/
.progressbar {
  width: 95%;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-around;
  top: 80px;
}
.progressbar .on {
  background-color: #fff;
}
.star {
  width: 25px;
  height: 25px;
  background-color: white;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  position: relative;
  margin-left: auto;
  top: -10px;
  transform: rotate(22deg);
  left: 10px;
}
.bar {
  width: 20%;
  height: 4px;
  border-radius: 4px;
  background-color: #736766;
}
.question {
  color: #fff;
  font-size: 22px;
  margin: 0 auto;
  width: 80%;
  padding: 100px 2% 20px 2%;
  position: relative;
  letter-spacing: 2px;
  font-weight: 700;
  text-align: center;
}
.allbox {
  width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-content: space-around;
}
.box {
  width: 38%;
  height: 270px;
  margin: 0 2%;
  text-align: center;
}
.pic {
  width: 100%;
  background-color: #dec9b0;
  border-radius: 12px;
  border: solid 15px #fff;
  box-shadow: inset 5px 15px 15px rgba(101, 67, 33, 0.4);
}
.pic img {
  width: 100%;
  height: 100%;
  display: block;
}
.choose {
  height: 48px;
  display: inline-block;
  position: relative;
  padding: 0 9%;
  top: 10px;
  border-radius: 48px;
  color: #fff;
  background-color: #bd8f76;
  cursor: pointer;
  text-align: center;
  font-size: 19px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.4),
    inset 0 -4px 6px rgba(0, 0, 0, 0.25), 0 4px 6px rgba(0, 0, 0, 0.4);
}
.choose:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
  box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.4),
    inset 0 -4px 6px rgba(0, 0, 0, 0.25), 0 0 10px rgba(255, 255, 255, 0.2);
}
.choose.active {
  background-color: #a86c4f;
  transform: scale(0.98);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(255, 255, 255, 0.5);
  border: 2px solid #fff2e0;
}

/* -------------------page4--------------------------*/
.allupload {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box;
  gap: 15px 0;
  margin-bottom: 10px;
}
.upload {
  width: 60%;
  height: 250px;
  border-radius: 5px;
  background-color: #fff;
  background-image: url(images/up.jpg);
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}
.upload input[type="file"] {
  display: none;
}
.upload img.preview {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}
.upload:hover {
  filter: brightness(0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
.title-B {
  color: #f2edb3;
  font-size: 18px;
  margin: 0 auto;
  width: 80%;
  margin-bottom: 10px;
  position: relative;
  letter-spacing: 1px;
  font-weight: 700;
  text-align: center;
}
/* -------------------page5--------------------------*/
.topcam {
  padding-top: 8%;
}
.camera {
  width: 100%;
  aspect-ratio: 622 / 684; /* 保持 622:684 的比例 */
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background-image: url(images/camerabody.png);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: top center;
  animation: fadeInMove4 1s ease-in-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}
.camera-light {
  position: absolute;
  width: 65%;
  top: -10%;
  left: -5%;
  animation: fadeInMove3 1s linear forwards;
  animation-delay: 1s;
  opacity: 0;
}
.camera-pic {
  position: absolute;
  width: 66%;
  left: 17%;
  top: 32%;
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 0%,
    transparent 0%
  );
  mask-image: linear-gradient(to bottom, black 0%, black 0%, transparent 0%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: revealMask 8s ease-in-out forwards;
  animation-delay: 3s;
}
.camera-light img,
.camera-pic img,
.camera-cc img {
  width: 100%;
}
.camera-cc {
  position: absolute;
  width: 72.9%;
  left: 13.6%;
}
/*.camera img{
    width: 100%;
    display: block;
    height: auto;
    /* 加遮罩動畫在圖片上
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 50%);
    mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 50%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: revealMask 3s ease-in-out forwards;
    animation-delay: 1s;}*/

.container-B .notop {
  padding: 0 2%;
}
.show {
  animation: fadeInMove2 1s ease-out forwards;
  animation-iteration-count: infinite;
}
.typewriter {
  /*display: inline-block;*/
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3s steps(20) forwards;
  border-right: 0.15em solid #000; /* 游標效果 */
  animation-delay: 3s;
}

/* -------------------page6--------------------------*/
.familyphoto {
  width: 72%;
  background-color: #eee;
  padding: 20px 6%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
  position: relative;
  background-image: url(images/pic.png);
  background-size: 100% 100%;
  margin-bottom: 20px;
}
.photo-img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.blank {
  background-color: rgba(0, 0, 0, 0.8);
}
.photo-overlay {
  position: relative;
  /*top: 16px;
   left: 16px;
   width: calc(100% - 32px);*/
  height: auto;
  aspect-ratio: 9/10;
  border-radius: 10px;
  pointer-events: none;
  width: 100%;
}
.photo-overlay img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 9/10;
}
.develop img {
  filter: brightness(0);
  animation: showpic 10s forwards;
}
.photo-text {
  position: relative;
  width: 100%;
  height: 80px;
  margin: 20px 0 0 0;
  color: #231815;
}
.photo-text-B {
  position: relative;
  width: 100%;
  height: 80px;
  margin: 20px 0 0 0;
  display: block;
  color: #231815;
  font-size: 25px;
  letter-spacing: 1px;
  font-weight: 800;
  line-height: 36px;
}
.cilogo {
  width: 40%;
  min-height: 26px;
  display: block;
  margin-left: auto;
}
.cilogo img {
  width: 100%;
}
.textarea-box {
  width: 100%;
  border: none;
  border: 1px solid #aaa;
  font-size: 16px;
  background: transparent;
  color: #444;
  outline: none;
  text-align: left;
  padding: 10px;
  height: 70px;
}
/* -------------------page7--------------------------*/
.loading {
  font-size: 14px;
  color: #fff;
  text-align: center;
  width: auto;
  font-weight: 700;
  letter-spacing: 1px;
  animation: fadeInMove2 1s infinite;
}
.dotall {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 12px;
  background-color: #000;
  display: block;
  margin: 1%;
  animation: lightUp 1s infinite;
}
.dot:nth-child(1) {
  animation-delay: 0s;
}
.dot:nth-child(2) {
  animation-delay: 0.1s;
}
.dot:nth-child(3) {
  animation-delay: 0.2s;
}
.dot:nth-child(4) {
  animation-delay: 0.3s;
}
.dot:nth-child(5) {
  animation-delay: 0.4s;
}
.dot:nth-child(6) {
  animation-delay: 0.5s;
}
.dot:nth-child(7) {
  animation-delay: 0.6s;
}
.dot:nth-child(8) {
  animation-delay: 0.7s;
}
.dot:nth-child(9) {
  animation-delay: 0.8s;
}
.showText {
  opacity: 0;
  animation: showword 5s forwards;
  animation-delay: 2s;
}
.btn-center .up {
  display: flex;
  align-items: center;
  margin-left: 6px;
}
.btn-center img {
  height: 20px;
  width: auto;
}
.btn-center .re {
  display: flex;
  align-items: center;
  margin-left: 6px;
}

/*---------------動態-------------------*/
@keyframes fadeInMove {
  0% {
    opacity: 0;
    transform: translateY(-50px); /* 從上方開始 */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* 回到原位 */
  }
}
@keyframes fadeInMove2 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeInMove3 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  10% {
    opacity: 1;
    transform: scale(1.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeInMove4 {
  0% {
    opacity: 0;
    transform: translateY(-10%);
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  95% {
    opacity: 1;
    transform: translateY(1%);
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes revealMask {
  0% {
    transform: translateY(-80%);
    -webkit-mask-image: linear-gradient(
      to top,
      black 0%,
      black 80%,
      transparent 80%
    );
    mask-image: linear-gradient(to top, black 0%, black 80%, transparent 80%);
  }

  100% {
    transform: translateY(0px);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 100%);
    mask-image: linear-gradient(to top, black 0%, black 100%);
  }
}
@keyframes lightUp {
  0%,
  80%,
  100% {
    background-color: #000;
  }
  40% {
    background-color: #fff;
  }
}
@keyframes showpic {
  from {
    filter: brightness(0);
  }
  to {
    filter: brightness(0.6);
  }
}
@keyframes showword {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.5;
  }
}
@keyframes typing {
  from {
    width: 0;
    opacity: 1;
  }
  to {
    width: 20ch;
    opacity: 1;
    border-right: 0.15em solid #5d342e;
  }
}
/*-------------------平板--------------*/
@media screen and (max-width: 1024px) {
  .container,
  .container-B {
    max-width: 100%;
  }
  .subword {
    margin-top: 78vh;
    font-size: 30px;
  }
  .button {
    display: block;
    text-align: center;
  }
  .button-container {
    min-width: 35%;
    height: 80px;
    margin: auto 2%;
  }
  .btn-center {
    line-height: 78px;
    font-size: 30px;
  }
  .inword {
    font-size: 30px;
    overflow-y: auto;
    height: 75%;
  }
  .privacy {
    height: 75%;
  }
  .title-A {
    font-size: 32px;
    width: 100%;
  }
  h1 {
    font-size: 3em;
  }
  .box {
    margin-bottom: 5%;
    height: auto;
  }
  .question {
    font-size: 38px;
  }
  /*.allbox{ height: 75%;}*/
  .choose {
    width: 70%;
    height: 70px;
    font-size: 30px;
    line-height: 65px;
  }
  .pic {
    margin-bottom: 5%;
  }
  .allupload {
    height: 70%;
    overflow-y: auto;
  }
  .upload {
    height: 300px;
  }
  .upload img {
    height: 100%;
  }
  .title-B {
    font-size: 25px;
  }
  .textarea-box {
    height: 90%;
    font-size: 30px;
  }
  .photo-text {
    height: 150px;
  }
  .loading {
    font-size: 22px;
  }
  .dot {
    width: 15px;
    height: 15px;
  }
  .photo-text-B {
    height: 130px;
    font-size: 38px;
    line-height: 60px;
  }
  .familyphoto {
    margin-bottom: 2%;
    padding: 3% 6%;
  }
  .camera {
    width: 60%;
  }
  .topcam {
    padding-top: 12%;
  }
  .question.notop.typewriter {
    font-size: 28px;
  }
}
@media screen and (max-width: 834px) {
  .subword {
    margin-top: 74vh;
    width: 35%;
  }
  .camera {
    width: 70%;
  }
}
@media screen and (max-width: 744px) {
  .subword {
    margin-top: 70vh;
  }
  .upload {
    height: 250px;
  }
}
@media screen and (max-width: 690px) {
  .choose {
    width: 90%;
  }
  .upload {
    height: 220px;
  }
  .camera {
    width: 80%;
  }
  .topcam {
    padding-top: 15%;
  }
}
@media screen and (max-width: 560px) {
  .photo-text-B {
    font-size: 30px;
    line-height: 45px;
  }
  .upload {
    height: 180px;
  }
  .title-B {
    font-size: 18px;
  }
  .btn-center {
    font-size: 25px;
  }
  .button-container {
    margin: 0;
  }
  .camera {
    width: 100%;
  }
  .topcam {
    padding-top: 25%;
  }
  .question.notop.typewriter {
    font-size: 25px;
  }
}
/*-------------------手機--------------*/
@media screen and (max-width: 480px) {
  .btn-center {
    font-size: 19px;
  }
  h1 {
    font-size: 2em;
  }
  .inword {
    font-size: 22px;
  }
  .button-container {
    height: 60px;
  }
  .btn-center {
    line-height: 58px;
  }
  .allbox {
    height: auto;
  }
  .choose {
    width: 100%;
    height: 50px;
    font-size: 25px;
    line-height: 48px;
  }
  .question {
    font-size: 24px;
  }
  .upload {
    height: 150px;
  }
  .allupload {
    height: auto;
  }
  .title-A {
    width: 95%;
    font-size: 26px;
    letter-spacing: 0;
  }
  .title-B {
    font-size: 15px;
  }
  .button .short {
    min-width: 180px;
    margin: 5px;
  }
  .familyphoto {
    width: 78%;
  }
  .star {
    width: 22px;
    height: 22px;
    top: -8px;
  }
  .progressbar {
    top: 55px;
  }
  .subword {
    margin-top: 530px;
    font-size: 18px;
    right: 4%;
    letter-spacing: 2px;
  }
  .textarea-box {
    font-size: 22px;
  }
  .photo-text-B {
    font-size: 25px;
    line-height: 35px;
  }
  .loading {
    font-size: 17px;
    margin-top: 20px;
  }
  .privacy {
    height: 65%;
  }
}
@media screen and (max-width: 414px) {
  .box {
    height: 230px;
  }
  .pic {
    border: solid 10px #fff;
  }
  .question {
    width: 95%;
    padding: 70px 2% 20px 2%;
  }
  .privacy {
    overflow-x: scroll;
    height: 450px;
    width: 90%;
  }
  .subword {
    margin-top: 470px;
  }
}
@media screen and (max-width: 375px) {
  .subword {
    width: 35%;
    font-size: 17px;
    margin-top: 430px;
    right: 1%;
    letter-spacing: 2px;
  }
  .title-A {
    padding: 55px 2% 20px 2%;
  }
  .title-A {
    width: 100%;
  }
  .question {
    font-size: 20px;
  }
  .choose {
    font-size: 18px;
  }
}
