/* Panel TT2: large type and buttons for older adults (type 20px+, buttons 56px+). */
html, body { background: #f4f1ea; color: #1d1d1d; font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.45; margin: 0; }
#panel { max-width: 1100px; margin: 0 auto; padding: 18px 16px 40px; }
.jspsych-content { max-width: 1100px !important; font-size: 21px; }
.text, .q { text-align: left; max-width: 860px; margin: 0 auto 14px; }
.q { font-size: 23px; font-weight: bold; }
.q.small, .small { font-size: 20px; font-weight: normal; }
.jspsych-btn { font-size: 21px; min-height: 56px; padding: 10px 22px; margin: 6px; border-radius: 10px; border: 2px solid #555; background: #fff; color: #111; cursor: pointer; }
.jspsych-btn:hover { background: #fff4d6; }
.jspsych-btn.big { min-width: 260px; }
.jspsych-btn.go { background: #1f5f3a; color: #fff; border-color: #1f5f3a; }
.jspsych-btn.sel { background: #ffe08a; border-color: #8a6a00; }
.jspsych-btn:disabled { opacity: .45; cursor: default; }
.jspsych-html-button-response-btngroup { display: flex; flex-direction: column; align-items: center; }
.row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0; }
.ticks { display: flex; flex-direction: column; align-items: flex-start; max-width: 860px; margin: 0 auto 10px; text-align: left; }
.tick { display: flex; align-items: center; gap: 12px; font-size: 21px; padding: 8px 4px; cursor: pointer; }
.tick input { width: 28px; height: 28px; }
.box { width: 100%; max-width: 860px; font-size: 21px; padding: 10px; border: 2px solid #777; border-radius: 8px; box-sizing: border-box; }
input.box { height: 56px; }
table.matrix { margin: 0 auto 10px; border-collapse: collapse; font-size: 19px; }
table.matrix th { padding: 6px 10px; font-weight: bold; }
table.matrix td { padding: 8px 10px; border-top: 1px solid #ccc; text-align: center; }
table.matrix td.rowlabel { text-align: left; max-width: 320px; }
table.matrix input { width: 28px; height: 28px; }
.hidden { display: none !important; }
audio { margin: 10px auto; display: block; }

/* video with marks */
.vm-wrap { display: flex; flex-direction: column; align-items: center; }
.vm-stage { position: relative; width: 100%; display: flex; justify-content: center; background: #000; }
.vm-video { max-width: 100%; max-height: calc(100vh - 250px); display: block; }
.vm-noted { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; padding: 6px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; font-size: 22px; }
.vm-noted.show { opacity: 1; }
.vm-overlay { position: absolute; inset: 0; background: rgba(244,241,234,.96); display: flex; align-items: center; justify-content: center; }
.vm-cpbox { max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.vm-start { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); }
.vm-ai { font-size: 18px; color: #333; margin-top: 4px; }
.vm-bar { display: flex; gap: 16px; align-items: center; margin: 8px 0; font-size: 20px; }
.vm-bar button { min-height: 48px; font-size: 19px; padding: 6px 16px; border-radius: 8px; border: 2px solid #666; background: #fff; }
.vm-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vm-btn { min-height: 64px; min-width: 230px; font-size: 20px; font-weight: bold; border-radius: 10px; border: 3px solid #333; background: #fff; cursor: pointer; }
.vm-btn:active { background: #ffe08a; }
.vm-btn:disabled { opacity: .4; }

/* judge, spot click, reason */
.jg-stage, .sc-stage, .ra-stage { position: relative; display: flex; justify-content: center; margin: 6px auto; background: #222; max-width: 960px; }
.jg-img, .jg-vid, .sc-img, .ra-vid { max-width: 100%; max-height: 58vh; display: block; }
/* every picture is 16:9: draw real and computer-made ones at the same size whatever their pixel size */
.jg-img, .sc-img { width: min(100%, calc(58vh * 16 / 9)); height: auto; max-height: none; }
.jg-audio { font-size: 64px; color: #fff; padding: 30px; }
.sc-img { cursor: crosshair; }
.sc-mark { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 4px solid #ff2a2a; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 2px #fff; }
.sc-stage { display: inline-block; }
