.choices {
  display: flex;
  flex-direction: column;
  padding-top: 0.5em;
}

.choice {
  display: flex;
  width: 100%;
  padding-right: 16px;
  background: none;
  border: none;
  border-radius: 25px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0.5em;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.choice:hover {
  background: #ffffff;
  border-color: #999;
}

.choice.selected {
  background: #ffffff;
  border-color: #999;
  border: solid 1px black;
}

.choice:active {
  transform: scale(0.99);
}

.choice-text {
  flex: 1;
  letter-spacing: 1px;
}

.question-number {
  font-weight: bold;
}

.question-and-choices {
  table-layout: fixed;
}

.question-and-choices.no-question-text .choices {
  transform: translateY(-2.3em);
}

.left-cell {
  width: 1em;
  text-align: left;
  vertical-align: top;
}

.right-cell {
  padding-left: 0.5em;
}

.answer-cell {
  vertical-align: auto;
}

.passage {
  padding-bottom: 2em;
  margin: 0;
}

.feedback-area {
  font-weight: bold;
  font-size: 30px;
  color: var(--accent);
  margin-left: -6px;
}

.correct-color {
  color: green;
}

.incorrect-color {
  color: red;
}

.feedback-highlight {
    background-color: yellow;
}

.arrow-left {
  font-size: 2em;
  transform: translate(-2px, -4px);
}

.arrow-right {
  font-size: 2em;
  transform: translate(4px, -4px);
}

.nav-arrow.hidden {
  display: none;
}

.nav-arrow {
  position: fixed;
  bottom: 1.5em;

  width: 42px;
  height: 42px;
  padding: 0;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font: inherit;
  cursor: pointer;
  z-index: 10;

  background: var(--accent);
  border: none;
  color: white;
}

@media (hover: hover) and (pointer: fine) {
  .nav-arrow:hover {
    background: #357ab8;
  }
}

.nav-arrow:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) inset;
}

.nav-arrow.active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) inset;
  background: #357ab8;
}

.nav-arrow:focus {
  outline: none;
  box-shadow: none;
}

.nav-prev {
  left: 1em;
}

.nav-next {
  right: 1em;
}

.next-icon-pulse {
  animation: nextIconPulse 1.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes nextIconPulse {
  0%, 100% {
    transform: translateY(-4px) translateX(4px) scale(1);
  }

  50% {
    transform: translateY(-4px) translateX(4px) scale(1.4);
  }
}

.choice.eliminated {
  text-decoration: line-through;
}

.annotation-target {
  position: relative;
  display: inline-block;
  padding-bottom: 1em;
  animation: annotation-space-in 0.5s ease-out;
}

.annotation-target.annotation-highlight-only {
  padding-bottom: 0;
  animation: none;
  line-height: inherit;
}

@keyframes annotation-space-in {
  from {
    padding-bottom: 0;
  }

  to {
    padding-bottom: 1em;
  }
}

.annotation-label {
  position: absolute;
  left: 0%;
  bottom: 0;
  line-height: 1;

  white-space: normal;
  width: max-content;
  max-width: min(20em, calc(100vw - 4em));
  overflow-wrap: break-word;

  font-weight: bold;
  animation: annotation-label-in 0.5s ease-out;
}

@keyframes annotation-label-in {
  from {
    opacity: 0;
    transform: translateY(-0.2em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.annotation-word {
  background-color: yellow;
}

.annotation-footnote-target {
  display: inline;
}

.annotation-footnotes {
  margin-top: 1em;
  margin-bottom: 1em;
  font-size: 1em;
  line-height: 1.4;
}

.annotation-footnote {
  display: block;
  margin-top: 0.25em;
  font-weight: bold;
  background: yellow;
}

.annotation-footnote .annotation-footnote-marker {
  vertical-align: super;
  margin-right: 0.2em;
}

.annotation-footnote-ref {
  font-weight: bold;
}

.choice-annotation-target {
  background: yellow;
}

.choice-annotation {
  display: block;
  width: 100%;
  margin-top: 0.1em;
  font-weight: bold;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: break-word;
}

.prove-area {
  padding: 1em 1em 1em 1em;
  border: 1px solid #222;
  background: #fff;
  margin: 1em 0 1em 0;
}

.prove-area.hidden {
  display: none;
}

.prove-title {
  padding-bottom: 1em;
  font-weight: bold;
  text-align: center;
  font-style: italic;
}

.prove-options {
  padding-top: 1em;
  display: grid;
  gap: 20px;
  grid-template-columns: auto auto;
}

.prove-option {
  background: none;
  border: solid 1px;
  border-radius: 5px;
  font-size: inherit;
  min-width: 50px;
}

.prove-option:hover {
  background: #ffffff;
}

.prove-option:active {
  transform: scale(0.99);
}

.prove-option.correct {
  background: #ffffff;
  border: solid 2px green;
}

.prove-option.incorrect {
  opacity: 0.35;
  border-color: #999;
  cursor: not-allowed;
}

.prove-option:disabled {
  pointer-events: none;
}

/* styles for particular formats of text */

.email-header {
  margin-bottom: 1.5em;
}

.passage p {
  margin: 0 0 1.5em;
  line-height: 2;
}

.email-signature {
  margin-top: 2em;
}

.feedback-blurred {
  filter: blur(4px);
  opacity: 0.55;
}

.focus-target {
  filter: none;
}

.passage-blank {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: text-top;
  line-height: 1;
}

.passage-blank-number {
  font-weight: bold;
  line-height: 0.5;
}

.chat-transcript {
  border: 1px solid #222;
  background: #fff;
}

.chat-message {
  padding: 0.6em 0.8em;
  border-bottom: 1px dashed #999;
}

.chat-message:last-child {
  border-bottom: none;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
}

.chat-name {
  font-weight: 700;
}

.chat-time {
  font-weight: 700;
  white-space: nowrap;
}

.chat-text {
  margin-top: 0.1em;
  line-height: 1.4;
}

.translation-target {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background-color: skyblue;
}

.translation-source {
  border-bottom: 1px dotted currentColor;
}

.translation-label {
  display: none;
  font-size: 0.75em;
  line-height: 1.2;
  white-space: nowrap;
}

.translation-target.translation-visible .translation-label {
  display: block;
}

.instructions-block {
  border: 1px solid #222;
  background: #fff;
  padding: 1em;
}

.scroll-down-cue {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1000;

  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;

  font-size: 40px;
  line-height: 0.5;
  cursor: pointer;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  background: var(--accent);
  color: white;
  display: flex;
  justify-content: center;

  animation: scrollCueBounce 1.2s ease-in-out infinite;
}

.scroll-down-cue.hidden {
  display: none;
}

@keyframes scrollCueBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

.audio-image {
  position: relative;
  width: min(800px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.audio-image img {
  display: block;
  width: 100%;
  height: auto;
}

.feedback-image-box {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  background: #4a91e28f;
  border: 3px dashed var(--accent);
}

.prove-image-target {
  position: absolute;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.prove-image-target {
  position: absolute;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.audio-question:not(.transcript-visible) .question-text,
.audio-question:not(.transcript-visible) .choice-text {
  display: none;
}

.audio-playing {
  background: #4a91e2d3;
}

.audio-playing-icon.audio-pulse {
  animation: audioPulse 1s ease-in-out infinite;
}

@keyframes audioPulse {
  0%, 100% {
    filter: brightness(1.5);
  }

  50% {
    filter: brightness(1.0);
  }
}

#position-indicator {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

#position-indicator.position-indicator-faded {
  opacity: 0;
  pointer-events: none;
}

.audio-playing-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.audio-playing-icon.audio-icon-visible {
  opacity: 1;
}

.header-status-slot {
  display: grid;
  place-items: center;
}

.header-status-slot #position-indicator,
.header-status-slot .audio-playing-icon {
  grid-area: 1 / 1;
}