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

html {
  touch-action: manipulation;
}

.himaWrap {
  width: 100%;
  height: 700px;
  border: 1px solid #ccc;
  background-color: #0072ff;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}
.himaWrap p {
  margin: 0;
}

.himaContainer {
  width: 94%;
  max-width: 600px;
  height: 94%;
  max-height: 650px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.himaContainer .startArea {
  width: 100%;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s, transform 0.5s;
}
.himaContainer .startArea.show {
  opacity: 1;
  transform: scale(1);
}
.himaContainer .startArea.hide {
  display: none;
}
.himaContainer .startArea .quiz-title {
  margin-bottom: 30px;
  color: #fff;
  font-size: 2.2em;
  font-weight: 700;
  line-height: 1.6;
}
.himaContainer .startArea .numberOfQuestions {
  color: #fff;
  font-size: 1.5em;
}
.himaContainer .startArea .startBtn {
  display: block;
  width: 60%;
  margin: 40px auto 0;
  padding: 12px 0;
  font-size: 1.6em;
  border: 2px solid #002048;
  box-shadow: 0 2px 1px 0 #666;
  background-color: #fff;
  border-radius: 5px;
  cursor: pointer;
}
.himaContainer .startArea .startBtn:hover {
  opacity: 0.9;
}
.himaContainer .quizArea {
  width: 100%;
  height: 100%;
  padding: 10px;
  background-color: #fffffe;
  border: 2px solid #002048;
  box-shadow: 0 2px 1px 0 #666;
  border-radius: 5px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s, transform 0.5s;
}
.himaContainer .quizArea.show {
  opacity: 1;
  transform: scale(1);
}
.himaContainer .quizArea.hide {
  display: none;
}
.himaContainer .quizArea .himaQuestion {
  font-size: 1.4em;
  margin: 30px 0;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s, transform 0.5s;
}
.himaContainer .quizArea .himaQuestion.show {
  opacity: 1;
  transform: scale(1);
}
.himaContainer .quizArea .himaQuestion.hide {
  display: none;
}
.himaContainer .quizArea .himaQuestion span {
  display: block;
  margin-bottom: 10px;
  color: #5aa1ff;
}
.himaContainer .quizArea .choicesUl {
  width: 90%;
  max-width: 460px;
  padding: 0;
  list-style: none;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s, transform 0.5s;
}
.himaContainer .quizArea .choicesUl.show {
  opacity: 1;
  transform: scale(1);
}
.himaContainer .quizArea .choicesUl.hide {
  display: none;
}
.himaContainer .quizArea .choicesUl li {
  font-size: 1.4em;
  margin-bottom: 20px;
  padding: 6px;
  border: 2px solid #002048;
  box-shadow: 0 2px 1px 0 #666;
  background-color: #fff;
  border-radius: 5px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.himaContainer .quizArea .choicesUl li:last-child {
  margin-bottom: 0;
}
.himaContainer .quizArea .choicesUl li:hover {
  background-color: #daeaff;
  box-shadow: 0 1px 0 0 #666;
  transform: translateY(1px);
}
.himaContainer .quizArea .choicesUl li:active {
  box-shadow: none;
  transform: translateY(2px);
}
.himaContainer .quizArea .choicesUl li.correct {
  background-color: #0053ff;
  color: white;
}
.himaContainer .quizArea .choicesUl li.wrong {
  background-color: #ff0072;
  color: white;
}
.himaContainer .quizArea .judgeArea {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px auto 0;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s, transform 0.5s;
}
.himaContainer .quizArea .judgeArea.show {
  opacity: 1;
  transform: scale(1);
}
.himaContainer .quizArea .judgeArea.show img {
  display: inline-block;
  width: 50px;
  height: 50px;
  margin-right: 20px;
}
.himaContainer .quizArea .judgeArea.show p {
  font-size: 1.2em;
}
.himaContainer .quizArea .judgeArea.hide {
  display: none;
}
.himaContainer .quizArea .judgeArea .judge {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}
.himaContainer .quizArea .judgeArea .nextBtn {
  display: block;
  width: 60%;
  margin: 30px auto 0;
  padding: 12px 0;
  font-size: 1.2em;
  border: 2px solid #002048;
  box-shadow: 1px 1px 2px #666;
  background-color: #0072ff;
  border-radius: 5px;
  color: #ffffff;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s, transform 0.5s;
}
.himaContainer .quizArea .judgeArea .nextBtn.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.himaContainer .quizArea .judgeArea .nextBtn.show:hover {
  opacity: 0.9;
}
.himaContainer .quizArea .judgeArea .nextBtn.hide {
  display: none;
}

.resultArea {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 90%;
  padding: 40px 0;
  background-color: #fffffe;
  border: 2px solid #002048;
  box-shadow: 0 2px 1px 0 #666;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s, transform 0.5s;
}
.resultArea.show {
  pointer-events: all;
  opacity: 1;
  transform: scale(1);
}
.resultArea.hide {
  display: none;
}
.resultArea p {
  font-size: 1.6em;
}
.resultArea .resultMsg span {
  display: inline-block;
  margin-right: 10px;
  font-size: 2em;
  color: #ff0072;
}
.resultArea .resetBtn {
  display: block;
  width: 60%;
  margin: 40px auto 0;
  padding: 12px 0;
  font-size: 1.2em;
  border: 2px solid #002048;
  box-shadow: 1px 1px 2px #666;
  background-color: #0072ff;
  border-radius: 5px;
  color: #ffffff;
  cursor: pointer;
}
.resultArea .resetBtn:hover {
  opacity: 0.9;
}