/* ===================================== */
/* STROOP — LAYOUT WRAPPER               */
/* ===================================== */
.stroop-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 75vh;
  gap: 40px;
}

/* ===================================== */
/* STIMULUS AREA                         */
/* ===================================== */
.stroop-stim-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  pointer-events: none;
  user-select: none;
}

.stroop-rect {
  width: 320px;
  height: 130px;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  /* background-color set inline per trial */
}

.stroop-word {
  font-size: 96px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  /* color set inline per trial */
}

/* ===================================== */
/* RESPONSE BUTTONS                      */
/* ===================================== */
.stroop-btns {
  display: flex;
  flex-direction: row;
  gap: 36px;
}

.stroop-btn {
  min-width: 140px;
  padding: 14px 20px;
  font-size: 22px;
  font-weight: bold;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  background: white;
  border: 2px solid #000;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.stroop-btn:hover {
  background: #f0f0f0;
}

.stroop-btn.responded {
  opacity: 0.45;
  cursor: default;
}

/* ===================================== */
/* FEEDBACK                              */
/* ===================================== */
.stroop-fb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70vh;
}

.stroop-fb {
  padding: 28px 52px;
  border-radius: 14px;
  font-size: 28px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.stroop-fb-ok {
  background: #e8f5e9;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.stroop-fb-err {
  background: #ffebee;
  color: #d32f2f;
  border: 2px solid #d32f2f;
}

.stroop-fb-miss {
  background: #fff3e0;
  color: #e65100;
  border: 2px solid #f57c00;
}

/* ===================================== */
/* INSTRUCTIONS                          */
/* ===================================== */
.stroop-instr-wrap {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  text-align: left;
}

.stroop-instr-wrap h2 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.stroop-instr-wrap p {
  margin-bottom: 14px;
}

/* ===================================== */
/* JSPSYCH BUTTON OVERRIDE               */
/* ===================================== */
.jspsych-btn,
#jspsych-instructions-next,
#jspsych-instructions-back,
#jspsych-survey-text-next {
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
  padding: 12px 28px;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, box-shadow 0.2s;
}

.jspsych-btn:hover,
#jspsych-instructions-next:hover,
#jspsych-instructions-back:hover,
#jspsych-survey-text-next:hover {
  background: linear-gradient(135deg, #5a6fd6 0%, #6a3d8f 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  border-color: transparent;
}
