:root {
  --input-h-padding: 8px;
  
  --ui-background: #333;
  --ui-resize-handle-colour: #444;
  --ui-resize-handle-width: 8px;
}

*, *:before, *:after {
  box-sizing: border-box;
}


button {
  line-height: 2.0;
  padding: 0 var(--input-h-padding);
  text-align: center;
  white-space: nowrap;
  
  color: #fff;
  background-color: #555;
  
  border: 0;
  border-color: #777;
  border-width: 2px;
  border-style: solid;
  border-radius: 8px;
}
button:hover,
button:focus {
  outline: none;
  background-color: #666;
  border-color: #aaa;
}
button:active {
  background-color: #444;
  border-color: #555;
}


input[type=text] {
  line-height: 2.0;
  padding: 0 var(--input-h-padding);
  
  color: #fff;
  background-color: #555;
  
  border: 0;
  border-color: #777;
  border-width: 2px;
  border-style: solid;
  border-radius: 4px;
}
input[type=text]:focus {
  outline: none;
  background-color: #666;
  border-color: #aaa;
}

kbd {
  background-color: #444;
  
  border-style: solid;
  border-width: 1px;
  border-color: #aaa;
  
  border-radius: 4px;
  
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 4px;
  padding-right: 4px;
}

dialog {
  color: inherit;
  border: none;
}

dialog#help[open] {
  overflow-y: auto;
  
  padding: 16px;
  border-radius: 8px;
  
  background-color: var(--ui-background);
  filter: drop-shadow(0px 0px 16px black);
  
  outline: none;
  
  display: grid;
  grid-template-columns: 1fr min-content;
  grid-template-rows: min-content 1fr;
}

dialog#help::backdrop {
  backdrop-filter: brightness(50%) blur(4px);
}


#help h1 {
  font-size: 120%;
  font-weight: bold;
  
  text-align: center;
  
  margin: 0;
  margin-bottom: 24px;
}

#help dl {
  display: grid;
  grid-template-columns: min-content 1fr;
  column-gap: 8px;
  row-gap: 16px;
  
  grid-column: 1/-1;
  
  margin: 0;
}

#help dl dt {
  white-space: nowrap;
  
  text-align: right;
}

#help dl dd {
  margin: 0;
}

#help button#close-help {
  width: 2em;
  height: 2em;
  
  padding: 6px;
  
  background-size: calc(2em - 12px);
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 4.233 4.233" fill="none" stroke="white" stroke-width=".794"><path d="M.281.281l3.672 3.672"/><path d="M3.953.281L.281 3.953"/></svg>');
}
