* {
  margin: 0;
  padding: 0;
  font-family:"Segoe UI";
}

body {
  /* background-color: var(--dark-background); */
}

#versionDisplay {
  position: absolute;
  bottom: 0;
  right: 0;

  background-color: lightgray;
  border: 1px solid #000;

  padding: 2px;

  z-index: 1000;
}

#userMenu {
  top: 7px;
  left: 62px;
  z-index: 999;
}

#loadingScreen {
  display: none;
  padding-top: 30vh;
}
#loadingScreen div {
  margin: 0 auto;
}

#accessDeniedScreen {
  display: none;
}


#mapContainer {
  width: 100vw;
  height: 100vh;
}

.cstToggleElement {
  width: 48px;
  height: 48px;
  box-sizing: border-box;

  padding-top: 4px;

  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
  cursor: pointer;
  background-color: var(--dark-background);
}
.cstToggleElement:hover {
  background-color: var(--light-background);
}
.cstToggleElement .bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: var(--light-foreground);
  border-radius: 2px;
  margin-top: 6px;
  margin-left: 6.5px;
  transition: 0.4s;
}

#uiOverlay .cstToggleElement {
  top: 7px;
  left: 7px;
}

#closedMenu {
  z-index: 999;
  display: block;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 5px;
  left: 5px;
  border-radius: 10px;
  background-color: transparent;
  border: 2px solid transparent;
}

#uiOverlay {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--dark-background);
  color: var(--light-foreground);
  z-index: 1000;
  box-sizing: border-box;
  width: 295px;
  min-height: 100vh;
  max-height: 100vh;

  display: none;

  overflow-y: scroll;
  overflow-x: hidden;

  /* Fix für verschwindendes UI unter iOS Safari.
     Der Bug scheint ein Safari-Problem zu sein. Siehe https://github.com/Leaflet/Leaflet/issues/8068 */
  transform: translate3d(0px, 0px, 0px);
}

#uiOverlay .mainHeader {
  text-align: center;
  margin-top: 5px;
  margin-bottom: 15px;
}

#uiOverlay .mainHeader img {
  margin: 0 auto;
  margin-top: 7px;
  height: 60px;
}

#uiOverlay .mainHeader .mainHeaderText {
  /* margin-top: -5px; */
  font-size: 25px;
}
#uiOverlay .mainHeader .mainHeaderText small {
  font-size: 15px;
}

#uiOverlay .uiContent {
  overflow-y: scroll;
  overflow-x: hidden;
}

#uiOverlay .uiHeader {
  padding: 5px;
  padding-left: 8px;
  font-weight: 700;
}

#uiOverlay .uiContainer {
  margin-bottom: 40px;
  margin-top: -15px;
  padding-top: 7px;
  /* font-size: 14px; */
}

#uiOverlay .creditContainer {
  font-size: 12px;
}


.pf10 {
  width: 10px;
  text-align: center;
}

.transparent {
  color: transparent;
}


.dialog-content {
  overflow-y: scroll;
  overflow-x: scroll;
}

.contextmenu {
  z-index: 9990;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  border: 2px solid gray;
  background-color: #fff;
  white-space: nowrap;
}

.contextmenu .menu-header {
  text-align: center;
  font-weight: bold;
  padding: 3px;
  border-bottom: 1px solid gray;
}

.contextmenu .menu-item {
  padding: 3px;
  border-bottom: 1px solid lightgray;
  cursor: pointer
}
.contextmenu .menu-item + .divider {
  border-bottom: 1px solid gray;
}
.contextmenu .menu-item:last-of-type {
  border-bottom: none;
}

.contextmenu .menu-item:hover {
  background-color: #f2f2f2;
}

.display-none {
  display: none;
}

.errorBox {
  color: orange;
  background-color: transparent;
}


/* Custom Button Styling */
.buttonwrapper {
  border: none;
}
.buttonwrapper > .cell {
  padding-top: 0px;
}
.buttonwrapper > .cell:first-child {
  padding-left: 0px;
}
.buttonwrapper > .cell:last-child {
  padding-right: 0px;
}
.buttonwrapper > .cell > button {
  position: relative;
  width: 100%;
  height: 50px;
  border: 1px solid lightgray;
  padding-top: 2px;
  cursor: pointer;
}
.buttonwrapper > .cell > button:hover {
  box-shadow: rgba(45, 35, 66, 0.5) 0 1px 2px, rgba(45, 35, 66, 0.5) 0 3px 6px -3px;
}

.buttonwrapper > .cell > button.active {
  border: 2px solid #333333;
  cursor: default;
}
.buttonwrapper > .cell > button.active:hover {
  box-shadow: none;
}

.buttonwrapper > .cell > button > .button-text {
  position: absolute;
  text-align: center;
  width: 100%;
  margin: 0;
  top: 3px;
  left: 0px;
  font-size: min(1em, 1.9vw);
  overflow-x: hidden;
  white-space: nowrap;
}


.buttonwrapper > .sel {
  border: 3px solid black;
}