body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.75;
  overflow: hidden;
}

h1,
h2 {
  margin: 0;
}

.wrapper {
  position: absolute;
  top: 0;
  left: 0;
}

.wrapper h1 {
  color: #fff;
  margin: 0;
  font-size: 3rem;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1;
}

#download-btn {
  position: fixed;
  top: 120px;
  left: 10px;
  z-index: 1;
  font-size: 1.5rem;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border: 1px solid #fff;
  border-radius: 0.5rem;
  cursor: pointer;
  background-color: #333;
}

#download-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background-image: linear-gradient(
    90deg,
    rgba(233, 233, 233, 1),
    rgba(172, 172, 172, 1)
  );
  padding: 4rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.controls select {
  font-size: 2rem;
  width: 100%;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.controls select:focus {
  border-color: #777;
}

.controls button {
  font-size: 2rem;
  width: 100%;
  color: #fff;
  background-color: #333;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.controls button:hover {
  background-color: #0056b3;
}

.controls button:active {
  transform: scale(0.98);
}

#message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 3rem;
  animation-name: fadeInAnime;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease;
  animation-delay: 0.5s;
  transition: all 0.3s ease;
}

@keyframes fadeInAnime {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

#message.static {
  animation-name: none;
}

.introduction {
  position: fixed;
  right: 5%;
  bottom: 5%;
  background-color: #fff;
  width: 100px;
  height: 100px;
  text-align: center;
  font-size: 3rem;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.introduction:hover {
  transform: scale(1.1);
}

.introModal {
  display: none;
  background-color: rgba(60, 60, 60, 0.8);
  color: #fff;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2rem;
  font-size: 1.5rem;
  max-height: 70vh;
  width: 80vw;
  max-width: 1000px;
  overflow-y: scroll;
  z-index: 5;
}

.modalContent {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modalContent header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modalContent header h2 {
  font-size: 3rem;
}

.close {
  font-size: 3rem;
  cursor: pointer;
}

#mobileControl {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  position: fixed;
  left: 5%;
  bottom: 5%;
}

#mobileControl div:first-of-type {
  text-align: center;
}

#mobileControl button {
  font-size: 1rem;
  color: #fff;
  background-color: #333;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.hidden {
  display: none;
}

.show {
  display: block;
}

.controlNav {
  position: fixed;
  bottom: 20px;
  left: 40px;
  background-color: rgba(255, 255, 255, .8);
  border-radius: 4px;
  padding: 20px;
}

@media screen and (max-width: 480px) {
  .wrapper h1 {
    font-size: 2rem;
    top: 40px;
  }

  #download-btn {
    top: 130px;
    font-size: 1rem;
  }

  .controls {
    padding: 1.5rem;
    width: 80%;
  }

  .controls select {
    font-size: 1.5rem;
  }

  .controls button {
    font-size: 1.5rem;
  }

  #message {
    font-size: 1.5rem;
    text-align: center;
  }

  .introduction {
    font-size: 1.5rem;
    width: 70px;
    height: 70px;
  }

  .introModal {
    padding: 1rem;
    font-size: 1rem;
    max-height: 80vh;
    width: 80vw;
    max-width: none;
  }

  .modalContent header h2 {
    font-size: 1.5rem;
  }

  .close {
    font-size: 1.5rem;
  }

  #mobileControl {
    display: flex;
  }

  .controlNav  {
    display: none;
  }
}


