/*
==========
D3 Browse Map
==========
*/

.hidden {
    display: none;
}

#map_container {
    max-height: 480px;
    margin: auto;
    max-width: 960px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    cursor: move;
}

#message {
  color: red;
  position: absolute;
  top: 50%;
  right: 50%;
  text-align: center;
  z-index: -2;
}

.layer {
  position: absolute;
  z-index: -1;
}

.tile {
  pointer-events: none;
  position: absolute;
  width: 256px;
  height: 256px;
  z-index: 2;
}

#attribution {
  font-size: 12px;
  position: absolute;
  bottom: 5px;
  left: 5px;
  padding: 0 10px 0 10px;
  z-index: 4;
  border-radius: 5px;
  background-color: #E5E5E5;
  opacity: 0.9;
  z-index: 8;
}

#canvas_cameras {
    position: relative;
    top: 0;
    left: 0;
    margin: auto;
    pointer-events: all;
    z-index: 4;
}

#canvas_selection {
    position: relative;
    top: -100%;
    left: 0;
    margin: auto;
    pointer-events: none;
    z-index: 3;
}

#legend {
  z-index: 5;
  pointer-events: none;
  background-color: #E5E5E5;
  opacity: 0.9;
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 150px;
  font-size: 12px;
  border-radius: 5px;
  padding: 10px;
}

#legend h1 {
    font-size: 12px;
    text-align: center;
}

#legend div {
  text-align: left;
}

#legend p {
  display: inline;
  padding: 0 0 0 10px;
}

#tooltip {
    width: 200px;
    color: #222;
    background: white;
    padding: 1em;
    text-shadow: #f5f5f5 0 1px 0;
    border-radius: 5px;
    border: 2px solid darkgray;
    box-shadow: 0px 0px 2px 0px #a6a6a6;
    position: absolute;
    text-align: center;
    z-index: 6;
}

#tooltip h1 {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

#canvas_offscreen {
    display: none;
}

#toggle_map {
  position: absolute;
  z-index: 9;
  left: 5px;
  top: 109px;
  background-color: #E5E5E5;
  opacity: 0.9;
  border-radius: 5px;
  cursor: pointer;
  width: 50px;
  padding: 5px;
  text-align: center;
  color: darkgray;
}

#toggle_map:hover {
  color: black;
}

#zoom_UI {
  width: 60px;
  height: 100px;
  position: absolute;
  z-index: 9;
  left: 5px;
  top: 5px;
  background-color: #E5E5E5;
  opacity: 0.9;
  border-radius: 5px;
}

#zoom_UI div {
  height: 30px;
  width: 30px;
  line-height: 30px;
  margin: 10px auto 10px auto;
  border: 2px solid darkgray;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  color: darkgray;
}

#zoom_UI div:hover {
  font-weight: bold;
  border: 2px solid black;
  color: black;
}
