/* style.css — maze-memorability task styling */

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #f7f7f9;
  color: #222;
  margin: 0;
  padding: 0;
}

.jspsych-content {
  max-width: 720px;
}

/* ---- instructions / consent / quiz ------------------------------------ */

.mm-instr-page {
  text-align: left;
  line-height: 1.5;
}
.mm-instr-page h2 {
  text-align: center;
}
.mm-consent-frame {
  width: 100%;
  height: 400px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.mm-ready-page {
  text-align: center;
  font-size: 18px;
  padding-top: 100px;
}
.mm-quiz-prompt {
  font-size: 20px;
  margin-bottom: 20px;
}

/* ---- shared maze scaffolding ------------------------------------------ */

.mm-maze-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mm-progress-label {
  font-size: 16px;
  font-weight: 600;
  color: #444;
}
.mm-progress-bar {
  font-size: 16px;
  font-weight: 600;
  padding: 6px 14px;
  background: #eef1ff;
  border-radius: 6px;
}
.mm-hint {
  font-size: 14px;
  color: #555;
  max-width: 480px;
  text-align: center;
}
.mm-recall-image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ccc;
}
.mm-lead-in {
  font-size: 20px;
  color: #666;
  padding-top: 120px;
}

/* ---- maze grid --------------------------------------------------------- */

.mm-maze-grid {
  position: relative;
  background: #fafafa;
  border: 2px solid #333;
  box-sizing: content-box;
}
.mm-wall-layer, .mm-cell-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.mm-wall-layer {
  z-index: 2;
  pointer-events: none;
}
.mm-wall {
  position: absolute;
  background: #333;
}
.mm-wall-border {
  position: absolute;
  top: 0;
  left: 0;
  border: 2px solid #333;
  box-sizing: border-box;
  pointer-events: none;
}
.mm-cell-layer {
  z-index: 1;
}
.mm-cell {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-cell-hidden {
  background: #2b2b33;
}
.mm-cell-visible {
  background: #ffffff;
}
.mm-avatar {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: #3366ff;
  box-shadow: 0 0 4px rgba(51, 102, 255, 0.6);
}
.mm-star {
  font-size: 22px;
  color: #f2b400;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}
.mm-landmark-marker {
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: #ff7043;
  box-shadow: 0 0 3px rgba(255, 112, 67, 0.7);
}
.mm-landmark-thumb {
  width: 80%;
  height: 80%;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #ff7043;
}

/* ---- landmark popup overlay (phase 1) ---------------------------------- */

.mm-landmark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.mm-landmark-overlay-visible {
  display: flex;
}
.mm-landmark-overlay img {
  max-width: 50vw;
  max-height: 50vh;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.mm-reached-flash {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 700;
  color: #2e7d32;
}

/* ---- submit-location button (phase 3) ---------------------------------- */

.mm-submit-btn {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background: #3366ff;
  color: white;
  cursor: pointer;
}
.mm-submit-btn:disabled {
  background: #a9b6e6;
  cursor: not-allowed;
}
.mm-submit-btn:not(:disabled):hover {
  background: #2451e0;
}

/* ---- recall study image (phase 3) -------------------------------------- */

.mm-recall-study {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.mm-recall-study-img {
  max-width: 60vw;
  max-height: 60vh;
  border-radius: 8px;
}

/* ---- direction-response dial (phase 4) --------------------------------- */

.mm-direction-trial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.mm-direction-images-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
}
.mm-direction-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 200px;
}
.mm-direction-prompt {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.mm-direction-image {
  max-width: 160px;
  max-height: 160px;
  border-radius: 8px;
  border: 2px solid #ccc;
}
.mm-dial-container {
  position: relative;
  border-radius: 50%;
  touch-action: none;
  cursor: crosshair;
}
.mm-dial-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #999;
  background: #fdfdfd;
}
.mm-dial-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 5px;
  background: #3366ff;
  border-radius: 3px;
  transform-origin: 0 50%;
}
.mm-dial-handle::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #3366ff;
}
.mm-dial-center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: #333;
}
