/* クイズ全体のコンテナ */
.custom-quiz-container {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  padding: 20px;
  width: 100%;
  max-width: 300px; /* index.htmlの指定を優先 */
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden; /* はみ出しを防止 */
}

/* クイズボックス */
.custom-quiz-box {
  background: #f9f9f9; /* index.html の色を優先 */
  padding: 10px; /* index.html を優先 */
  border-radius: 5px; /* index.html を優先 */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* 問題表示エリア */
.custom-quiz-question {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  word-wrap: break-word;
}

/* 選択肢のリスト */
.custom-quiz-choices {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-quiz-choices li {
  padding: 10px; /* index.html優先 */
  margin: 5px 0;
  background-color: #e0e0e0;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
}

.custom-quiz-choices li:hover {
  background-color: #d0d0d0;
}

/* ボタンのスタイル */
.custom-quiz-button {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.custom-quiz-button:hover {
  background-color: #0056b3;
}

/* 結果表示 */
.custom-quiz-result {
  text-align: center;
  color: red;
  font-weight: bold;
  margin-top: 10px;
  min-height: 20px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 問題数表示 */
.custom-quiz-excluded-count {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: green;
  font-weight: bold;
  margin-top: 10px;
}

/* リセットボタン専用 */
#reset-button {
  display: none;
  margin-top: 10px;
}

/* HTML, body の初期化（グローバルリセット） */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}
