html, body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 16px;
  background: url("/commonbg.png");
  background-size: contain;
  display: flex;
  justify-content: center;
  margin: 0 1em;
}
body {
  background: #000a;
  display: block;
}
main {
  flex-direction: column;
  justify-content: center;
  padding: 1em;
  color: #fff;
}
h1 {
  margin: 0;
}
form {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5em;
}
input[type="text"], textarea {
  background: #0008;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.5em;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
input[type="color"] {
  background: none;
  border: none;
  padding: 0;
  height: 2em;
  vertical-align: middle;
}
button {
  background: #fff8;
  border: 1px solid #fffc;
  color: #000;
  padding: 0.5em 1em;
  cursor: pointer;
  box-shadow: 0 4px 0 #fffa;
  transform: translateY(-4px);
  margin-top: 4px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  &:hover, &:focus {
    background: #fffb;
    box-shadow: 0 4px 0 #fffa;
  }
  &:active {
    box-shadow: none;
    transform: translateY(0);
  }
  &:disabled {
    background: #fff4;
    border-color: #fff8;
    box-shadow: none;
    transform: translateY(0);
    cursor: not-allowed;
  }
}
a {
  color: #8df;
  text-decoration: underline;
  cursor: pointer;
  &:hover, &:focus {
    color: #cdf;
  }
  &:active {
    color: #fd8;
  }
}
#canvas-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  background: #0008;
  padding: 1em;
  border: 1px solid #fff
}
.canvas-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 0.5em;
}
#canvas {
  background: #fff;
  width: 250px;
  height: 200px;
  touch-action: none;
  user-select: none;
  pointer-events: auto;
}
dialog::backdrop {
  background: #0006; 
}
dialog {
  background: #000d;
  box-shadow: 0 0 1em #fff;
  color: #fff;
  max-width: 50vw;
  max-height: 75vh;
  overflow-y: scroll;
}
dialog h2, dialog p {
  color: #fff;
}
.modal-close {
  float: right;
}
#what {
  width: min-content;
  float: right;
}
