* {
  user-select: none;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE11 */
  touch-action: manipulation;
}

html,
body {
  overscroll-behavior: none;
  overflow: hidden;
  overflow-y: auto;
  height: 100%;
  width: 100%;

  /* -webkit-overflow-scrolling: touch; */
  height: -webkit-fill-available;
  padding: 0;
  margin: 0;
  background-color: rgb(224, 218, 218);
}

body {
  position: relative;

}

#wrap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* background-color: black; */
}


#yplayer {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  mix-blend-mode: normal;
  opacity: 3;
}

#aspect-ratio {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  aspect-ratio: 16/9;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  max-width: 360px;
  z-index: 2;
}

/* .canvas {
  position: absolute;
  top: 0;
 left: 8px; 
  width: auto;
  height: 100%;
} */
canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.container {
  z-index: -1;
}

/* 20231112選択画面追加に伴い追加 */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

#charactors,
#selectMode,
#selectSong {
  transition: opacity 0.5s ease;
  opacity: 1;
  /* Default opacity */
  /* z-index: 9999; */
  top: 0;
  position: absolute;
  right: 50%;
  transform: translate(50%, 0);
  width: 100%;
  height: 100%;
  z-index: 10;
}

#charactors,
#selectSong,
#selectMode {
  display: flex;
  flex-wrap: nowrap;
}

#charactors>.button,
#selectSong>.button,
#selectMode>.button {
  flex: 1;
  transition: flex-grow 0.5s;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  align-self: center;
}

#charactors>.button.active,
#selectSong>.button.active,
#selectMode>.button.active {
  flex-grow: 2;
}

#charactors>.button>img,
#selectSong>.button>img,
#selectMode>.button>img {
  width: 100%;
  object-fit: cover;
}

#selectSong>.button>img {
  height: 40vh;
}

#selectMode>.button>img,
#charactors>.button>img {
  height: 30vh;
}

#charactors>.button.active .check,
#selectSong>.button.active .check,
#selectMode>.button.active .check {
  top: 70%;
  left: 50%;
  touch-action: auto;
  -ms-touch-action: auto;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);

  opacity: 1;
  scale: 1;
}

#charactors>.button .check {
  max-width: 45%;
}

#selectMode>.button .check {
  max-width: 23%;
}

#selectSong>.button .check {
  max-width: 23%;
}

#charactors>.button .check,
#selectSong>.button .check,
#selectMode>.button .check {
  object-fit: cover;
  width: auto;
  height: auto;

  /* margin: 20%; */

  position: absolute;
  /* padding: 0.5rem 1rem; */
  vertical-align: middle;
  opacity: 0;
  top: 100%;
  left: 50%;

  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  background-color: #f3f3f391;
  background-position: center;
  transition: 0.4s;
  border-radius: 10px;
  animation-iteration-count: 1;
  touch-action: none;
  -ms-touch-action: none;
}

.hidden {
  opacity: 0;
  display: none;
}

.loader {
  border: 5px solid #f3f3f3;
  /* Light grey */
  border-top: 5px solid #3498db;
  /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  z-index: 14;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.textTitle {
  font-size: xx-large;
  text-align: center;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(0%, 20%);
  height: 100%;
  width: 100%;
  color: aliceblue;
  text-shadow: 1px 1px 5px #984a4a;
}

#hamburger-menu {
  width: 30px;
  height: 25px;
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 999;
}

#hamburger-menu .line {
  height: 3px;
  background-color: black;
  border-radius: 2px;
}

.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(64, 35, 35, 0.6);
  align-items: center;
  justify-content: center;
  display: flex;
  z-index: 9990;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 3rem;
  cursor: pointer;
  z-index: 9994;
}