@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');

body {
  font-family: 'Noto Sans JP', sans-serif;
}

main {
  width: 80%;
  height: 95%;
  position: absolute;
  top: 5%;
  left: 10%;
}

h1 {
  text-align: center;
  font-size: 3em;
}

button {
  width: 100%;
  outline: none;
  font-size: 2em;
  cursor: pointer;
}

main.blur {
  filter: blur(4px);
}

#background-cover {
  background-color: rgb(145, 145, 145);
  opacity: 0.7;
  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  cursor: pointer;
}

.modal {
  width: 500px;
  height: auto;
  background-color: white;
  position: fixed;
  top: -50%;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%) translateY(-50%);
  padding: 0;
  border-radius: 10px;
  transition: ease-in-out top 0.5s;
}

.modal.open {
  top: 30%;
  transition: ease-in-out top 0.7s;
}

.modal-head {
  padding-left: 20px;
  padding-bottom: 5px;
  border-bottom: solid #675f5f 1px;
}

.modal-head h2 {
  margin-top: 10px;
  margin-bottom: 0;
}

.modal span.close {
  position: absolute;
  top: 8px;
  right: 20px;
  font-size: 20px;
  color: rgb(145, 145, 145);
  cursor: pointer;
  user-select: none;
}

.modal span.close:hover {
  color: black;
}

.modal-content {
  padding-left: 20px;
}
