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

html {
  touch-action: manipulation;
}

body {
  font-family: sans-serif;
}

.flex-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hidden-scale {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}

.hide {
  display: none;
}

.btn {
  display: block;
  width: 80%;
  max-width: 280px;
  min-height: 50px;
  font-size: 1.5em;
  background-color: #1565c0;
  border: 1px solid #1565c0;
  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;
}
.btn:hover, .btn:focus {
  background-color: #1e88e5;
  border-color: #1e88e5;
}
.btn:active {
  background-color: #0d47a1;
  border-color: #0d47a1;
}
.btn:disabled {
  opacity: 0.65;
  pointer-events: none;
}

.wrap {
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, #87cefa 0%, #00bfff 30%, #1e90ff 60%, #000080 100%);
  font-size: 16px;
  text-align: center;
  padding: 20px 0;
}
.wrap .container {
  width: 90%;
  max-width: 640px;
  padding: 20px 10px;
  background-color: #fffffe;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 2px #999;
  border-radius: 5px;
  min-height: 480px;
  max-height: 90vh;
  height: auto;
  overflow: visible;
}
.wrap .container h2 {
  margin-bottom: 50px;
  font-weight: 400;
  font-size: 1.8em;
  line-height: 1.8;
}
.wrap .container .startArea {
  width: 100%;
  height: 100%;
  padding: 20px 0;
}
.wrap .container .startArea p {
  margin-bottom: 30px;
}
.wrap .container .startArea .quizNumForm {
  flex-direction: row;
  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 label {
  cursor: pointer;
}
.wrap .container .quizArea {
  overflow: auto;
  justify-content: flex-start;
}
.wrap .container .quizArea .quizTitle {
  width: 100%;
  margin-bottom: 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid #ccc;
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
}
.wrap .container .quizArea .quizTitle p {
  margin: 0;
}
.wrap .container .quizArea .quizTitle .quizNum {
  color: #666;
  margin-left: 10px;
}
.wrap .container .quizArea .question {
  font-size: 1.2em;
  margin-bottom: 20px;
}
.wrap .container .quizArea .question .questionWord {
  font-size: 1.6em;
  margin-right: 10px;
}
.wrap .container .quizArea .choiceList {
  list-style: none;
  font-size: 2em;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}
.wrap .container .quizArea .choiceList li {
  width: 56px;
  height: 56px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
}
.wrap .container .quizArea .choiceList li:hover {
  background-color: #87cefa;
}
.wrap .container .quizArea .choiceList li.correct-list {
  background-color: #ff2d2d;
  color: white;
}
.wrap .container .judgeArea {
  width: 100%;
  min-height: 80px;
  margin: 20px 0 0;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 2px #999;
  border-radius: 5px;
}
.wrap .container .judgeArea .judgeInner {
  width: 100%;
  height: 100%;
  flex-direction: row;
  justify-content: space-evenly;
}
.wrap .container .judgeArea .judgeInner .judgeText {
  width: 40%;
  min-height: 50px;
  font-size: 1.5em;
  padding: 6px 12px;
  border-radius: 5px;
}
.wrap .container .judgeArea .judgeInner .judgeText.correct {
  background-color: #ff2d2d;
  color: #fff;
}
.wrap .container .judgeArea .judgeInner .judgeText.incorrect {
  background-color: #ffe1e1;
  color: #333;
}
.wrap .container .judgeArea .judgeInner .nextBtn {
  display: block;
  width: 50%;
  min-height: 50px;
  margin: 0;
}
.wrap .container .resultArea {
  width: 100%;
  height: 100%;
}
.wrap .container .resultArea p {
  margin-bottom: 40px;
  font-size: 1.5em;
}

@media (max-width: 428px) {
  .wrap .container {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}