/* ============================================================
   MODEL TITLE  —  static/model-title.css

   The animated "MODEL" wordmark at the top of the Model page.
   Self-contained: it defines its own colours through the canvas
   script and takes only the page background from the page it
   sits on.

   Every class is prefixed mt- so nothing here can reach the rail,
   the nav, the footer or Bootstrap.

   Rubik 900 is self-hosted on static.igem.wiki — no third-party
   font request, as the iGEM rules require.
   ============================================================ */

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('https://static.igem.wiki/teams/6459/wiki/fonts/rubik-v31-latin-900.woff2') format('woff2');
}

.mt-stage {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding-inline: 16px;
}

.mt-stage canvas {
  width: 100%;
  height: auto;

  display: block;
  margin: 0 auto;

  font-family: Rubik, system-ui, sans-serif;

  filter: drop-shadow(0 4px 8px rgba(40, 30, 85, .16));

  touch-action: pan-y;
  cursor: crosshair;
}

/* the heading a screen reader announces, and what shows if the
   canvas never paints */
.mt-stage h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* no animation for anyone who has asked not to have one */
@media (prefers-reduced-motion: reduce) {
  .mt-stage canvas { cursor: default; }
}

@media (max-width: 768px) {
  .mt-stage {
    width: 100%;
    overflow: visible;
  }

  .mt-stage canvas {
    width: 145%;
    max-width: none;
    margin-left: -22.5%;
  }
}