/* --- Card and Grid Styles --- */
.example-grid {
  display: grid;
  grid-template-columns: 1fr; /* This creates a single column layout */
  gap: 1rem; /* This adds space between the cards */
}

.example-card {
  background-color: #f9f9f9;
  border-left: 5px solid #dc3545; /* A red accent border */
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left; /* Ensure all content is left-aligned */
}

.example-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.example-card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #c82333; /* A darker red for the heading */
  font-size: 1.25rem;
  text-align: left;
}

.example-card p {
  margin: 0.25rem 0;
  text-align: left;
}

.example-card .translation {
  font-style: italic;
  color: #555;
}

.example-card .example-sentence {
  font-weight: bold;
  color: #333;
}

.example-card .conjugation-rule,
.example-card .sentence-rule {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
  font-size: 0.95em;
  color: #444;
}

/* --- Game Styles --- */
#sentence-game-container,
#verb-game-container {
  margin-top: 3rem;
  padding: 2rem;
  border: 2px solid #dc3545;
  border-radius: 8px;
  background-color: #fff;
}

#sentence-game-container h3,
#verb-game-container h3 {
  color: #c82333;
  text-align: left;
}

/* For Verb/Noun/etc. Games */
#game-question {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

#game-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.option-btn {
  padding: 0.75rem;
  border: 1px solid #ccc;
  background-color: #f8f9fa;
  cursor: pointer;
  border-radius: 5px;
  text-align: left;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.option-btn:hover:not(:disabled) {
  background-color: #e9ecef;
}

.option-btn:disabled {
  cursor: not-allowed;
}

.option-btn.correct {
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.option-btn.incorrect {
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* For Sentence Scramble Game */
#game-scrambled-words,
#game-answer-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  min-height: 50px;
  border-radius: 5px;
}

#game-scrambled-words {
  border: 2px dashed #ccc;
  margin-bottom: 1rem;
}

#game-answer-area {
  border: 2px solid #c82333;
  background-color: #fefefe;
}

.word-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  background-color: #f8f9fa;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1.1rem;
  transition: background-color 0.2s;
}

.word-btn:hover {
  background-color: #e9ecef;
}

/* Common Game Controls */
#game-feedback {
  margin-top: 1rem;
  font-weight: bold;
  min-height: 24px;
}

#game-controls {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#game-controls button {
  padding: 0.6rem 1.2rem;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

#game-controls button:hover {
  background-color: #c82333;
}
