/* card.html 専用スタイル */

#card-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#file-loader {
  margin-bottom: 20px;
}

#file-loader p {
  margin: 10px 0;
  font-size: 14px;
  color: #666;
}

#card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#card-progress {
  text-align: right;
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
}

#card-question {
  font-size: 24px;
  margin-bottom: 20px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#card-answer {
  font-size: 22px;
  color: #007bff;
  border-top: 1px dashed #ccc;
  padding-top: 20px;
  margin-top: 20px;
}

#card-controls, #review-controls {
  margin-top: 20px;
}

#feedback-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

#incorrect-button {
  background-color: #dc3545;
}

#correct-button {
  background-color: #28a745;
}

.hidden {
  display: none;
}

/* 覚えていない問題リスト */
#incorrect-list-container {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: left;
}

#incorrect-list p {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
}

#incorrect-list p:last-child {
  border-bottom: none;
}


/* ダークモード */
body.dark-mode #card-container {
  background-color: #333;
}

body.dark-mode #card-answer {
  color: #17a2b8;
}

body.dark-mode #file-loader p {
  color: #ccc;
}

body.dark-mode #incorrect-list-container {
  border-color: #444;
}

body.dark-mode #incorrect-list p {
  border-bottom-color: #444;
}
