/* Aurora Heights' drawings (js/geo-pictures.js): the angle, rectangle,
   L-shape, box of cubes, grid, or number line that goes with each question.
   Everything here is geo-*, so it can't restyle anything else. The colors are
   in the drawing itself (the palace's aurora greens, or Speedy Town's
   blueprint blues). */

.geo { display: block; max-width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.geo text { font-family: inherit; }

/* On the card, under the question. */
.geo-up { margin: 4px auto 6px; width: 100%; max-width: 440px; }
.geo-up .geo { width: 100%; max-height: 250px; }
.geo-up .geo-grid { max-height: 290px; }
.geo-up .geo-convert { max-height: 170px; }
.is-choice .geo-up .geo { max-height: 220px; }

/* Landscape tablets: the keypad sits beside the card, so the picture can't be as tall. */
@media (min-aspect-ratio: 1 / 1) and (max-height: 900px) {
  .geo-up .geo { max-height: 180px; }
  .geo-up .geo-grid { max-height: 220px; }
  .geo-up .geo-convert { max-height: 140px; }
  .is-choice .geo-up .geo { max-height: 175px; }
}

@media (max-width: 640px) {
  .geo-up { margin: 2px auto 4px; }
  .geo-up .geo { max-height: 190px; }
  .geo-up .geo-grid { max-height: 230px; }
}

/* Picture answers (js/early-geometry.js `pics`): a shape on each of the four
   buttons, two by two, the letter still in its corner. */
.options.pics .option { padding: 8px 10px 8px 8px; gap: 6px; }
.options.pics .option-text { display: flex; justify-content: center; }
.option-pic { display: inline-block; position: relative; max-width: 100%; vertical-align: middle; }
.option-pic .geo { width: auto; max-width: 100%; height: clamp(64px, 12vh, 118px); }
.clue-answer .option-pic { display: inline-block; width: 64px; vertical-align: middle; }
.clue-answer .option-pic .geo { height: 52px; }
@media (min-aspect-ratio: 1 / 1) and (max-height: 900px) {
  .option-pic .geo { height: clamp(64px, 12vh, 112px); }
}
/* Phones: pictures stay two by two (words go one per row there). */
@media (max-width: 640px) {
  .options.pics { grid-template-columns: repeat(2, 1fr); }
  .options.pics .option { padding: 6px 8px 6px 6px; }
  .option-pic .geo { height: clamp(64px, 14vh, 112px); }
}
/* A picture the clue took away, or one already tried: dimmed (as every
   answer button is) and struck through, like a word answer. */
.options.pics .option.crossed .option-pic::after,
.options.pics .option.wrong .option-pic::after {
  content: ''; position: absolute; left: -6%; right: -6%; top: 50%; height: 5px; border-radius: 3px;
  background: rgba(226, 92, 92, 0.75); transform: rotate(-24deg);
}
