html, body {
  margin: 0;
  padding: 0;
  font-family: courier;
}

::-webkit-scrollbar {
  /*-webkit-appearance: none;*/
  display: none;
}
::-webkit-scrollbar-corner { 
  /*-webkit-appearance: none;*/
  display: none;
}
#foreground #time::-webkit-scrollbar,
#foreground #time::-webkit-scrollbar-corner {
  display: block;
}
#foreground #time::-webkit-scrollbar-track {
  background: rgb(45,45,45);
}
#foreground #time::-webkit-scrollbar-thumb {
  background: rgb(100,100,100);
  border-radius: 4px;
}
#foreground #time::-webkit-scrollbar-thumb:hover {
  background: rgb(130,130,130);
}
#foreground #time::-webkit-scrollbar {
  height: 10px;
}

.full {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.popup {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 50%;
  padding: 10px;
  background: #ddd;
  color: #222;
  box-shadow: 2px 2px 10px 3px rgba(0, 0, 0, .2);
  text-align: center;
}

.popup div {
  margin: 25px;
}

div.settings .holder {
    display:grid;
    grid-template-columns: max-content max-content;
    grid-gap:5px;
}
div.settings .holder label       { text-align:right; }
div.settings .holder label:after { content: ":"; }

.popup p {
  padding-bottom: 20px;
}
.popup .close {
  float: right;
  color: #222;
}
.popup div a {
  color: #222;
}
.popup div {
text-align: center;
}
.popup a:hover {
  cursor: pointer;
}

#background {
  z-index: 0;
  background: red;
  overflow: hidden;
}

#foreground {
  z-index: 5;
  background: black;
}

#foreground #canvas {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 35%;
  width: 100%;
}

#foreground #time {
  position: absolute;
  background: rgb(25,25,25);
  right: 0;
  left: 0;
  bottom: 0;
  height: 35%;
  width: 100%;
  overflow-x: auto;
  padding: 0;
}

#toolbar {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  min-height: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 4px 8px;
  padding: 4px 12px;
  background: #2c2c2c;
  border-bottom: 1px solid #444;
  pointer-events: auto;
}

#toolbar .tb-btn {
  cursor: pointer;
  padding: 4px 8px;
  font-size: 13px;
  color: #ffffff;
  font-family: courier;
  user-select: none;
  white-space: nowrap;
  background: #444;
}

#toolbar .tb-btn:hover {
  background: #666;
  color: #fff;
}

#toolbar .tb-sep {
  color: rgb(100,100,100);
  user-select: none;
  margin: 0 2px;
}

#toolbar .tb-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #ccc;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
#toolbar .tb-label input[type="checkbox"] {
  accent-color: #6af;
  cursor: pointer;
}

#time-display {
  font-size: 12px;
  color: rgb(100,200,255);
  font-family: courier;
  user-select: none;
  min-width: 100px;
}

#foreground #time canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  top: 56px;
  height: calc(100% - 56px);
}

#cursor_preview {
  display: none;
  position: absolute;
  background: black;
  z-index: 200;
  text-align:center;
  color: white;
  font-size: 10px;
  color: rgb(210,210,210);
  font-family: courier;
}

a {
  color: rgb(210,210,210);
}
a:visited {
  color: rgb(210,210,210);
}

#foreground #canvas canvas {
  width: 100%;
  height: 100%;
}
