/* ── Custom styles — loaded after jspsych.css from CDN ───────────────────────
   jspsych.css handles layout. We add: page background, card style, buttons, code. */

/* Dark gradient page background */
body {
  min-height: 100vh;
  background-color: #060818;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%,  rgba(99,  102, 241, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%,  rgba(14,  165, 233, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 55% 40%,  rgba(168,  85, 247, 0.10) 0%, transparent 50%),
    linear-gradient(160deg, #07091a 0%, #0d1529 50%, #080f1e 100%);
  background-attachment: scroll;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Card appearance for the content wrapper */
.jspsych-content-wrapper {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 8px 24px rgba(0,0,0,0.30),
    0 32px 64px rgba(0,0,0,0.25);
  padding: 44px 48px;
  margin-top: 48px;
  max-width: min(1600px, 95vw);
}

/* Left-align all content inside the card so bullets/lists aren't broken by centering */
.jspsych-content {
  text-align: left;
  width: 100%;
  max-width: 100%;
}
.jspsych-content ul,
.jspsych-content ol {
  text-align: left;
  padding-left: 1.5em;
}

/* Buttons */
.jspsych-btn {
  background: #4338ca;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.jspsych-btn:hover  { background: #3730a3; transform: translateY(-1px); }
.jspsych-btn:active { transform: translateY(0); }

/* Code blocks for reading trial */
pre, code {
  font-family: Consolas, 'Courier New', monospace;
  background: #0b1220;
  color: #e6edf3;
  border-radius: 6px;
}
pre {
  padding: 12px;
  overflow: auto;
}
code {
  padding: 1px 5px;
  font-size: 0.9em;
}

/* Narrow card for text-only screens (welcome, consent, questionnaires) */
.narrow-card {
  max-width: min(780px, 92vw) !important;
}

/* ── Survey-likert plugin styling ── */
.jspsych-survey-likert-form {
  max-width: 660px;
  margin: 0 auto;
}
.jspsych-survey-likert-statement {
  font-size: 1.1rem;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.5;
}
.jspsych-survey-likert-opts {
  padding: 8px 0 16px;
}
.jspsych-survey-likert-opt-label {
  font-size: 0.95rem;
  color: #374151;
}
.jspsych-survey-likert-next {
  margin-top: 12px;
}

/* Right-align all jsPsych action buttons to match custom inline buttons */
.jspsych-html-button-response-btngroup {
  text-align: right;
}
/* Comprehension trial has its own full-width layout — keep button centered */
.comprehension-trial .jspsych-html-button-response-btngroup {
  text-align: center;
}
.jspsych-survey-likert-next,
.jspsych-survey-multi-choice-next,
.jspsych-survey-text-next {
  display: block;
  margin-left: auto;
}

/* Comprehension trial: fixed-height split panes with independent scrolling */
.comprehension-trial .task-split {
  height: calc(100vh - 260px);
  min-height: 400px;
}
.comprehension-trial .editor-pane .CodeMirror {
  height: 100% !important;
}

/* CodeMirror editor sizing */
.CodeMirror {
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
}



