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

:root {
  --theme-primary: #1565c0;
  --theme-hover: #1e88e5;
  --theme-active: #0d47a1;
}

html {
  touch-action: manipulation;
  height: 100%;
}

body {
  width: 100%;
  height: 100vh;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.btn-common {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  display: block;
  width: 90%;
  min-height: 50px;
  color: #fff;
  border: 2px solid var(--theme-primary);
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  border-radius: 5px;
  font-size: 1.3em;
  box-shadow: 1px 1px 2px #ccc;
  margin: 0 auto;
  padding: 8px 16px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
@media (hover: hover) {
  .btn-common:hover {
    background-color: var(--theme-hover);
    border-color: var(--theme-hover);
  }
}
.btn-common:focus {
  background-color: var(--theme-hover);
  border-color: var(--theme-hover);
}
.btn-common:active {
  background-color: var(--theme-active);
  border-color: var(--theme-active);
}
.btn-common:disabled {
  opacity: 0.65;
  pointer-events: none;
}

.wrap {
  width: 100%;
  height: 100%;
  overflow: auto;
  font-size: 16px;
  text-align: center;
  background-color: #fffffe;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container {
  position: relative;
  width: 96%;
  max-width: 640px;
  height: 94%;
  overflow: auto;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 2px #999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.startArea {
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
.startArea.show {
  opacity: 1;
  transform: scale(1);
}
.startArea.hide {
  display: none;
}

h1 {
  width: 100%;
  margin-bottom: 40px;
  padding: 20px;
  font-weight: 400;
  line-height: 1.5;
  font-size: 1.5em;
  border: 5px solid #ffffff;
  border-radius: 5px;
  background-color: #fff980;
  box-shadow: 1px 1px 2px 1px #999;
}

.levelBtns {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.levelBtns button {
  flex: 1 1 46%;
  font-size: 1.1em;
}

.homeIcon {
  margin-top: 80px;
}
.homeIcon .material-symbols-outlined {
  font-size: 48px;
  color: #333;
}

.quizWrap {
  width: 100%;
  height: 100%;
  overflow: auto;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
.quizWrap.show {
  opacity: 1;
  transform: scale(1);
}
.quizWrap.hide {
  display: none;
}

.quizHeader {
  width: 100%;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quizHeader .quizTitle {
  font-size: 0.95em;
  text-align: left;
}
.quizHeader .closeBtn {
  cursor: pointer;
  margin-left: 10px;
}
.quizHeader .closeBtn .material-symbols-outlined {
  color: #666;
}

.questionHead {
  width: 100%;
  font-size: 1em;
  padding: 4px 8px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.questionHead .headerPosition {
  font-weight: 700;
  font-size: 1.1em;
}

.quizArea {
  width: 100%;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
.quizArea.show {
  opacity: 1;
  transform: scale(1);
}
.quizArea.hide {
  display: none;
}

.question {
  font-size: 1.8em;
  padding: 0 10px 5px;
  margin-bottom: 30px;
  border-bottom: 3px solid var(--theme-active);
}

.choiceList {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
.choiceList.show {
  opacity: 1;
  transform: scale(1);
}
.choiceList.hide {
  display: none;
}
.choiceList li {
  flex: 1 1 45%;
}
.choiceList li button {
  width: 100%;
  padding: 10px;
  font-size: 1.5em;
  color: #000;
  background: #fff;
}
@media (hover: hover) {
  .choiceList li button:hover {
    color: #fff;
    background-color: var(--theme-hover);
  }
}
.choiceList li button:focus {
  color: #fff;
  background-color: var(--theme-hover);
}
.choiceList li button:active {
  color: #fff;
  background-color: var(--theme-active);
}

.slide {
  width: 100%;
  max-width: 480px;
  min-height: 240px;
  margin: 0 auto;
  border: 1px solid #666;
  box-shadow: 1px 1px 2px #999;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
.slide.show {
  opacity: 1;
  transform: scale(1);
}
.slide.hide {
  display: none;
}
.slide button {
  max-width: 360px;
}

.judgeText {
  font-size: 1.5em;
  margin-bottom: 30px;
  padding: 4px 12px;
}

.judgeText.correct {
  background-color: #ff5252;
  color: #fff;
}

.judgeText.incorrect {
  background-color: #ffe3e0;
  color: #333;
}

.correctText {
  font-size: 2em;
  margin-bottom: 30px;
}

.resultMsg {
  font-size: 2em;
  margin-bottom: 20px;
}

.totalQuizLen {
  font-size: 1.4em;
  margin-bottom: 20px;
}

.hawks h1,
.hawks .questionHead {
  background-color: #ffcc00;
  color: #000;
}

.fighters h1,
.fighters .questionHead {
  background-color: #01609a;
  color: #fff;
}

.buffaloes h1,
.buffaloes .questionHead {
  background-color: #b0a974;
  color: #fff;
}

.eagles h1,
.eagles .questionHead {
  background-color: #7c1718;
  color: #fff;
}

.lions h1,
.lions .questionHead {
  background-color: #051e46;
  color: #fff;
}

.marines h1,
.marines .questionHead {
  background-color: #efefef;
  color: #000;
}