body {
  display: flex;
  flex-direction: row;
  background: white;
  background-image: radial-gradient(
    rgba(195, 195, 195, 0.952) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  background-position: -19px -19px;
}

canvas {
  width: 30em;
  height: 30em;
  margin: 0 auto;
  display: block;
  background-color: rgba(255, 255, 255, 0.894);
  border: 1px dashed rgb(0, 0, 0);
  padding: 10px;
}

.prompt,
.response-container {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.894);
  border-radius: 10px;
  border: 1px dashed rgb(0, 0, 0);
  padding: 20px;
}

.response-container {
  font-family: var(--font-interface);
}

.correct {
  font-family: var(--font-interface);
  font-size: 1.2rem;
  background-color: rgba(0, 255, 0, 0.1);
  color: rgb(0, 103, 0);
  border: 1px dashed rgb(26, 255, 0);

  border-radius: 10px;
  padding: 10px 40px;
}

.incorrect {
  font-family: var(--font-interface);
  font-size: larger;
  background-color: rgba(255, 0, 0, 0.1);
  color: rgb(232, 0, 0);
  border: 1px dashed rgb(255, 0, 0);

  border-radius: 10px;
  padding: 10px 40px;
}

.response-label {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.response {
  font-size: larger;
  font-weight: bold;
}

.fixation,
.ai_answer,
.ai_certainty,
.ai_certainty_label {
  font-family: var(--font-interface);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.fixation {
  color: var(--text-normal);
}


.ai-feedback {
  display: flex;
  flex-direction: column;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  gap: 0;
  padding: 1em;
  margin-top: 1em;
  color: rgb(255, 255, 255);
  background-color: rgb(0, 0, 0);
  text-align: left;
  border-radius: 2%;
}

.ai_suggestion_wrapper {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 15px;

  display: flex;
  flex-direction: row;
  gap: 4px;
}

.ai_answer[data-suggestion="Safe"] {
  color: rgb(21, 255, 0);
  text-transform: uppercase;
  font-weight: bold;

}

.ai_answer[data-suggestion="Danger"] {
  color: rgb(255, 0, 0);
  text-transform: uppercase;
  font-weight: bold;
}


.ai_certainty_wrapper {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 15px;
  color: #fff;
}

/* Ligne complète */
.ai_certainty_label {
  display: inline-block;
  letter-spacing: 0.05em;
}

/* Génère ### + % */
.ai_certainty_label::after {
  content: " " attr(data-certainty) "%";
  margin-left: 6px;
}

/* Option: effet terminal spacing */
.ai_certainty_label {
  letter-spacing: 0.05em;
}

/* Cache complètement la barre classique */
.ai_certainty_bar {
  display: none;
}

/* ------------------------------ Questionaire ------------------------------ */

/* -------------------------------- NASA TLX -------------------------------- */
/* NASA TLX slider */
.tlx-question {
  margin: 32px 0;
}

.tlx-slider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tlx-slider-row span {
  font-size: 13px;
  color: #000000;
  white-space: nowrap;
}

.tlx-slider {
  width: 500px;
  flex: none;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: #aaa;
  outline: none;
  border: none;
}

.tlx-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
}

.tlx-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
  border: none;
}

.tlx-prompt{
  font-size: smaller;
}

/* -------------------------- Inter-trial interval -------------------------- */

.baggage{
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  background-color: #000;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
  padding: 1em;
  gap: 6px;
}

@keyframes slide {
  0%   { transform: translateX(-40px); }
  50%  { transform: translateX(0px); }
  100% { transform: translateX(-40px); }
}

.icon {
  animation: slide 2s linear infinite;
}

.ai-pipeline {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
  background-color: #000;
  padding: 1em;
  gap: 6px;
}

.ai-pipeline div {
  opacity: 0;
  color: #ffffff;
  animation: pip-fade 0.5s ease forwards;
}

.ai-pipeline div:nth-child(1) { animation-delay: 0.0s; }
.ai-pipeline div:nth-child(2) { animation-delay: 0.8s; }
.ai-pipeline div:nth-child(3) { animation-delay: 1.6s; }
.ai-pipeline div:nth-child(4) { animation-delay: 2.4s; }
.ai-pipeline div:nth-child(5) { animation-delay: 3.2s; }

@keyframes pip-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}