* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 100%);
  min-height: 100vh;
  padding: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 32px;
}

.header h1 {
  font-size: 3rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.header p {
  font-size: 1.25rem;
  color: #6b7280;
}

.back-btn {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-decoration: underline;
}

.back-btn:hover {
  color: #1d4ed8;
}

.section-grid {
  display: grid;
  gap: 1.5rem;
}

.section-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  background: #eff6ff;
}

.section-info h2 {
  font-size: 1.5rem;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.section-info p {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.category-tag {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mode-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s;
}

.mode-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.mode-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.mode-card.flashcards h2 {
  color: #2563eb;
}

.mode-card.quiz h2 {
  color: #16a34a;
}

.mode-card.browse h2 {
  color: #9333ea;
}

.mode-card p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}

.btn-primary {
  background: #2563eb;
  color: white;
  font-weight: bold;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: #eff6ff;
  color: #1e40af;
}

.btn-secondary:hover {
  background: #dbeafe;
}

.btn-success {
  background: #16a34a;
  color: white;
  font-weight: bold;
}

.btn-success:hover {
  background: #15803d;
}

.btn-green-secondary {
  background: #dcfce7;
  color: #166534;
}

.btn-green-secondary:hover {
  background: #bbf7d0;
}

.btn-purple {
  background: #9333ea;
  color: white;
  padding: 1rem;
}

.btn-purple:hover {
  background: #7e22ce;
}

.btn-gray {
  background: #e5e7eb;
  color: #374151;
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-gray:hover {
  background: #d1d5db;
}

.flashcard-container {
  max-width: 800px;
  margin: 0 auto;
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: #6b7280;
}

.flashcard {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 1.5rem;
}

.flashcard:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.flashcard-question {
  font-size: 3rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
  text-align: center;
}

.flashcard-answer {
  font-size: 2rem;
  color: #2563eb;
  margin-top: 2rem;
  text-align: center;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flashcard-hint {
  color: #9ca3af;
  margin-top: 2rem;
}

.controls {
  display: flex;
  gap: 1rem;
}

.controls .btn {
  flex: 1;
  padding: 1rem;
  font-size: 1.125rem;
}

.quiz-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.quiz-question {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 2rem;
}

.quiz-options {
  display: grid;
  gap: 1rem;
}

.quiz-option {
  background: #eff6ff;
  color: #1e3a8a;
  border: none;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.125rem;
  transition: all 0.2s;
}

.quiz-option:hover {
  background: #dbeafe;
}

.quiz-result {
  text-align: center;
}

.quiz-result-text {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.quiz-result-text.correct {
  color: #16a34a;
}

.quiz-result-text.incorrect {
  color: #dc2626;
}

.quiz-answer {
  font-size: 1.25rem;
  color: #374151;
  margin-bottom: 1.5rem;
}

.browse-section {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.browse-section h2 {
  font-size: 1.5rem;
  color: #2563eb;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.vocab-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 0;
}

.vocab-german {
  font-weight: bold;
  color: #1f2937;
}

.vocab-english {
  color: #6b7280;
}

.hidden {
  display: none;
}

.mb-1 {
  margin-bottom: 1rem;
}
