div.messageWindowModalScreen {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999999999998;
}
div.messageWindow {
  position: fixed;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  background-color: #999;
  color: white;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  z-index: 999999999999;
}
div.messageWindow button {
  padding: 5px 10px;
  margin: 20px 5px 5px;
  color: white;
  background-color: #333;
  border: none;
  border-radius: 8px;
  transition: background-color linear 0.2s;
}
div.messageWindow button:hover {
  background-color: #666;
}
/* Root menu + nested */
div.buffMenu * {
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}
div.buffMenu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #b0b0b0;
  white-space: nowrap;
}
div.buffMenu ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: background-color 0.3s ease-out;
  padding: 5px 7px;
}
div.buffMenu ul li:hover {
  background-color: #d0d0d0;
  transition: background-color 0.3s ease-out;
}
div.buffMenu > ul {
  display: block;
}
div.buffMenu > ul > li {
  display: inline-block;
}
div.buffMenu > ul ul {
  visibility: hidden;
  transform: rotateX(-90deg);
  opacity: 0;
  position: absolute;
  z-index: 1000000000;
  transform-origin: top left;
  top: 100%;
  left: 0;
  transition: 0.15s all ease-out;
}
div.buffMenu > ul ul li:has(ul)::after {
  content: "▶";
  color: #555;
  line-height: 100%;
  margin-left: 10px;
}
div.buffMenu > ul ul ul {
  top: 0;
  left: 100%;
}
div.buffMenu > ul li:hover > ul {
  opacity: 1;
  transform: rotateX(0);
  visibility: visible;
}
div.buffMenu.hide * {
  transition: none !important;
}
div.buffMenu.hide li:hover > ul {
  visibility: hidden !important;
}
div.buffMenu li.inactive {
  color: #777;
  cursor: default;
}
div.buffMenu li.separator {
  height: 1.5px;
  background-color: #777 !important;
  margin: 4px 7px;
  padding: 0;
}
/* ======================================================================================================== */
/* TAB GROUP
/* ======================================================================================================== */
div.tabGroup {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
div.tabGroup > div.content {
  flex: 1;
  box-sizing: border-box;
  background: #bebfcd;
  height: 100%;
}
div.tabGroup > div.header {
  background: #0f0f0f;
  color: white;
  padding: 2px 2px 0 2px;
  display: flex;
  user-select: none;
}
div.tabGroup > div.header > .headerItem {
  background: #696971;
  color: black;
  padding: 2px 5px 1px 5px;
  border-radius: 5px 5px 0 0;
  border: 1px solid black;
  border-bottom: none;
  margin-right: 3px;
  cursor: pointer;
  display: flex;
}
div.tabGroup > div.header > .headerItem.active {
  background: #bebfcd;
}
div.tabGroup > div.header > .headerItem > button {
  background: none;
  border: none;
  padding: 0 0 0 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 60%;
}
div.tabGroup > div.header > .headerItem > button:hover {
  color: darkred;
}
/* ======================================================================================================== */
/* DOCKED PANEL
/* ======================================================================================================== */
div.dockedPanel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  /* This is necessary to position the docking target properly */
}
div.dockedPanel > div.content {
  width: 100%;
  height: 100%;
}
div.dockedPanel.multi > div.content {
  display: flex;
}
div.dockedPanel.multi > div.content > div.dockedPanel > div.header {
  display: flex !important;
}
div.dockedPanel.multi > div.header {
  display: none;
}
div.dockedPanel.multi.vertical > div.content {
  display: flex;
  flex-direction: column;
}
div.dockedPanel.multi.vertical > div.content > div {
  height: 50%;
}
div.dockedPanel.multi.vertical > div.content > div:first-child {
  border-bottom: 1px solid black;
}
div.dockedPanel.multi.horizontal > div.content > div {
  width: 50%;
}
div.dockedPanel.multi.horizontal > div.content > div:first-child {
  border-right: 1px solid black;
}
div.dockedPanel > div.header,
div.floatingPanel > div.header {
  cursor: grab;
  background: #2d2e2e;
  color: white;
  border-bottom: 1px solid black;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}
div.dockedPanel > div.header > span,
div.floatingPanel > div.header > span {
  padding: 3px 7px;
}
div.dockedPanel > div.header > div.buttons,
div.floatingPanel > div.header > div.buttons {
  padding: 1px;
}
div.dockedPanel > div.header > div.buttons > button,
div.floatingPanel > div.header > div.buttons > button {
  background: #bebfcd;
  font-weight: 400;
  border: none;
  border-radius: 5px;
  height: 100%;
  font-size: 70%;
  display: block;
}
div.dockedPanel > div.header > div.buttons > button:hover,
div.floatingPanel > div.header > div.buttons > button:hover {
  color: darkred;
}
/* ======================================================================================================== */
/* DOCKED PANEL - DOCK TARGET
/* ======================================================================================================== */
/* Docking helper */
div.dockTarget {
  z-index: 1000000000;
  width: 30px;
  height: 30px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  text-align: center;
  opacity: 70%;
  color: #cccc8b;
  display: none;
}
div.dockTarget > div {
  width: 30px;
  height: 30px;
  position: absolute;
  font-size: 250%;
  line-height: 0.6;
}
div.dockTarget > div.panelHover {
  text-shadow: 0 0 8px red;
}
/* ======================================================================================================== */
/* FLOATING PANEL
/* ======================================================================================================== */
div.floatingPanel {
  position: absolute;
  border: 3px solid black;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
div.floatingPanel > div.content {
  width: 100%;
  flex-grow: 1;
}
:root {
  --nodeEditorBackground: #bebfcd;
  --nodeEditorForeground: #2d2e2e;
  --nodeEditorNodeBorderRadius: 10px;
}
div.nodeEditor {
  background-color: #e5e5f7;
  background-image: radial-gradient(#444cf7 0.5px, #e5e5f7 0.5px);
  background-size: 10px 10px;
  color: var(--nodeEditorForeground);
  width: 100%;
  height: 100%;
  overflow: clip;
  position: relative;
  user-select: none;
}
div.nodeEditor div.content {
  width: 100%;
  height: 100%;
}
div.nodeEditor div.content svg.connections {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999999999;
  pointer-events: none;
}
div.nodeEditor div.content div.node {
  transform-origin: top left;
  background: var(--nodeEditorBackground);
  width: 200px;
  position: absolute;
  border: 1px solid var(--nodeEditorForeground);
  border-radius: var(--nodeEditorNodeBorderRadius);
  display: flex;
  flex-direction: column;
}
div.nodeEditor div.content div.node.selected {
  box-shadow: 0 0 4px 4px #ff0000;
}
div.nodeEditor div.content div.node h1 {
  border-radius: var(--nodeEditorNodeBorderRadius) var(--nodeEditorNodeBorderRadius) 0 0;
  margin: 0;
  padding: 3px 7px;
  font-size: 110%;
}
div.nodeEditor div.content div.node div.input {
  background: #bebf1d;
  margin: 3px 0;
}
div.nodeEditor div.content div.node div.input div.handle {
  margin-left: 2px;
  margin-right: 10px;
  position: relative;
  left: -12px;
}
div.nodeEditor div.content div.node div.output {
  background: #bebfed;
  margin-top: 3px;
  text-align: right;
}
div.nodeEditor div.content div.node div.output div.handle {
  margin-right: 2px;
  margin-left: 10px;
  position: relative;
  left: 12px;
}
div.nodeEditor div.content div.node div.item {
  border-radius: 100px;
  border: 1px solid var(--nodeEditorForeground);
  display: flex;
}
div.nodeEditor div.content div.node div.handle {
  width: 15px;
  height: 15px;
  border-radius: 100px;
  background-color: white;
  border: 1px solid var(--nodeEditorForeground);
  margin: 2px 0;
}
div.nodeEditor div.content div.node div.handle.connected,
div.nodeEditor div.content div.node div.handle:hover {
  background-color: red;
}
div.nodeEditor div.buttons {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
}
div.nodeEditor div.buttons button {
  display: block;
  width: 30px;
  height: 30px;
  margin: 2px;
  text-align: center;
}
div.nodeEditor div.buttons button.zoom {
  text-align: right;
  width: 60px;
  margin-right: 0;
  padding: 0;
  background: none;
  border: none;
}
div.spinnerControl {
  width: 100%;
  display: flex;
  height: 20px;
  border: 1px solid #ddd;
}
div.spinnerControl input {
  width: 100%;
  background: #777;
  border: none;
  flex: 1;
  text-align: right;
  padding-right: 5px;
}
div.spinnerControl input:focus {
  outline: none;
}
div.spinnerControl div.arrows div {
  border-style: solid;
  width: 0;
  transition: all 0.2s ease;
  cursor: pointer;
}
div.spinnerControl div.arrows div.up {
  border-width: 0 5px 9px 5px;
  border-color: transparent transparent #777 transparent;
  margin-bottom: 2px;
}
div.spinnerControl div.arrows div.up:hover {
  border-color: transparent transparent #ddd transparent;
}
div.spinnerControl div.arrows div.down {
  border-width: 9px 5px 0 5px;
  border-color: #777 transparent transparent transparent;
}
div.spinnerControl div.arrows div.down:hover {
  border-color: #ddd transparent transparent transparent;
}
div.colorControl {
  height: 20px;
  border: 1px solid #777;
  cursor: pointer;
}
div.colorPicker {
  width: 200px;
  display: flex;
  flex-direction: column;
  font-size: 90%;
}
div.colorPicker canvas {
  width: 100%;
  height: 100%;
}
div.colorPicker div.slider {
  width: 15px;
  background: red;
  position: absolute;
  border: 2px solid #777;
  border-radius: 10px;
  box-shadow: 0px 0px 7px 2px #000000;
}
div.colorPicker div.hue {
  position: relative;
  height: 30px;
  width: 100%;
  display: flex;
  align-items: center;
}
div.colorPicker div.hue canvas {
  height: 26px;
}
div.colorPicker div.hue div.slider {
  box-sizing: border-box;
  height: 30px;
  top: 0;
  left: 0;
  transform: translateX(-50%);
}
div.colorPicker div.saturationValue {
  position: relative;
  height: 200px;
  margin: 5px 0;
}
div.colorPicker div.saturationValue div.slider {
  height: 15px;
  transform: translate(-50%, -50%);
}
div.colorPicker div.status {
  display: flex;
  flex-direction: row;
  align-items: center;
}
div.colorPicker div.status span {
  flex: 1;
}
div.colorPicker div.status div.sample {
  width: 50px;
  height: 30px;
  margin-right: 5px;
}
div.colorPicker div.status div.close {
  height: 26px;
  width: 48px;
  line-height: 26px;
  border: 2px solid #777;
  border-radius: 5px;
}
div.colorPicker div.status div.close:hover {
  background-color: #777;
}
div.sliderControl {
  width: 100%;
  display: flex;
  align-items: center;
}
div.sliderControl div.sliderArea {
  height: 30px;
  width: 100%;
  display: flex;
  align-items: center;
  border-radius: 2px;
}
div.sliderControl div.sliderArea div.sliderRange {
  height: 0;
  width: 100%;
  background-color: red;
  position: relative;
  border: 5px solid #777;
  border-radius: 5px;
}
div.sliderControl div.sliderArea div.sliderRange div.slider {
  box-sizing: content-box;
  height: 10px;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 15px;
  background: black;
  position: absolute;
  border: 2px solid #777;
  border-radius: 10px;
  box-shadow: 0px 0px 7px 2px #000000;
}
div.sliderControl div.number {
  width: 50px;
  overflow: clip;
  height: 30px;
  text-align: right;
  line-height: 30px;
  font-size: 70%;
}
div.dropdownControl div.content {
  height: 20px;
  width: 100%;
  background-color: #777;
  border-color: #ddd;
  line-height: 20px;
  border-radius: 5px;
  display: flex;
}
div.dropdownControl div.content div.arrow {
  margin-top: 4px;
  margin-right: 5px;
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  border-top: 12px solid #555555;
  border-bottom: 0;
}
div.dropdownControl div.content:hover div.arrow {
  border-color: #ddd transparent transparent transparent;
}
div.dropdownControl div.content span {
  flex: 1;
  padding: 0 10px;
}
div.dropdownControl div.dropdown {
  background-color: #777;
  border-color: #ddd;
  border-radius: 5px;
  box-shadow: 0px 0px 7px 2px #000000;
}
div.dropdownControl div.dropdown div:hover {
  background-color: #ddd;
  border-radius: 5px;
}
div.dropdownControl div.dropdown div {
  padding: 0 10px;
}
div.dropdownControl:focus {
  outline: none;
}
html {
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.5) 0%, rgba(255, 154, 0, 0.5) 10%, rgba(208, 222, 33, 0.5) 20%, rgba(79, 220, 74, 0.5) 30%, rgba(63, 218, 216, 0.5) 40%, rgba(47, 201, 226, 0.5) 50%, rgba(28, 127, 238, 0.5) 60%, rgba(95, 21, 242, 0.5) 70%, rgba(186, 12, 248, 0.5) 80%, rgba(251, 7, 217, 0.5) 90%, rgba(255, 0, 0, 0.5) 100%);
  text-align: center;
  font-family: sans-serif;
}
html,
body {
  height: 100%;
  padding: 0;
  margin: 0;
}
body {
  display: grid;
  place-items: center;
}
@keyframes blinker {
  0% {
    color: red;
  }
  33% {
    color: green;
  }
  66% {
    color: blue;
  }
  100% {
    color: red;
  }
}
div#word {
  font-size: 10em;
  transform: translateY(-10vh);
}
div#word.hideUpper div.letterUpper {
  display: none;
}
div#word.hideLower div.letterLower {
  display: none;
}
div#word > div {
  margin: 0;
  transition: margin 0.4s ease;
  display: inline-block;
}
div#word > div > div:first-child {
  text-transform: uppercase;
}
div#word .past {
  color: green;
}
div#word .current {
  color: blue;
  animation: blinker 2s linear infinite;
  margin: 0 2rem;
  text-decoration: underline;
}
div#word .current:first-child {
  margin: 0 4rem 0 0;
}
div#word .current:last-child {
  margin: 0 0 0 4rem;
}
div#score {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 1em;
  font-size: 2em;
}
div#score > div {
  display: inline-block;
  transition: rotate 2s linear;
}
div#settings {
  font-size: 150%;
  text-align: left;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 1em;
}
