@import url("https://fonts.googleapis.com/css2?family=DynaPuff:wght@400..700&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow: hidden;
  font-family: "DynaPuff", serif;
  color: white;
}

.hide {
  opacity: 0;
  pointer-events: none;
}

.src-img {
  display: none;
}

canvas {
  position: absolute;
  inset: 0;
}

#canvas {
  z-index: 1;
}

#hit-canvas {
  z-index: -1;
}

#explain {
  left: calc(50% - 125px);
  top: calc(50% - 188px);
  transform: scale(0.6) rotateZ(0.25turn);
  opacity: 0;
  background: none;
  border: none;
  box-shadow: 0 0 2px 4px white;
  width: 250px;
  transition: 0.5s;
  border-radius: 8px;
}
#explain h4 {
  text-align: center;
  font-size: 2rem;
}
#explain #close-explain {
  position: absolute;
  right: 5px;
  top: 5px;
  font-size: 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
}
#explain.open {
  transform: none;
  opacity: 1;
}
#explain.open::backdrop {
  background: black;
}
#explain table {
  margin: 0 auto;
}
#explain table .img-box {
  width: 2rem;
  height: 2rem;
}
#explain table .img-box img {
  width: 100%;
}

#result {
  left: calc(50% - 125px);
  top: calc(50% - 75px);
  transform: scale(0.6) rotateZ(0.25turn);
  opacity: 0;
  background: none;
  border: none;
  box-shadow: 0 0 2px 4px white;
  width: 250px;
  height: 150px;
  transition: 0.5s;
  border-radius: 8px;
}
#result * {
  height: 40px;
  margin-block: 5px;
}
#result.open {
  transform: none;
  opacity: 1;
}
#result h4 {
  font-size: 2rem;
  text-align: center;
}
#result p {
  font-size: 1.5rem;
  text-align: center;
}
#result button {
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  padding: 2px 5px;
  font-size: 1.2rem;
  background: none;
  box-shadow: 0 0 2px 4px white;
  cursor: pointer;
  transition: 0.5s;
  border: none;
}
#result button:hover {
  scale: 1.05;
}

#page {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 100dvh;
  background-image: url("./image/mountain.jpg");
  background-size: cover;
  background-position: center;
}
#page #list {
  position: absolute;
  left: 5px;
  top: 5px;
  padding: 2px;
  border: none;
  background: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  transition: 0.5s;
}
#page #BGM-control {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 2px;
  border: none;
  background: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  transition: 0.5s;
}
#page #title, #page #score-title {
  font-size: 4rem;
  filter: drop-shadow(1px 1px 3px white);
  transition: 0.5s;
}
#page #score-title {
  position: absolute;
  top: 5px;
}
#page #time-title {
  position: absolute;
  right: 5px;
  top: 50px;
  font-size: 3rem;
  transition: 0.5s;
}
#page #start {
  background: none;
  border-radius: 8px;
  font-size: 3rem;
  box-shadow: 0 0 2px 4px white;
  border: none;
  padding: 2px 5px;
  cursor: pointer;
  transition: 0.5s;
  z-index: 2;
}
#page #start:hover {
  scale: 1.05;
}
#page #copyright {
  font-size: 2.5rem;
  transition: 0.5s;
}

@media screen and (max-width: 576px) {
  #page #title, #page #score-title {
    font-size: 3rem;
  }
  #page #list {
    left: 2dvw;
    top: 2dvh;
  }
  #page #BGM-control {
    right: 2dvw;
    top: 2dvh;
  }
  #page #time-title {
    font-size: 2rem;
    right: 2dvw;
    top: 8dvh;
  }
  #page #start {
    font-size: 2rem;
  }
  #page #copyright {
    font-size: 1rem;
  }
}
@media screen and (min-width: 577px) and (max-width: 767px) {
  #page #title, #page #score-title {
    font-size: 3rem;
  }
  #page #time-title {
    font-size: 2rem;
  }
  #page #start {
    font-size: 2rem;
  }
  #page #copyright {
    font-size: 1.5rem;
  }
}
@media screen and (min-width: 768px) and (max-width: 992px) {
  #page #title, #page #score-title {
    font-size: 4rem;
  }
  #page #time-title {
    font-size: 2.5rem;
  }
  #page #start {
    font-size: 2.5rem;
  }
  #page #copyright {
    font-size: 2rem;
  }
}
@media screen and (orientation: landscape) and (min-width: 400px) and (max-height: 576px) {
  #explain {
    top: calc(50dvh - 75px);
    height: 150px;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: white transparent;
  }
  #explain h4 {
    text-align: center;
    font-size: 2rem;
  }
  #explain #close-explain {
    position: absolute;
    right: 5px;
    top: 5px;
    font-size: 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
  }
  #explain.open {
    transform: none;
    opacity: 1;
  }
  #explain.open::backdrop {
    background: black;
  }
  #explain table {
    margin: 0 auto;
  }
  #explain table .img-box {
    width: 2rem;
    height: 2rem;
  }
  #explain table .img-box img {
    width: 100%;
  }
  #page #title, #page #score-title {
    font-size: 3rem;
  }
  #page #list {
    left: 2dvw;
    top: 2dvh;
  }
  #page #BGM-control {
    right: 2dvw;
    top: 2dvh;
  }
  #page #time-title {
    font-size: 2rem;
    right: 2dvw;
    top: 10dvh;
  }
  #page #start {
    font-size: 2rem;
  }
  #page #copyright {
    font-size: 1rem;
  }
}/*# sourceMappingURL=style.css.map */