body,
textarea,
button {
  color: #fff;
  background: #000;
  font: 100% system-ui;
  margin: 0;
  border-radius: 7pt;
}

a {
  color: #44a7ff;
}

#config {
  font-family: monospace;
  width: 96vw;
  height: 500pt;
}

#error {
  color: red;
}

.container {
  width: 100vw;
  height: 100vh;
}

.controls {
  margin-top: 5px;
}

#container {
  box-sizing: border-box; /* Make width and height include boarder and padding */
  height: 100vh;
  width: 100vw;
}

#screen {
  grid-area: 2 / 2 / 3 / 3;
  display: grid;
  gap: 10px;
  grid-template: auto / auto;
  /* --screen-color: white; Set with JS */
  background-color: var(--screen-color);
  padding: 10px;
  box-sizing: border-box; /* Make width and height include boarder and padding */
  height: 100%;
  max-width: 100%;
}

.counter {
  align-items: center;
  padding: 5%;
  /* --color: color-mix(in oklab, var(--screen-color), rgba(255, 255, 255) 20%); Set with JS*/
  background-color: var(--color);
  border: 1px solid rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  font-size: 20px;
  text-align: center;
  position: relative;
}

.counter_text {
  color: var(--color);
  filter: invert(1) grayscale(1) brightness(1.3) contrast(9000);
  mix-blend-mode: luminosity;
  opacity: 0.95;
}

.container.editor {
  display: grid;
  grid-template: 40pt auto / 40pt auto;
}

.ruler {
  padding: 5pt;
  display: grid;
  gap: 10px;
}

#top-ruler {
  grid-area: 1 / 2 / 2 / 3;
  padding: 10px 10px 0 10px;
}

#side-ruler {
  grid-area: 2 / 1 / 3 / 2;
  padding: 10px 0 10px 10px;
}

.ruler input {
  width: 25pt;
}

.ruler-division {
  align-content: center;
  text-align: center;
  padding: auto;
  background: rebeccapurple;
  border-radius: 10pt;
}

.move-buttons {
  top: 10px;
  left: 10px;
}

.resize-buttons {
  bottom: 10px;
  right: 10px;
}

.move-button-container {
  display: grid;
  grid-template: auto auto auto / auto auto auto;
  gap: 0px;
  position: absolute;
  pointer-events: none;
}

.arrow-button {
  width: 40px;
  height: 40px;
  background-color: #ccc;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
  pointer-events: all;
}

.arrow-button:hover {
  background-color: #2196f3;
}

.arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
}

.up-arrow {
  grid-area: 1/2/2/3;
}
.up-arrow .arrow {
  border-width: 0 10px 15px 10px;
  border-color: transparent transparent white transparent;
}

.right-arrow {
  grid-area: 2/3/3/4;
}
.right-arrow .arrow {
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent white;
}

.down-arrow {
  grid-area: 3/2/4/3;
}
.down-arrow .arrow {
  border-width: 15px 10px 0 10px;
  border-color: white transparent transparent transparent;
}

.left-arrow {
  grid-area: 2/1/3/2;
}
.left-arrow .arrow {
  border-width: 10px 15px 10px 0;
  border-color: transparent white transparent transparent;
}

.right {
  float: right;
}

footer a {
  text-decoration: none;
}

footer {
  height: 3rem;
  text-align: center;
  align-content: center;
  background: #111;
  margin-top: 30px;
}
