/* The meme generator (/meme-generator), on the foundation, tool.css and the video checker's drop tile (video.css): the
   editor is the drop tile, the top and bottom words and two choices between hairlines; the well shows the meme as it will
   download, then its size, Download and Copy, and the pennant. Anton (SIL OFL 1.1, /assets/fonts/OFL-anton.txt) draws the
   classic capitals. */
@font-face { font-family: Anton; src: url(/assets/fonts/anton.woff2) format("woff2"); font-weight: 400; font-display: block; }
.memes .editor { border-radius: 12px; transition: background .15s ease-out, box-shadow .15s ease-out; }
.memes .editor.drop { background: var(--muted); box-shadow: 0 0 0 12px var(--muted); }
.memes .hint { min-height: 20px; margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted-foreground); }
.memes .hint:empty { min-height: 0; }
.memes .words { display: block; margin: 20px 0 6px; font-size: 15px; color: var(--muted-foreground); }
.memes textarea { min-height: 0; padding: 12px 14px; border: 1px solid var(--input); border-radius: 12px; background: var(--background); font-size: 17px; line-height: 1.4; overflow: auto; }
.memes textarea:focus-visible { border-color: var(--foreground); box-shadow: 0 0 0 1px var(--foreground); }

.memes .set { margin-top: 20px; border-top: 1px solid var(--border); }
.memes .field { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--muted-foreground); }
.memes .field > :first-child { flex: none; }
.memes .seg button { padding: 0 12px; }

/* The well: the meme at its own shape, never wider than the well or taller than a screen. */
.memes .view { display: block; }
.memes .stage { min-height: 360px; padding: 32px 24px; }
.memes .stage canvas { display: block; max-width: 100%; max-height: 640px; width: auto; height: auto; border-radius: 4px; box-shadow: 0 0 0 .5px var(--border), 0 1px 3px rgba(36, 17, 12, .1); }
.memes .result .out { display: flex; gap: 12px; }
.memes .result .out [hidden] { display: none; }
.memes .result.go { justify-content: flex-end; }
.memes .result .numbers { font-variant-numeric: tabular-nums; }

/* The two styles below the tool: one figure each, the words a line. */
.memes .nets .n { font-size: 32px; }

@media (max-width: 1119px) {
  .memes .editor { position: static; }
}
@media (max-width: 759px) {
  .memes .stage { min-height: 220px; padding: 16px; }
  .memes .stage canvas { max-height: 480px; }
  .memes .result { flex-direction: column; align-items: stretch; }
  .memes .result .out > * { flex: 1; }
}
