
:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1em;
  --col-body-bg: rgb(34, 36, 37);
  --col-help-bg: rgba(70, 70, 70, 0.9);
  --col-help-part: rgba(65, 65, 65, 0.9);
  --col-scrollbar-track: rgb(30, 30, 36);
  --col-scrollbar-thumb: rgb(64, 67, 90);
  --col-menu-bg: rgb(43, 43, 43, 0.7);
  --col-menu-border: rgb(141, 140, 87);
  --col-menu-text: rgb(200, 200, 200);
  --col-menu-hover: rgb(92, 92, 63);
  --col-menu-item: rgba(80, 80, 80, 0.7);
  --col-menu-item-hover: rgba(28, 135, 206, 0.6);
  --col-but-hover: rgb(54, 112, 114);
  --col-but-pressed: rgb(1, 55, 87);
  --col-but-pressed-hover: rgb(42, 72, 88);
  --col-status-bg: rgb(36, 37, 37);
  --col-status-text: rgb(206, 206, 206);
  --pad-menu-orient-h: 3px;
  --pad-menu-orient-v: 0px;
  --pad-buticon-orient-h: 3px;
  --pad-buticon-orient-v: 1px;
  --size-dropmenu-border: 2px;
}


html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--col-body-bg);
}

body {
  touch-action: none;
  color: white;
}

/* Rotate whole body when in portrait mode. */
/* @media only screen and (orientation:portrait) {
  body {
    height: 100vw;
    width: 100vh;
    transform: translateX(100vw) rotate(90deg);
    transform-origin: left top;
  }
} */

#help-overlay {
  min-width: 300px;
  min-height: 8rem;
  position: fixed; /* Sit on top of the page content */
  grid-template-rows: auto 1fr;
  grid-template-columns: auto 1fr;
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  /* top: 0;
  left: 0;
  right: 0;
  bottom: 0; */
  background-color: var(--col-help-bg); /* Black background with opacity */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
}

#help-icon-close {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  background-color: rgba(100, 100, 100, 0.9);
  cursor: pointer; 
  width: 100%;
}

#help-icon-close:hover {
  background-color: orange;
}

#help-icon-close svg {
  display: inline-block;
  padding-left: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  height: 1.5rem;
  width: 1.5rem;
  fill: rgb(58, 58, 58);
}

/* #help-icon-close:hover svg {
  fill: orange;
} */

#help-but-start {
  display: inline-block; 
  padding: 4px; 
  border-radius: 5px; 
  border: 2px solid orange;
  cursor: pointer;
}

#help-but-start:hover {
  background-color: rgb(105, 91, 68);
}


#help-title {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
  text-transform: uppercase;
  letter-spacing: 3px;
  /* transform: rotate(-90deg); */
  writing-mode: vertical-rl;
  padding: 1rem 0.25rem 1rem 0.2rem;
  font-size: 2rem;
  color: rgba(70, 70, 70, 1);
  background-color: rgba(100, 100, 100, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#help-text {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  font-size: 1rem;
  padding: 1rem 0.25rem 0.5rem 1rem;
  color: white;
  overflow: auto;
  scrollbar-width: 0.5rem;
  scrollbar-color: var(--col-scrollbar-thumb) var(--col-scrollbar-track);
}

#help-text::-webkit-scrollbar {
  width: 0.5rem;
}

#help-text::-webkit-scrollbar-track {
  background: var(--col-scrollbar-track);
}

#help-text::-webkit-scrollbar-thumb {
  background: var(--col-scrollbar-thumb);
}

#help-text h1 {
  font-size: 2rem;
  font-weight: 200;
  margin-bottom: 0.625rem;
  margin-top: 0;
  color: rgb(230, 230, 230);
}

#help-text h2 {
  font-size: 1.5rem;
  font-weight: 200;
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
  margin-top: 0;
  color: rgb(230, 230, 230);
}

#help-text p {
  margin-bottom: 0.4rem;
  margin-top: 0;
  color: rgb(210, 210, 210);
}

#help-text .part {
  background-color: var(--col-help-part);
  padding: 3px;
  margin-bottom: 0.5rem;
}

#help-text a:link {
  color: lightblue;
}

#help-text a:visited {
  color: lightsalmon;
}

#help-text .footnote {
  font-size: 0.9rem;
  margin-top: 3rem;
  margin-bottom: 0.2rem;
}

#help-text .footnote a {
  color: lightblue;
  font-style: oblique;
  font-weight: 600; 
}


.usage-table {
  font-size: 1.25rem;
}

#notify-big {
  position: fixed;
  display: block;
  width: 100%;
  /* height: 4rem; */
  background-color: rgba(103, 194, 126, 0.85);
  border-top: 5px solid rgba(71, 134, 87, 0.85);
  bottom: -10rem;
  transition: bottom 0.5s ease-in-out;
  transition-delay: 0s;
  overflow: hidden;
  z-index: 5;
  font-size: 1.75rem;
  text-align: center;
  cursor: pointer;
}


.pagecontainer {
  width: 100%;
  height: 100%;
  display: table;
}

.error-report {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 50%;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  color: rgb(209, 90, 11);
  /* background-color: rgba(51, 51, 51, 0.7); */
  overflow: none;
}

.error-report a {
  color: rgba(28, 135, 206);
}

#drop-zone {
  width: 100%;
  height: 100%;
}

.drop-grid {
  position: fixed;
  background-color: rgb(0,0,0,0);
  display: none;
  grid-template-rows: 100%;
  grid-template-columns: 100%;
  grid-auto-flow: column;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.drop-target {
  background-color: rgba(95, 95, 95, 0.473);
  display: grid;
  grid-template: 100% / 100%;
  align-items: center;
  text-align: center;
  margin: 0px;
  border: 5px dashed grey;
  border-radius: 10px;
  font-size: 2rem;
  font-weight: 500;
  color: rgb(150, 150, 150);
}

.app-grid {
  position: absolute;
  background-color: rgb(0,0,0,0);
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: auto 1fr;
  grid-gap: 0px;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#app-tap {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  min-height: 100px;
  min-width: 100px;
  cursor: crosshair;
}

.tap-grid {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0px 0px;
}

.tap-item {
  text-align: left;
  border: 1px solid darkgray;
  box-shadow: 0px 0px 1px 2px rgb(68, 68, 68), inset 0px 0px 1px 4px rgba(197, 197, 197, 0.6);
  margin: 1px;
  padding: 0.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tap-item-pressed {
  box-shadow: 0px 0px 1px 2px rgb(68, 68, 68), inset 0px 0px 1px 4px rgba(14, 231, 68, 0.85);
}

.tap-item-invalid {
  background: 
    /* On "top" */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      #ccc 10px,
      #ccc 20px
    ),
    /* on "bottom" */
    linear-gradient(
      to bottom,
      #eee,
      #999
    );
}

#app-status-bottom {
  grid-row: 2 / 3;
  grid-column: 1 / 3;
}

#app-status-left {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

.status-grid {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  grid-row-gap: 1px;
  grid-column-gap: 1px;
  background-color: var(--col-status-bg);
  color: var(--col-status-text);
  align-items: center;
  font-size: 1.75em;
  width: 100%;
  height: 100%;
}

.status-row {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  grid-row-gap: 1px;
  grid-column-gap: 1px;
  width: 100%;
  height: 100%;
}

.status-row > div {
  /* border: 1px solid red; */
  padding: 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-row-item-invalid {
  text-decoration: line-through;
}


.status-text {
  font-size: 1rem;
}
.status-text.menu-orient-h.text-orient-h {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.status-text.menu-orient-v.text-orient-h {
  writing-mode: vertical-lr;
  text-orientation: upright;
}

.status-text.menu-orient-h.text-orient-v {
  writing-mode: horizontal-tb;
  text-orientation: upright;
}

.status-text.menu-orient-v.text-orient-v {
  writing-mode: vertical-lr;
  text-orientation: mixed;
}


.icon {
  display: inline-block;
  /* vertical-align: middle; */
  /* display: inline-flex; */
  /* align-self: center; */
  /* position: relative; */
}

.icon.text {
  padding-left: 0.1em;
}

.icon svg, .icon img {
  height: 0.75em;
  width: 0.75em;
  fill: currentColor;
}

.icon.narrow svg, .icon.narrow img {
  height: 0.5em;
  width: 0.5em;
  fill: currentColor;
}

.icon.baseline svg, .icon.baseline img {
  /* top: .125em; */
  padding-right: 0.25em;
  position: relative;
}

.icon.button.menu-orient-h {
  padding-left: var(--pad-buticon-orient-h);
  padding-right: var(--pad-buticon-orient-h);
}

.icon.button.menu-orient-v {
  padding-top: var(--pad-buticon-orient-v);
  padding-bottom: var(--pad-buticon-orient-v);
}

.icon.button.icon-orient-h {
  writing-mode: horizontal-tb;
}

.icon.button.icon-orient-v {
  writing-mode: vertical-lr;
}

.icon.button svg {
  padding: 2px;
}

.icon.button:hover {
  background-color: var(--col-but-hover);
}

.icon.pressed {
  background-color: var(--col-but-pressed);
}

.icon.button.pressed:hover {
  background-color: var(--col-but-pressed-hover);
}


.dropmenu {
  position: relative;
  display: block;
  cursor: auto;
}

.dropmenu-button {
  padding: 0px;
  margin: 0px;
  border-radius: 7px;
}

.dropmenu-button.menu-orient-h {
  padding-left: 0px;
  padding-right: 0px;
  padding-top: var(--size-dropmenu-border);
  padding-bottom: var(--size-dropmenu-border);
}

.dropmenu-button.menu-orient-v {
  padding-left: var(--size-dropmenu-border);
  padding-right: var(--size-dropmenu-border);
  padding-top: 0px;
  padding-bottom: 0px;
}

.dropmenu-button.menu-orient-h.text-orient-h {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.dropmenu-button.menu-orient-v.text-orient-h {
  writing-mode: vertical-lr;
  text-orientation: upright;
}

.dropmenu-button.menu-orient-h.text-orient-v {
  writing-mode: horizontal-tb;
  text-orientation: upright;
}

.dropmenu-button.menu-orient-v.text-orient-v {
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

.dropmenu-button.enabled {
  border: var(--size-dropmenu-border) solid var(--col-menu-border);
  cursor: pointer;
}

.dropmenu-button.enabled.menu-orient-h {
  /* padding: 0px; */
  padding-left: var(--pad-menu-orient-h);
  padding-right: var(--pad-menu-orient-h);
  padding-top: 0px;
  padding-bottom: 0px;
}

.dropmenu-button.enabled.menu-orient-v {
  /* padding: 0px; */
  padding-left: 0px;
  padding-right: 0px;
  padding-top: var(--pad-menu-orient-v);
  padding-bottom: var(--pad-menu-orient-v);
}

.dropmenu-button .text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropmenu-button.invalid .text {
  text-decoration: line-through;
}

.dropmenu-button.enabled:hover {
  background-color: var(--col-menu-hover);
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}


.dropmenu-active:hover .dropmenu-items {
  opacity: 1;
  z-index: 2;
  transition-property: opacity;
  transition-duration: 0.0s, 0.1s;
  transition-delay: 0.0s, 0.0s;
}

.dropmenu-items {
  display: flex;
  position: fixed;
  opacity: 0.0;
  /* writing-mode: horizontal-tb; */
  text-orientation: initial;
  /* bottom: 1.25em; */
  /* left: 0; */
  z-index: -2;
  background-color: var(--col-menu-bg);
  color: var(--col-menu-text);
  /* min-width: 2em;
  max-height: 8em; */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border-left: 4px solid var(--col-menu-border);
  padding-bottom: 5px;
  overflow: auto;
  scrollbar-width: 0.5rem;
  scrollbar-color: var(--col-scrollbar-thumb) var(--col-scrollbar-track);
}

.dropmenu-items.drop-orient-l {
  /* Ensure writing mode is horizontal, to have correct meaning for 'flex-direction'. */
  writing-mode: horizontal-tb;
  flex-direction: row-reverse;
  /* flex-wrap: wrap;
  max-width: 5rem; */
}

.dropmenu-items.drop-orient-r {
  /* Ensure writing mode is horizontal, to have correct meaning for 'flex-direction'. */
  writing-mode: horizontal-tb;
  flex-direction: row;
  /* flex-wrap: wrap;
  max-width: 5rem; */
}

.dropmenu-items.drop-orient-u {
  /* Ensure writing mode is horizontal, to have correct meaning for 'flex-direction'. */
  writing-mode: horizontal-tb;
  flex-direction: column-reverse;
  /* flex-wrap: wrap;
  max-width: 5rem; */
}

.dropmenu-items.drop-orient-d {
  /* Ensure writing mode is horizontal, to have correct meaning for 'flex-direction'. */
  writing-mode: horizontal-tb;
  flex-direction: column;
  /* flex-wrap: wrap;
  max-height: 5rem; */
}

.dropmenu-items.item-orient-h .dropmenu-item {
  writing-mode: horizontal-tb;
}

.dropmenu-items.item-orient-v .dropmenu-item {
  writing-mode: vertical-lr;
}

.dropmenu-items::-webkit-scrollbar {
  width: 0.5rem;
}

.dropmenu-items::-webkit-scrollbar-track {
  background: var(--col-scrollbar-track);
}

.dropmenu-items::-webkit-scrollbar-thumb {
  background: var(--col-scrollbar-thumb);
}

.dropmenu-items-trans-hide {
  transition-timing-function: linear;
  transition-property: opacity;
  transition-duration: 0.0s;
  transition-delay: 0.0s;
}

.dropmenu-items-trans-click {
  animation: drop-click 0.16s;
  animation-fill-mode: forwards;
  animation-delay: 0s;
}

.dropmenu-item {
  display:block;
  padding: 0.1em 0.5em 0.1em 0.25em;
  background-color: var(--col-menu-item);
}

.dropmenu-item.invalid {
  text-decoration: line-through;
}

.dropmenu-item:hover {
  background-color: var(--col-menu-item-hover);
}


@keyframes drop-show {
  0% { bottom: -10rem; opacity: 0; }
  1% { bottom: 1.5rem; opacity: 0; }
  100% { bottom: 1.5rem; opacity: 1;}
}

@keyframes drop-hide {
  0% { bottom: 1.5rem; opacity: 1; }
  80% { bottom: 1.5rem; opacity: 1; }
  99% { bottom: 1.5rem; opacity: 0; }
  100% { bottom: -10rem; opacity: 0; }
}

@keyframes drop-click {
  0% { bottom: 1rem; opacity: 1; background-color: rgba(68, 68, 68, 0.6); }
  50% { bottom: 1rem; opacity: 1; background-color: rgba(197, 197, 197, 0.6);}
  99% { bottom: 1rem; opacity: 0; background-color: rgba(68, 68, 68, 0.6);}
  100% { bottom: -10rem; opacity: 0; background-color: rgba(68, 68, 68, 0.6);}
}





.key-table {
  border-spacing: 0;
  font-size: 0.9rem;
}

table.key-table th { 
  text-align: left;
}

table.key-table th, td {
  padding-right: 20px;
  padding-bottom: 5px;
}

table.key-table td {
  text-align: left;
}

table.key-table th:nth-child(2), td:nth-child(3) {
  padding-left: 40px;
}

table.key-table th:nth-child(1) {
  border-right: 3px solid whitesmoke;
}

table.key-table td:nth-child(2) {
  border-right: 3px solid whitesmoke;
}

table.key-table td:nth-child(2n) {
  font-weight: 600;
}


.sw-table {
  border-spacing: 0;
  font-size: 0.9rem;
}

table.sw-table th { 
  text-align: left;
}

table.sw-table th, td {
  padding-right: 20px;
  padding-bottom: 5px;
}

table.sw-table td {
  text-align: left;
}

.info-table {
  border-spacing: 0;
  font-size: 0.9rem;
}

table.info-table th { 
  text-align: left;
}

table.info-table tr {
  padding-bottom: 10px;
}

table.info-table th, td {
  padding-right: 20px;
  padding-bottom: 5px;
  vertical-align: top;
}

table.info-table td:nth-child(1) {
  text-align: right;
  font-weight: 600;
  width: 100px;
}

table.info-table td:nth-child(2) {
  text-align: left;
  width: 400px;
}



ul {
  list-style-type: none;
  /* margin: 0; */
  padding-left: 1rem;
  padding-bottom:0.75rem;
  padding-top:0.75rem;
  
  overflow: hidden;
  background-color: rgba(51, 51, 51, 0.7);
}

li {
  /* float: ; */
  margin-top: 0.35rem;
  margin-bottom: 0.1rem;
}


.my-block {
  text-align: center;
  display: table-cell;
  vertical-align: middle;
}

.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}
.lds-ellipsis div {
  position: absolute;
  top: 27px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 6px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 6px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 26px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 45px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(19px, 0);
  }
}




.canvas-img {
  background-color: darkgray;
  /*width: 500px; 
  height: 500px;*/
  /*display: block;*/
}
 
.slidecontainer {
  width: 100px; /* Width of the outside container */
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 5px;  
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%; 
  background: #4CAF50;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
}