:root {
  --font-monospace: "Firple", "Cascadia Code", monospace;
}

body {
  font-size: 14px;
  color: #ccc;
  background-color: #234;
  margin: 16px auto;
  padding-inline: 24px;
  max-width: 960px;
  box-sizing: border-box;
}

header {
  display: flex;
  align-items: center;
}

footer {
  margin: 36px 0px;
}

h1 {
  font-family: var(--font-monospace);
  display: inline-block;
}

a {
  color: inherit;
}

p {
  line-height: 1.5em;
}

.right-aligned {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 48px;
}

#samples {
  font-family: var(--font-monospace);
  width: 160px;
  height: 32px;
  padding: 0 1em;
}

#run {
  font-family: var(--font-monospace);
  font-weight: bold;
  width: 128px;
  height: 48px;
  background-color: #5fa;
}

pre,
textarea {
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: #ccc;
  background-color: #2d2d2d;
  border: 1px solid #888;
  margin: 0;
  padding: 16px 24px;
  box-sizing: border-box;
  resize: none;
  white-space: pre;
  overflow: auto;
  tab-size: 4;
}

pre#output .err {
  color: #f77;
}

#output-container {
  width: 100%;
  height: 144px;
  margin: 16px 0;
  font-family: var(--font-monospace);
  font-size: 16px;
  line-height: 1.5;
}

#input-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 16px 0;
  font-family: var(--font-monospace);
  font-size: 16px;
  line-height: 1.5;
}

#input-container textarea#input,
#input-container pre#highlight {
  position: absolute;
  top: 0;
  left: 0;
  padding: 16px 24px 16px 3.8em;
}

#input-container textarea#input {
  z-index: 2;
  background: transparent;
  color: transparent;
  caret-color: #fff;
}

#input-container pre#highlight {
  z-index: 1;
  pointer-events: none;
}

#input-container code[class*="language-"],
#input-container pre[class*="language-"] {
  /* Prevent Prism.js from overwriting them. */
  font-family: var(--font-monospace);
  margin: 0;
}
