body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: Monospace;
  font-size: 13px;
  line-height: 24px;
  overscroll-behavior: none;
}

a {
  color: #ff0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  text-transform: uppercase;
}

#info {
  position: absolute;
  top: 0px;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  z-index: 1; /* TODO Solve this in HTML */
}

a,
button,
input,
select {
  pointer-events: auto;
}

.lil-gui {
  z-index: 2 !important; /* TODO Solve this in HTML */
}

@media all and (max-width: 640px) {
  .lil-gui.root {
    right: auto;
    top: auto;
    max-height: 50%;
    max-width: 80%;
    bottom: 0;
    left: 0;
  }
}

#overlay {
  position: absolute;
  font-size: 16px;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.7);
}

#overlay button {
  background: transparent;
  border: 0;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 4px;
  color: #ffffff;
  padding: 12px 18px;
  text-transform: uppercase;
  cursor: pointer;
}

#notSupported {
  width: 50%;
  margin: auto;
  background-color: #f00;
  margin-top: 20px;
  padding: 10px;
}
a {
  color: #8ff;
}

#menu {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}
.element {
  width: 130px;
  height: 160px;
  box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: Helvetica, sans-serif;
  text-align: center;
  line-height: normal;
  cursor: default;
}

.last-element {
  -webkit-box-reflect: below 10px -webkit-linear-gradient(transparent, transparent 50%, rgba(0, 0, 0, 0.8));
}

.element:hover {
  box-shadow: 0px 0px 12px rgba(0, 255, 255, 0.75);
  border: 1px solid rgba(127, 255, 255, 0.75);
}

.element .number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  color: rgba(127, 255, 255, 0.75);
}

.element .symbol {
  position: absolute;
  top: 40px;
  left: 0px;
  right: 0px;
  font-size: 60px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.95);
}

.element .details {
  position: absolute;
  bottom: 15px;
  left: 0px;
  right: 0px;
  font-size: 12px;
  color: rgba(127, 255, 255, 0.75);
}

button {
  color: rgba(127, 255, 255, 0.75);
  background: transparent;
  outline: 1px solid rgba(127, 255, 255, 0.75);
  border: 0px;
  padding: 5px 10px;
  cursor: pointer;
}

button:hover {
  background-color: rgba(0, 255, 255, 0.5);
}

button:active {
  color: #000000;
  background-color: rgba(0, 255, 255, 0.75);
}

.plane {
  /* margin-left: 300px;
  margin-top: -100px; */
  width: 350px;
  height: 350px;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.95));
  border-radius: 50%;
  overflow: hidden;
  display: none;
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* 动态文字区域 */

.slogan {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-box-reflect: below -2px linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  background-image: url("../img/avatar.jpg");
  background-clip: text;
}

.slogan span {
  position: relative;
  display: inline-block;
  font-size: 48px;
  font-weight: bolder;
  font-family: "microsoft yahei";
  -webkit-text-stroke: 2px #f40;
  color: transparent;
  animation: Baidong 1s ease-in-out infinite;
  animation-delay: calc(0.1s * var(--i));
}

@keyframes Baidong {
  0% {
    transform: translateY(0px);
  }
  20% {
    transform: translateY(-20px);
  }
  40%,
  100% {
    transform: translateY(0px);
  }
}

#audio-canvas {
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 1;
}

#avatar {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

#avatar img {
  width: 100%;
  clip-path: polygon(25% 0, 50% 15%, 75% 0, 90% 20%, 90% 60%, 50% 100%, 10% 60%, 10% 20%);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95));
}

#lyric {
  width: 380px;
  height: 60px;
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.1);
}

#lyric .lyric-list {
  width: 100%;
  transition: all 0.3s ease-in-out;
}

#lyric .lyric-item {
  width: 100%;
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-family: "microsoft yahei";
}

#audio-control {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.2s linear;
  z-index: 3;
}

#audio-control .control-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
  transform: scale(0);
  opacity: 0;
  transition: all 0.2s linear;
}

#audio-control .control-btn::before,
#audio-control .control-btn::after {
  transition: width 0.2s linear, height 0.2s linear;
}

#audio-control .control-btn.pause::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}
#audio-control .control-btn.pause::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  left: 50%;
  transform: translate(-25%, -50%);
  border: 20px solid transparent;
  border-left: 40px solid rgba(255, 255, 255, .7);
  border-radius: 5px;
}

#audio-control .control-btn.play::before,
#audio-control .control-btn.play::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, .7);
}

#audio-control .control-btn.play::before {
  left: 25px;
}
#audio-control .control-btn.play::after {
  right: 25px;
}

#audio-control:hover {
  opacity: 1;
}

#audio-control:hover .control-btn {
  transform: scale(1);
  opacity: 1;
}
