.sidenav {
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

.menubutton_holder_left {
  position: absolute;
  top: 10px;
  left: 5px;
}

.menubutton_holder_right {
  position: absolute;
  top: 10px;
  right: 5px;
}

body {
  margin: 0;
  padding: 0;
}

#main_header {
  height: 65px;
  /* background-color: #0c8642; */
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: -1;
}
.ol-zoom {
  z-index: 10;
  left: auto;
  right: 8px;
  top: 50px;
  pointer-events: auto;
  position: absolute;
}

.message {
  margin: 0;
  color: #c00;
  float: right;
  display: none;
}

/* CSS for the right-click on data layer popup */
#layer_context_menu {
  position: fixed;
  z-index: 10000;
  width: auto;
  border-radius: 5px;
  background: #1b1a1a;
  display: none;
}
#layer_context_menu.visible {
  display: block;
}
#layer_context_menu .item {
  padding: 8px 10px;
  color: #eee;
  border-radius: inherit;
  cursor: pointer;
}
#layer_context_menu .item:hover {
  background: #343434;
}

.accordion-button {
  padding: 0.5rem; /* default padding too generous */
}

a.clipboard-icon {
  /* base64 generated from https://icons.getbootstrap.com/icons/clipboard/ */
  content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktY2xpcGJvYXJkIiB2aWV3Qm94PSIwIDAgMTYgMTYiPgogIDxwYXRoIGQ9Ik00IDEuNUgzYTIgMiAwIDAgMC0yIDJWMTRhMiAyIDAgMCAwIDIgMmgxMGEyIDIgMCAwIDAgMi0yVjMuNWEyIDIgMCAwIDAtMi0yaC0xdjFoMWExIDEgMCAwIDEgMSAxVjE0YTEgMSAwIDAgMS0xIDFIM2ExIDEgMCAwIDEtMS0xVjMuNWExIDEgMCAwIDEgMS0xaDF2LTF6Ii8+CiAgPHBhdGggZD0iTTkuNSAxYS41LjUgMCAwIDEgLjUuNXYxYS41LjUgMCAwIDEtLjUuNWgtM2EuNS41IDAgMCAxLS41LS41di0xYS41LjUgMCAwIDEgLjUtLjVoM3ptLTMtMUExLjUgMS41IDAgMCAwIDUgMS41djFBMS41IDEuNSAwIDAgMCA2LjUgNGgzQTEuNSAxLjUgMCAwIDAgMTEgMi41di0xQTEuNSAxLjUgMCAwIDAgOS41IDBoLTN6Ii8+Cjwvc3ZnPg==);
  width: 16px;
  height: 16px;
}

.spinner {
  /* Used for "loading..." spinning wheeel */
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}

.ol-tooltip {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  color: white;
  padding: 4px 8px;
  opacity: 0.7;
  white-space: nowrap;
  font-size: 12px;
  cursor: default;
  user-select: none;
}
.ol-tooltip-measure {
  opacity: 1;
  font-weight: bold;
}
.ol-tooltip-static {
  background-color: #ffcc33;
  color: black;
  border: 1px solid white;
}
.ol-tooltip-measure:before,
.ol-tooltip-static:before {
  border-top: 6px solid rgba(0, 0, 0, 0.5);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  content: "";
  position: absolute;
  bottom: -6px;
  margin-left: -7px;
  left: 50%;
}
.ol-tooltip-static:before {
  border-top-color: #ffcc33;
}
#popup-nav a {
  margin: 0 4px;
  color: #000;
  text-decoration: none;
  float: right;
}
/* ol-popup.css overrides */
.ol-popup-content {
  font: 12.5px/18px "Helvetica Neue", Arial, Helvetica, sans-serif;
  width: max-content;
  max-width: 360px;
}
.ol-popup-closer {
  font-size: 100%;
}

/* ol-scale-line overrides */
.ol-scale-line {
  left: 50%;
}
.ol-scale-bar {
  left: 50%;
}
.ol-scale-text {
  font-size: 11px;
}
.ol-scale-step-text {
  font-size: 11px;
}

.location-popup {
  position: absolute;
  background-color: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #cccccc;
  bottom: 12px;
  left: -50px;
  min-width: 280px;
}
.location-popup:after,
.location-popup:before {
  top: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}
.location-popup:after {
  border-top-color: white;
  border-width: 10px;
  left: 48px;
  margin-left: -10px;
}
.location-popup:before {
  border-top-color: #cccccc;
  border-width: 11px;
  left: 48px;
  margin-left: -11px;
}

.grayscale-contrast {
  /* used by high-contrast OS base layer */
  filter: grayscale(100%) contrast(1.5);
}
.small-cell {
  font-size: 0.75rem;
}
.offcanvas {
  width: 350px;
}
.compass-left {
  /* styling left hand panel */
  background-color: #0c8642;
}
.compass-right {
  /* styling left hand panel */
  background-color: #0c8642;
}
.console-box {
  font-size: 0.6rem;
}
