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

html {
  touch-action: manipulation;
}

body {
  width: 100%;
  height: 100vh;
  background: linear-gradient(120deg, #89f7fe, #66a6ff, #4facfe, #00f2fe);
  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;
  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: rgba(255, 255, 254, 0.96);
  border: 3px solid #333;
  box-shadow: 1px 1px 2px 1px #ccc;
  border-radius: 5px;
}
.wrap .container button {
  display: block;
  width: 80%;
  max-width: 360px;
  min-height: 50px;
  font-size: 1.3em;
  background-color: #2e7d32;
  border: 1px solid #2e7d32;
  color: #fff;
  margin: 0 auto;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  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;
}
.wrap .container button:active {
  background-color: #1b5e20;
  border-color: #1b5e20;
}
.wrap .container button:disabled {
  opacity: 0.65;
  pointer-events: none;
}
.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.3s, transform 0.3s;
}
.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 .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 .quizHeader {
  width: 100%;
  margin-bottom: 30px;
}
.wrap .container .quizHeader .quizTitle {
  font-size: 1.4em;
  margin: 8px 0;
}
.wrap .container .quizHeader .quizNum-score {
  background-color: #1b5e20;
  color: #fff;
  padding: 4px 8px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.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 .question {
  font-size: 1.4em;
  text-align: left;
  margin-bottom: 20px;
  padding: 0 10px;
  line-height: 1.7;
}
.wrap .container .quizArea .choiceList {
  width: 100%;
  list-style: none;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
.wrap .container .quizArea .choiceList.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .quizArea .choiceList.hide {
  display: none;
}
.wrap .container .quizArea .choiceList li {
  width: 100%;
}
.wrap .container .quizArea .choiceList li button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 100%;
  max-width: 540px;
  min-height: 50px;
  padding: 0.5em 1em;
  margin-bottom: 12px;
  color: #000;
  background-color: #fff;
  border: 2px solid #2e7d32;
  box-shadow: 1px 1px 2px #ccc;
  font-size: 1.1em;
  cursor: pointer;
}
@media (hover: hover) {
  .wrap .container .quizArea .choiceList li button:hover {
    background-color: #388e3c;
    color: #fff;
  }
}
.wrap .container .quizArea .choiceList li button:focus {
  background-color: #388e3c;
  color: #fff;
}
.wrap .container .quizArea .choiceList li button:active {
  background-color: #1b5e20;
  color: #fff;
}
.wrap .container .slide {
  width: 100%;
  max-width: 480px;
  min-height: 240px;
  margin: 0 auto;
  border: 1px solid #666;
  box-shadow: 1px 1px 2px #999;
  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 .slide.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .slide.hide {
  display: none;
}
.wrap .container .slide.judgeArea .judgeText {
  font-size: 1.6em;
  margin-bottom: 30px;
  padding: 4px 12px;
}
.wrap .container .slide.judgeArea .judgeText.correct {
  background: linear-gradient(to bottom, #283593, #0d1656);
  color: #fff;
}
.wrap .container .slide.judgeArea .judgeText.incorrect {
  background: linear-gradient(to bottom, #c71714, #8e0000);
  color: #fff;
}
.wrap .container .slide.judgeArea .correctText {
  font-size: 1.5em;
  margin-bottom: 30px;
}
.wrap .container .slide.resultArea .resultMsg {
  margin-bottom: 10px;
  font-size: 1.6em;
}
.wrap .container .slide.resultArea .totalQuizLen {
  margin-bottom: 30px;
  font-size: 1.2em;
}
.wrap .container .closeBtn {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 30px auto 0;
  cursor: pointer;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0s, transform 0.3s;
}
.wrap .container .closeBtn.show {
  opacity: 1;
  transform: scale(1);
}
.wrap .container .closeBtn.hide {
  display: none;
}
.wrap .container .closeBtn .material-symbols-outlined {
  font-size: 30px;
  color: #333;
  transition: all 0.2s;
}
.wrap .container .closeBtn .material-symbols-outlined:hover {
  color: #666;
}