header,
form {
  margin: 0;
  width: 100%;
}
#forms {
  display: grid;
  grid-template-rows: 1fr 2px 1fr;
  grid-gap: 0.5rem;
}
@media (min-width: 32rem) {
  #forms {
    grid-template-columns: 1fr 2px 1fr;
    grid-template-rows: 1fr;
  }
}
* {
  box-sizing: border-box;
}
form {
  flex-basis: 15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  grid-gap: 0.5rem;
  padding: 0.5rem;
}
body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
}
html {
  color-scheme: light dark;
  padding: 0;
  font-family: "Atkinson Hyperlegible", sans-serif;
}
body {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2280%22%20height%3D%2280%22%20viewBox%3D%220%200%2080%2080%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22a%22%20width%3D%221%22%20height%3D%221%22%20x%3D%220%22%20y%3D%220%22%3E%3CfeComponentTransfer%3E%3CfeFuncA%20slope%3D%22255%22%20type%3D%22linear%22%2F%3E%3C%2FfeComponentTransfer%3E%3C%2Ffilter%3E%3CclipPath%20id%3D%22b%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M11%200l5%2020H6l5-20zm42%2031a3%203%200%201%200%200-6%203%203%200%200%200%200%206zM0%2072h40v4H0v-4zm0-8h31v4H0v-4zm20-16h20v4H20v-4zM0%2056h40v4H0v-4zm63-25a3%203%200%201%200%200-6%203%203%200%200%200%200%206zm10%200a3%203%200%201%200%200-6%203%203%200%200%200%200%206zM53%2041a3%203%200%201%200%200-6%203%203%200%200%200%200%206zm10%200a3%203%200%201%200%200-6%203%203%200%200%200%200%206zm10%200a3%203%200%201%200%200-6%203%203%200%200%200%200%206zm-30%200a3%203%200%201%200%200-6%203%203%200%200%200%200%206zm-28-8a5%205%200%200%200-10%200h10zm10%200a5%205%200%200%201-10%200h10zM56%205a5%205%200%200%200-10%200h10zm10%200a5%205%200%200%201-10%200h10zm-3%2046a3%203%200%201%200%200-6%203%203%200%200%200%200%206zm10%200a3%203%200%201%200%200-6%203%203%200%200%200%200%206zM21%200l5%2020H16l5-20zm43%2064v-4h-4v4h-4v4h4v4h4v-4h4v-4h-4zM36%2013h4v4h-4v-4zm4%204h4v4h-4v-4zm-4%204h4v4h-4v-4zm8-8h4v4h-4v-4z%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Crect%20style%3D%22fill%3Ablue%3Bfill%3AHighlight%3Bfill%3AAccentColor%22%20filter%3D%22url(%23a)%22%20opacity%3D%22.1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2280%22%20height%3D%2280%22%2F%3E%3Crect%20filter%3D%22url(%23a)%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2280%22%20height%3D%2280%22%20opacity%3D%22.1%22%20style%3D%22fill%3Ablue%3Bfill%3AHighlight%3Bfill%3AAccentColor%22%20clip-path%3D%22url(%23b)%22%2F%3E%3C%2Fsvg%3E");
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  max-width: 40rem;
  margin: auto;
  height: fit-content;
  overflow: auto;
  max-height: 100%;
}
h1 {
  margin: 0;
  font-weight: 700;
}
header {
  text-align: center;
  padding: 1rem 0.5rem;
}

button {
  background: url('data:image/svg+xml,%3Csvg xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg" viewBox%3D"0 0 1 1"%3E%3Cdefs%3E%3Cfilter id%3D"a" width%3D"1" height%3D"1" x%3D"0" y%3D"0"%3E%3CfeComponentTransfer%3E%3CfeFuncA slope%3D"255" type%3D"linear"%2F%3E%3C%2FfeComponentTransfer%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpath style%3D"fill%3Ablue%3Bfill%3AHighlight%3Bfill%3AAccentColor" d%3D"M0 0h1v1H0z" filter%3D"url(%23a)"%2F%3E%3C%2Fsvg%3E');
  color: white;
  color: HighlightText;
  color: AccentColorText;
  font: inherit;
  font-weight: 400;
  padding: 0.25em 0.75em;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

button.link {
  color: blue;
  color: LinkText;
  background: transparent;
  padding: 0 0.25em;
  border-radius: 0.25em;
}
button.link:hover::before,
button::before {
  opacity: 0.1;
}

button::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  content: "";
  background: currentColor;
  transition: 0.25s opacity ease;
}

button:hover::before,
button.link:active::before {
  opacity: 0.2;
}

button:active::before,
button.link::before {
  opacity: 0;
}

.file {
  border: 2px dashed GrayText;
  border-radius: 9px;
  height: 10rem;
  display: flex;
  width: 100%;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
}
.file input {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 200%;
  opacity: 0;
  cursor: pointer;
}

.fileicon {
  width: 57px;
  height: 76px;
  background: url(file.png);
  flex-shrink: 0;
  background-size: contain;
  filter: drop-shadow(0 2px 4px #0003);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close {
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 5px;
  z-index: 2;
}

.clearfile {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0.25rem;
}

.filename {
  margin: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.75;
  user-select: none;
}

.create {
  position: absolute;
  bottom: 0;
  margin: 0.5rem;
  z-index: 2;
}
.thumb {
  width: 36px;
  height: 36px;
  margin-top: 13px;
  background: var(--identicon);
}

.file::before {
  background: Canvas;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: -1;
}
.divider {
  background: GrayText;
}
.dialog-container,
.dialog-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.dialog-container {
  z-index: 2;
  display: flex;
  padding: 1rem;
}
.file.empty .clearfile,
.file.empty .filename,
.file.empty .fileicon,
.file:not(.empty) input,
.file:not(.empty) .text,
.file:not(.empty) .create,
.hide {
  display: none;
}
.dialog-overlay {
  background-color: rgba(0, 0, 0, 0.32);
}
.dialog-content {
  margin: auto;
  z-index: 2;
  position: relative;
  background-color: Canvas;
  border-radius: 9px;
  width: 25rem;
  max-width: 100%;
  box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2),
    0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 10rem 1fr;
  grid-template-rows: min-content 1fr;
  grid-template-areas: "h" "h" "i" "d";
}
.dialog-content header {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  grid-column: 1 / 3;
}
.dialog-content header h1 {
  font-size: 1.5rem;
  flex-grow: 1;
  margin-right: -1.5rem;
}
#identicon {
  grid-column: 1;
  grid-row: 2;
}
#info {
  padding: 0;
  grid-row: 2;
  grid-column: 2;
}
#info dd {
  word-break: break-word;
  margin: 0;
  font-family: monospace;
  margin-bottom: 0.5rem;
}
#info dt {
  font-weight: 700;
}
#info dt::after {
  content: ":";
}
#result-identicon,
#info {
  margin: 0.75rem;
  margin-top: 0;
}
@media (max-width: 24rem) {
  .dialog-container {
    padding: 0;
    padding-top: 15vh;
  }
  .dialog-content {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #result-identicon {
    width: 6rem;
    height: 6rem;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes fade-out {
  100% {
    opacity: 0;
  }
  to {
    visibility: hidden;
  }
}
@keyframes slide-up {
  from {
    transform: translateY(10%);
  }
}
@keyframes slide-down {
  to {
    transform: translateY(10%);
  }
}
.dialog-overlay {
  animation: fade-in 200ms both;
}
.dialog-content {
  animation: fade-in 400ms 100ms both, slide-up 400ms 100ms both;
}
.dialog-container[aria-hidden="true"] {
  pointer-events: none;
}
.dialog-container[aria-hidden="true"] .dialog-content {
  animation: fade-out 200ms forwards, slide-down 200ms forwards;
}
.dialog-container[aria-hidden="true"] .dialog-overlay {
  animation: fade-out 200ms forwards;
}

.toastify {
  padding: 0.75rem 1rem;
  display: inline-block;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 5px -1px,
    rgba(0, 0, 0, 0.14) 0px 6px 10px 0px, rgba(0, 0, 0, 0.12) 0px 1px 18px 0px;
  color: Canvas;
  background-color: CanvasText;
  position: fixed;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1),
    bottom 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  border-radius: 0.25rem;
  text-decoration: none;
  width: 19rem;
  text-align: center;
  z-index: 2147483647;
}

.toastify.on {
  opacity: 1;
}

.toastify-bottom {
  bottom: -150px;
}

.toastify-center {
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
}

@media only screen and (max-width: 24rem) {
  .toastify {
    margin-left: 0;
    margin-right: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    margin-bottom: -15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dialog-overlay,
  .dialog-content {
    animation: none;
  }
}
.warning {
  text-align: center;
  padding: 1rem 0.5rem;
}
.warning::before {
  content: "⚠️";
  float: left;
}
.warning span::before {
  content: "⚠️";
  float: right;
}