/* ============================================== */
/* === みとり暗算専用スタイルシート === */
/* ============================================== */

/* --- 基本的なページ設定 --- */
body {

  box-sizing: border-box;
}

h1 {
  font-size: 2rem;
  margin-bottom: 5px;
  line-height: 1.3;
}

p {
  margin-top: 0;
  line-height: 1.3;
}

/* --- ゲーム画面全体のコンテナ --- */


/* --- カウントダウン表示 --- */
#countdown-area {
  font-size: 3em;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
}

/* --- 問題表示エリア --- */
#question {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center; /* flexを使わずにテキスト中央寄せに切り替え */
  display: block;     /* flex解除 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#question-label {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
}

/* --- 見取り算の数字表示スタイル --- */
.mitorizan-container {
  display: block;
  width: 80px;
  margin-left: auto;
  margin-right: auto;
  padding-right: 30px;
  text-align: right;
}
/* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ */

.number-line {
  font-size: 1.6rem;
  font-weight: normal;
  line-height: 1.2;
}

hr {
  border-top: 2px solid #333;
  margin: 8px 0;
  width: 100%;
}

/* --- 回答入力欄 --- */
input#answer {
  font-size: 2rem;
  width: 150px;
  height: 60px;
  text-align: center;
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* --- ボタンの共通スタイル --- */
/* .btn {

  width: 180px;


  display: inline-block;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  margin: 10px 5px;
} */


.btn:hover {
  background-color: #45a049;
}



/* ============================================== */
/* === 結果画面のスタイル === */
/* ============================================== */

.wrong-answers-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.wrong-answer-item {
  text-align: right;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 80px;
  background-color: #f9f9f9;
  font-size: 0.9em;
}

.wrong-answer-item .number-line {
  font-size: 1.4em;
}

.wrong-answer-item .correct-answer-line {
  font-size: 1.4em;
  font-weight: bold;
  color: #28a745;
}

.wrong-answer-item .user-answer-line {
  font-size: 1.2em;
  color: #dc3545;
}

.wrong-answer-item hr {
  border-top: 2px solid #333;
  margin: 5px 0;
}

/* --- フッター --- */
#page-footer {
  text-align: center;
  margin-top: auto;
  padding: 8px 0;
  font-size: small;
  color: #666;
  background-color: #f9f9f9;
  border-top: 1px solid #ddd;
  width: 100%;
}