:root {
  --connector-color: #00FF00;
  --background-color: #808080;
  --major-tick-color: #000000;
  --minor-tick-color: #000000;
  --hidden_z_index: -1;
  --foreground_z_index: 10000;
}

body {
  background: var(--background-color);
}

.clock-mask {
  transform: rotate(-90deg) translateX(-100%);
  stroke-width: 50%;
  stroke: white;
}

#game-container {
  position: absolute;
}

#help-menu h1 {
  margin: 0;
}
#help-menu h1#help-menu-title {
  margin-left: 25px;
}

#help-menu h2 {
  margin: 0;
}

#options-menu, #help-menu {
  width: 75%;
  height: 75%;
  top: 12.5%;
  left: 12.5%;
  transition-property: transform;
  transition-duration: 250ms;
  transform-origin: top left;
  transition-timing-function: ease-in-out;
  transform: scale(0);
  position: absolute;
  z-index: var(--foreground_z_index);
}
#options-menu.enabled, #help-menu.enabled {
  transform: scale(1);
}
#options-menu #options-menu-wrapper, #options-menu #help-menu-wrapper, #help-menu #options-menu-wrapper, #help-menu #help-menu-wrapper {
  background-color: rgb(200, 200, 200);
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
#options-menu .option-container, #help-menu .option-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border: 1px solid #000000;
}
#options-menu .option-container .sub-option-container, #help-menu .option-container .sub-option-container {
  border: 1px solid #000000;
}
#options-menu #close-options-menu, #options-menu #close-help-menu, #help-menu #close-options-menu, #help-menu #close-help-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  background-color: red;
}

.context-menu-theme-default {
  transform-origin: "left top 1px";
  background: #1a1a1a;
  color: #eee;
}
.context-menu-theme-default hr {
  background-color: #555;
}
.context-menu-theme-default .context-menu-title {
  background: #2b2b2b;
}
.context-menu-theme-default .menu-item:hover {
  background: #555;
}
.context-menu-theme-default .menu-item:hover.disabled {
  background: #A55;
}
.context-menu-theme-default .context-menu-close-button {
  background-color: rgba(255, 0, 0, 0.75);
}

.context-menu {
  font-family: "Open Sans", sans-serif;
  position: fixed;
  z-index: calc(var(--foreground_z_index) - 1);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 50%;
  transform: scale(0);
  transition-property: transform;
  transition-timing-function: ease-in-out;
}
.context-menu--black-theme {
  background: #1b1a1a;
}
.context-menu--black-theme hr {
  background-color: #555;
}
.context-menu--black-theme > *:not(hr) {
  color: #eee;
}
.context-menu--black-theme > *:not(hr):hover {
  background: #555;
}
.context-menu--white-theme {
  background: #fff;
}
.context-menu--white-theme hr {
  background-color: #e4e4e4;
}
.context-menu--white-theme > *:not(hr) {
  color: #262626;
}
.context-menu--white-theme > *:not(hr):hover {
  background: #e4e4e4;
}
.context-menu.visible {
  transform: scale(1);
}
.context-menu hr {
  margin: 2px 0;
  height: 1px;
  border: 0;
}
.context-menu > .menu-item > * {
  padding: 8px 10px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.context-menu > .menu-item > * i {
  margin-right: 5px;
}
.context-menu > .menu-item.disabled {
  opacity: 0.5;
  cursor: default;
}
.context-menu > .context-menu-close-button {
  top: 0;
  left: 0;
  cursor: pointer;
  position: absolute;
  width: 20px;
  height: 20px;
}
.context-menu > .context-menu-title {
  padding-left: 20px;
  height: 20px;
  font-weight: bold;
}

.clock-table {
  display: flex;
  flex-direction: column;
  outline: 2px solid;
  width: -webkit-min-content;
  width: -moz-min-content;
  width: min-content;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

.clock-table-head {
  display: flex;
  flex-direction: row;
  height: max(64px, var(--clock-table-cell-size));
}

.statistic-box {
  min-width: 64px;
  outline: 1px solid;
  flex: 1;
  border-bottom-width: 2px;
  border-bottom-style: solid;
}

.statistic-svg {
  height: 100%;
  width: 100%;
  justify-content: center;
  display: flex;
  padding: 1px;
}

.statistic-name {
  text-anchor: middle;
  dominant-baseline: text-before-edge;
}

.statistic-value {
  text-anchor: end;
  dominant-baseline: text-after-edge;
}

.clock-table-row {
  display: flex;
  flex-direction: row;
}

.clock-table-cell {
  display: flex;
  flex-direction: row;
  padding: 3px;
  height: var(--clock-table-cell-size);
  width: var(--clock-table-cell-size);
  border-left: 1px solid #000000;
  border-right: 1px solid #000000;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  z-index: 1;
  --selected-border-color: rgba(21, 255, 0, 1.0);
  --selected-border-color-off: rgba(21, 255, 0, 0.0);
  --hovered-border-color:rgba(252, 255, 85, 1.0);
  --hovered-border-color-off: rgba(252, 255, 85, 0.0);
  --rowcol-border-color: rgba(21, 255, 0, 0.568);
  --pulse-border-duration: 750ms;
}
.clock-table-cell:hover {
  border: 1px dashed var(--hovered-border-color);
  z-index: 3;
}
.clock-table-cell.row-highlighted:not(:hover) {
  z-index: 2;
}
.clock-table-cell.column-highlighted:not(:hover) {
  z-index: 2;
}
.clock-table-cell:not(.column-highlighted, .row-highlighted):not(:hover) {
  z-index: 0;
}
.clock-table-cell.selected, .clock-table-cell.dragging {
  -webkit-animation: pulse-border-selected var(--pulse-border-duration) ease-in-out Infinite alternate none;
          animation: pulse-border-selected var(--pulse-border-duration) ease-in-out Infinite alternate none;
  border-style: dashed;
  z-index: 2;
}
.clock-table-cell.drag-target:not(.dragging) {
  -webkit-animation: pulse-border-hovered var(--pulse-border-duration) ease-in-out Infinite alternate none;
          animation: pulse-border-hovered var(--pulse-border-duration) ease-in-out Infinite alternate none;
  border-style: dashed;
  z-index: 2;
  border-radius: 10%;
}
@-webkit-keyframes pulse-border-selected {
  0% {
    border-color: var(--selected-border-color);
  }
  100% {
    border-color: var(--selected-border-color-off);
  }
}
@keyframes pulse-border-selected {
  0% {
    border-color: var(--selected-border-color);
  }
  100% {
    border-color: var(--selected-border-color-off);
  }
}
@-webkit-keyframes pulse-border-hovered {
  0% {
    border-color: var(--hovered-border-color);
  }
  100% {
    border-color: var(--hovered-border-color-off);
  }
}
@keyframes pulse-border-hovered {
  0% {
    border-color: var(--hovered-border-color);
  }
  100% {
    border-color: var(--hovered-border-color-off);
  }
}

use.Producer {
  --color: var(--producer-color);
}

use.Verifier {
  --color: var(--verifier-color);
}

use.playback-speed-chevron {
  --transform: rotate(90deg);
  --chevron-color: #faf606;
}

use.money-chevron {
  --chevron-color: #00FF00;
}