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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

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

.container {
  width: 94%;
  max-width: 768px;
  height: 90%;
  max-height: 640px;
  overflow: auto;
  text-align: center;
  background-color: #fffffe;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 2px #999;
  border-radius: 5px;
}
.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;
}
.container .startArea.show {
  opacity: 1;
  transform: scale(1);
}
.container .startArea.hide {
  display: none;
}
.container .startArea .quiz-title {
  margin-bottom: 30px;
  font-size: 1.6em;
  line-height: 1.7;
}
.container .startArea .numberOfQuestions {
  font-size: 1.4em;
  color: #282828;
}
.container .startArea .startBtn {
  display: block;
  width: 60%;
  font-size: 1.4em;
  color: #fff;
  background-color: #3f5dff;
  border-radius: 5px;
  margin: 40px auto 0;
  padding: 12px 0;
  cursor: pointer;
}
.container .startArea .startBtn:hover {
  background-color: #536eff;
}
.container .quizArea {
  width: 100%;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.container .quizArea.show {
  opacity: 1;
  transform: scale(1);
}
.container .quizArea.hide {
  display: none;
}
.container .quizArea .quizHead {
  width: 100%;
  min-height: 60px;
  font-size: 0.95em;
  background: #333132;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
  padding: 10px;
}
.container .quizArea .nowQuestion {
  margin-bottom: 40px;
  color: #6d6d61;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.container .quizArea .nowQuestion.show {
  opacity: 1;
  transform: scale(1);
}
.container .quizArea .nowQuestion.hide {
  display: none;
}
.container .quizArea .question {
  width: 90%;
  margin: 0 auto 30px;
  padding-bottom: 10px;
  border-bottom: 3px solid #ffe13f;
  font-size: 2em;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.container .quizArea .question.show {
  opacity: 1;
  transform: scale(1);
}
.container .quizArea .question.hide {
  display: none;
}
.container .quizArea .answerArea {
  min-height: 54px;
}
.container .quizArea .answerArea .answer {
  display: inline-block;
  font-size: 1.6em;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.container .quizArea .answerArea .answer.show {
  opacity: 1;
  transform: scale(1);
}
.container .quizArea .answerArea .answer.hide {
  display: none;
}
.container .answerBtn,
.container .nextBtn,
.container .resetBtn {
  display: block;
  width: 60%;
  font-size: 1.4em;
  color: #fff;
  background-color: #3f5dff;
  border-radius: 5px;
  margin: 40px auto 0;
  padding: 12px 0;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.container .answerBtn:hover,
.container .nextBtn:hover,
.container .resetBtn:hover {
  background-color: #536eff;
}
.container .answerBtn.show,
.container .nextBtn.show,
.container .resetBtn.show {
  opacity: 1;
  transform: scale(1);
}
.container .answerBtn.hide,
.container .nextBtn.hide,
.container .resetBtn.hide {
  display: none;
}