body {
  font-size: 24px;
  font-family: Ubuntu, roboto, noto, segoe ui, arial, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, sans-serif;
  color: #666;
  background-color: #fff;
  margin-bottom: 2em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: column;
}

.dark {
  color: #eee;
  background-color: black;
  transition: 3s background-color;
}

.light {
  background-color: white;
  transition: 3s background-color;
}

a:link,a:visited {
  color: #333;
  font-weight: 700;
}

.dark a:link,a:visited {
  color: white;
}

body > section {
  width: 100%;
}

#board {
  border-radius: 8px;
  margin-bottom: 1em;
}

.debug #board {
  border: 1px solid #888;
}

.hide-ui #board{
  border: none;
  margin: 0;
}

p {
  margin-top: 0;
}

.hidden {
  opacity: 0;
  transition: opacity 1s;
  display: none;
}

.visible {
  opacity: 1;
  transition: opacity 2s;
}

.hide-ui .ui {
  display: none;
}

#status-message {
  background-color: #ffffee;
  margin: 1em;
  padding: 1em;
}

button {
  /*! text-transform: uppercase; */
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  background-color: #111;
  padding-top: 0.5em;
  border-radius: 1.2em;
  border-width: 2px;
  border-color: #fff;
  border-style: solid;
  min-width: 44px;
  /*! box-shadow: #444 0 0 4px; */
  padding-bottom: 0.5em;
  padding-left: 1em;
  padding-right: 1em;
  margin-bottom: 1em;
}

.click-target {
  cursor: pointer;
  fill: transparent;
}

.dark .click-target {
  stroke: hsla(0, 0%, 100%, 0.25);
}

.light .click-target {
  stroke: hsla(0, 0%, 0%, 0.25);
}

.dark .click-target[data-stability="2"] {
  stroke: hsla(0, 0%, 100%, 0.5);
}

.light .click-target[data-stability="2"] {
  stroke: hsla(0, 0%, 0%, 0.5);
}

.click-target[data-stability="1"] {
  animation: rainbow-saturated 2s infinite;
}

@keyframes rainbow-saturated {
  0% { stroke: hsla(319.06, 75%, 70.00%, 0.8) }
  10% { stroke: hsla(351.76, 75%, 70.00%, 0.8) }
  20% { stroke: hsla(32.00, 75%, 70.00%, 0.8) }
  30% { stroke: hsla(55, 98.20%, 76.47%, 0.8) }
  40% { stroke: hsla(120.00, 75%, 60.00%, 0.8) }
  50% { stroke: hsla(166.92, 75%, 61.37%, 0.8) }
  60% { stroke: hsla(189.88, 75%, 70.00%, 0.8) }
  70% { stroke: hsla(192.47, 75%, 70.00%, 0.8) }
  80% { stroke: hsla(202.12, 75%, 70.00%, 0.8) }
  90% { stroke: hsla(300.00, 75%, 100%, 0.8) }
}

@keyframes rainbow-dimmer {
  0% { border-color: hsla(120.00, 75%, 60.00%, 0.8) }
  25% { border-color: hsla(166.92, 75%, 61.37%, 0.8) }
  50% { border-color: hsla(189.88, 75%, 70.00%, 0.8) }
  75% { border-color: hsla(192.47, 75%, 70.00%, 0.8) }
}

.rainbow-stop-0 {
  stop-color: hsla(319.06, 75%, 50.00%, 0.8);
}
.rainbow-stop-1 {
  stop-color: hsla(351.76, 75%, 50.00%, 0.8);
}
.rainbow-stop-2 {
  stop-color: hsla(32.00, 75%, 50.00%, 0.8);
}
.rainbow-stop-3 {
  stop-color: hsla(55, 98.20%, 56.47%, 0.8);
}
.rainbow-stop-4 {
  stop-color: hsla(120.00, 75%, 40.00%, 0.8);
}
.rainbow-stop-5 {
  stop-color: hsla(166.92, 75%, 41.37%, 0.8);
}
.rainbow-stop-6 {
  stop-color: hsla(189.88, 75%, 50.00%, 0.8);
}
.rainbow-stop-7 {
  stop-color: hsla(192.47, 75%, 50.00%, 0.8);
}
.rainbow-stop-8 {
  stop-color: hsla(202.12, 75%, 50.00%, 0.8);
}
.rainbow-stop-9 {
  stop-color: hsla(300.00, 75%, 86.08%, 0.8);
}

/*
.rotation-group {
  will-change: contents;
}
*/

.rotation-group[data-speed="0"] {
  animation: 6s linear spin infinite;
}
.rotation-group[data-speed="1"] {
  animation: 4s linear spin infinite;
}
.rotation-group[data-speed="2"] {
  animation: 3s linear spin infinite;
}
.rotation-group[data-speed="3"] {
  animation: 1s linear spin infinite;
}
.rotation-group[data-speed="4"] {
  animation: 0.5s linear spin infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2em;
}

.controls div {
  margin-bottom: 1em;
}

footer {
  margin-top: 1em;
}

.hexagon-vertex {
  fill: hsl(190, 50%, 50%);
}

.hexagon-center {
  fill: hsl(160, 50%, 50%);
  r: 2;
}

.radial-edge {
  stroke-width: 0.2;
  stroke-linecap: round;
}

.cyclic-edge {
  stroke-width: 0.2;
  stroke-linecap: round;
}

.contour-edge {
  stroke-width: 0.2;
  stroke-linecap: round;
}

.centered-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#debug-layer {
  display: none;
}

.debug #debug-layer {
  display: initial;
}

#cube-statement {
  /* animation: rainbow-dimmer 10s infinite; */
  border-color: #eee;
  border-width: 2px;
  border-style: solid;
  padding: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
  border-radius: 0.5em;
}

.overlays-container: {
  position: relative;
}

#slop-cubes {
  z-index: 1;
  position: absolute;
  top: -10vmin;
}

#ui-overlay {
  z-index: 2;
  position: absolute;
}

@media all and (max-height: 568px) {
  body {
    font-size: 18px;
  }
}

