body {
  border-color: darkcyan;
  border-style: solid;
  border-width: 1px;
  font-size: 18px;
  margin: 0;
}

article {
  /* align-items: center;
  display: flex;
  flex-direction: column; */
  margin: auto;
  max-width: 900px;
  padding-left: 1em;
  padding-right: 1em;
}

h1 {
  font-size: xx-large;
}

h1, h2, h3, h4 {
  a {
    font-style: normal;
    text-decoration: none;
  }

  a:visited {
    color: darkcyan;
  }
}

p {
  /* max-width: 600px; */
  margin-bottom: 1em;
  margin-top: 1em;
}

a {
  color: darkcyan;
  font-style: italic;
  text-decoration: underline;
}

a:visited {
  color: color-mix(in oklab, darkcyan, black 30%);
}

.sidenote {
  left: 0px;
  margin-left: 1em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  position: absolute;
}

.sidenote-ref {
  cursor: help;
}

.sidenote, .sidenote-ref {
  border-radius: 5px;
}

.sidenote-ref:hover, .sidenote-ref:hover + .sidenote {
  background: lavender;
}

.row {
  align-items: center;
  /* border-bottom: 2px dashed;
  border-top: 2px dashed; */
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  margin-bottom: 1em;
  margin-top: 1em;
}

.snippet-description {
  flex-basis: min-content;
  flex-grow: 1;
  flex-shrink: 1;
}

code {
  font-weight: 600;
}

aside {
  border-left-style: double;
  color: grey;
  padding-left: 1em;
}

.snippet {
  flex-basis: fit-content;
  flex-grow: 1;
  flex-shrink: 1;
  margin-bottom: 1em;
  margin-top: 1em;
  min-width: 400px;
}

.snippet-control-panel {
  align-items: center;
  display: flex;
  gap: 1px;
  height: 1.7em;
}

textarea {
  display: block;
  border-color: darkcyan;
  border-style: dotted;
  border-width: 2px;
  font-family: monospace;
  min-width: fit-content;
  overflow: auto;
}

button[type=reset] {
  margin-left: auto;
}

.emoji-button {
  border: none;
  font-size: 1.7em;
  line-height: 1;
  padding: 0;
}

select {
  height: 100%;
  padding-bottom: 0;
  padding-left: 0.4em;
  padding-right: 0;
  padding-top: 0;
}

.input-output {
  display: flex;
}

.input-output > * {
  flex-grow: 1;
  flex-shrink: 1;
}

.error {
  color: red;
}

pre {
  margin: 0;
}

.resizer {
  display: flex;
  margin: 0;
  overflow: hidden;
  padding: 0;
  /* resize: both; */
}

.resizer > .resized {
  border: 0;
  flex-grow: 1;
  margin: 0;
  padding: 0;
}

.output {
  /* border-style: dotted; */
  /* border-width: 2px; */
  /* margin: 1px; */
  padding: 1px;
}

header, footer {
  background-color: darkcyan;
  color: white;
  min-height: 5em;
  padding: 1em;
  text-align: center;

  & a {
    color: white;
    font-style: italic;
    text-decoration: underline;
  }

  & a:visited {
    color: color-mix(in oklab, white, darkcyan 30%);
  }
}

