body {
    margin: 0;
    padding: 0;
    color: #d3d3d3;
    background-color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

#app {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}
#app-loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .95);
    display: flex;
    font-size: 45px;
    justify-content: center;
    align-items: center;
    user-select: none;
}
.loadingIndicator {
    position: fixed;
    top: 0;
    border-radius: 20px;
}
.loadingIndicator img {
    width: 24px;
    height: 24px;
    border-radius: 20px;
    opacity: .8;
}
.controls {

}
.left-panel {
    position: absolute;
    top: 5px;
    left: 5px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, .2);
    border-radius: 10px;
    border: 1px solid #373737;
}
.right-panel {
    position: absolute;
    top: 5px;
    right: 5px;
}
.bottom-left-panel {
    position: absolute;
    bottom: 5px;
    left: 5px;
}
.bottom-left-panel .tab-button {
  display: block;
  border: 1px solid black;
}
.tabs {

}
.tab-item {
    position: relative;
}
.left-panel .tab-item {
    border-bottom: 1px solid #373737;
}
.left-panel .tab-button {
    display: block;
}
.tab-item:last-child {
    border: none;
}
.left-panel .tab-item:first-child > .tab-button {
    border-radius: 10px 10px 0 0;
}
.left-panel .tab-item:last-child > .tab-button {
    border-radius: 0 0 10px 10px;
}
.refresh-buttons {
    display: none;
    position: absolute;
    right: 0px;
    margin-top: 5px;
    text-align: right;
}
.refresh-buttons .tab-item {
  margin-bottom: 5px;
}
.right-panel .tab-button {
    border: 1px solid #373737;
    border-radius: 10px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, .2);
}
.right-panel .tab-button.disabled {
  opacity: .3;
}
.right-panel .tab-button img {
    width: 24px;
}
.tab-button {
    background: rgba(255, 255, 255, .6);
    /* backdrop-filter: blur(5px); */
    color: black;
    font-weight: bold;
    padding: 8px 3px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    display: inline-block;
    min-width: 64px;
    box-sizing: border-box;
}
.tab-button:hover, .tab-button.active {
    background-color: rgb(255, 193, 7, 0.7);
}
.tab-button img {
    width: 24px;
}
.tab-content {
    display: none;
    position: absolute;
    background: white;
    top: 0;
    left: 100%;
    min-width: 150px;
    /* margin-left: 1px; */
    border: 1px solid black;
    border-radius: 0 5px 5px 0;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, .2);
    padding: 10px;
    padding-top: 0;
    cursor: default;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}
.tab-content-wrapper {

}
.tab-control {

}
.tab-control.big-button {
    padding: 5px;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid black;
    border-radius: 5px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, .1);
    background: #FFEB3B;
    font-weight: bold;
    cursor: pointer;
}
.popup-bar {
    position: absolute;
    display: none;
    top: 200px;
    left: 200px;
    background: rgba(255, 255, 255, 0.8);
    padding: 7px;
    border-radius: 5px;
    box-shadow: 0px 0px 11px rgba(0, 0, 0, 0.5);
    translate: -50%;
    text-align: center;
}
.popup-window {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.9);
}
.window-popup-close {
    top: 0;
    right: 0;
    background: red;
    padding: 15px;
    font-size: 36px;
    color: black;
    cursor: default;
}
.popup-window-content {
    display: flex;
    max-width: 75%;
}
.popup-window-content img{
  width: 100%;
}
.popup-control {
    display: inline-block;
    vertical-align: text-top;
    margin: 0 3px;
}
.popup-label {
    color: #333;
    font-size: 13px;
    font-weight: bold;
    vertical-align: sub;
}
.popup-button {
    padding: 3px;
    text-align: baseline;
}
.popup-button:hover {
    background-color: #9E9E9E;
}
.popup-button img {
    width: 18px;
    vertical-align: sub;
}
.popup-num {
    position: relative;
    /* padding-right: 5px; */
}
.popup-num-input {
    padding: 3px;
    width: 42px;
}
.popup-num-btn {
    position: absolute;
    font-size: 10px;
    padding: 0 5px;
    border: none;
    background: white;
    cursor: pointer;
}
.popup-num-btn:hover {
    background: #9E9E9E;
}
.popup-num-up {
    top: 0px;
    right: 0px;
}
.popup-num-down {
    bottom: 0px;
    right: 0px;
}
.popup-button-remove {
    border-radius: 5px;
}
.popup-button-remove:hover {
    background: red;
}
.text-label {
    text-align: left;
    padding: 5px 0 7px;
}
.text-input {
    padding: 5px 5px;
    border: 1px solid #607D8B;
    border-radius: 5px;
    margin-bottom: 5px;
    width: 100%;
    box-sizing: border-box;
}
.combo-input {
    padding: 5px 5px;
    border: 1px solid #607D8B;
    border-radius: 5px;
    margin-bottom: 5px;
    width: 100%;
}
.side-item-list {
    list-style: none;
    padding: 0;
    padding-top: 5px;
    overflow-y: auto;
    height: 100%;
    border-top: 1px solid #aaa;
    display: flex;
    flex-wrap: wrap;
}
.side-item-list li {
    flex: 1 1 33%;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    box-sizing: border-box;
    background: transparent;
}
.side-item-list img {
   width: 100%;
}
.side-item-list li:hover {
    background: #FF5722;
}
.controls-panel {
    position: absolute;
    bottom: 5px;
    right: 5px;
}
.front-dir-control {
    border-radius: 100%;
    background: white;
    padding: 5px 5px 1px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
    user-select: none;
}
.front-dir-img img {
    width: 64px;
    height: 64px;
}
.front-dir-nob {
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -10px;
    background: #ff9800;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    cursor: pointer;
}
.front-dir-text {
    position: absolute;
    bottom: 0;
    left: -116px;
    color: black;
    font-weight: bold;
    user-select: none;
}
.dPad-Wrapper {
    position: fixed;
    left: 10px;
    bottom: 10px;
}
.dPad-Wrapper.pad2 {
    left: auto;
    right: 10px;
}
.set {
  overflow: hidden;
  padding: 0;
  text-align: center;
  border: 1px solid wheat;
  border-radius: 10px;
}
.dPad-Wrapper.pad2 {
    width: 85px;
}
.set .d-pad {
  margin-right: 0;
}
.set .d-pad,
.set .o-pad {
  display: inline-block;
}
.set.setbg {
  background: #222;
}
.set.setbg2 {
  background: #5f9837;
}
.d-pad {
  position: relative;
  width: 150px;
    height: 150px;
  /* border-radius: 48%;
  overflow: hidden; */
}
.d-pad:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 5%;
  transform: translate(-50%, -50%);
  width: 66.6%;
  height: 66.6%;
  /* background: #ddd; */
}
.d-pad:after {
  content: '';
  position: absolute;
  display: none;
  z-index: 2;
  width: 20%;
  height: 20%;
  top: 50%;
  left: 50%;
  background: #ddd;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.25s;
  cursor: pointer;
}
.d-pad:hover:after {
  width: 30%;
  height: 30%;
}
.d-pad div {
  display: block;
  position: absolute;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  outline: none;
  width: 33.3%;
  height: 43%;
  line-height: 40%;
  color: #fff;
  background: #ddd;
  text-align: center;
  box-shadow: 0 0 13px rgba(0, 0, 0, .5);
  user-select: none;
}
.d-pad div:hover {
  background: #eee;
}
.d-pad div:before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 5px;
  border-style: solid;
  transition: all 0.25s;
}
.d-pad div:after {
  content: '';
  position: absolute;
  width: 102%;
  height: 78%;
  /* background: #fff; */
  border-radius: 20%;
}
.d-pad div.left,
.d-pad div.right {
  width: 43%;
  height: 33%;
}
.d-pad div.left:after,
.d-pad div.right:after {
  width: 78%;
  height: 102%;
}
.d-pad div.up {
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  border-radius: 17% 17% 50% 50%;
}
.dPad-Wrapper.pad2 div.up{
    left: 40px;
}
.d-pad div.up:hover {
  background: linear-gradient(0deg, #ddd 0%, #eee 50%);
}
.d-pad div.up:after {
  left: 0;
  top: 0;
  transform: translate(-100%, 0);
  border-top-left-radius: 50%;
  pointer-events: none;
}
.d-pad div.up:before {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-width: 0 13px 19px 13px;
  border-color: transparent transparent #aaa transparent;
}
.d-pad div.up:active:before {
  border-bottom-color: #333;
}
.d-pad div.up:hover:before {
  top: 35%;
}
.d-pad div.down {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  border-radius: 50% 50% 17% 17%;
}
.dPad-Wrapper.pad2 div.down{
    left: 40px;
}
.d-pad div.down:hover {
  background: linear-gradient(180deg, #ddd 0%, #eee 50%);
}
.d-pad div.down:after {
  right: 0;
  bottom: 0;
  transform: translate(100%, 0);
  border-bottom-right-radius: 50%;
  pointer-events: none;
}
.d-pad div.down:before {
  bottom: 40%;
  left: 50%;
  transform: translate(-50%, 50%);
  border-width: 19px 13px 0px 13px;
  border-color: #aaa transparent transparent transparent;
}
.d-pad div.down:active:before {
  border-top-color: #333;
}
.d-pad div.down:hover:before {
  bottom: 35%;
}
.d-pad div.left {
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  border-radius: 17% 50% 50% 17%;
}
.d-pad div.left:hover {
  background: linear-gradient(-90deg, #ddd 0%, #eee 50%);
}
.d-pad div.left:after {
  left: 0;
  bottom: 0;
  transform: translate(0, 100%);
  border-bottom-left-radius: 50%;
  pointer-events: none;
}
.d-pad div.left:before {
  left: 40%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-width: 13px 19px 13px 0;
  border-color: transparent #aaa transparent transparent;
}
.d-pad div.left:active:before {
  border-right-color: #333;
}
.d-pad div.left:hover:before {
  left: 35%;
}
.d-pad div.right {
  top: 50%;
  right: 0;
  transform: translate(0, -50%);
  border-radius: 50% 17% 17% 50%;
}
.d-pad div.right:hover {
  background: linear-gradient(90deg, #ddd 0%, #eee 50%);
}
.d-pad div.right:after {
  right: 0;
  top: 0;
  transform: translate(0, -100%);
  border-top-right-radius: 50%;
  pointer-events: none;
}
.d-pad div.right:before {
  right: 40%;
  top: 50%;
  transform: translate(50%, -50%);
  border-width: 13px 0 13px 19px;
  border-color: transparent transparent transparent #aaa;
}
.d-pad div.right:active:before {
  border-left-color: #333;
}
.d-pad div.right:hover:before {
  right: 35%;
}
.d-pad.up a.up:before {
  border-bottom-color: #333;
}
.d-pad.down a.down:before {
  border-top-color: #333;
}
.d-pad.left a.left:before {
  border-right-color: #333;
}
.d-pad.right a.right:before {
  border-left-color: #333;
}
