html,
body {
  margin: 0;
  padding: 0;
  background-color: #222;
  width: 100vw;
  height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
}


/* Main Container */

#viewer3d {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: auto;
}

#viewer3d canvas {
  display: block;
}


/* Minimap */

#minimap {
  background-color: transparent;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 300px;
  height: 200px;
  outline: 1px solid #333;
  transition: all .1s linear;
}

#minimap canvas {
  display: block;
  transition: all .1s linear;
}

#minimap-button {
  position: absolute;
  color: #ddd;
  font-size: 16px;
  top: 4px;
  right: 6px;
}

#minimap-button:hover {
  color: #eee;
}


/* Compass */

#compass {
  position: absolute;
  top: 0;
  right: 0;
  height: 48px;
  width: 48px;
  display: block;
  padding: 10px;
}



/* Debug GUI */

#dat-gui {
  position: absolute;
  top: 0px;
  left: 20px;
  z-index: 5;
  user-select: none;
}


/* Loading Bar */

#loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 5px;
  display: none;
  background-color: #3a85ff;
}

#loading-bar:after,
#loading-bar:before {
  content: "";
  display: table;
  clear: both;
}


/* SnackBar */

#snack-bar {
  visibility: hidden;
  min-width: 250px;
  background-color: rgba(26, 26, 26, 0.9);
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  position: absolute;
  z-index: 1;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, -50%);
}

#snack-bar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 3s;
  animation: fadein 0.5s, fadeout 0.5s 3s;
}

@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}



/* Balloon, Labels */

.marker {
  font-size: 3rem;
  color: black;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -100%);
  margin-top: 0.4rem;
}

.label-obj {
  text-align: center;
  position: absolute;
  color: white;
}

.label-obj p {
  text-align: left;
  padding: 0.7rem;
}

.label-obj h3 {
  border-bottom: 1px solid white;
  padding-bottom: 1rem;
}

.label .close {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0.5rem;
}

.label-obj .span-label {
  position: absolute;
  width: 200px;
  background-color: #000000AA;
  color: white;
  padding: 0.4rem;
  top: 0;
  left: 0;
  transform: translateX(-50%);
}

.balloon-container {
  position: relative;
  width: max-content;
  height: max-content;
  background-color: black;
  color: white;
  padding: 0.2rem;
  top: -3rem;
  left: 0;
  transform: translate(-50%, -100%);
  background-color: rgba(0, 0, 0, 0);
  padding: 0;
}

.balloon-minimized-icon {
  font-size: 1rem;
  color: white;
  position: absolute;
  top: 0px;
  right: 0px;
}

.balloon-minimize-button {
  position: absolute;
  color: #ddd;
  font-size: 16px;
  top: 4px;
  right: 8px;
}


/* Test balloon */

#test-ballons-container {
  display: none;
}

.test-balloon-style {
  display: none;
  position: relative;
  background-color: rgba(26, 26, 26, 0.9);
  border-radius: 4px;
  padding: 50px;
}


.green {
  color: green;
}

.yellow {
  color: yellow;
}

.red {
  color: red;
}

.small {
  font-size: 2rem;
}

.medium {
  font-size: 3rem;
}

.big {
  font-size: 4rem;
}