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

html, * {
  user-select: none;
}

body {
  margin: 0;
  padding: 22px;
  background-color: #222;
  height: 100vh;
  overflow: hidden;
}

.clockControls,
.moreControls {
  margin-top: 4px;
}

.moreControls div {
  overflow: auto;
}

.clockControls label input {
  float: left;
  margin-right: 0.5em;
}

.clockControls button {
  background-color: #456;
  color: #abc;
  border: none;
  margin-right: 4px;
  font-size: 18px;
}

.clockControls button:hover {
  cursor: pointer;
}

.clock {
  background-color: #234;
  padding: 4px;
  display: inline-block;
  min-width: 250px;
}

.clock dl {
  margin: 0;
}

dt,
dd {
  display: inline-block;
}

dd {
  margin-left: 4px;
}

.clock,
.Window {
  border: 2px solid #000;
}

.clock,
.WindowTitle {
  color: #9ab;
  font-family: monospace;
  font-size: 10pt;
}

.Window {
  background: #345;
  box-shadow: rgba(0, 0, 0, 0.25) 8px 8px 0 0;
  overflow: clip;
  padding: 0px 4px 4px 4px;
  position: absolute;
}

.Window.maximised .resizeMarker {
  display: none;
}

.CanvasContainer {
  background-color: #111;
}

.CanvasContainer canvas {
  border-top-width: 0;
  border: 2px solid #000;
  display: block;
  position: absolute;
}

.WindowTitle {
  user-select: none;
  margin: 4px 0;
  display: inline-block;
}

.resizeMarker:hover {
  cursor: nwse-resize;
}

.resizeMarker::before {
  border-color: transparent transparent #456 transparent;
  border-style: solid;
  border-width: 0 0 12px 12px;
  bottom: 4px;
  content: '';
  height: 0;
  position: absolute;
  right: 4px;
  transform: rotate(0deg);
  width: 0;
  z-index: 0;
}

.resizeMarker::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  background: #345;
  height: 24px;
  width: 24px;
  transform: rotate(45deg);
  box-shadow:
    inset 0 0 0 2px #345,
    inset 0 0 0 4px #234,
    inset 0 0 0 6px #345,
    inset 0 0 0 8px #234,
    inset 0 0 0 10px #345
    ;
}

#debugContainer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  width: 250px;
  background-color: rgba(255, 255, 32, 0.615);
  border-left: 10px solid rgba(0, 0, 0, 0.2);
  font-size: 12px;
  z-index: 999;
  transition: all 500ms ease-in-out;
}

#debugContainer.hidden {
    transform: translate3d(calc(100% - 10px), 0, 0);
}

#debugContainer.hidden:hover {
  cursor: w-resize;
}

#debugText {
  margin: 0;
  padding: 10px;
  height: 100%;
  overflow: scroll;
}

.statsjs {
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  filter: sepia(1);
  opacity: 0.9;
  position: fixed;
  right: 258px;
  top: 8px;
  z-index: 9999;
}

h1, h2, h3 {
  color: #555;
  margin: 0;
}

.instructions {
  position: fixed;
  bottom: 1em;
  left: 1em;
}
