* {
  margin: 0;
  /* padding: 0; */
  box-sizing: border-box;
  font-family: sans-serif;
  color: #ffffff;
}

body {
  min-height: 100vh;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  position: relative;
  margin: 0;
  /* overflow: hidden; */
  overflow: auto;
}

#loader-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loader-loading img {
  width: 200px;
  height: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes fadeLoader {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

.empty, .full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty {
  animation: fadeLoader 0.5s ease-in forwards;
}

.full {
  /* animation: fillUp 2s cubic-bezier(0.65, 0.05, 0.36, 1) forwards; */
  animation: fillUp 2s linear forwards;
}

@keyframes fillUp {
  0%, 100% {
      clip-path: polygon(0 100%, 20% 100%, 40% 100%, 60% 100%, 80% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
  25% {
      clip-path: polygon(0 76%, 16% 83%, 38% 84%, 59% 74%, 80% 73%, 100% 81%, 100% 100%, 0% 100%);
  }
  50% {
      clip-path: polygon(0 50%, 18% 44%, 38% 45%, 56% 52%, 80% 53%, 100% 47%, 100% 100%, 0% 100%);
  }
  75% {
      clip-path: polygon(0 24%, 19% 31%, 41% 33%, 59% 25%, 79% 21%, 100% 26%, 100% 100%, 0% 100%);
  }
  100% {
      clip-path: polygon(0 0, 26% 0, 48% 0, 67% 0, 85% 0, 100% 0, 100% 100%, 0% 100%);
  }

}

.loading::after {
  /* opacity: .7; */
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border: 4px solid #ccc;
  border-top-color: #00d5ff;
  border-radius: 50%;
  /* animation: spin 1s linear infinite alternate; */
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInBgImg {
  0% {
    background-color: #ffffff;
    opacity: 1;
  }
  100% {
    background-color: transparent;
    opacity: 1;
  }
}

#container {
  width: 400px;
  max-height: 800px; /* 设置最大高度,防止无限扩展 */
  /* overflow: hidden; */
  transition: max-height 0.5s ease-out; /* 添加平滑过渡效果 */
  /* background-color: #ccc; */
  z-index: 2;
  padding: 0;
}

.wrapper {
  width: 400px;
  max-height: 9999px;
  border-radius: 10px;
  box-shadow: 0 20px 15px rgba(0, 0, 0, 0.6);
  z-index: 3;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  opacity: 0;
  padding-bottom: 0.2em;

  /* 添加过渡效果 */
  transition: opacity 0.3s ease-in-out, max-height 0.5s ease-out;
}

.fade-in {
  opacity: 1; /* 设置透明度为1，开始淡入 */
}

.wrapper h1 {
  font-size: 30px;
  text-align: center;
  font-weight: 500;
  /* border-bottom: 2px solid #ccc; */
  margin: 0 20px;
  padding: 20px 25px;
  color: #ce8f00;
}

.wrapper .content {
  margin: 25px 25px 30px;
}

.content {
  margin: 20px 0;
  text-align: center;
}

.copyright p {
  font-size: 12px;
  margin-bottom: 2px;
}

.input-box {
  -webkit-text-fill-color: rgb(240, 255, 255) !important;
  color: rgb(240, 255, 255) !important;
  padding: 0.5em;
  width: 345px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
  text-align: center;
}

.input-code {
  font-family: p22-arts-and-crafts, sans-serif;
  font-size: 30px;
}

/* 特定于 iPhone 12 的样式 */
/* @media only screen and (max-width: 390px) {
    .input-code {
      font-family: input-sans-narrow, Poppins, sans-serif, Arial, Helvetica;
      font-style: normal;
      font-size: 30px;
    }
} */

.input-pas {
  font-family: input-sans-narrow, sans-serif;
  font-size: 24px;
}

.input-orderid {
  font-family: input-sans-narrow, sans-serif;
  font-size: 24px;
}

.input-email {
  font-family: input-sans-narrow, sans-serif;
  font-size: 18px;
}

input::placeholder {
  font-family: input-sans-narrow, sans-serif;
  font-size: 12px;
  color: rgb(153, 153, 153);
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active  {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: #f0ffff !important;
}


.error-message {
  color: #FF4500;
  /* 错误信息的颜色 */
  font-size: 16px;
  /* 文字大小 */
  text-align: left;
  /* 文本对齐方式 */
  margin-top: 5px;
  /* 顶部外边距，使其稍微离开输入框 */
  margin-left: 5px;
  margin-bottom: 5px;
  /* 底部外边距 */
}

@media screen and (max-width: 450px) {
    
  .wrapper{
      width: 100%;
  }

  .wrapper h1{
      font-size: 27px;
      padding: 20px 20px;
      color: #ce8f00;
  }

  .wrapper .content{
      margin: 25px 20px 30px;
  }

  .word input{
      height: 46px;
      width: 45px;
      margin: 3px;
      font-size: 19px;
  }

  .content .info p{
      font-size: 15px;
  }

  .content .buttons .reset{
      padding: 9px 0;
      font-size: 15px;
  }

}

#canvas1 {
  position: fixed; 
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* animation: fadeInCanvas 1.5s ease-in forwards; */
}


@keyframes shake {
  0% { transform: translateX(0); }
  10% { transform: translateX(-5px); }
  20% { transform: translateX(5px); }
  30% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  50% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
  70% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  90% { transform: translateX(-1px); }
  100% { transform: translateX(1px); }
}

.shake {
  animation: shake 0.3s ease-out;
}

.animated-image {
  opacity: 0;
  filter: blur(20px);
  animation: fadeIn 2s forwards, unblur 2s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes unblur {
  to {
    filter: blur(0);
  }
}

.wrapper.success {
  transform: translateY(0);
  /* box-shadow:
    inset 0 0 60px whitesmoke,
    inset 20px 0 80px #f0f,
    inset -20px 0 80px #0ff,
    inset 20px 0 300px #f0f,
    inset -20px 0 300px #0ff,
    0 0 50px #fff,
    -10px 0 80px #f0f,
    10px 0 80px #0ff; */
  box-shadow:
    inset 0 0 7px whitesmoke,
    inset 5px 0 10px #f0f,
    inset -5px 0 10px #0ff,
    inset 5px 0 25px #f0f,
    inset -5px 0 25px #0ff,
    0 0 12px #fff,
    -3px 0 10px #f0f,
    3px 0 10px #0ff;
}

.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  /* transform: translateY(-300px);
  transition: transform 2s; */
}

/* .image-container.success {
  transform: translateY(0);
} */

.image-container img {
  max-width: 300px;
}


#result {
  color:#FF4500;
  position: relative;
  font-size: 16px;
  padding-left: 0.5em;
  text-align: left;
  padding-bottom: 2em;
}

#result-success {
  color:#00ff44;
  position: relative;
  font-size: 16px;
  padding-left: 0.5em;
  text-align: left;
  padding-bottom: 2em;
}

#buttonsub {
  position: relative;
  padding-top: 1em;
}

#spinloader {
  position: relative;
  text-align: center;
}

.submitButton {
  /* position: relative;
text-align: center; */
  padding-bottom: 2em;
}

.submitButton button {
  background-color: rgba(201, 131, 0, 0.8);
  /* 深空蓝色，半透明 */
  color: white;
  /* 文字颜色为白色 */
  border: none;
  /* 移除边框 */
  padding: 5px 60px;
  /* 设置一些内边距 */
  text-align: center;
  /* 文本居中 */
  text-decoration: none;
  display: inline-block;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  /* 圆角边框 */
  transition: background-color 0.3s;
  /* 平滑过渡效果 */

  position: absolute;
  /* 使用绝对定位 */
  top: 50%;
  /* 顶部对齐到父元素的50%位置 */
  left: 50%;
  /* 左侧对齐到父元素的50%位置 */
  transform: translate(-50%, -50%);
  /* 使用变换向上和向左移动50%，确保完全居中 */
}

.submitButton .spinner {
  position: absolute;
  /* 使用绝对定位 */
  top: 50%;
  /* 顶部对齐到父元素的50%位置 */
  left: 50%;
  /* 左侧对齐到父元素的50%位置 */
  transform: translate(-50%, -50%);
  /* 使用变换向上和向左移动50%，确保完全居中 */
}

.submitButton button:hover {
  background-color: rgba(247, 182, 62, 0.7);
  /* 鼠标悬浮时颜色变浅 */
  color: black;
}

.submitButton button:disabled {
  background-color: #a9a9a9;
  /* 深灰色背景 */
  color: #666;
  /* 灰色文字 */
  cursor: not-allowed;
  /* 禁用状态的光标 */
}

.submitButton button:disabled:hover {
  background-color: #A9A9A9;
  /* 鼠标悬浮时保持不变 */
}

.spinner {
  border: 4px solid rgba(0, 0, 0, .1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border-left-color: #09f;
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  /* 在动画中也需要加入translate来保持居中 */
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
  }
}