/* Global reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

/* Body styling */
body {
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  color: #333;
}

/* Container */
.container {
  width: 100%;
  max-width: 600px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 24px;
  transition: all 0.3s ease;
}

/* Title */
h1 {
  text-align: center;
  font-size: 1.8rem;
  color: #007bff;
  margin-bottom: 20px;
}

/* Controls */
.controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

/* Buttons */
.btn {
  padding: 10px 18px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 12px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: #005ecb;
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97);
}

/* Card area */
.card {
  background: #fefefe;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.hidden {
  display: none;
}

.meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
  text-align: center;
}

.danish {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 15px;
}

/* Speak & Show buttons row */
.tts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

/* Options grid */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  padding: 14px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  transition: all 0.2s ease;
}

.option:hover {
  background: #eef5ff;
}

.option.correct {
  background: #e6ffed;
  border-color: #1db954;
  animation: correctFlash 0.3s ease;
}

.option.wrong {
  background: #ffeaea;
  border-color: #ff4b5c;
  animation: wrongFlash 0.3s ease;
}

/* Feedback */
.feedback {
  min-height: 24px;
  font-weight: 600;
  text-align: center;
  margin: 12px 0;
  font-size: 1.1rem;
}

/* Next button */
.nav {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

@keyframes correctFlash {
  0% { background-color: #c1f8cf; }
  100% { background-color: #e6ffed; }
}

@keyframes wrongFlash {
  0% { background-color: #ffd5d5; }
  100% { background-color: #ffeaea; }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .container {
    padding: 16px;
  }
  h1 {
    font-size: 1.4rem;
  }
  .option {
    font-size: 0.95rem;
    padding: 12px;
  }
  .btn {
    font-size: 0.9rem;
    padding: 9px 14px;
  }
}
