* {
  position: relative;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

html {
  background-color: #000;
}


body {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Russo One", "TencentFont", arial, sans-serif;
  line-height: 1.25;
  letter-spacing: 0.06em;
  margin: 0;
}

.hide {
  opacity: 0;
  visibility: hidden;
}

.remove {
  display: none !important;
}

.blur {
  filter: blur(12px);
}

.container {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@font-face {
  font-family: "钉钉进步体 Regular";font-weight: 400;src: url("https://cdn.xn--7ovw36h.love/font/font/3zHqmx2lXwlD.woff2") format("woff2"),
url("https://cdn.xn--7ovw36h.love/font/font/3zHqmx2lXwlD.woff") format("woff");
  font-display: swap;
}
.new-loading-init,
.loading-init {
  width: 100%;
  align-self: center;
  text-align: center;
  text-transform: uppercase;
}

.loading-init__header {
  font-size: 2.2em;
  display: inline-flex;
  align-items: center;
}
.new-loading-init__text,
.loading-init__text {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.loading-init__text #loading-init__point {
  width: 36px;
  text-align: left;
  margin-left: 3px;
}
.loading-init__status {
  margin-top: 1em;
  font-size: 0.8em;
  opacity: 0.75;
}

.wish-input-form {
  display: flex;
  flex-direction: row; /* 将方向设置为行，使子元素水平排列 */
  justify-content: center; /* 水平居中对齐子元素 */
  align-items: center; /* 垂直居中对齐子元素 */
  width: 100%;
}

.fuckyou{
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

}

.new-wish-input-form {
  display: flex;
  flex-direction: row; /* 使子元素水平排列 */
  justify-content: center; /* 水平居中对齐子元素 */
  align-items: center; /* 垂直居中对齐子元素 */
  width: 100%;
}



#wishInput {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #9b9595;
  color: #bdb9b9;
  font-size: 18px;
  padding: 10px;
  text-align: center;
  margin: 0 auto; /* 确保输入框始终居中 */

}

/* 输入框和按钮动效 */
.fade-in {
  animation: fadeIn 1s;
  display: block; /* 确保按钮显示 */
}

.fade-out {
  animation: fadeOut 1s;
}

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

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.fade-in {
  animation: fadeIn 0.5s;
}

.fade-out {
  animation: fadeOut 0.5s;
}

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

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

#wishInput:focus {
  outline: none; /* 移除聚焦时的轮廓 */
  background-color: transparent; /* 聚焦时保持背景透明 */
  border-bottom: 2px solid #e3dede; /* 聚焦时底部边框变化 */
}

/* 调整按钮样式 */
#submitWish, #cancelWish {
  /* Basic button styles */
  padding: 10px 20px;
  margin: 5px; /* Spacing between buttons */
  border: none;
  color: white;
  margin: 10px auto; /* 居中按钮 */
  width: 150px; /* Set a specific width */
  height: 40px; /* Set a specific height */
  background: #555; /* Base color */
  position: relative; /* Positioning context for pseudo-elements */
  overflow: hidden; /* Ensures pseudo-elements don't overflow */
  transition: background-color 0.3s;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
  backdrop-filter: blur(5px); /* Frosted glass effect */
  -webkit-backdrop-filter: blur(5px); /* For Safari compatibility */
  border-radius: 10px; /* Rounded corners */
}

.fade-in {
  animation: fadeIn 1s forwards; /* 使用 forwards 使元素保持动画结束状态 */
}
#submitWish:hover, #cancelWish:hover {
  background-color: #666; /* Darken button on hover */
}
#submitWish::after, #cancelWish::after {
  /* Shiny effect */
  content: '';
  position: absolute;
  top: -50%; right: -50%; bottom: -50%; left: -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 80%);
  transform: translateX(-100%) translateY(-100%);
  transition: transform 0.5s;
  pointer-events: none; /* Ignore mouse events */
}

/* Button hover - Move the light effect with the mouse */
#submitWish:hover::after, #cancelWish:hover::after {
  transform: translateX(0) translateY(0);
}

#cancelWish {
  background-color: #f44336;
}

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





.stage-container {
  overflow: hidden;
  box-sizing: initial;
  border: 1px solid #222;
  margin: -1px;
}
@media (max-width: 840px) {
  .stage-container {
    border: none;
    margin: 0;
  }
}

.canvas-container {
  width: 100%;
  height: 100%;
  transition: filter 0.3s;
}
.canvas-container canvas {
  position: absolute;
  mix-blend-mode: lighten;
  transform: translateZ(0);
}

.controls {
  position: absolute;
  top: 0;
  width: 100%;
  padding-bottom: 50px;
  display: flex;
  justify-content: space-between;
  transition: opacity 0.3s, visibility 0.3s;
}
@media (min-width: 840px) {
  .controls {
    visibility: visible;
  }
  .controls.hide:hover {
    opacity: 1;
  }
}

.menu {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.42);
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(10px);
}
.menu__inner-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transition: opacity 0.3s;
}
.menu__header {
  margin-top: auto;
  margin-bottom: 8px;
  padding-top: 16px;
  font-size: 2em;
  text-transform: uppercase;
}
.menu__subheader {
  margin-bottom: auto;
  padding-bottom: 12px;
  font-size: 0.86em;
  opacity: 0.8;
}
.menu form {
  width: 100%;
  max-width: 400px;
  padding: 0 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.menu .form-option {
  display: flex;
  align-items: center;
  margin: 16px 0;
  transition: opacity 0.3s;
}
.menu .form-option label {
  display: block;
  width: 50%;
  padding-right: 12px;
  text-align: right;
  text-transform: uppercase;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.menu .form-option--select select {
  display: flex;
  align-items: baseline;
  width: 50%;
  height: 30px;
  font-size: 1rem;
  font-family: "Russo One", "TencentFont", arial, sans-serif;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.menu .form-option--select select option {
  background-color: black;
}
.menu .form-option--checkbox input {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0;
  opacity: 0.5;
}
@media (max-width: 840px) {
  .menu .form-option select, .menu .form-option input {
    outline: none;
  }
}

.close-menu-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.btn {
  opacity: 0.16;
  width: 50px;
  height: 50px;
  display: flex;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  cursor: default;
  transition: opacity 0.3s;
}
.btn--bright {
  opacity: 0.5;
}
@media (min-width: 840px) {
  .btn:hover {
    opacity: 0.32;
  }
  .btn--bright:hover {
    opacity: 0.75;
  }
}
.btn svg {
  display: block;
  margin: auto;
}

.credits {
  margin-top: auto;
  margin-bottom: 10px;
  padding-top: 6px;
  font-size: 0.8em;
  opacity: 0.75;
  text-align: center;
  position: relative;
}
.credits a {
  color: rgba(255, 255, 255, 0.5);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1em;
}
.credits a:hover, .credits a:active {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}
.credits .credit-btn {
  opacity: 0;
  left: -45px;
  bottom: 5px;
  z-index: 200;
  pointer-events: none;
  position: absolute;
}
.credits .credit-btn svg {
  width: 40px;
  height: 40px;
  margin-right: 5px;
}
.credits .credit-btn svg path {
  fill: #ffffff;
}

.help-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  visibility: hidden;
  transition-property: visibility;
  transition-duration: 0.25s;
}
.help-modal__overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition-property: opacity;
  transition-timing-function: ease-in;
  transition-duration: 0.25s;
}
.help-modal__dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  max-height: calc(100vh - 100px);
  margin: 10px;
  padding: 20px;
  border-radius: 0.3em;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.9, 0.9);
  transition-property: opacity, transform;
  transition-timing-function: ease-in;
  transition-duration: 0.25s;
}
@media (min-width: 840px) {
  .help-modal__dialog {
    font-size: 1.25rem;
    max-width: 500px;
  }
}
.help-modal__header {
  font-size: 1.75em;
  text-transform: uppercase;
  text-align: center;
}
.help-modal__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1em 0;
  padding: 1em 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}
.help-modal__close-btn {
  flex-shrink: 0;
  outline: none;
  border: none;
  border-radius: 2px;
  padding: 0.25em 0.75em;
  margin-top: 0.36em;
  font-family: "Russo One", arial, sans-serif;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: rgba(255, 255, 255, 0.25);
  transition: color 0.3s, background-color 0.3s;
}
.help-modal__close-btn:hover, .help-modal__close-btn:active, .help-modal__close-btn:focus {
  color: #FFF;
  background-color: #09F;
}
.help-modal.active {
  visibility: visible;
  transition-duration: 0.4s;
}
.help-modal.active .help-modal__overlay {
  opacity: 1;
  transition-timing-function: ease-out;
  transition-duration: 0.4s;
}
.help-modal.active .help-modal__dialog {
  opacity: 1;
  transform: scale(1, 1);
  transition-timing-function: ease-out;
  transition-duration: 0.4s;
}

.time-text {
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 100;
  position: fixed;
  padding: 15px 20px;
  transition: all 0.3s;
  user-select: none;
}

#Now-Time .time {
  font-size: 36px;
}

#Now-Time .time span {
  font-size: 60%;
}

#Now-Time .date {
  font-size: 16px;
}

.Next-Time {
  padding: 10px 15px;
  min-width: 250px;
  min-height: 112px;
  border-radius: 16px;
  background-color: rgba(100, 100, 100, 0.04);
  backdrop-filter: blur(10px);
  margin-top: 15px;
  box-shadow: 0 0 15px 0 rgba(100, 100, 100, 0.2);
}

@media(max-width: 500px) {
    .time-text {
        font-size: 14px;
    }
}

#right-bottom-button {
  right: 0;
  bottom: 0;
  z-index: 200;
  position: fixed;
  padding: 15px 20px;
  transition: all 0.3s;
}

#right-bottom-button .parent-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s;
  transform: rotate(-90deg);
}

#right-bottom-button .parent-button svg {
  width: 70%;
  height: 70%;
  opacity: 0;
  position: absolute;
  transition: all 0.3s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#right-bottom-button .parent-button svg.o {
  opacity: 1;
}

#right-bottom-button .parent-button svg path {
  fill: none;
  stroke: #fff;
  stroke-width: 90;
  opacity: 0.2;
}

#right-bottom-button .parent-button:hover svg path {
  opacity: 0.32;
}

#right-bottom-button .pause-btn,
#right-bottom-button .sound-btn {
  top: -20px;
  width: 30px;
  height: 30px;
  position: absolute;
  cursor: pointer;
}

#right-bottom-button .sound-btn {
  opacity: 0;
  pointer-events: none;
}

body.loading #right-bottom-button {
  opacity: 0;
  pointer-events: none;
}

body.hide-controls #right-bottom-button,
body.hide-controls .time-text {
  opacity: 0 !important;
}

body.hide-controls #right-bottom-button:hover,
body.hide-controls .time-text:hover {
  opacity: 1 !important;
}

body.menu-open #right-bottom-button {
  opacity: 1 !important;
}

body.menu-open #right-bottom-button .pause-btn {
  opacity: 0;
  pointer-events: none;
}

body.menu-open #right-bottom-button .sound-btn,
body.menu-open #right-bottom-button .parent-button svg path{
  opacity: 0.3;
  pointer-events: all;
}

body.menu-open .parent-button {
  transform: rotate(0deg) !important;
}

body.menu-open .parent-button svg.o {
  opacity: 0 !important;
}

body.menu-open .parent-button svg.x {
  opacity: 1 !important;
}

body.menu-open .time-text {
  opacity: 0 !important;
}

.close-menu-btn,
.close-menu-btn svg,
.close-menu-btn use {
  display: none;
  opacity: 0 !important;
  user-select: none;
  pointer-events: none;
}

@media(max-width: 630px) {
  .credits * {
    transition: opacity 0.3s ease-in-out;
  }

  .credits .copy {
    opacity: 0;
    pointer-events: none;
  }

  .credits .credit-btn {
    opacity: 1;
    pointer-events: all;
  }

  .credits .credit-btn:hover {
    opacity: 0 !important;
  }

  .credits .credit-btn:hover + .copy {
    opacity: 1 !important;
    pointer-events: all;
  }
}

@media(max-width: 600px) {
  .credits {
    font-size: 12px;
  }
}

@media(max-width: 560px) {
  .credits {
    font-size: 5px;
  }

  .credits .copy {
    padding: 0 50px;
  }

  .credits .credit-btn {
    left: 20px;
    bottom: 6px;
  }
}
