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

html {
  touch-action: manipulation;
}

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

.wrap {
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #89f7fe, #66a6ff, #4facfe, #00f2fe);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  text-align: center;
}
.wrap .container {
  position: relative;
  width: 90%;
  max-width: 640px;
  height: 90%;
  overflow: auto;
  padding: 20px;
  background-color: #fffffe;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 2px #999;
  border-radius: 5px;
}
.wrap .container p,
.wrap .container ul,
.wrap .container li {
  margin: 0;
  padding: 0;
}
.wrap .container .startArea {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.wrap .container .startArea.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .startArea.hide {
  display: none;
}
.wrap .container .startArea h1 {
  margin-bottom: 50px;
  font-weight: 400;
  font-size: 1.8em;
  line-height: 1.8;
}
.wrap .container .startArea h1 span {
  font-size: 0.85em;
}
.wrap .container .startArea .startBtn {
  display: block;
  width: 80%;
  max-width: 280px;
  min-height: 50px;
  font-size: 1.4em;
  background-color: #2e7d32;
  border: 1px solid #2e7d32;
  color: #fff;
  margin: 0 auto;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}
.wrap .container .startArea .startBtn:hover, .wrap .container .startArea .startBtn:focus {
  background-color: #388e3c;
  border-color: #388e3c;
  color: #fff;
  outline: none;
}
.wrap .container .startArea .startBtn:active {
  background-color: #1b5e20;
  border-color: #1b5e20;
  color: #fff;
}
.wrap .container .startArea .startBtn:disabled {
  opacity: 0.65;
  pointer-events: none;
}
.wrap .container .quizHeader {
  margin-bottom: 30px;
  padding: 10px;
  background-color: #1b5e20;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.wrap .container .quizHeader.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .quizHeader.hide {
  display: none;
}
.wrap .container .quizArea {
  width: 100%;
  overflow: auto;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.wrap .container .quizArea.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .quizArea.hide {
  display: none;
}
.wrap .container .quizArea .question {
  font-size: 1.2em;
  text-align: left;
  padding: 0 10px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.wrap .container .quizArea .choiceList {
  width: 100%;
  list-style: none;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.wrap .container .quizArea .choiceList.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .quizArea .choiceList.hide {
  display: none;
}
.wrap .container .quizArea .choiceList button {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
  min-height: 50px;
  margin: 10px auto;
  padding: 0.5em 1em;
  border: 1px solid #2e7d32;
  border-radius: 5px;
  color: #000;
  background-color: #fff;
  font-size: 1.2em;
  cursor: pointer;
}
.wrap .container .quizArea .choiceList button:hover {
  background-color: #388e3c;
  color: #fff;
}
.wrap .container .quizArea .choiceList button:active {
  background-color: #1b5e20;
  color: #fff;
}
.wrap .container .judgeArea {
  width: 100%;
  max-width: 480px;
  min-height: 280px;
  margin: 0 auto;
  border: 1px solid #666;
  box-shadow: 1px 1px 2px #999;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.wrap .container .judgeArea.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .judgeArea.hide {
  display: none;
}
.wrap .container .judgeArea .judgeText {
  font-size: 1.4em;
  margin-bottom: 32px;
  padding: 10px;
}
.wrap .container .judgeArea .judgeText.correct {
  background: linear-gradient(to bottom, #283593, #0d1656);
  color: #fff;
}
.wrap .container .judgeArea .judgeText.incorrect {
  background: linear-gradient(to bottom, #c71714, #8e0000);
  color: #fff;
}
.wrap .container .judgeArea .correctText {
  font-size: 1.3em;
  margin-bottom: 40px;
}
.wrap .container .judgeArea .nextBtn {
  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;
}
.wrap .container .judgeArea .nextBtn:hover, .wrap .container .judgeArea .nextBtn:focus {
  background-color: #388e3c;
  border-color: #388e3c;
  color: #fff;
  outline: none;
}
.wrap .container .judgeArea .nextBtn:active {
  background-color: #1b5e20;
  border-color: #1b5e20;
  color: #fff;
}
.wrap .container .judgeArea .nextBtn:disabled {
  opacity: 0.65;
  pointer-events: none;
}
.wrap .container .resultArea {
  width: 100%;
  max-width: 480px;
  min-height: 280px;
  margin: 0 auto;
  padding: 1em;
  border: 1px solid #666;
  box-shadow: 1px 1px 2px #999;
  border-radius: 5px;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.wrap .container .resultArea.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .resultArea.hide {
  display: none;
}
.wrap .container .resultArea .resultMsg {
  margin-bottom: 10px;
  font-size: 1.6em;
}
.wrap .container .resultArea .totalQuizLen {
  margin-bottom: 40px;
  font-size: 1.2em;
}
.wrap .container .resultArea .resetBtn {
  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;
}
.wrap .container .resultArea .resetBtn:hover, .wrap .container .resultArea .resetBtn:focus {
  background-color: #388e3c;
  border-color: #388e3c;
  color: #fff;
  outline: none;
}
.wrap .container .resultArea .resetBtn:active {
  background-color: #1b5e20;
  border-color: #1b5e20;
  color: #fff;
}
.wrap .container .resultArea .resetBtn:disabled {
  opacity: 0.65;
  pointer-events: none;
}