/* The question card and its options, shared by quiz, results, browse and flashcards. */

.q-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 1.5);
}

.q-num {
  display: block;
  color: var(--muted);
  font-size: var(--fs-small);
  margin-bottom: 4px;
}

.q-text {
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.4;
}

.q-images {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.q-img {
  max-height: 180px;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.q-opts {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.q-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  line-height: 1.4;
  transition: background-color var(--ease), border-color var(--ease);
}

button.opt {
  cursor: pointer;
}

button.opt:hover:not(:disabled) {
  border-color: var(--action);
  background: var(--bg);
}

.opt-letter {
  flex: 0 0 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: var(--fs-small);
}

.opt-text {
  flex: 1;
}

.opt .q-img {
  max-height: 110px;
}

.opt-chosen {
  border-color: var(--action);
  background: var(--bg);
}

.opt-chosen .opt-letter {
  background: var(--action);
  border-color: var(--action);
  color: var(--action-text);
}

.opt-right {
  border-color: var(--ok);
  background: var(--ok-bg);
}

.opt-right .opt-letter {
  background: var(--ok);
  border-color: var(--ok);
  color: var(--action-text);
}

.opt-wrong {
  border-color: var(--error);
  background: var(--error-bg);
}

.opt-wrong .opt-letter {
  background: var(--error);
  border-color: var(--error);
  color: var(--action-text);
}
