/* Base Styles */
:root {
  --primary-color: #4CAF50;
  --primary-hover: #45a049;
  --error-color: #f44336;
  --success-color: #4CAF50;
  --neutral-color: #757575;
  --background-color: #f5f5f5;
  --surface-color: #ffffff;
  --text-color: #333333;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Screen Management */
.screen {
  display: none;
  max-width: 800px;
  width: 90%;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--surface-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.screen.active {
  display: block;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Controls */
.controls {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.button {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: var(--primary-hover);
}

.button:disabled {
  background-color: var(--neutral-color);
  cursor: not-allowed;
}

/* File Input */
.file-input {
  display: none;
}

/* Question Display */
.question-container {
  margin: 2rem 0;
}

#question-text {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Answer Options */
.answer-container {
  display: none;
  margin: 1rem 0;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.option-button {
  padding: 1rem;
  font-size: 1rem;
  background-color: var(--surface-color);
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.option-button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Text Input */
#text-answer {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 2px solid var(--neutral-color);
  border-radius: 4px;
  transition: border-color 0.2s;
}

#text-answer:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* True/False Buttons */
.true-false-btn {
  width: 100%;
  padding: 1rem;
  margin: 0.5rem 0;
  font-size: 1rem;
  background-color: var(--surface-color);
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

/* Feedback */
.feedback-container {
  text-align: center;
  padding: 1rem;
}

#feedback-message {
  font-size: 1.2rem;
  margin: 1rem 0;
}

#feedback-message.correct {
  color: var(--success-color);
}

#feedback-message.incorrect {
  color: var(--error-color);
}

/* Results Screen */
.score-container {
  text-align: center;
  font-size: 1.4rem;
  margin: 2rem 0;
}

.review-container {
  margin: 2rem 0;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: 4px;
}

.export-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

/* Progress Indicator */
.progress {
  text-align: center;
  color: var(--neutral-color);
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 600px) {
  .screen {
    width: 95%;
    padding: 1rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
} 