html,
body {
  height: 100%;
  background: #f2f2f2;
  touch-action: none;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  overflow:hidden;
}

#myViewer {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: stretch;
  z-index: 10000;
  /*overflow: hidden;*/
  position: absolute;
  left: 0;
  right: 0;
  --left: 0;
  --right: 0;
  transition: all 300ms ease-in-out;
}

#myToolbar {
  min-width: 400px;
  top: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 100000;
  pointer-events: none;
  position: fixed;
  left: 95px;
  transition: all 300ms ease-in-out;
}

#myCanvas {
  width: 100%;
  height: 100%;
  background: #f2f2f2;
  cursor: default;
  pointer-events: all;
  margin: 0;
  position: relative;
}

#myNavCubeCanvas {
  position: absolute;
  width: 200px;
  height: 200px;
  bottom: 0;
  right: 0;
  z-index: 200000;
}

#myExplorer {
  position: fixed;
  height: 70%;
  margin:3rem;
  border-radius:0.5rem;
  color: #fff;
  background: #fff;
  overflow: auto;
  padding: 0px;
  padding-bottom: 100px;
  padding-left: 0;
  user-select: none;
  top: 0;
  left: -460px;
  z-index: 10;
  width: 390px;
  transition: all 300ms ease-in-out;
  box-shadow: 6px 12px 14px -31px rgba(0,0,0,0.15);
  overflow:auto;
}

#explorer_toggle {
  display: none;
}

.explorer_toggle_label {
  position: absolute;
  display: flex;
  top: 10px;
  left: 20px;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  flex: 1 1 auto;
  background-color: white;
  text-align: center;
  vertical-align: middle;
  border: 1px solid rgba(0,104,168, 0.4);
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.021);
  padding: 0.5rem 0.7rem 0.7rem 0.7rem;
  border-radius: 5px;
  -webkit-appearance: button;
  overflow: visible;
  margin: 0 2px 0 0;
  box-sizing: border-box;
  pointer-events: all;
  z-index: 100000;
  transition: all 300ms ease-in-out;
  justify-content: center;
  align-items: center;
}

.explorer_toggle_label:hover {
  cursor: pointer;
}

#explorer_toggle:checked + .explorer_toggle_label {
  left: 480px;
  color: #fff;
  background-color: #f79239 !important;
  border-color: rgba(0,104,168, 0.4);
}

#explorer_toggle:checked ~ #myExplorer {
  left: 0;
}

#explorer_toggle:checked ~ #myViewer {
  left: 460px;
  --left: 460;
  width: calc(100% - (var(--left) + var(--right)));
}

#explorer_toggle:checked ~ #myToolbar {
  left: 555px;
}

#explorer_toggle:not(:checked) + .explorer_toggle_label {
  left: 20px;
  color: #f79239;
  background-color: #fff; 
  border-color: rgba(0,104,168, 0.4);
}

#explorer_toggle:not(:checked) ~ #myExplorer {
  left: -460px;
}

#explorer_toggle:not(:checked) ~ #myViewer {
  left: 0;
  --left: 0;
  width: calc(100% - var(--right));
}

#explorer_toggle:not(:checked) ~ #myToolbar {
  left: 95px;
}

#myInspector {
  position: absolute;
  margin:3rem;
  border-radius:0.5rem;
  height: 89%;
  color: #fff;
  background: #fff;
  overflow: auto;
  padding: 0;
  top: 0;
  right: -360px;
  z-index: 40;
  width: 320px;
  transition: all 300ms ease-in-out;
  box-shadow: 6px 12px 14px -31px rgba(0,0,0,0.15);

}

#inspector_toggle {
  display: none;
}

.inspector_toggle_label {
  position: absolute;
  display:flex;
  top: 10px;
  right: 20px;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  flex: 1 1 auto;
  color: #f79239;
  background-color: white;
  text-align: center;
  vertical-align: middle;
  border: 1px solid rgba(0,104,168, 0.4);
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.021); 
  padding: 0.5rem 0.7rem 0.6rem 0.7rem;
  border-radius: 5px;  
  -webkit-appearance: button;
  overflow: visible;
  margin: 0 2px 0 0; /* FIXME */
  box-sizing: border-box;
  align-items: flex-start;
  pointer-events: all;
  z-index: 100000;
  transition: all 300ms ease-in-out;
  justify-content: center;
  align-items: center;
}

.inspector_toggle_label:hover {
  cursor: pointer;
}

#inspector_toggle:checked + .inspector_toggle_label {
  right: 380px;
  color: #fff;
  background-color: #f79239 !important;
  border-color: rgba(0,104,168, 0.4);
}

#inspector_toggle:checked ~ #myViewer {
  --right: 360;
  right: 360px;
  width: calc(100% - (var(--left) + var(--right)));
}

#inspector_toggle:checked ~ #myInspector {
  right: 0;
  --right: 0;
}

#inspector_toggle:not(:checked) ~ #myInspector {
  right: -380px;
  --right: -380px;
}

#inspector_toggle:not(:checked) ~ #myViewer {
  --right: 0;
  right: 0;
  width: calc(100% - var(--left));
}

.annotation-marker {
  color: #ffffff;
  line-height: 1.8;
  text-align: center;
  font-family: "monospace";
  font-weight: bold;
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 15px;
  border: 2px solid #ffffff;
  background: black;
  visibility: hidden;
  box-shadow: 5px 5px 15px 1px #000000;
  z-index: 0;
}

.annotation-label {
  position: absolute;
  max-width: 250px;
  min-height: 50px;
  padding: 8px;
  padding-left: 12px;
  padding-right: 12px;
  background: #ffffff;
  color: #000000;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 8px;
  border: #ffffff solid 2px;
  box-shadow: 5px 5px 15px 1px #000000;
  z-index: 90000;
}

.annotation-label:after {
  content: "";
  position: absolute;
  border-style: solid;
  border-width: 8px 12px 8px 0;
  border-color: transparent white;
  display: block;
  width: 0;
  z-index: 1;
  margin-top: -11px;
  left: -12px;
  top: 20px;
}

.annotation-label:before {
  content: "";
  position: absolute;
  border-style: solid;
  border-width: 9px 13px 9px 0;
  border-color: transparent #ffffff;
  display: block;
  width: 0;
  z-index: 0;
  margin-top: -12px;
  left: -15px;
  top: 20px;
}

.annotation-title {
  font: normal 20px arial, serif;
  margin-bottom: 8px;
}

.annotation-desc {
  font: normal 14px arial, serif;
}
