@font-face {
  font-family: ZenAntique;
  src: url(fonts/ZenAntique-Regular.ttf);
}

html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: ZenAntique;
}

html {
  background-image: url(images/background_long.png);
  background-color: #0e111f;
  background-repeat: no-repeat;
  height: 100vh;
  background-position: -500px -190px;
  transition: background-position 2.9s linear 0.3s;
}

html.background-pan {
  background-position: -250px 0px;
}

#overlay {
  height: 100vh;
  width: 100vw;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  /* display: none; */
}

@keyframes start_transition {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(2000px, 1000px) rotate(6deg);
  }
}

.start_transition {
  animation: start_transition 2s ease-in 0.2s forwards;
}

.loadingcontent {
  display: flex;
  align-items: flex-end;
  position: relative;
  left: -220px;
}

.overlay_images {
  height: fit-content;
  width: max-content;
  position: relative;
  z-index: 5;
}

.overlay_images img {
  height: 70vh;
}

.overlay_images :nth-child(even) {
  position: absolute;
  top: 0;
  left: 0;
}

.overlay_images .mirai_hover {
  opacity: 0;
}

.overlay_images .mirai_normal {
  opacity: 1;
}

.overlay_images:hover .mirai_hover {
  opacity: 1;
  animation: miku_bounce 0.3s;
}

.overlay_images:hover .mirai_normal {
  opacity: 0;
  animation: miku_bounce 0.3s;
}

.overlay_star_wrapper {
  position: relative;
  bottom: 0;
}

.mikuground {
  background: linear-gradient(
    31deg,
    rgba(34, 38, 84, 1) 24%,
    rgba(2, 8, 23, 1) 100%
  );
  position: relative;
  width: 350vw;
  height: 350vw;
  border-radius: 50%;
}

.textrotation {
  position: absolute;
  top: 60%;
  width: fit-content;
  height: fit-content;
  padding: 100px;
  transform: rotate(5deg);
  transition: transform 500ms ease-out;
  z-index: 5;
  pointer-events: none;
}

.readytext {
  height: 74px;
  width: 250px;
  position: absolute;
  padding-bottom: 100px;
  z-index: 5;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 500ms ease-out;
}

.textrotation.readytextanimation {
  transform: rotate(19deg);
}

.textrotation.readytextanimation .readytext {
  opacity: 0;
}

.mikuground img {
  height: 30vh;
}

.overlay_images .musicnote img {
  height: 163px;
  position: absolute;
  left: 350px;
  bottom: 438px;
}

@keyframes miku_bounce {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(0, -20px);
  }
}

@keyframes star_rotate {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.overlay_star:hover {
  animation: ease-out star_rotate 1s infinite;
}

@keyframes star_jump {
  0% {
    transform: translateY(500px);
  }

  85% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

.star-jump {
  animation: star_jump 1s ease-in-out 0.5s forwards;
}

.overlay_text {
  position: absolute;
  z-index: 50;
}

.play-star {
  left: calc(100px + 50vw);
  cursor: pointer;
  position: absolute;
  background-color: transparent;
  border: none;
  font-size: 7rem;
  -webkit-text-stroke: 2px white;
  color: rgb(14, 22, 52);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(500px);
}

#menu {
  position: absolute;
  bottom: -10px;
  left: -80vw;
  z-index: 5;
  transition: bottom 2s cubic-bezier(0.25, 0.1, 0.25, 1) 1s,
    left 2s cubic-bezier(0.25, 0.1, 0.25, 1) 1s;
}

#menu.visible {
  bottom: 0px;
  left: 0;
}

.play-button {
  position: absolute;
  bottom: 0;
  left: 203px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-button.is-playing .play {
  display: none;
}

.play-button.is-paused .pause {
  display: none;
}

.play-button img {
  height: 44px;
}
.play-button img:hover {
  cursor: pointer;
}

.play-button :nth-child(even) {
  position: absolute;
  bottom: 0;
  left: 0;
}

.play-bar-container {
  position: absolute;
  width: 80vw;
  height: 50px;
  bottom: 0;
  border-radius: 0 45px 0 0;
  background-color: #202659;
  display: flex;
  align-items: center;
}

.play-menu {
  height: 50px;
  width: 80vw;
  position: absolute;
  bottom: 0;
}

.play-bar {
  height: 10px;
  border-radius: 5px;
  position: absolute;
  left: 254px;
  width: calc(80vw - 280px);
}

.play-bar .fill {
  border-radius: 5px;
  position: absolute;
  background: aquamarine;
  height: 100%;
  transition: width 200ms linear;
}

.song-credits {
  color: white;
  position: absolute;
  left: 253px;
  bottom: 53px;
  display: flex;
  align-items: center;
}

.song-credits span {
  display: inline-block;
}

.song-credits .song-title {
  font-size: 1.1em;
}

.song-credits.is-loading .song-title::after {
  display: none;
}

.song-credits .song-artist {
  font-style: italic;
  font-size: 0.8em;
  letter-spacing: 1px;
  color: #fafafa;
}

.song-credits .song-title::after {
  content: "·";
  padding: 0 0.5em;
}

.star-menu:not(.active):hover {
  animation: ease-out star_rotate 0.7s infinite;
}

.star-menu {
  position: relative;
  z-index: 300;
  bottom: -70px;
  left: -20px;
  rotate: 15deg;
  height: 240px;
  width: 240px;
  transition: all 0.5s ease;
  cursor: pointer;
  clip-path: polygon(0 0, 45% 0, 95% 40%, 95% 100%, 0 100%);
}

.star-menu img {
  height: inherit;
}

.star-menu.active {
  bottom: -80px;
  left: -70px;
  height: 320px;
  width: 320px;
  rotate: -15deg;
  transition: all 0.5s ease;
}

.menu-item img {
  width: 60px;
  height: 60px;
  padding: 7px;
  border-radius: 50%;
  transition: all 0.5s ease;
  z-index: 3;
}

.menu-icon {
  background-color: rgb(75, 93, 133);
}

.menu-icon:not(.disabled):hover {
  background-color: #8eae97;
  cursor: pointer;
}

.menu-info {
  position: absolute;
  bottom: 10px;
  left: 53px;
  opacity: 0;
  rotate: -45deg;
}

.menu-star {
  position: absolute;
  bottom: 10px;
  left: 53px;
  opacity: 0;
  rotate: -45deg;
}

.menu-star.disabled {
  opacity: 0.5 !important;
  cursor: default;
  pointer-events: none;
}

.menu-song {
  position: absolute;
  bottom: 10px;
  left: 53px;
  opacity: 0;
  rotate: -45deg;
}

.star-active.active .menu-info {
  bottom: 216px;
  left: 61px;
  opacity: 1;
  rotate: 5deg;
}

.star-active.active .menu-star {
  bottom: 187px;
  left: 182px;
  opacity: 1;
  rotate: 5deg;
}

.star-active.active .menu-song {
  bottom: 78px;
  left: 240px;
  opacity: 1;
  rotate: 5deg;
}

.info-content {
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s linear;
}

.info-content img {
  position: absolute;
  top: -548px;
  left: 30px;
  width: 650px;
  height: auto;
  background-color: transparent;
  border-radius: 0;
}

.info-text {
  color: #fff;
  position: absolute;
  top: -463px;
  padding: 0 30px;
  left: 139px;
  width: 399px;
  height: 380px;
  z-index: 3;

  mask-image: linear-gradient(to bottom, steelblue 70%, transparent);

  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.info-text p {
  margin-bottom: 38px;
}

.info-content p::-webkit-scrollbar {
  display: none;
}

.info-content.active {
  opacity: 1;
  pointer-events: initial;
}

.star-content {
  position: absolute;
  top: -220px;
  left: -200px;
}

.star-content.flying {
  animation: flyingRin 4s linear;
}

@keyframes flyingRin {
  0% {
    top: -220px;
    left: -200px;
  }
  20% {
    top: -290px;
    left: calc(20vw - 20px);
  }
  40% {
    top: -220px;
    left: calc(40vw - 40px);
  }
  60% {
    top: -290px;
    left: calc(60vw - 60px);
  }
  80% {
    top: -220px;
    left: calc(80vw - 80px);
  }
  100% {
    top: -290px;
    left: calc(100vw + 100px);
  }
}

.star-content img {
  height: auto;
  width: 200px;
}

#mikuCanvas {
  z-index: 1;
  position: absolute;
}

#lyrics {
  font-size: 6em;
}

#media {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.2);
  z-index: 15;
  display: none;
}

#header {
  position: absolute;
  left: 0;
  top: 0;
}

#footer {
  position: absolute;
  left: 328px;
  bottom: 50px;
  color: white;
  display: none;
}

#footer > p {
  margin-left: 10px;
}

#lyricsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

#media > .textalive-media-wrapper > div {
  width: 100%;
}

.hide {
  display: none !important;
}
