.number-input {
  pointer-events: auto;
  background-color: var(--theme-bg);
  color: var(--theme-fg);
  min-height: 0em;
}
.number-input .label {
  display: inline-block;
  width: 1em;
  padding: 0 0.5em;
  color: var(--theme-fg-light);
}
.number-input input {
  height: 100%;
  line-height: 100%;
  width: calc(100% - 2em);
  background-color: inherit;
  color: #adadad;
  -moz-appearance: textfield;
}
.number-input input::-webkit-inner-spin-button,
.number-input input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.position-input {
  background-color: #1a0e1a !important;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  color: #aaa;
  outline: 2px solid rgba(255, 80, 232, 0.88);
  outline-offset: -2px;
  padding: 4px;
  text-shadow: 2px 2px 0 #aaaaaa33;
  z-index: 15;
  min-width: 1.5em !important;
  min-height: 1.8em !important;
  margin-top: 4px;

  display: flex;
  user-select: none;
}
.position-input > * {
  width: 100%;
}
.position-input > *:not(:first-child) {
  border-left: solid 1px var(--theme-bg-light);
}
.svg-button {
  z-index: 999;
  background-color: #1a0e1a;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  color: #aaa;
  outline: 2px solid rgba(67, 13, 163, 0.88);
  outline-offset: -2px;
  padding: 7px;
  text-shadow: 2px 2px 0 #aaaaaa33;
  z-index: 15;
  min-width: 2em;
  min-height: 2em;
  position: relative;
  pointer-events: auto;
  overflow: hidden;
  cursor: pointer;
}
.svg-button:hover {
  outline: 2px solid rgba(255, 80, 232, 0.88);
}
.svg-button > svg:hover {
  fill: #e748d2 !important;
}
.svg-button.active {
}
.svg-button:active {
  background-color: var(--theme-fg-light);
  color: var(--theme-bg);
}
.svg-button svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 1.8em;
  fill: var(--theme-fg-light);
}
.svg-button:active svg {
  fill: var(--theme-bg-light);
}
.compass {
  background-image: url(./icons/icoCompass.svg);
  background-position: center;
  background-size: 2.2em 2.2em, contain;
  background-repeat: no-repeat;
}

.compass svg {
  height: 1.8em;
  width: 1em;
}
.compass svg .north {
  fill: #aa0000;
}
.compass svg .south {
  fill: var(--theme-fg-light);
}
.compass:active svg .north {
  fill: var(--theme-bg);
}
.compass:active svg .south {
  fill: var(--theme-bg-light);
}
.day-night-switch {
  background-image: url(./icons/Invicon_Clock.svg);
  background-position: center;
  background-size: 2.2em 2.2em, contain;
  background-repeat: no-repeat;
}
#app > div.control-bar > div.svg-button.active {
  background-image: url(./icons/icoClockNight.svg);
  background-position: center;
  background-size: 2.2em 2.2em, contain;
  background-repeat: no-repeat;
}
.day-night-switch svg {
  fill: var(--theme-moon-day);
  display: none;
}
.day-night-switch svg circle {
  fill: var(--theme-stars-day);
}
.day-night-switch:active svg {
  fill: var(--theme-moon-night);
}
.day-night-switch:active svg circle {
  fill: var(--theme-stars-night);
}
.controls-switch {
  display: flex;
  gap: 0.5em;
  position: fixed;
  margin-top: 7rem;
  right: -3.3rem;
  rotate: 90deg;
}
.controls-switch > .svg-button {
  outline: 2px solid rgba(160, 159, 160, 0.88);
  rotate: -90deg;
}
.controls-switch > .svg-button:hover {
  outline: 2px solid rgba(240, 240, 240, 0.88);
  rotate: -90deg;
}
.menu-button svg g {
  transform-origin: center;
  transition: transform 0.3s;
}
.menu-button svg path {
  transition: transform 0.3s, fill 0.3s;
  transform: translate(0) rotate(0);
}
.menu-button svg path:nth-child(1) {
  transform-origin: 15px 9px;
}
.menu-button svg path:nth-child(2) {
  transform-origin: 15px 15px;
}
.menu-button svg path:nth-child(3) {
  transform-origin: 15px 21px;
}
.menu-button.close svg path:nth-child(1) {
  transform: translateY(5.75px) rotate(45deg);
}
.menu-button.close svg path:nth-child(2) {
  transform: translate(-100%) rotate(0);
}
.menu-button.close svg path:nth-child(3) {
  transform: translateY(-5.75px) rotate(-45deg);
}
.menu-button.close.back svg g {
  transform: scale(0.75);
}
.menu-button.close.back svg path:nth-child(1) {
  transform: translateY(10px) rotate(30deg);
}
.menu-button.close.back svg path:nth-child(2) {
  transform: translate(-150%) rotate(0);
}
.menu-button.close.back svg path:nth-child(3) {
  transform: translateY(-10px) rotate(-30deg);
}
.control-bar {
  margin-top: 1em;
  margin-left: 1em;
  width: calc(100% - 2em);

  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.53));
  height: 2em;
}
.control-bar:after {
  content: url(./icons/logo.webp);
  margin-top: 6em; /* Default margin-top for larger screens */

  /* Fixed position centering */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.control-bar .pos-input {
  max-width: 20em;
  margin-top: 0.5em;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}
.control-bar > :not(:first-child) {
  border-left: solid 1px var(--theme-bg-light);
}
.control-bar .space {
  width: 0.5em;
  flex-shrink: 0;
}
.control-bar .space.greedy {
  flex-grow: 1;
}
.control-bar .space,
.control-bar .space + * {
  border-left: none;
}
@media (max-width: 575.98px) {
  .control-bar {
    margin: 0;
    width: 100%;
    background-color: var(--theme-bg);
  }
  .control-bar .pos-input {
    max-width: unset;
  }
  .control-bar .thin-hide {
    display: none;
  }
  .control-bar .space {
    width: 1px;
  }
}
.side-menu {
  height: -webkit-fill-available;
  margin-left: 1em;
  margin-top: 1em;
  margin-bottom: 1em;
  background-color: #1a0e1a;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  color: #aaa;
  outline: 2px solid rgba(67, 13, 163, 0.88);
  outline-offset: -2px;
  padding: 7px;
  z-index: 15;
  max-width: 22em;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: auto;
  width: 100%;
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.5333333333));
}
.side-menu-enter-active,
.side-menu-leave-active {
  transition: opacity 0.3s;
}
.side-menu-enter,
.side-menu-leave-to {
  opacity: 0;
  pointer-events: none;
}
.side-menu-enter *,
.side-menu-leave-to * {
  pointer-events: none !important;
}
.side-menu > .menu-button {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0.5em;
}
@media (max-width: 575.98px) {
  .side-menu > .menu-button {
    margin: 0;
  }
}
.side-menu > .menu-button.full-close {
  right: 0;
  left: unset;
}
.side-menu > .title {
  font-family: Primary Font;
  line-height: 2em;
  font-size: x-large;
  color: #e348cf;
  border-bottom: solid 1px rgba(67, 13, 163, 0.88);
  text-align: center;
  background-color: inherit;
  padding: 0.5em;
}
@media (max-width: 575.98px) {
  .side-menu > .title {
    padding: 0;
  }
}
.side-menu > .content {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5em;
  height: calc(100% - 4em - 1px);
}
@media (max-width: 575.98px) {
  .side-menu > .content {
    height: calc(100% - 3em - 1px);
  }
}
.side-menu > .content hr {
  border: none;
  border-bottom: solid 2px var(--theme-bg-hover);
  margin: 0.5em 0;
}
.side-menu .simple-button {
  cursor: pointer;
  user-select: none;
  display: flex;
  line-height: 2em;
  padding: 0 0.5em;
}
.side-menu .simple-button > .label {
  flex-grow: 1;
  white-space: nowrap;
  overflow-x: hidden;
  text-overflow: ellipsis;
}
.side-menu .simple-button:hover {
  background-color: transparent;
  color: #ff50e8;
}
.side-menu .simple-button.active {
  background-color: transparent;
  color: #55ff55;
}
.side-menu .simple-button > .submenu-icon {
  width: 2em;
  height: 2em;
  flex-shrink: 0;
  margin-right: -0.5em;
}
.side-menu .simple-button > .submenu-icon > svg {
  fill: var(--theme-fg-light);
  transform: scale(0.75);
}
.side-menu .simple-button > .submenu-icon > svg path:nth-child(1) {
  transform-origin: 15px 9px;
  transform: translateY(10px) rotate(-30deg);
}
.side-menu .simple-button > .submenu-icon > svg path:nth-child(2) {
  transform-origin: 15px 21px;
  transform: translateY(-10px) rotate(30deg);
}
.side-menu .simple-button:active {
  background-color: transparent;
  color: #ff50e8;
}
.side-menu .simple-button:active > .submenu-icon > svg {
  fill: var(--theme-bg-light);
}
.side-menu .group {
  border: dashed 2px #3e0d92ab;
  position: relative;
  margin: 2em 0 1em;
  padding-top: 1em;
}
.side-menu .group > .title {
  color: #e748d2;
  position: absolute;
  top: calc(-0.5em - 1px);
  right: 0.5em;
  padding: 0 0.5em;
  background-color: var(--theme-bg);
}
.side-menu .group:first-child {
  margin-top: 1em;
}
.side-menu .group > .content {
  max-height: 15em;
  overflow-y: auto;
}
.side-menu .slider {
  line-height: 2em;
  padding: 0 0.5em;
}
.side-menu .slider:hover {
  background-color: var(--theme-bg-hover);
}
.side-menu .slider > .label > .value {
  float: right;
}
.side-menu .slider > label > input {
  overflow: visible !important;
  opacity: 1;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  outline: none;
  width: 100%;
  height: 1em;
  outline: none !important;
  border: solid 2px rgba(172, 172, 172, 0.438) !important;
  background-color: #424242;
  border-radius: 0px;
}
.side-menu .slider > label > input::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  margin-top: 0px; /* Centers thumb on the track */
  height: 2rem;
  width: 1rem;
  background-color: #424242;
  border-radius: 0px;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  outline: 2px solid rgba(88, 88, 88, 0.88);
  border: 2px solid rgba(172, 172, 172, 0.88);
  outline-offset: -2px;
}
.side-menu .slider > label > input::-moz-range-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  margin-top: 0px; /* Centers thumb on the track */
  height: 2rem;
  width: 1rem;
  background-color: #424242;
  border-radius: 0px;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  outline: 2px solid rgba(88, 88, 88, 0.88);
  border: 2px solid rgba(172, 172, 172, 0.88);
  outline-offset: -2px;
}
.side-menu .switch {
  background-color: #ff5555;
  border-radius: 5px;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  outline: 2px solid rgba(172, 172, 172, 0.88);
  outline-offset: -2px;
  padding: 4px;
  text-shadow: 2px 2px 0 #aaaaaa33;
  height: 1em;
  width: 2em;
  transition: background-color 0.3s;
}
.side-menu .switch:after {
  background-color: #424242 !important;
  border-radius: 0px !important;
  width: 0.7rem !important;
  height: 25px !important;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  outline: 2px solid rgba(88, 88, 88, 0.88);
  border: 2px solid rgba(172, 172, 172, 0.88);
  outline-offset: -2px;
  left: -0.5em;
  top: -6px;
  content: "";
  display: block;
  position: relative;
  transition: left 0.3s;
}
.side-menu .switch.on {
  background-color: #55ff55;
}
.side-menu .switch.on:after {
  left: 1.5em;
  top: -6px;
}
.side-menu .switch-button {
  cursor: pointer;
  user-select: none;
  display: flex;
  line-height: 2em;
  padding: 0 0.5em;
}
.side-menu .switch-button > .label {
  flex-grow: 1;
  white-space: nowrap;
  overflow-x: hidden;
  text-overflow: ellipsis;
}
.side-menu .switch-button > .switch {
  margin: 0.5em 0;
}
.side-menu .switch-button:hover {
  background-color: var(--theme-bg-hover);
}
.side-menu .marker-item {
  filter: contrast(100%) brightness(100%);
  background: linear-gradient(90deg, rgba(62, 13, 146, 1), rgba(0, 0, 0, 0)),
    url(/👆/that/noise.svg);
  border-radius: 5px;
  display: flex;
  white-space: nowrap;
  user-select: none;
  line-height: 1em;
  margin: 0.5em 0;
}
.side-menu .marker-item:hover {
  background-color: transparent;
  filter: contrast(100%) brightness(100%);
  background: linear-gradient(90deg, rgba(255, 80, 232, 0.88), rgba(0, 0, 0, 0)),
    url(/👆/that/noise.svg);
  border-radius: 5px;
}
.side-menu .marker-item:first-child {
  margin-top: 0;
}
.side-menu .marker-item:last-child {
  margin-bottom: 0;
}
.side-menu .marker-item.marker-hidden {
  opacity: 0.5;
  filter: grayscale(1);
}
.side-menu .marker-item .marker-button {
  display: flex;
  flex-grow: 1;
  cursor: pointer;
}
.side-menu .marker-item .marker-button:hover {
  background-color: transparent;
}
.marker-button > .info > .label {
  color: #55ff55;
}
.side-menu .marker-item .marker-button > .info {
  flex-grow: 1;
  text-overflow: ellipsis;
  padding: 0.5em;
}
.side-menu .marker-item .marker-button > .info:hover {
  pointer-events: none;
  background-color: transparent;
}
.side-menu .marker-item .marker-button > .info .label {
  text-overflow: ellipsis;
}
.side-menu .marker-item .marker-button > .info .stats {
  display: flex;
  font-size: 0.8em;
  color: var(--theme-fg-light);
}
.side-menu .marker-item .marker-button > .info .stats > div:not(:first-child) {
  margin-left: 0.5em;
  padding-left: 0.5em;
  border-left: solid 1px var(--theme-bg-hover);
}
.side-menu .marker-item .marker-button > .icon {
  height: 2.5em;
  margin: 0.5em;
  flex-shrink: 0;
}
.side-menu .marker-item .marker-button > .icon img {
  image-rendering: pixelated;
  height: 100%;
}
.side-menu .marker-item > .follow-player-button {
  width: 2em;
  cursor: pointer;
  background-color: var(--theme-bg);
}
.side-menu .marker-item > .follow-player-button:hover,
.side-menu .marker-item > .follow-player-button.active {
  background-color: transparent;
}
.side-menu .marker-item > .follow-player-button.active > svg {
  fill: #55ff55;
}
.side-menu .marker-item > .follow-player-button > svg {
  position: relative;
  fill: var(--theme-fg-light);
  stroke: var(--theme-fg-light);
  top: 50%;
  transform: translateY(-50%) scale(0.75);
}
.side-menu .marker-item > .follow-player-button > svg:hover {
  fill: #55ff55;
}
.side-menu .marker-item > .follow-player-button:active {
  background-color: var(--theme-fg-light);
  color: var(--theme-bg);
}
.side-menu .marker-item > .follow-player-button:active > svg {
  fill: var(--theme-bg-light);
  stroke: var(--theme-bg-light);
}
.text-input {
  background-color: #1a0e1a;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  outline: 2px solid rgba(67, 13, 163, 0.88);
  outline-offset: -2px;
  padding: 4px;
  color: #55ff55;
  z-index: 15;
  min-width: 1.5em;
  min-height: 1.5em;
  margin-top: 3px;
}
.text-input:focus {
  outline: 2px solid rgba(255, 80, 232, 0.88);
}
.text-input:hover {
  outline: 2px solid rgba(255, 80, 232, 0.88);
}
.side-menu .text-input {
  width: calc(100% - 1em);
  padding: 0.5em;
}
.side-menu .marker-set {
  display: flex;
  user-select: none;
  line-height: 1em;
  margin: 0.5em 0;
}
.side-menu .marker-set:first-child {
  margin-top: 0;
}
.side-menu .marker-set:last-child {
  margin-bottom: 0;
}
.side-menu .marker-set > .info {
  flex-grow: 1;
  cursor: pointer;
  padding: 0.5em;
}
.side-menu .marker-set > .info:hover {
  background-color: var(--theme-bg-hover);
}
.side-menu .marker-set > .info > .marker-set-switch {
  position: relative;
}
.side-menu .marker-set > .info > .marker-set-switch .label {
  margin: 0 2.5em 0 0;
}
.side-menu .marker-set > .info > .marker-set-switch > .switch {
  position: absolute;
  top: 0;
  right: 0;
}
.side-menu .marker-set > .info > .stats {
  color: #f9a601;
  display: flex;
  font-size: 0.8em;
  color: var(--theme-fg-light);
}
.side-menu .marker-set > .info > .stats > div:not(:first-child) {
  margin-left: 0.5em;
  padding-left: 0.5em;
  border-left: solid 1px var(--theme-bg-light);
}
.side-menu .marker-set > .open-menu-button {
  width: 2em;
}
.side-menu .marker-set > .open-menu-button.active {
  cursor: pointer;
}
.side-menu .marker-set > .open-menu-button.active:hover {
  background-color: var(--theme-bg-hover);
}
.side-menu .marker-set > .open-menu-button.active > svg {
  position: relative;
  fill: var(--theme-fg-light);
  top: 50%;
  transform: translateY(-50%) scale(0.75);
}
.side-menu .marker-set > .open-menu-button.active > svg path:nth-child(1) {
  transform-origin: 15px 9px;
  transform: translateY(10px) rotate(-30deg);
}
.side-menu .marker-set > .open-menu-button.active > svg path:nth-child(2) {
  transform-origin: 15px 21px;
  transform: translateY(-10px) rotate(30deg);
}
.side-menu .marker-set > .open-menu-button.active:active {
  background-color: var(--theme-fg-light);
  color: var(--theme-bg);
}
.side-menu .marker-set > .open-menu-button.active:active > svg {
  fill: var(--theme-bg-light);
}
.side-menu .marker-set > .open-menu-button:not(.active) svg {
  display: none;
}
.choice {
  color: #a09fa0;
}
.choice:hover {
  color: #e748d2;
  background-color: transparent;
}
.choice-box {
  display: flex;
  font-size: 0.8em;
  text-align: center;
  border: solid 2px var(--theme-bg-hover);
  overflow: hidden;
}
.choice-box .title,
.choice-box .choice {
  padding: 0.3em 0.5em;
}
.choice-box .title {
  color: #f9a601;
  background-color: rgba(67, 13, 163, 0.88);
}
.choice-box .choices {
  display: flex;
  flex-grow: 1;
}
.choice-box .choices .choice {
  flex-grow: 1;
  cursor: pointer;
  user-select: none;
  background-color: var(--theme-bg);
}
.choice-box .choices .choice.selected {
  color: #e748d2;
  background-color: transparent;
}
.map-button .selected > .sky {
  color: #55ff55;
}
.side-menu .map-button {
  position: relative;
  cursor: pointer;
  user-select: none;
  height: 2em;
  line-height: 2em;
  white-space: nowrap;
  overflow-x: hidden;
  text-overflow: ellipsis;
}
.side-menu .map-button.selected {
  border: dashed 2px #e748d2;
  background-color: transparent;
  color: #55ff55;
}
.side-menu .map-button:hover {
  background-color: var(--theme-bg-hover);
}
.side-menu .map-button .sky {
  float: left;
  border-radius: 100%;
  width: 0.5em;
  height: 0.5em;
  margin: 0 0.25em 0 0.5em;
}
.side-menu .map-button .id {
  font-style: italic;
  color: var(--theme-fg-light);
  margin: 0 0.5em;
}
.info-content {
  font-size: 0.8em;
}
.info-content table {
  border-collapse: collapse;
  width: 100%;
}
.info-content table tr th,
.info-content table tr td {
  padding: 0.2em 0.5em;
  border: solid 1px var(--theme-bg-light);
}
.info-content table tr th {
  font-weight: inherit;
  text-align: inherit;
}
.info-content .info-footer {
  text-align: center;
}
.info-content:after {
  content: url(./icons/icoDevPix.png);
  margin-left: 6%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.info-footer:after {
  content: url(./icons/icoDevUi.png);
  margin-left: -6%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#ff-mobile-controls {
  font-size: 15vw;
}
#ff-mobile-controls.disabled {
  display: none;
}
@media (orientation: portrait) {
  #ff-mobile-controls {
    font-size: 15vh;
  }
}
#ff-mobile-controls .button {
  width: 1em;
  margin: 0.1em;
  opacity: 0.5;
  pointer-events: auto;
}
#ff-mobile-controls .button svg {
  fill: var(--theme-bg);
}
#ff-mobile-controls .button svg:active {
  fill: var(--theme-bg-light);
  opacity: 0.8;
}
#ff-mobile-controls .button svg.down {
  transform: scaleY(-1);
}
#ff-mobile-controls .move-fields {
  position: fixed;
  bottom: 0.2em;
  left: 0.2em;
}
#ff-mobile-controls .height-fields {
  position: fixed;
  bottom: 0.2em;
  right: 0.2em;
}
#zoom-buttons {
  padding-left: 0.5em;
  padding-bottom: 0.5em;
  left: 0px;
  gap: 10px;
  position: fixed;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.53));
  width: 2em;
  margin: 0.5em;
}
#zoom-buttons > div:nth-of-type(1) {
  background-image: url(./icons/icoZoomIn.svg);
  background-position: center;
  background-size: 2.5em 2.5em, contain;
  background-repeat: no-repeat;
}
#zoom-buttons > div:first-of-type svg {
  display: none;
}

#zoom-buttons > div:nth-of-type(2) {
  background-image: url(./icons/icoZoomOut.svg);
  background-position: center;
  background-size: 2.5em 2.5em, contain;
  background-repeat: no-repeat;
}
#zoom-buttons > div:nth-of-type(2) svg {
  display: none;
}

@font-face {
  font-family: "Primary Font";
  src: url("./fonts/primary-font.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Secondary Font";
  src: url("./fonts/secondary-font.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tertiary Font";
  src: url("./fonts/tertiary-font.woff") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  line-height: 1rem;
  font-family: Tertiary Font;
  font-size: 16px;
  font-weight: 400;
  --theme-bg: #ffffff00;
  --theme-bg-hover: #222;
  --theme-bg-light: #e748d2;
  --theme-fg: #a09fa0;
  --theme-fg-light: #a09fa0;
  --theme-switch-button-on: #00489d;
  --theme-stars-day: #fff;
  --theme-moon-day: #ff0;
  --theme-stars-night: #444;
  --theme-moon-night: #000;
}
:root .theme-light {
  font-family: Tertiary Font;
  font-size: 16px;
  font-weight: 500;
  --theme-bg: #eee;
  --theme-bg-hover: #ddd;
  --theme-bg-light: #999;
  --theme-fg: #000;
  --theme-fg-light: #333;
  --theme-switch-button-on: #6593dc;
  --theme-stars-day: #444;
  --theme-moon-day: #000;
  --theme-stars-night: #fff;
  --theme-moon-night: #ff0;
}
:root .theme-contrast {
  font-family: Tertiary Font;
  font-size: 16px;
  font-weight: 400;
  --theme-bg: #000;
  --theme-bg-hover: #222;
  --theme-bg-light: #666;
  --theme-fg: #fff;
  --theme-fg-light: #aaa;
  --theme-switch-button-on: #006fff;
  --theme-stars-day: #fff;
  --theme-moon-day: #ff0;
  --theme-stars-night: #444;
  --theme-moon-night: #000;
}
@media (prefers-color-scheme: light) {
  :root {
    font-family: Tertiary Font;
    font-size: 16px;
    font-weight: 500;
    --theme-bg: #eee;
    --theme-bg-hover: #ddd;
    --theme-bg-light: #999;
    --theme-fg: #000;
    --theme-fg-light: #333;
    --theme-switch-button-on: #6593dc;
    --theme-stars-day: #444;
    --theme-moon-day: #000;
    --theme-stars-night: #fff;
    --theme-moon-night: #ff0;
  }
  :root .theme-dark {
    font-family: Tertiary Font;
    font-size: 16px;
    font-weight: 400;
    --theme-bg: #181818;
    --theme-bg-hover: #222;
    --theme-bg-light: #444;
    --theme-fg: #fff;
    --theme-fg-light: #aaa;
    --theme-switch-button-on: #00489d;
    --theme-stars-day: #fff;
    --theme-moon-day: #ff0;
    --theme-stars-night: #444;
    --theme-moon-night: #000;
  }
}
body {
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
  overflow: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
  text-align: left;
  margin: 1em 0 0.5em;
  padding: 0;
}
h1,
h2 {
  position: relative;
  font-size: 1.2em;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0.5em;
  padding-bottom: 0.5em;
  width: calc(100% - 0.5em);
  overflow: hidden;
}
h1:after,
h2:after {
  position: absolute;
  left: 0;
  bottom: 0;
  content: "";
  width: 100%;
  height: 1px;
  background-color: var(--theme-bg-light);
}
h1 {
  width: 100%;
  text-align: center;
  padding-left: 0;
}
p {
  margin: 0.5em;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: underline;
}
kbd {
  color: #1a0e1a;
  font-weight: bold;
  background-color: var(--theme-bg-light);
  border-radius: 0.2em;
  margin: 0;
  padding: 0 0.2em;
}
input {
  display: inline-block;
  box-sizing: content-box;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}
::-webkit-scrollbar {
  width: 0.5em;
}
::-webkit-scrollbar-track {
  background: var(--theme-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--theme-bg-light);
  border-radius: 0.5em;
  border: solid var(--theme-bg) 0.1em;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--theme-fg-light);
}
#bm-app-err {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: var(--theme-bg);
  color: var(--theme-fg);
}
#bm-app-err > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
#bm-app-err > div img {
  max-width: 10em;
  min-width: 5em;
  width: 90%;
  border-radius: 50%;
  margin: 0 0 3em;
}
#bm-app-err > div .bm-app-err-hint {
  color: var(--theme-fg-light);
}
#map-container .bm-marker-html {
  position: relative;
  user-select: none;
}
#map-container .bm-marker-html .bm-marker-poi-label {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
#map-container .bm-marker-html .bm-marker-poi-icon {
  opacity: 1;
  transition: opacity 0.3s;
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.5333333333));
}
#map-container .bm-marker-html.bm-marker-highlight .bm-marker-poi-label {
  opacity: 1;
}
#map-container .bm-marker-html.bm-marker-highlight .bm-marker-poi-icon {
  opacity: 0;
}
#map-container .bm-marker-html .bm-marker-poi-label,
#map-container .bm-marker-labelpopup,
#map-container .bm-marker-popup {
  z-index: 999;
  background-color: #1a0e1a;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  color: #aaa;
  outline: 2px solid rgba(67, 13, 163, 0.88);
  outline-offset: -2px;
  padding: 7px;
  text-shadow: 2px 2px 0 #aaaaaa33;
  z-index: 15;
  min-width: 1.5em;
  min-height: 1.5em;
  color: #55ff55;
  transform: translate(-50%, -100%) translateY(-0.5em);
  max-width: 15em;
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.5333333333));
}
#map-container .bm-marker-html .bm-marker-poi-label > hr,
#map-container .bm-marker-labelpopup > hr,
#map-container .bm-marker-popup > hr {
  border: none;
  border-bottom: solid 1px var(--theme-bg-light);
  margin: 0.5em -0.5em;
}
#map-container .bm-marker-html .bm-marker-poi-label:after,
#map-container .bm-marker-labelpopup:after,
#map-container .bm-marker-popup:after {
  position: absolute;
  bottom: calc(-1em + 1px);
  left: 50%;
  transform: translate(-50%);
  content: "";
  border: solid 0.5em transparent;
  border-top-color: var(--theme-bg);
}
#map-container .bm-marker-popup {
  line-height: 1.2em;
}
#map-container .bm-marker-popup .group > .label {
  position: relative;
  top: 0;
  left: 0.5em;
  margin: 0 0.5em;
  font-size: 0.8em;
  color: var(--theme-fg-light);
}
#map-container .bm-marker-popup .group > .content {
  display: flex;
  justify-content: center;
}
#map-container .bm-marker-popup .group > .content > .entry {
  margin: 0 0.5em;
}
#map-container .bm-marker-popup .group > .content > .entry > .label {
  color: var(--theme-fg-light);
}
#map-container .bm-marker-popup .files {
  font-size: 0.8em;
  color: var(--theme-fg-light);
}
#map-container .bm-marker-player {
  position: relative;
  transform: translate(-50%, -50%);
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.5333333333));
}
#map-container .bm-marker-player img {
  width: 32px;
  image-rendering: pixelated;
  transition: width 0.3s;
  position: absolute;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
#map-container .bm-marker-player .bm-player-name {
  position: absolute;
  top: 1.5em;
  left: 50%;
  transform: translate(-50%, -100%);
  padding: 0.25em;
  background-color: rgba(255, 0, 0, 0);
  color: #fff;
  transition: opacity 0.3s;
}
#map-container .bm-marker-player[distance-data="near"] {
  position: fixed;
  background-size: 14em 13em;
  background-repeat: no-repeat;
  width: 10em;
  height: 10em;
  background-position: center;
}
#map-container .bm-marker-player[distance-data="med"] {
  position: fixed;
  background-size: 7em 6em;
  background-repeat: no-repeat;
  width: 10em;
  height: 10em;
  background-position: center;
}
#map-container .bm-marker-player[distance-data="far"] {
  position: fixed;
  background-size: 5em 4em;
  background-repeat: no-repeat;
  width: 10em;
  height: 10em;
  background-position: center;
}
#map-container .bm-marker-player[distance-data="med"] img,
#map-container .bm-marker-player[distance-data="far"] img {
  width: 16px;
}
#map-container .bm-marker-player[distance-data="med"] .bm-player-name,
#map-container .bm-marker-player[distance-data="far"] .bm-player-name {
  opacity: 0;
}
#map-container {
  position: absolute;
  width: 100%;
  height: 100%;
}
#app {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
  font-size: 1rem;

  -webkit-box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}
@media (max-width: 575.98px) {
  #app {
    font-size: 1.5rem;
  }
}
#app .map-state-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--theme-fg-light);
  line-height: 1em;
  text-align: center;
}

[title^="Map-List"] {
  gap: 3px;
  position: fixed;
  margin-top: 3.5rem;
  left: 0rem;
}

[title^="Player-List"] {
  gap: 3px;
  position: fixed;
  margin-top: 0rem;
  left: 3.5rem;
}

[title^="Reset Camera & Position"] {
  background-image: url(./icons/icoRefresh.svg);
  background-position: center;
  background-size: 1.7em 1.7em, contain;
  background-repeat: no-repeat;
  left: -0.7em !important;
}
[title^="Reset Camera & Position"] svg {
  display: none;
}

[title^="Player-List"] {
  background-image: url(./icons/icoPlayers3.webp);
  background-position: center;
  background-size: 1.7em 1.7em, contain;
  background-repeat: no-repeat;
}
[title^="Player-List"] svg {
  display: none;
}

[title^="Perspective-View"] {
  background-image: url(./icons/icoPerspective.svg);
  background-position: center;
  background-size: 1.7em 1.7em, contain;
  background-repeat: no-repeat;
}
[title^="Perspective-View"] svg {
  display: none;
}

[title^="Orthographic / Flat-View"] {
  background-image: url(./icons/icoOrthographic.svg);
  background-position: center;
  background-size: 1.5em 1.5em, contain;
  background-repeat: no-repeat;
}
[title^="Orthographic / Flat-View"] svg {
  display: none;
}

[title^="Free-Flight / Spectator Mode"] {
  background-image: url(./icons/icoFirstPerson.svg);
  background-position: center;
  background-size: 1.7em 1.7em, contain;
  background-repeat: no-repeat;
}
[title^="Free-Flight / Spectator Mode"] svg {
  display: none;
}
[title^="Map-List"] {
  background-image: url(./icons/icoMap.svg);
  background-position: center;
  background-size: 2.2em 2.2em, contain;
  background-repeat: no-repeat;
}

[title^="Map-List"] svg {
  display: none;
}

[title^="Day/Night"] {
  background-image: url(./icons/icoClockDay.svg);
  background-position: center;
  background-size: 2.2em 2.2em, contain;
  background-repeat: no-repeat;
  left: -0.5em !important;
}

@media (max-width: 720px) {
    kbd, h1, h2 {
        font-size: medium;
    }
  .control-bar {
    justify-content: space-between;
    display: flex;
    margin-top: 0em !important;
    margin-left: 0em !important;
    width: 100% !important;
    height: 100%;
  }
  .control-bar .pos-input {
    top: revert !important;
    bottom: 0% !important;
    max-width: 15em !important;
    width: 100% !important;
    transform: translate(-50%, 0%) !important;
  }
  #zoom-buttons {
    display: none !important;
  }
  .compass {
    display: none !important;
  }
  .side-menu {
    margin: 0em !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0px !important;
  }
  .side-menu > .title {
    font-family: Primary Font;
    line-height: 2em;
    font-size: large;
    color: #e348cf;
    border-bottom: solid 1px rgba(67, 13, 163, 0.88);
    text-align: center;
    background-color: inherit;
    padding: 0.5em;
  }

  .side-menu .group > .title {
    font-size: medium;
  }
  .label {
    font-size: medium !important;
  }
  .side-menu .simple-button > .submenu-icon {
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
    margin-right: 0em;
  }
  .svg-button svg {
    height: 1em !important;
    min-width: 1.5em !important;
    min-height: 1.5em !important;
  }
  .svg-button {
    min-width: 1.5em !important;
    min-height: 1.5em !important;
    max-width: 1.5em !important;
    max-height: 1.5em !important;
  }
  .control-bar:after {
    top: -6% !important;
    zoom: 70%;
  }
  .number-input input {
    font-size: medium !important;
  }
  .position-input {
    padding: 0px !important;
  }
  .day-night-switch {
    display: block !important;
  }
  [title^="Day/Night"] {
    left: 0em !important;
    background-size: 1.7em 1.7em, contain;
  }
  #app > div.control-bar > div.svg-button.active {
    background-size: 1.7em 1.7em, contain;
  }
  .side-menu .switch:after {
    height: 33px !important;
  }
}


svg {
pointer-events: none;
}



.icoDiscord {
  right: 0px;
  position: fixed;
  width: 2em;
  height: 2em;
  bottom: 3.5em;
  margin: 0.5em;

  background-color: #1a0e1a !important;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  color: #aaa;
  outline: 2px solid rgba(67, 13, 163, 0.88);
  outline-offset: -2px;
  padding: 7px;
  text-shadow: 2px 2px 0 #aaaaaa33;
  z-index: 15;

  background-image: url(./icons/cpyButtons/icoDiscord.png);
  background-position: center;
  background-size: 2.5em 2.5em, contain;
  background-repeat: no-repeat;
}

.icoServer {
  right: 0px;
  position: fixed;
  width: 2em;
  height: 2em;
  bottom: 0px;
  margin: 0.5em;

  background-color: #1a0e1a !important;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  color: #aaa;
  outline: 2px solid rgba(67, 13, 163, 0.88);
  outline-offset: -2px;
  padding: 7px;
  text-shadow: 2px 2px 0 #aaaaaa33;
  z-index: 15;

  background-image: url(./icons/cpyButtons/icoServer.png);
  background-position: center;
  background-size: 2.5em 2.5em, contain;
  background-repeat: no-repeat;
}

.icoworldloc {
  position: fixed;
  bottom: 6px;
  right: 3.5em;
  margin: 0.5em;

  background-color: #1a0e1a !important;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  color: #aaa;
  outline: 2px solid rgba(255, 80, 232, 0.88);
  outline-offset: -2px;
  padding: 4px;
  text-shadow: 2px 2px 0 #aaaaaa33;
  z-index: 14;
  min-width: 1.5em !important;
  min-height: 1.5em !important;
  margin-top: 3px;
}

.icoworldloc button {
  position: relative;
  top: 2px;
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding-left: 0.5em;
  padding-right: 0.5em;
}

.icoworldloc button:hover {
  color: #55ff55 !important;
}

.copy-notification.server-notification {
  bottom: 1em;
  right: 3.2em;
  margin: 0.5em;
  rotate: -12deg;

  color: #ffffff;
  padding: 20px;
  position: fixed;
  width: 150px;
  display: none;
  text-align: center;

  background-color: #1a0e1a !important;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  color: #55ff55 !important;
  outline: 2px solid #55ff55;
  outline-offset: -2px;
  padding: 7px;
  text-shadow: 2px 2px 0 #aaaaaa33;
  z-index: 15;
}

.copy-notification.discord-notification {
  bottom: 4em;
  right: 3.2em;
  margin: 0.5em;

  color: #ffffff;
  padding: 20px;
  position: fixed;
  width: 150px;
  display: none;
  text-align: center;

  background-color: #1a0e1a !important;
  box-shadow: 0 2px #1a0e1a, 0 -2px #1a0e1a, -2px 0 #1a0e1a, 2px 0 #1a0e1a;
  color: #fff !important;
  outline: 2px solid #5865f2;
  outline-offset: -2px;
  padding: 7px;
  text-shadow: 2px 2px 0 #aaaaaa33;
  z-index: 15;
}