/* ======================
          BASE STYLES 
====================== */
body {
  background-color: #A5A5A5;
  font-size: 1.5rem;
  /* 24px */
  margin: 0;
  color: white;
}

p {
  margin: 0 9.375rem;
  /* 150px */
  font-size: 2.1875rem;
  /* 35px */
  text-align: justify;
  line-height: 1.5;
  color: rgb(239, 235, 235);
  /* font-size: large; */
}

/* ── Instruction pages ──────────────────────────────────────── */
#jspsych-instructions-pagetext {
  display: block;
  width: 1500px;
  max-width: 92vw;
  margin: 0 auto;
  padding: 60px 0 20px 0;
  text-align: left;
  line-height: 1.8;
  font-size: 18px;
  box-sizing: border-box;
}

#jspsych-instructions-pagetext p {
  text-align: left;
  margin-bottom: 1.1em;
}

#jspsych-instructions-nav {
  padding-bottom: 30px;
}

/* ── Comprehension questions ────────────────────────────────── */
#jspsych-survey-multi-choice-form {
  display: block;
  width: 1500px;
  max-width: 92vw;
  margin: 40px auto 0 auto;
  text-align: left;
  line-height: 1.75;
  font-size: 15px;
}

/* ======================
   LAYOUT STRUCTURE 
   ====================== */

.gamble-header {
  position: fixed;
  top: 10%;
  width: 100%;
  text-align: center;
  z-index: 1;
}

.header {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  background: transparent;
  padding: -10px 10px;
  z-index: 10;
  width: 120%;
}

.gamble-four-panel-grid {
  display: grid;
  transform: translate(-50%, -50%);
  grid-template-columns: repeat(2, 9.8125rem);
  /* 157px */
  grid-template-rows: repeat(2, 9.8125rem);
  /* 157px */
  gap: 4.375rem 11.25rem;
  /* 70px 180px */
  position: absolute;
  z-index: 1;
}

.gamble-four-panel-grid-choice {
  display: inline-grid;
  transform: translateX(-50%) translateY(-50%);
  grid-template-columns: 150px 150px;
  grid-template-rows: 100px;
  grid-column-gap: 200px;
  position: absolute;
}

/* ======================
   GAMBLE COMPONENTS 
   ====================== */
.gamble-panel-item {
  display: grid;
  position: relative;
  border-radius: 50%;
  justify-content: center;
  align-content: center;
}

.gamble-value {
  font-size: 4rem;
  /* other styles */
}

/* ======================
   FIXATION & BUTTONS 
   ====================== */
.subitem {
  background-color: transparent;
  color: rgb(239, 235, 235);
  font-size: 3rem;
  /* 40px */
  border: none;
  padding: 0;
  margin: 0;
  line-height: 1;

  /* position: absolute; */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  /* Centers properly */
  text-align: center;
}

.cross-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.fixation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  font-size: 3rem;
}

.fixation {
  font-size: 3rem;
  /* 35px */
  color: rgb(239, 235, 235);
}

/* ======================
   ERROR MODAL 
   ====================== */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.4);
}

.fullscreen-overlay .modal {
  width: 20rem;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #b6b6b6;
  border-radius: 4px;
  overflow: hidden;
}

.fullscreen-overlay .modal-header {
  background-color: #ececec;
  border-bottom: 1px solid #b6b6b6;
  padding: 1rem;
}

.fullscreen-overlay .modal-content {
  background-color: #fff;
  padding: 1rem;
}

.fullscreen-overlay .modal-actions {
  display: flex;
  justify-content: space-between;
}

.jspsych-survey-multi-choice-option {
  margin: 0.75em 0;
  padding-left: 5.5em;
  /* ✅ space for the scaled radio */
}

.jspsych-survey-multi-choice-option label {
  display: inline-flex;
  align-items: center;
  gap: 1.75em;
  font-size: 40px !important;
  line-height: 1.4;
  color: white;
  cursor: pointer;
}

.jspsych-survey-multi-choice-option input[type='radio'] {
  transform: scale(2.5);
  margin: 0;
  padding: 0;
  cursor: pointer;
  vertical-align: middle;
}