:root {
  color-scheme: light dark;
  --bg: #eee;
  --bg2: #ddd;
  --fg: #222;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #222;
    --bg2: #333;
    --fg: #eee;
  }
}

.group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}

.blob {
  display: grid;
  grid-template-rows: 8em 3em auto;
  /* grid-gap: 1em; */
  overflow: hidden;
  background: var(--bg2);
  border-radius: 1em;
  width: 20em;
  height: 20em;
  position: relative;
}

.blob>span {
  overflow: hidden;
  opacity: 50%;
}

* {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.blob>pre {
  text-overflow: ellipsis;
  margin: 0 auto;
  max-width: 100%;
  margin: 0 1em;
  overflow: hidden;
  /* text-align: center; */
}

#blobs {
  gap: 1em;
  display: flex;
  flex-direction: column;
}

iframe {
  color-scheme: none;
  border: none;
  width: 100%;
  height: 100%;
  /* pointer-events: none; */
  /* ^ or can capture paste events */
}

pre {
  min-height: 3em;
  max-height: 10em;
  margin: 0;
  overflow: auto;
}

pre[data-type="text/plain"] {}

body {
  display: grid;
  grid-template-rows: 4em auto;
  grid-gap: 1em;
  background-color: var(--bg);
  color: var(--fg);
}

textarea, textarea:focus {
  /* position: fixed; */
  display: block;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: transparent;
  border: 1px dotted gray;
  resize: none;
  outline: 0;
  /* opacity: 0; */
  text-align: center;
}

button {
  height: 4em;
  margin: auto;
  background: transparent;
  border: none;
  cursor: pointer;
}