* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  touch-action: manipulation;
}

body {
  width: 100%;
  height: 100vh;
  background-color: #4c9cff;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.wrap {
  width: 100%;
  height: 100%;
  overflow: auto;
  font-size: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.wrap .container {
  position: relative;
  width: 94%;
  max-width: 640px;
  height: 94%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fffffe;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 2px #999;
  border-radius: 5px;
}
.wrap .container button {
  display: block;
  width: 80%;
  max-width: 280px;
  min-height: 50px;
  font-size: 1.2em;
  background-color: #2e7d32;
  border: 1px solid #2e7d32;
  color: #fff;
  margin: 0 auto;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}
@media (hover: hover) {
  .wrap .container button:hover {
    background-color: #388e3c;
    border-color: #388e3c;
    color: #fff;
  }
}
.wrap .container button:focus {
  background-color: #388e3c;
  border-color: #388e3c;
  color: #fff;
}
.wrap .container button:active {
  background-color: #1b5e20;
  border-color: #1b5e20;
  color: #fff;
}
.wrap .container button:disabled {
  opacity: 0.65;
  pointer-events: none;
}
.wrap .container .startArea {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
.wrap .container .startArea.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .startArea.hide {
  display: none;
}
.wrap .container .startArea h1 {
  margin: 80px 0 40px;
  font-weight: 400;
  font-size: 1.8em;
  line-height: 1.8;
}
.wrap .container .startArea .quizNumForm {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}
.wrap .container .startArea .quizNumForm .form-check {
  margin: 0 10px;
  font-size: 1.2em;
}
.wrap .container .startArea .quizNumForm .form-check .form-check-input,
.wrap .container .startArea .quizNumForm .form-check .form-check label {
  cursor: pointer;
}
.wrap .container .quizWrap {
  width: 100%;
  height: 100%;
  overflow: auto;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
.wrap .container .quizWrap.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .quizWrap.hide {
  display: none;
}
.wrap .container .quizWrap .quizTitle {
  width: 100%;
  font-size: 1.1em;
  margin-bottom: 30px;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}
.wrap .container .quizWrap .quizTitle .quizNum {
  margin-top: 20px;
  color: #666;
}
.wrap .container .quizArea {
  width: 100%;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
.wrap .container .quizArea.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .quizArea.hide {
  display: none;
}
.wrap .container .quizArea .questionArea {
  font-size: 1.6em;
  margin-bottom: 20px;
}
.wrap .container .quizArea .choiceList {
  width: 100%;
  list-style: none;
}
.wrap .container .quizArea .choiceList li {
  min-height: 50px;
  margin: 10px auto;
}
.wrap .container .quizArea .choiceList li button {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  width: 100%;
  max-width: 480px;
  min-height: 50px;
  padding: 12px;
  color: #000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1.2em;
  cursor: pointer;
}
@media (hover: hover) {
  .wrap .container .quizArea .choiceList li button:hover {
    background-color: #388e3c;
    border-color: #388e3c;
    color: #fff;
  }
}
.wrap .container .quizArea .choiceList li button:focus {
  background-color: #388e3c;
  border-color: #388e3c;
  color: #fff;
}
.wrap .container .quizArea .choiceList li button:active {
  background-color: #1b5e20;
  border-color: #1b5e20;
  color: #fff;
}
.wrap .container .judgeArea {
  width: 100%;
  max-width: 480px;
  min-height: 360px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 2px #999;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
.wrap .container .judgeArea.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .judgeArea.hide {
  display: none;
}
.wrap .container .judgeArea .judgeText {
  font-size: 1.6em;
  margin-bottom: 32px;
  padding: 4px 12px;
}
.wrap .container .judgeArea .judgeText.correct {
  background-color: #6a9266;
  color: #fff;
}
.wrap .container .judgeArea .judgeText.incorrect {
  background-color: #def4ec;
  color: #333;
}
.wrap .container .judgeArea .correctArea {
  margin-bottom: 40px;
}
.wrap .container .judgeArea .correctArea .correctText {
  font-size: 1.4em;
}
.wrap .container .judgeArea .correctArea .questionText {
  font-size: 1.4em;
  margin-bottom: 16px;
}
.wrap .container .resultArea {
  width: 100%;
  max-width: 480px;
  min-height: 240px;
  margin: 0 auto;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 2px #999;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
.wrap .container .resultArea.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .resultArea.hide {
  display: none;
}
.wrap .container .resultArea .resultMsg {
  margin-bottom: 20px;
  font-size: 2em;
}
.wrap .container .resultArea .totalQuizLen {
  margin-bottom: 40px;
  font-size: 1.4em;
}
.wrap .container .closeBtn {
  position: absolute;
  bottom: 0;
  right: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.wrap .container .closeBtn.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .closeBtn.hide {
  display: none;
}
.wrap .container .closeBtn .material-symbols-outlined {
  color: #999;
  font-size: 30px;
}