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

.wrap {
  width: 100%;
  max-width: 500px;
  height: 500px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  font-size: 18px;
}

h1 {
  margin-bottom: 30px;
  font-size: 1.6em;
}

button {
  width: 80%;
  margin: 0 auto;
  padding: 10px;
  font-size: 1.2em;
  cursor: pointer;
  background-color: #000080;
  color: #fff;
  border: none;
  border-radius: 5px;
}

button:hover {
  background-color: #000066;
}

.startBtn {
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
}

.startBtn.show {
  opacity: 1;
}

.startBtn.hide {
  display: none;
}

.quizWrap {
  user-select: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.quizWrap.show {
  opacity: 1;
}

.quizWrap.hide {
  display: none;
}

.scoreArea {
  margin-bottom: 30px;
  font-size: 1.2em;
}

.quizArea {
  width: 100%;
  height: 250px;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 4px 2px #999;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.questionArea {
  font-size: 2.5em;
  letter-spacing: 3px;
}

.formArea {
  margin: 30px auto;
  width: 90%;
}

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

.inputNumber {
  width: 200px;
  height: 50px;
  padding: 6px;
  font-size: 1.2em;
  margin-right: 4px;
}

.submitBtn {
  width: 60px;
  height: 50px;
  margin: 0;
  padding: 6px 0;
}

.judgeArea {
  width: 90%;
  max-width: 450px;
  height: 280px;
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10;
  background-color: #fff;
  border: 2px solid #666;
  box-shadow: 2px 2px 4px 1px #999;
  transform: translate(-50%, -500px);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.judgeArea.show {
  transform: translate(-50%, 150px);
  opacity: 1;
  pointer-events: auto;
}

.judgeArea.hide {
  display: none;
}

.judgeMsg,
.answerMsg {
  font-size: 1.5em;
  margin-bottom: 30px;
}
