body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.quiz-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.dark-mode-toggle {
  text-align: right;
  margin-bottom: 10px;
  font-size: 0.9em;
}

#flashcard {
  margin: 20px 0;
  font-size: 1.2em;
}

#answers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#answers button {
  padding: 10px;
  max-width: 100%;
  font-size: 1em;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

.correct {
  background-color: #a3f7bf;
}

.incorrect {
  background-color: #f7a3a3;
}

#nextBtn {
  margin-top: 10px;
  padding: 10px;
}

#message {
  margin-top: 10px;
  font-weight: bold;
  font-size: 1.2em;
}

.feedback-img {
  width: 150px;
  height: auto;
  margin-top: 10px;
}

.hidden {
  display: none;
}

#scoreTracker {
  font-size: 1.2em;
  margin: 20px 0 10px;
}

#answerLog {
  margin-top: 10px;
  text-align: left;
  width: 100%;
  max-width: 500px;
}

#answerLog summary {
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
}

#logList {
  list-style: none;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
}

#logList li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

#logList li:nth-child(even) {
  background-color: #eef6ff;
}

#logList li:nth-child(odd) {
  background-color: #ffffff;
}

footer {
  text-align: center;
  padding: 10px;
}

.footer-img {
  width: 100px;
  height: auto;
}

/* Dark Mode Styles */
body.dark {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

body.dark .quiz-box {
  background-color: #2a2a2a;
  color: #f1f1f1;
  box-shadow: 0 2px 10px rgba(255,255,255,0.1);
}

body.dark #answers button {
  background-color: #333;
  color: #f1f1f1;
  border: 1px solid #555;
}

body.dark #logList li:nth-child(even) {
  background-color: #2b3b4b;
}

body.dark #logList li:nth-child(odd) {
  background-color: #1e2a38;
}

body.dark #scoreTracker {
  color: #cfcfcf;
}
