/* Large touch targets for the Family Hub screen. Works in portrait and landscape. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; }
html:-webkit-full-screen, html:fullscreen { background: #f3f5f8; overflow-y: auto; }
body {
  font-family: "SamsungOne", "Roboto", Arial, sans-serif;
  background: #f3f5f8; color: #1d2733;
  font-size: 22px; line-height: 1.35;
  -webkit-user-select: none; user-select: none;
}
.hidden { display: none !important; }
.muted { color: #5d6b7a; }

#topbar {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  background: #0b3d6b; color: #fff; padding: 14px 24px; min-height: 72px;
}
#brand { font-weight: bold; letter-spacing: 2px; font-size: 26px; }
#progress { -webkit-flex: 1; flex: 1; text-align: center; font-size: 22px; }

main { max-width: 1000px; margin: 0 auto; padding: 24px; }
h1 { font-size: 40px; margin: 12px 0 6px; }
h2 { font-size: 30px; margin: 20px 0 16px; }

button {
  font: inherit; font-size: 26px; border: 2px solid #0b3d6b; background: #fff; color: #0b3d6b;
  border-radius: 14px; padding: 18px 24px; margin: 8px 0; width: 100%; min-height: 76px;
  cursor: pointer;
}
button:active { background: #dce7f3; }
button.primary { background: #0b3d6b; color: #fff; }
button.small { width: auto; min-height: 0; padding: 10px 20px; font-size: 20px; margin: 0;
  background: transparent; color: #fff; border-color: #fff; }

.topics button { text-align: left; }
.topics .count { float: right; color: #5d6b7a; }

.tag { display: inline-block; background: #dce7f3; color: #0b3d6b; border-radius: 8px;
  padding: 4px 12px; font-size: 18px; }

.answers button { text-align: left; position: relative; padding-left: 76px; }
.answers .letter {
  position: absolute; left: 18px; top: 50%; margin-top: -21px; width: 42px; height: 42px;
  line-height: 42px; text-align: center; border-radius: 50%; background: #0b3d6b; color: #fff;
  font-weight: bold;
}
.answers button.correct { background: #e3f6e8; border-color: #1e8e3e; color: #145c29; }
.answers button.correct .letter { background: #1e8e3e; }
.answers button.wrong { background: #fde7e7; border-color: #c62828; color: #8e1b1b; }
.answers button.wrong .letter { background: #c62828; }
.answers button[disabled] { cursor: default; }

.imgwrap { position: relative; margin: 12px auto; max-width: 100%; display: table; }
.imgwrap img { display: block; max-width: 100%; max-height: 60vh; border-radius: 10px; background: #fff; }
.hotspots { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.hs { position: absolute; border: 3px solid transparent; border-radius: 8px; }
.hs.show { border-color: #5d6b7a; background: rgba(93,107,122,0.12); }
.hs.show.correct { border-color: #1e8e3e; background: rgba(30,142,62,0.22); }
.hs.show.picked.wrong { border-color: #c62828; background: rgba(198,40,40,0.22); }
.hs .lbl { position: absolute; left: 0; top: 100%; margin-top: 4px; background: #1d2733; color: #fff;
  font-size: 16px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; display: none; }
.hs.show .lbl { display: block; }
.tapmark { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  border: 4px solid #c62828; background: rgba(255,255,255,0.6); pointer-events: none; }
.tapmark.ok { border-color: #1e8e3e; }

.feedback { border-radius: 12px; padding: 18px 22px; margin: 14px 0; font-size: 24px; }
.feedback.ok { background: #e3f6e8; color: #145c29; }
.feedback.bad { background: #fde7e7; color: #8e1b1b; }
.feedback .expl { color: #1d2733; margin-top: 8px; font-size: 22px; }

.score { font-size: 72px; font-weight: bold; color: #0b3d6b; }
.review .item { background: #fff; border-radius: 12px; padding: 14px 18px; margin: 10px 0;
  border-left: 8px solid #c62828; font-size: 20px; }
.review .item .ans { color: #145c29; margin-top: 6px; }

/* --- Trainee / supervisor screens --- */
.notice { background: #fff; border-left: 8px solid #0b3d6b; border-radius: 10px; padding: 16px 20px;
  margin: 16px 0; font-size: 22px; }
.notice.ok { border-left-color: #1e8e3e; }
.notice.warn { border-left-color: #e0a100; }
input[type=text] { font: inherit; font-size: 30px; width: 100%; padding: 18px 20px; border: 2px solid #0b3d6b;
  border-radius: 14px; background: #fff; -webkit-user-select: text; user-select: text; }
.pinmsg { color: #c62828; min-height: 30px; margin: 8px 0; }
.pindots { font-size: 48px; letter-spacing: 16px; min-height: 64px; text-align: center; }
.pinpad { overflow: hidden; max-width: 480px; margin: 0 auto; }
.pinpad button { float: left; width: 31.3%; margin: 1%; font-size: 34px; min-height: 92px; }
.resname { font-size: 30px; font-weight: bold; margin-top: 8px; }

/* Picture answers: 2 x 2 grid */
.answers.pics { overflow: hidden; }
.answers.pics button { float: left; width: 48.5%; margin: 0 3% 3% 0; padding: 10px; text-align: center;
  background: #fff; min-height: 0; }
.answers.pics button:nth-child(2n) { margin-right: 0; }
.answers.pics button img { display: block; width: 100%; height: auto; border-radius: 6px; }
.answers.pics .letter { left: 12px; top: 12px; margin-top: 0; z-index: 2; }
.answers.pics button.correct { background: #e3f6e8; border-width: 6px; padding: 6px; }
.answers.pics button.wrong { background: #fde7e7; border-width: 6px; padding: 6px; }
