html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

[v-cloak] {
  display: none;
}


/* width */
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}


.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.noselect {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.images-group {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

input.short {
  width: 100%;
  max-width: 100px;
  min-width: 70px;
}

input.long {
  width: 200px;
}

#app {
  height: 100%;
  /* overflow: hidden; */
}

/* .dashboard {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 1fr 1fr;
} */

/* .dashboard .console-box {
  margin-top: 20px;
} */

.dashboard {
  background: #eaeaea;
  height: calc(100vh - 52px);
  overflow: auto;
}

.settings {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: min-content minmax(200px,500px);
  justify-items: start;
  align-items: center;
  row-gap: 15px;
  margin-bottom: 15px;
  white-space: nowrap;
}

.console {
  display: grid;
  grid-auto-flow: row;
  grid-template-rows: max-content auto 30px max-content;
  height: calc(100vh - 52px);
  overflow: hidden;
  padding: 0px 1px 0px 0px;
  position: relative;
  z-index: 39;
}

.console .console-resize-handle {
  position: absolute;
  height: 100%;
  width: 8px;
  left: 0;
  top: 0;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  color: lightgray;
}

.console-resize-handle:hover {
  color: gray;
}

.console .console-body {
  background-color: #fdfdff;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border: 1px solid #d9d9d9;
  border-bottom: 0px;
  color: #000;
  font-family: Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;
  font-size: 12pt;
  line-height: 1.4285em;
  overflow: auto;
  padding-top: 5px;
  width: 100%;
}

.console-body .row {
  width: 100%;
  display: grid;
  grid-template-columns: max-content auto;
}

.console-body .row .row-counter {
  color: gray;
  padding-left: 5px;
  padding-right: 15px;
}

.console-body .row .row-timestamp {
  color: gray;
  padding-right: 15px;
}

.console-body .row .row-direction {
  padding-right: 10px;
}

.break-long-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.row-direction.send {
  color: rgb(0, 132, 255);
}

.row-direction.received {
  color: rgb(0, 223, 56);
}

.console-body .row .row-counter-prefix {
  color: #fdfdff;
  visibility: hidden;
}

.console-body .row .index{
  display: grid;
  justify-items: end;
  padding-right: 10px;
  width: 50px;
}

.console-body .row .margin{
  width: 10px;
}

.console .console-tabs {
  margin-bottom: -1px !important;
  position: relative;
}

.console-tabs .console-tabs-buttons {
  position: relative;
  /* float: right; */
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.console-topbar {
  /* width: 477px; */
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  justify-content: space-between;
  width: 100%;
}

.console .console-footer {
  margin-bottom: 4px;
  margin-top: 4px;
  margin-left: 10px;
  
  display: flex;
  column-gap: 8px;
  row-gap: 8px;
  flex-wrap: wrap;
}

.console-footer .clear-console {
  height: 25px !important;
}

.input-with-button {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
}

.input-update-interval {
  max-width: 100px !important;
}

.button-select-sheet {
  max-width: 200px;
}

.section-left {
  padding: 3rem 3rem 0 3rem;
}

.section-left .example {
  margin-top: 30px;
}

.modal-card.min-width {
  width: auto;
}

.modal-card.chart-settings {
  width: 100%;
  max-width: 950px;
}

.highcharts-figure,
.highcharts-data-table table {
  min-width: 360px;
  max-width: 800px;
  margin: 1em auto;
}

.highcharts-data-table table {
  font-family: Verdana, sans-serif;
  border-collapse: collapse;
  border: 1px solid #ebebeb;
  margin: 10px auto;
  text-align: center;
  width: 100%;
  max-width: 500px;
}

.highcharts-data-table caption {
  padding: 1em 0;
  font-size: 1.2em;
  color: #555;
}

.highcharts-data-table th {
  font-weight: 600;
  padding: 0.5em;
}

.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
  padding: 0.5em;
}

.highcharts-data-table thead tr,
.highcharts-data-table tr:nth-child(even) {
  background: #f8f8f8;
}

.highcharts-data-table tr:hover {
  background: #f1f7ff;
}

.card-qauge {
  /* width: fit-content; */
  position: relative;
  /* border: 1px solid #dadce0; */
  border-radius: 4px;
  box-sizing: border-box;
  justify-self: center;
  width: 100%;
  display: grid;
  justify-items: center;
  height: fit-content;
  background: #fff;
  height: 100%;
}

.card-qauge .gauge {
  width: 300px;
  height: 300px;
  border-radius: 8px;
}

.card-qauge .chart {
  border-radius: 4px;
  width: 100%;
  /* height: 300px; */
  /* height: 100%; */
}

.card-qauge.control-panel {
  border-radius: 4px;
  width: 100%;
  /* height: 300px; */
  justify-items: left;
  grid-column: 1 / -1;
}

.control-panel .control-buttons {
  padding: 8px 25px 8px 25px;
  /* overflow: hidden;
  overflow-x: auto; */
  width: 100%;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  height: fit-content;
}

.external .control-buttons {
  padding: 8px 25px 8px 35px;
}

.control-panel.external {
  border: 1px solid lightgray;
  border-radius: 4px;
  max-width: max-content;
}

.card-qauge.external {
  justify-self: left;
}

.control-panel.shared {
  /* background: lightyellow; */
  margin-bottom: 10px;
}

.control-buttons .item {
  float: left;
  width: max-content;
  margin-right: 10px;
  /* margin-bottom: 6px; */
  display: grid;
  grid-auto-flow: column;
  column-gap: 5px;
}

.control-buttons .program-name {
  width: 300px;
}

/* .control-buttons .input {
  width: 100px;
} */

.item-label {
  width: min-content;
  line-height: 40px;
  padding: 0 5px;
  font-weight: 500;
  white-space: nowrap;
}
/* .control-buttons .button {
  width: 100px;
} */

/* .control-buttons .field {
  margin-bottom: 0;
} */

.control-panel .control-buttons .name {
  padding-left: 25px;
  margin-bottom: 10px;
  color: gray;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gauge-status {
  /* cursor: pointer; */
  font-size: 18px;
  left: 30px;
  position: absolute;
  top: 4px;
}

.gauge-status .info {
  margin-right: 10px;
  color: gray;
  font-size: 16px;
  position: relative;
  top: -2px;
}

.gauge-status.chart {
  left: 30px;
  width: max-content;
}

.gauge-info {
  font-size: 12px;
  left: 10px;
  position: absolute;
  bottom: 5px;
}

.settings-row {
  display: flex;
  column-gap: 12px;
}

.gauge-settings {
  position: absolute;
  cursor: pointer;
  top: 5px;
  right: 5px;
  color: #666666;
  width: fit-content;
  border-radius: 3px;
  font-size: 16px;
}

.gauge-settings:hover {
  background-color: #e6e6e6;
}

.gauge-clear {
  position: absolute;
  cursor: pointer;
  top: 5px;
  right: 34px;
  /* color: red; */
  width: fit-content;
  border-radius: 3px;
  font-size: 16px;
}

.gauge-clear:hover {
  background-color: #e6e6e6;
}

.chart-settings:hover {
  color: black;
}

.card-qauge .handle {
  position: absolute;
  color: lightgray;
  cursor: move; /* fallback if grab cursor is unsupported */
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
  top: 10px;  /* position the top  edge of the element at the middle of the parent */
  left: 50%; /* position the left edge of the element at the middle of the parent */
  /* padding: 0 100px; */
  /* transform: translate(-50%, -50%); */
}

.card-qauge .handle:hover {
  color: gray;
}

.card-qauge .handle:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

.handle.chart-handle {
  top: 4px;
  left: 10px;
  padding-left: 0;
  transform: none;
  /* padding-right: calc(100% - 100px); */
}

.chart-resize-handle {
  width: 100%;
  height: 16px;
/*   background: red; */
  position: absolute;
  bottom: 0;
  cursor: row-resize;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  color: lightgray;
}

.chart-resize-handle:hover {
  color: gray;
}

.gauge-resize-handle {
  width: 100%;
  height: 16px;
/*   background: red; */
  position: absolute;
  bottom: 0;
  cursor: row-resize;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  color: lightgray;
}

.chart-gauge-handle:hover {
  color: gray;
}

.handle.gauge-handle {
  top: 4px;
  left: 10px;
  padding-left: 0;
  transform: none;
  /* padding-right: calc(100% - 110px); */
}

.handle.control-panel {
  top: 15px;
  left: 7px;
  padding-left: 0;
  padding-right: 0;
  transform: none;
}

.external .handle {
  cursor: auto;
}

.modal-card-title {
  margin-bottom: 0px !important;
}

.gauges {
  padding: 8px 8px 8px 56px;
  position: relative;
  background: #eaeaea;
  overflow: auto;
}

.gauges-container {
  background: #eaeaea;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-template-rows: min-content;
  row-gap: 8px;
  column-gap: 8px;
  /* min-height: calc(100vh - 70px); */
  padding-bottom: 30px;
  height: fit-content;
}



@media only screen and (max-width:700px) { 
  .gauges-container {
    grid-template-columns: none;
  }
}

@media only screen and (min-width:1200px) { 
  .gauges-console-opened {
    margin-right: 485px;
  }
}

/* @media only screen and (max-width:800px) { 
  .gauges-container {
    grid-template-columns: none;
  }
}

@media only screen and (max-width:1200px) { 
  .gauges.gauges-console-opened .gauges-container {
    grid-template-columns: none;
  }
} */

.gauges-menu {
  background: #e1e1e1;
  display: grid;
  grid-auto-rows: min-content;
  height: calc(100vh - 53px);
  left: 0px;
  overflow-y: auto;
  padding-bottom: 0;
  padding-top: 7px;
  position: fixed;
  row-gap: 0px;
  top: 53px;
  width: 48px;
  padding-bottom: 40px;
  
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.gauges-menu.fullscreen {
  top: 0;
  height: 100vh;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.gauges-menu::-webkit-scrollbar {
  display: none;
}

.gauges-menu .is-info {
  background: transparent !important;
  color: #6f6f6f !important;
  outline: none !important;
  width: 48px;
}

.gauges-menu .is-success {
  color: #48c78e !important;
  outline: none !important;
}

.gauges-menu .is-warning {
  color: #ffbf10 !important;
  outline: none !important;
}

.gauges-menu .is-danger {
  color: #f14668 !important;
  outline: none !important;
}

.gauges-menu .is-info:hover {
  background: lightgray !important; 
/*   opacity: 0.7; */
}

.gauges-menu .is-info:focus {
  box-shadow: none !important;
}

.gauges-menu .separator {
  /* width: 46px; */
  border-top: 1px solid #a3a3a3;
  margin: 0px 7px;
}

.gauges-console {
  position: fixed;
  top: 52px;
  right: 0px;
  background: #eaeaea;
  padding-top: 8px;
  padding-right: 8px;
  padding-left: 8px;
  /* margin-left: 48px; */
  /* border-left: 1px solid #d3d3d3; */
  box-sizing: border-box;
  max-width: 493px;
  width: calc(100% - 48px);

}

.gauges-console.fullscreen {
  top: 0;
  height: 100vh;
}

.button-settings-handle {
  position: relative;
  color: lightgray;
  cursor: move; /* fallback if grab cursor is unsupported */
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
  top: 7px;
}

.button-settings-handle:hover {
  color: black;
}

.button-settings-handle:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

.draggable-label {
  position: relative;
  top: 5px;
}

.router-link-active {
  background-color: #3a51bb;
  color: #fff;
}

input[type="file"] {
  display: none;
}
.custom-file-upload {
  display: inline-block;
  cursor: pointer;
}

.help-measurement-tools {
  display: grid;
  grid-template-columns: min-content auto;
  row-gap: 15px;
  column-gap: 20px;
  align-items: start;
}

.help-measurement-tools .is-menu {
  background: transparent !important;
  color: #6f6f6f !important;
  outline: none !important;
  width: 60px;
  border: none;
}

.help-measurement-tools .help-measurement-tools-description {
  /* padding-top: 7px; */
}

.disclaimer {
  display: none !important;
}

.openimage {
  cursor: pointer;
}

.openimage img {
  max-height: 480px;
  /* border: 1px solid lightgray; */
}

.table-settings {
  border-collapse: separate;
  border-spacing: 10px 5px;
}

.color-selector {
  position: relative;
  width: max-content;
  height: max-content;
}

.color-selector .selector {
  background: white;
  border: 1px solid lightgray;
  border-radius: 4px;
  position: absolute;
  bottom: 40px;
  display: grid;
  column-gap: 5px;
  row-gap: 5px;
  grid-template-columns: repeat(4, auto);
  padding: 5px;
  z-index: 100;
  left: 0px;
  bottom: -147px;
}

.color-selector .selector .item {
  width: 30px;
  height: 30px;
  cursor: pointer;
  border: 1px solid lightgray;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: lightgray;
}

.color-selector-button {
  width: max-content;
  height: max-content;
}

.color-selector-dot {
  width: 24px;
  height: 24px;
  cursor: pointer;
  border: 1px solid lightgray;
  border-radius: 12px;
}

.color-selector-dot-wrapper {
  margin-top: 7px;
}

.box-container {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}

.ghost {
  display: none;
}


.command {
  border-radius: 10px;
  min-width: 50px;
  width: fit-content;
  background: orange;
  /* border: 1px solid gray; */
  border: 0px solid #566963;
  text-decoration:none;
	/* text-shadow:0px -1px 0px #2b665e; */
  /* margin: 5px 0; */
}

.command.selected {
  /* background: rgb(169, 217, 248); */
  /* background: #27abfd; */
  box-shadow: 2px 2px 10px 5px lightgrey;
  /* box-shadow: 5px 5px 5px 2px lightgrey; */
  /* box-shadow: 0px 0px 5px 5px lightgrey; */
  /* box-shadow: -5px 5px 3px 1px lightgrey; */
}

/* Command styles */

.program-start-block {
  background-image: linear-gradient(#fee800, #ffc401);
  box-shadow: inset 0px 0px 5px 0px #ae8500;
  color: #4a4a4a;
}

.program-start-block:hover {
  color: rgb(0, 197, 0);
}

.yellow-block {
  background-image: linear-gradient(#fee800, #ffc401);
  box-shadow: inset 0px 0px 5px 0px #ae8500;
  color: #4a4a4a;
}

.yellow-block:hover {
  color: black;
}

.green-block {
  background-image: linear-gradient(#00ab21, #016d30);
  box-shadow: inset 0px 0px 5px 0px #006d30;
  color: white;
}

.green-block:hover {
  color: #ffff00;
}

.red-block {
  background-image: linear-gradient(#fc1d2a, #bd131e);
  box-shadow: inset 0px 0px 5px 0px #810009;
  color: white;
}

.red-block:hover {
  color: #ffff00;
}

.blue-block {
  background-image: linear-gradient(#00b6fe, #009afe);
/*   background-image: linear-gradient(#00aefe, #009afe); */
  box-shadow: inset 0px 0px 5px 0px #006ab0;
  color: white;
}

.blue-block:hover {
  color: #ffff00;
}

.white-block {
  background-image: linear-gradient(#fafafa, #e0e0e0);
  box-shadow: inset 0px 0px 5px 0px #e0e0e0;
  color: #4a4a4a;
}

.white-block:hover {
  color: black;
}

.command.sub-code-block {
  /* padding-bottom: 15px; */
}

.command.disabled {
  background-image: linear-gradient(#fafafa, #e0e0e0);
  box-shadow: inset 0px 0px 5px 0px #e0e0e0;
  color: #4a4a4a;
}

/* .command.selected.disabled {
  background: #fafafa;
} */

.command .command-body {
  align-items: center;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-items: center;
  min-height: 60px;
  font-size: 16px;
}

.command .command-commands-bottom {
  height: 20px;
}

.command-body .command-handle {
  display: grid;
  align-items: center;
  justify-items: center;
  grid-auto-flow: column;
  min-width: 60px;
  height: 100%;
  cursor: grab;
  font-size: 20px;
}

.command-body .command-condition {
  align-items: center;
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: max-content;
  row-gap: 8px;
  margin-right: 10px;
  margin: 8px 0;
}

.command-body .command-space {
  width: 10px;
}

.command-condition .command-condition-item {
  align-items: center;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  column-gap: 10px;
}

.command-condition-item .condition-buttons {
  margin-right: 10px;
}

.input-wrapper {
	position: relative;
  width: max-content;
  margin-bottom: 0px !important;
}

.keysPressed-input {
  border: 1px solid transparent;
  border-radius: 4px;
  height: 40px;
  padding: 0 15px;
  display: grid;
  align-items: center;
  background: white;
  cursor: pointer;
  width: max-content;
  min-width: 70px;
}

.input-range {
	position: absolute;
    left: 0px;
    bottom: -8px;
    width: 100%;
    z-index: 10;
}

.command-body .condition-params {
  align-items: center;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  column-gap: 10px;
  margin-right: 10px;
}

.command-body .condition-params .field:not(:last-child) {
  margin-bottom: 0 !important;
}

.condition-params textarea {
  padding: 8px;
}

.command-handle:active {
  cursor: grabbing;
}

.command-commands .sub-code {
  /* background: white; */
  min-width: 100px;
  min-height: 60px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;

  /* overflow: hidden; */
  display: grid;
  grid-auto-flow: row;
  grid-auto-rows: min-content;

  position: relative;
  /* right: -1px; */

  /* padding: 8px 0;
  row-gap: 8px; */
  padding: 12px 12px;
  padding-right: 24px;
  row-gap: 0px;
}

.command .command-commands {
  min-height: 40px;
  width: calc(100% - 20px);
  margin-left: 20px;
  background-color: white;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.command-commands.selected {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  box-shadow: 2px 2px 10px 5px lightgrey;
  background-color: rgb(244, 244, 244);
}

.command .command-else {
  padding: 3px 20px;
}

.command-else-toggle {
  padding: 3px 20px;
}

.command-else-toggle .command-else-toggle-button {
  cursor: pointer;
}

.command .command-separator {
  width: calc(100% - 10px);
  margin-left: 10px;
  height: 10px;
  background-color: lightskyblue;
}

.command-led {
  display: grid;
  grid-template-columns: 1fr auto;
}

.command-led-toolbar {
  display: grid;
  grid-auto-flow: row;
  margin-right: 10px;
  margin-bottom: 10px;
}

.command-led-screen {
  width: 100px;
  height: 100px;
  background: white;
  margin-top: 0px;
  margin-right: 10px;
  margin-left: 10px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.command-led-screen .command-led-screen-item {
  padding: 4px 6px;
  cursor: pointer;
}

.command-led-screen-item .command-led-screen-item-content {
  background: rgb(237, 237, 237);
  width: 100%;
  height: 100%;
}

.command-led-screen-item .command-led-screen-item-content:hover {
  background: rgb(215, 215, 215);
}

.command-led-screen-item .command-led-screen-item-selected {
  background: red;
  width: 100%;
  height: 100%;
}

.command-led-screen-item-selected.on {
  background: red;
}

.command-led-screen-item-selected.off {
  background: black;
}

.command-row {
  display: grid;
  grid-auto-flow: column;
  justify-items: center;
  align-items: start;
  /* grid-template-columns: 20px max-content; */
  /* grid-template-columns: 8px max-content; */
  grid-template-columns: max-content;
}

.command-body input {
  width: 90px;
  /* margin-right: 10px; */
}

.input.max-content {
  width: auto;
  cursor: pointer !important;
}

/* .command-body select {
  margin-right: 10px;
} */

.command-body .description {
  float: right;
  line-height: 40px;
  margin-left: 10px;
}

/* .command-body .dropdown {
  margin-right: 10px;
}

.command-body .switch {
  margin-right: 10px;
} */

.commands {
  width: 100%;
  display: grid;
  grid-auto-flow: row;
  row-gap: 8px;
  grid-auto-rows: min-content;
  padding-bottom: 40px;
  padding-right: 10px;
  padding-left: 10px;
  padding-top: 10px;
  /* max-height: 80vh; */
  overflow: auto;
}

.commands.program {
  padding-left: 30px;
  /* row-gap: 8px; */
  row-gap: 0px;
  padding-bottom: 100px;
}

.commands-container {
  background: white;
  display: grid;
  /* column-gap: 4px; */
  grid-auto-flow: column;
  grid-template-columns: max-content max-content auto;
  width: 100%;
  padding-right: 10px;
  height: 100%;
}

.commands-container .toolbarToggle {
  background: #3488ce;
  color: white;
  display: grid;
  align-items: center;
  justify-items: center;
  height: 150px;
  align-self: center;
  opacity: .8;
  width: 25px;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;

  @media only screen and (max-width:800px) { 
    visibility: hidden;
    width: 0
  }
}

.toolbarToggle:hover {
  cursor: pointer;
  opacity: 1;
}

.commands-panel-modal-card {
  width: 100% !important;
  /* padding: 0 20px !important; */
  max-height: 100vh !important;
}

.commands-panel-modal-card .modal-card-head {
  padding: 6px 10px !important;
}

.commands-modal-card-body {
  padding: 0 !important;
}

.commands-panel-modal-card-header {
  display: flex;
  flex-grow: 1;
  overflow: auto;
}

.dropdown-content {
  width: fit-content;
  max-height: 231px; /* 33 x 5 */
  overflow: auto;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

.button-transparent {
  background: none !important;
  border-color: transparent !important;
}

.button-wider {
  padding: 0 30px !important;
}

.about-up-arrow {
  margin-left: 20px;
  font-size: 20px;
  cursor: pointer;
  color: gray;
  margin-bottom: 5px;
}

.about-up-arrow:hover {
  color: black;
}

.get-started-list {
  display: flex;
  flex-wrap: wrap-reverse;
  column-gap: 100px;
}

/* Spinner */

.sk-folding-cube {
  margin: 20px auto;
  width: 40px;
  height: 40px;
  position: relative;
  -webkit-transform: rotateZ(45deg);
  transform: rotateZ(45deg);
}
.sk-folding-cube .sk-cube {
  float: left;
  width: 50%;
  height: 50%;
  position: relative;
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}
.sk-folding-cube .sk-cube:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0099ff;
  -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
  animation: sk-foldCubeAngle 2.4s infinite linear both;
  -webkit-transform-origin: 100% 100%;
  -ms-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
}
.sk-folding-cube .sk-cube2 {
  -webkit-transform: scale(1.1) rotateZ(90deg);
  transform: scale(1.1) rotateZ(90deg);
}
.sk-folding-cube .sk-cube3 {
  -webkit-transform: scale(1.1) rotateZ(180deg);
  transform: scale(1.1) rotateZ(180deg);
}
.sk-folding-cube .sk-cube4 {
  -webkit-transform: scale(1.1) rotateZ(270deg);
  transform: scale(1.1) rotateZ(270deg);
}
.sk-folding-cube .sk-cube2:before {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}
.sk-folding-cube .sk-cube3:before {
  -webkit-animation-delay: 0.6s;
  animation-delay: 0.6s;
}
.sk-folding-cube .sk-cube4:before {
  -webkit-animation-delay: 0.9s;
  animation-delay: 0.9s;
}
@-webkit-keyframes sk-foldCubeAngle {
  0%,
  10% {
    -webkit-transform: perspective(140px) rotateX(-180deg);
    transform: perspective(140px) rotateX(-180deg);
    opacity: 0;
  }
  25%,
  75% {
    -webkit-transform: perspective(140px) rotateX(0deg);
    transform: perspective(140px) rotateX(0deg);
    opacity: 1;
  }
  90%,
  100% {
    -webkit-transform: perspective(140px) rotateY(180deg);
    transform: perspective(140px) rotateY(180deg);
    opacity: 0;
  }
}
@keyframes sk-foldCubeAngle {
  0%,
  10% {
    -webkit-transform: perspective(140px) rotateX(-180deg);
    transform: perspective(140px) rotateX(-180deg);
    opacity: 0;
  }
  25%,
  75% {
    -webkit-transform: perspective(140px) rotateX(0deg);
    transform: perspective(140px) rotateX(0deg);
    opacity: 1;
  }
  90%,
  100% {
    -webkit-transform: perspective(140px) rotateY(180deg);
    transform: perspective(140px) rotateY(180deg);
    opacity: 0;
  }
}

/* Spinner - end */

.screen {
  position: relative;
}

.pixel {
  position: absolute;
  top: 182px;
  left: 86px;
  height: 11px;
  width: 6px;
}

.about-images {
  display: flex;
  /* grid-auto-columns: max-content; */
  column-gap: 10px;
  row-gap: 10px;

  @media only screen and (max-width: 1200px) {
    flex-direction: column;
  }
}

.image-viewer .modal-content {
  height: 100%;
  width: 100%;
  display: grid;
  justify-items: center;
  align-items: center;
  max-height: calc(100vh - 40px);
}

.image-viewer img {
  /* max-width: 640px;
  width: 100%; */
  max-height: calc(100vh - 40px);
  max-width: calc(100vw - 40px);
  /* cursor: 'zoom-in'; */
}

.sponsor-link {
  background: white;
  display: grid;
  align-items: center;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #485fc7;
  width: fit-content;
}


/* --- Virtual Keyboard right handler --- */

.virtual-keyboard-handler {
  position: fixed;
  right: 0;
  top: 80%;

  width: 30px;
  height: 50px;
  z-index: 100;

  background: linear-gradient(#fee800, #ffc401);
  /* box-shadow: inset 0px 0px 5px 0px #ae8500; */
  display: grid;
  justify-items: center;
  align-items: center;

  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  cursor: pointer;
}

.virtual-keyboard-handler .icon {
  margin-top: 9px;
  margin-left: 5px;
  color: #6f6f6f;
}

.virtual-keyboard-handler.example {
  position: relative;
  cursor: default;
  z-index: 0;
  margin-top: 10px;
}

/* --- */

/* --- Virtual Keyboard body --- */

.virtual-keyboard {
  position: fixed;
  top: unset;
  left: unset;
  bottom: 0;
  right: 0;
  z-index: 50;
  width: 640px;
  height: 360px;
  background: #202124;
  display: grid;
  grid-template-rows: max-content 1fr;
  border-radius: 24px;
  border: 1px solid #202124;
  overflow: hidden;
}

.virtual-keyboard.full-screen {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: unset;
  right: unset;
  border-radius: unset;
  border: unset;
}

.virtual-keyboard-touch-button {
  width: 48px;
  height: 48px;
  display: grid;
  justify-items: center;
  align-items: center;
  border-radius: 24px;
  color: white;
  cursor: pointer;
  background: #3c4043;
  font-size: 24px;
}

.virtual-keyboard-touch-button.big {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.virtual-keyboard-touch-button.small {
  background: none;
}

.virtual-keyboard-touch-button.black {
  background: none;
}

.virtual-keyboard-touch-button.active {
  background: hsl(141, 71%, 48%);
  color: #002433;
}

.virtual-keyboard-touch-button.active-text {
  color: hsl(141, 71%, 48%);
}

.virtual-keyboard-touch-button.info {
  background: hsl(204, 86%, 53%);
  color: #002433;
}

.virtual-keyboard-touch-button.warning {
  background: hsl(48, 100%, 67%);
  color: #002433;
}

.virtual-keyboard-touch-button.danger {
  background: #ea4335;
  color: #002433;
}

.virtual-keyboard-touch-button.danger-text {
  color: #ea4335;
}

.virtual-keyboard-touch-button.warning-text {
  color: #fbbc04;
}

.virtual-keyboard-touch-button.selected {
  /* color: #00a745; */
  color: #0d9ffb;
}

/* Empty button */
.virtual-keyboard-touch-button.none {
  background: none;
  color: none;
  cursor: default;
}

.virtual-keyboard .virtual-keyboard-body {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  justify-items: center;
  height: 100%;
  position: relative;
  overflow: auto;
}

.virtual-keyboard-body .teachable-machine {
  background: #202124;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding-left: 6px;
  overflow: auto;
  row-gap: 4px;
}

.teachable-machine .teachable-machine-classes {
  display: flex;
  flex-wrap: wrap;
  column-gap: 4px;
  row-gap: 4px;
  overflow: auto;
  height: 100%;
  align-content: flex-start;
}

.teachable-machine .teachable-machine-webcam {
  display: grid;
  align-items: center;
  justify-items: center;
}

.virtual-keyboard-body .virtual-keyboard-buttons {
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-template-rows: repeat(3, auto);
  align-items: center;
  justify-items: center;
  width: max-content;
  height: max-content;
}

.virtual-keyboard-inputs {
  display: grid;
  grid-auto-flow: row;
  position: relative;
  align-items: center;
  justify-items: center;
  max-height: 300px;
  height: 100%;
  max-width: 210px;
  grid-template-rows: 1fr max-content;
}

.virtual-keyboard-middle {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 48px 1fr 48px;
  width: 100%;
  height: 100%;
  align-items: center;
}

/* .virtual-keyboard-middle-top {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  justify-items: center;
  font-size: 18px;
  color: lightgray;
} */

.virtual-keyboard-middle .virtual-keyboard-middle-center {
  padding: 12px;
  color: white;
  display: grid;
  grid-auto-flow: row;
  grid-template-rows: 20px auto;
  align-self: start;
}

.virtual-keyboard-middle .virtual-keyboard-middle-inputs {
  display: grid;
  grid-auto-flow: row;
  row-gap: 12px;
  margin-bottom: 48px;
}

.virtual-keyboard-inputs-switch {
  display: flex;
  column-gap: 0px;
  box-sizing: border-box;
  height: 48px;
}

.virtual-keyboard .virtual-keyboard-topbar {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  padding: 6px 6px;
}

/* .virtual-keyboard:has(.virtual-keyboard-topbar:hover) {
  box-shadow: 0px 0px 10px 2px #0d9ffb;
  transition: box-shadow 0.2s ease-in-out;
} */

.virtual-keyboard-topbar:hover {
  cursor: move; /* fallback if grab cursor is unsupported */
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
}

.virtual-keyboard-topbar:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

.virtual-keyboard-topbar .virtual-keyboard-topbar-item {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-items: center;
  justify-content: start;
  column-gap: 12px;
}

.virtual-keyboard-topbar-item.end {
  justify-content: end;
}

.virtual-keyboard-inputs-slider-group {
  display: grid;
  grid-auto-flow: column;
  column-gap: 24px;
  height: 100%;
}

.virtual-keyboard-inputs-slider {
  display: grid;
  justify-items: center;
  align-items: center;
  position: relative;
  height: 100%;
}

.virtual-keyboard-inputs-slider-value {
  position: absolute;
  display: grid;
  justify-items: center;
  align-items: center;
  top: 0;
  /* margin-left: auto;
  margin-right: auto; */
  color: lightgray;
  font-size: 18px;
  height: 48px;
  width: 48px;
}

.virtual-keyboard-inputs-slider-value.right {
  right: 0;
}

.virtual-keyboard-inputs-slider-rotate {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 18px;
}

.virtual-keyboard-inputs-slider-direction {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 18px;
}

.slider {
  -webkit-appearance: none;
  /* max-width: 144px;
  width: 100%; */
  width: 168px;
  height: 18px;
/*   height: 24px; */
  background: #3c4043;
  outline: none;
  /* opacity: 0.7; */
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  /* width: 12px; */
  width: 48px;
  height: 48px;
  /* height: 56px; */
/*   height: 84px; */
  background: white;
  cursor: pointer;
  /* border-radius: 12px; */
  border-radius: 24px;
}

.slider::-moz-range-thumb {
  width: 12px;
/*   height: 48px; */
  height: 56px;
/*   height: 84px; */
  background: white;
  cursor: pointer;
  border-radius: 12px;
}

.slider.vertical {
  transform: rotate(-90deg);
}

.slider.vertical.reverse {
  transform: rotate(90deg);
}

.slider.reverse {
  transform: rotate(180deg);
}

.virtual-keyboard-settings-section {
  background: white;
  overflow: auto;
}

.virtual-keyboard-settings {
    display: flex;
    flex-direction: column;
    /* row-gap: 16px; */
    /* height: 100%; */
    width: 100%;
    background: white;
    color: black;
    padding: 0 24px 24px 24px;
    /* overflow: auto; */
    font-size: 16px;
    position: relative;
}

.virtual-keyboard-settings .virtual-keyboard-settings-item {
  display: flex;
  flex-direction: column;
  /* row-gap: 16px; */
  border-bottom: 1px solid lightgray;
}

.virtual-keyboard-settings-item.first {
  border-top: 1px solid lightgray;
}

.virtual-keyboard-settings-item .virtual-keyboard-settings-item-header {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  cursor: pointer;
  justify-content: space-between;
  padding-right: 12px;
  padding-bottom: 16px;
  padding-top: 16px;
}

.virtual-keyboard-settings-item-header .virtual-keyboard-settings-item-header-title {
  display: flex;
  column-gap: 16px;
  align-items: center;
}

.virtual-keyboard-settings-item-header-title .visible {
  color: #0d9ffb
}

.virtual-keyboard-settings-item .virtual-keyboard-settings-item-group {
  display: flex;
  align-items: center;
  column-gap: 12px;
}

.virtual-keyboard-settings-item .virtual-keyboard-settings-item-row {
  display: flex;
  column-gap: 12px;
  align-items: center;
}

.virtual-keyboard-settings-item .virtual-keyboard-settings-item-arrows {
  display: grid;
  column-gap: 12px;
  row-gap: 8px;
  grid-template-columns: max-content max-content max-content max-content;
  align-items: center;
  justify-items: start;
}

.virtual-keyboard-settings-item .virtual-keyboard-settings-item-joystic-range {
  display: grid;
  column-gap: 0;
  row-gap: 0;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-items: center;
  width: fit-content;
}

.virtual-keyboard-settings-item-arrows .group{
  display: flex;
  column-gap: 12px;
  align-items: center;
}

.virtual-keyboard-settings-item .virtual-keyboard-settings-item-body {
  padding-left: 33px;
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  padding-bottom: 16px;
  padding-top: 16px;
}

.virtual-keyboard-settings-item-body .virtual-keyboard-settings-item-body-header {
  font-size: 16px;
  font-weight: bold;
}

.virtual-keyboard-settings-section-name {
  padding-top: 24px;
  padding-bottom: 16px;
}

.virtual-keyboard-settings-section-name.top {
  padding-top: 0;
  /* padding-bottom: 16px; */
}

.virtual-keyboard-settings-item-body.new {
  row-gap: 0px;
}

.virtual-keyboard-settings-item-group input {
  width: 70px;
}

.virtual-keyboard-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  align-items: center;
  justify-items: center;
  background: #202124;
  z-index: 100;
}

/* Styles for the confirmation dialog */
.virtual-keyboard-confirm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 300px;
    padding: 20px;
    text-align: center;
}

.virtual-keyboard-confirm-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.virtual-keyboard-confirm-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.virtual-keyboard-confirm-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.virtual-keyboard-confirm-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.virtual-keyboard-records-slots-dropdown {
  position: absolute;
  top: 55px;
  right: 0;
  width: max-content;
  background-color: white;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 8px;
  row-gap: 4px;
  z-index: 1;
  border: 1px solid gray;
}

.virtual-keyboard-records-slots-dropdown .virtual-keyboard-records-slots-dropdown-row {
  display: flex;
  align-items: center;
  column-gap: 8px;
}

.virtual-keyboard-records-slots-dropdown-row .virtual-keyboard-records-slots-dropdown-row-label {
  font-size: 18px;
  color: #333;
  padding: 0 2px;
  /* width: 20px; */
  font-weight: bold;
}

.virtual-keyboard-records-slots-dropdown-row .virtual-keyboard-records-slots-dropdown-row-time {
  font-size: 16px;
  color: #333;
  width: max-content;
}

/* -- */

@media (orientation: portrait) {
  .orientation-landscape {
    display: none !important;
  }

  .virtual-keyboard-inputs {
    max-width: 100%;
  }
}

@media (orientation: landscape) {
  .orientation-portrait {
    display: none !important;
  }
}


/* --- */

.shared-program {
  width: 100%;
  background: lightyellow;
  padding: 10px;
  margin-bottom: 10px;
}

.responsive-iframe {
  /* position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
  max-width: 640px;
  max-height: 480px; */

  max-width: 640px;
  max-height: 480px;
  aspect-ratio: 4/3;
  width: 100%;
  height: 100%;
}

.iframe-container {
  /* position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 75%; */

  /* position: relative;
  width: 280px;
  height: 210px; */
}

.section .boxes {
  display: flex;
  flex-direction: column;
  row-gap: 48px;
}

#backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  /* padding: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px; */
}


.image-viewer-2 {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: rgba($color: $dark-100, $alpha: 0.4);
    transition: opacity 0.3s ease;
    overflow-y: auto;
    box-sizing: border-box;
}

.image-viewer-2 .modal-content {
    // display: flex;
    // justify-content: center;
    // align-items: center;
    // height: 100vh;
    // width: 100vw;
    position: relative;
    width: 100%;
    height: 100%;
    // transform-origin: 0px 0px;
    // transform: scale(1) translate(0px, 0px);
    // cursor: grab;
}

.image-viewer-2 .modal-content img {
    // max-height: 85vh;
    // max-width: 85vw;

    // width: 100%;
    // height: auto;
    // height: 100%;
}

.image-viewer-2 .modal-content #zoom {
    width: 100%;
    height: 100%;
    transform-origin: 0px 0px;
    transform: scale(1) translate(0px, 0px);
    cursor: zoom-in;
}

.modal-close-button {
    cursor: pointer;
    color: $dark-80;
    background: $dark-20;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    align-items: center;
    align-self: start;
    justify-items: center;
    justify-self: end;

    position: absolute;
    top: 24px;
    right: 24px;

    &:hover {
        color: $dark-100;
    }
}