html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  display: grid;
  place-items: center;
}

#ascii {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  /* font-size and line-height are set from the frame size in sketch.js */
  white-space: pre;
  user-select: none;
}

#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
}

#overlay[hidden] { display: none; }

.lede {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.125rem;
}

.note {
  margin: 0;
  font-size: 0.9375rem;
  color: #a3a3a3;
}

.error {
  margin: 0;
  max-width: 32rem;
  font-size: 0.9375rem;
  color: #fca5a5;
}

button {
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  cursor: pointer;
}

button:hover { background: #d4d4d4; }
button:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }

#stop {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

#stop[hidden] { display: none; }
#stop:hover { background: rgba(38, 38, 38, 0.8); }
