/* Shared styles for the 3D scene pages (index.php, hanna.php). Bootstrap provides the rest. */

html, body { margin: 0; height: 100%; overflow: hidden; background: #03040a; }
canvas     { display: block; }

/* small text boxes along the bottom edge: the info line on the left, credits on the right */
.overlay   { position: fixed; bottom: 10px; padding: 2px 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.35); color: #c8cede; font: 13px/1.4 system-ui, sans-serif; }
#info      { left: 12px; pointer-events: none; }
#credits   { right: 12px; font-size: 11px; }
#credits a { color: inherit; }
@media (max-width: 1250px) { #credits { bottom: 38px; } }  /* on a narrower window the credits sit above the info line, not on top of it */

/* landmark name tags, positioned over the 3D view by the script */
.landmark-label        { position: fixed; left: 0; top: 0; cursor: pointer; opacity: 0.85; white-space: nowrap; }
.landmark-label:hover,
.landmark-label.active { opacity: 1; }
#landmarkPanel         { width: 20rem; max-width: calc(100vw - 2rem); }
#landmarkDescription   { white-space: pre-line; }
#viewControl           { width: 14rem; background: rgba(0, 0, 0, 0.35); }

/* paint colour buttons. The chosen one has a white ring. */
.paint-color           { width: 1.25rem; height: 1.25rem; padding: 0; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%; }
.paint-color.active    { outline: 2px solid #fff; outline-offset: 1px; }

/* driving (js/drive.js): the speed under the middle of the view, and the steering and pedal buttons on a touch screen */
#driveSpeed            { left: 50%; transform: translateX(-50%); font-size: 15px; pointer-events: none; }
.drive-pad             { position: fixed; bottom: 70px; display: flex; gap: 10px; }
.drive-pad-left        { left: 14px; }
.drive-pad-right       { right: 14px; }
.drive-pad .btn        { width: 4.2rem; height: 4.2rem; font-size: 1.8rem; touch-action: none; user-select: none; background: rgba(0, 0, 0, 0.35); }
#driveMap              { position: fixed; right: 12px; bottom: 70px; width: 180px; height: 180px; border-radius: 6px; background: rgba(0, 0, 0, 0.45); pointer-events: none; }
@media (pointer: coarse) {  /* a touch screen: the buttons sit above the credits, the speed and map go top right, and the key help is no use */
  .drive-pad           { bottom: 90px; }
  #driveSpeed          { bottom: auto; top: 12px; left: auto; right: 12px; transform: none; }
  #driveMap            { bottom: auto; top: 44px; width: 120px; height: 120px; }
  #driveKeys           { display: none; }
}
