:root {
  --base-background: dodgerblue;
  /* --base-background-hover: rgb(107, 181, 255); */
  --thumprint-base-color: #454546;
  /* --thumprint-base-color: #648dbb; */
  --thumprint-header-color: black;
  --thumprint-base-hover: white;
  --thumprint-selected-color: dodgerblue;
  --thumprint-selected-background: rgba(30, 143, 255, 0.2);
  --thumprint-debug-background: rgba(0, 0, 0, 0.2);
  --thumprint-border-radius: 0.25em;

  --editor-label-gap: 0.5em;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  /* border: dashed 1px red; */
}

html {
  background-color: white;
  display: grid;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 18px;
  color: var(--thumprint-base-color);
}

body {
  display: grid;
  overflow: hidden;
  height: 100vh;
}

input {
  padding: 0.5em 1em;
  border: none;
  border: solid 1px #ccc;
  border-radius: 0.5em;
  outline: none;
  outline-offset: 0;
  border: solid 1px var(--thumprint-base-color);
  height: 3em;
}

input:focus {
  border: solid 1px var(--thumprint-base-color);
  outline-offset: 0;
}

textarea {
  padding: 1em;
  resize: none;
  border-radius: 0.5em;
  border: solid 1px var(--thumprint-base-color);
  font-size: 1.1em;
  outline: none;
  outline-offset: 0;
  overflow-y: scroll;
}

textarea:focus {
  outline: none;
  outline-offset: 0;
  background-color: rgba(255, 127, 80, 0.1);
}

button {
  cursor: pointer;
  border-radius: 0.5em;
  border: solid 1px transparent;
  background-color: var(--thumprint-base-color);
  color: whitesmoke;
  padding: 1em 2em;
  outline: none;
}

button:hover {
  background-color: var(--thumprint-selected-color);
}

.grid-highlight {
  color: whitesmoke;
  background-color: coral;
  border-radius: 0.25em;
}

/* ======================================================== */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  font-size: 0.8rem;
  visibility: hidden;
  width: 12ch;
  background-color: var(--thumprint-base-color);
  color: whitesmoke;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  top: 110%;
  left: 50%;
  margin-left: -6ch;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

/* ============================================================ */

.loader {
  border: 16px solid var(--thumprint-base-color);
  border-top: 16px solid var(--thumprint-selected-color);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  /**/
  margin: auto;
  justify-content: center;
  justify-items: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
