*,
*::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; */
  width: 56.221889055vh;
  max-width: 100%;
}


body {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}


.step1,
.result,
.loading {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-bar {
  border: 2px solid #000;
  padding: 2px;
  overflow: hidden;
  background: #E2E2E2;
  position: absolute;
  width: 62%;
  height: 2.3%;
  bottom: 30%;
}

.progress {
  height: 100%;
  width: 0;
  background: #809A3B;
  /* 綠色 */
  animation: load 5s linear infinite;
}

.result-pic,
.result-video {
  position: absolute;
  aspect-ratio: 9 / 16;
  width: 67%;
  top: 5%;
}

.retake {
  position: absolute;
  bottom: 4%;
  left: 8%;
  height: 8%;
  width: 33%;
}

.share {
  position: absolute;
  bottom: 4%;
  right: 9%;
  height: 8%;
  width: 45%;
}

.capture {
  position: absolute;
  width: 20%;
  bottom: 12%;
}

.switch {
  position: absolute;
  width: 15%;
  bottom: 13%;
  right: 23%;
}

.btns-wrapper {
  position: absolute;
  bottom: 22%;
  left: 46%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.toggle-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  height: 50px;
  width: 100%;
}

.indicator {
  position: absolute;
  width: 58px;
  height: 22px;
  border-radius: 20px;
  border: 2px solid white;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%) translateX(-34px);
  background: transparent;
  transition: transform 0.3s ease;
  z-index: 1;
}

.toggle-button {
  margin-right: -5px;
  background: transparent;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 10px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}


.recording {
  position: absolute;
  width: 20%;
  bottom: 12%;
  z-index: 2;
  margin-left: -1%;
  margin-bottom: .5%;
}


.hidden {
  display: none;
}

@keyframes load {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}
