/* leomack.wtf — canvas renderer styles.
   1rem = 1 "reference pixel" (the width each page was designed at, set as --ref per page).
   On screens narrower than the design the whole canvas shrinks proportionally. */
html { font-size: min(1px, calc(100vw / var(--ref, 1450))); }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-size: 16rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: url('/assets/gif/3oKIPn5EmNia9HSaTC-giphy.gif'), auto;
}
a { cursor: url('/assets/gif/3oKIPn5EmNia9HSaTC-giphy.gif'), pointer; }

.stage { position: relative; width: 100%; overflow: hidden; }
.canvas { position: relative; height: 100%; margin: 0 auto; }

/* every element: positioned by its centre, like the original editor */
.b {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
}
.c { width: 100%; height: 100%; position: relative; }
.c img, .c svg { display: block; width: 100%; height: 100%; }
.fill { width: 100%; height: 100%; }
.c iframe { border: 0; }
.t-youtube iframe { width: 100%; height: 100%; }

.hit { display: block; width: 100%; height: 100%; color: inherit; text-decoration: none; }

/* text */
.text p { margin: 0; white-space: pre-wrap; overflow-wrap: break-word; }
.text a { color: inherit; }

/* hover effects carried over from mmm */
.grow { transition: transform .1s ease-in-out, opacity .1s ease-in-out; }
.grow:hover { transform: scale(1.06); }
.uline:hover, .uline:hover a { text-decoration: underline; }
