body {padding:0; margin:0; font-family: Tahoma, Geneva, sans-serif; font-size: 12px; }

#sharing-buttons {
      position: absolute;
      bottom: 0;
      padding-bottom: 12px;
}

#logo-div {
  position: relative;
}

#logo-div img {
  float: left;
}

#logo-div span {

}

#logo-div a {
  font-family:Geneva,'Century Gothic',Arial,Verdana,Helvetica,sans-serif;
  font-size: 14px;
  font-weight: normal;
  color: #882E3C;
  text-decoration: none;
}

h1 {
  font-family:Geneva,'Century Gothic',Arial,Verdana,Helvetica,sans-serif;
  font-size:165%;
  margin-top:0px;
  margin-bottom: 4px;
}

#map {
  position: absolute;
  margin: 0px;
  left: 0;
  right: 0;
  height: 100%;
  padding: 0;
  margin: 0;
}

#top-box, #legend-box {
	border: solid 1px #888;
	box-shadow: 0px 2px 5px 0px #bbb;
}

#top-box {
  position: absolute;
  top:0px;
  right: 0px;
  background: white;
  padding: 6px;
}

#legend-box {
  visibility: hidden;
  position: absolute;
  background: white;
  bottom: 16px;
  right: 0px;
  padding: 6px;
  width: 345px;
}

/*.filled-polygon {
  fill: #eee;
  fill-opacity: .62;
  stroke: black;
  stroke-opacity:0;
  stroke-width: 0.8px;
}*/

rect {
  fill-opacity: .62;
}

.filled-polygon:hover {
  stroke-opacity: 1 !important;
  stroke-width: 1.5px !important;
}

.boundaries {
  fill:none;
  stroke: #111;
  stroke-width: 0.8px;
}

.caption {
  font-weight: bold;
}

.key path {
  display: none;
}

.key line {
  stroke: #000;
  shape-rendering: crispEdges;
}

div.tooltip {     
   position: absolute;
   text-align: center;           
   /*width: 60px;*/
   /*height: 28px;*/                 
   padding: 3px;
   background: #eee;
   border: 0px;      
   border-radius: 8px;
   pointer-events: none !important;
   opacity: 0.9;
   opacity: 0;
}

#legend {
  margin-bottom: 0px;
  height: 56px;
  border-bottom: 1px solid #cfcfcf;
}

#variable-name {
  font-size: 110%;
  font-weight: bold;
  padding:0;
  margin-bottom: 2px;
}

#variable-name p, #denom-text p {
  margin: 0px;
  padding: 0px;
}

#denom-text {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 100%;
  padding:0;
  margin-bottom: 2px;
}

#footnotes {
  font-style: italic;
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 100%;
  padding:0;
  margin-bottom: 2px;
}

p a:link, p a:visited {
  color: #064fde;
  text-decoration: none;
}
p a:hover {
  text-decoration: underline;
}

svg {
  font-size: 11px;
}

#map svg {
    position: absolute;
    top: -4000px;
    left: -4000px;
    width: 8000px;
    height: 8000px;        
}

p.census-info {
  font-size: 10px;
  color: #888;
}

button {
    cursor: pointer;
    margin-top: 4px;
	background:#4C9ED9;
	color: white;
	padding: 2px 4px 2px 4px;
	border: 1px solid #aaa;
	border-radius: 3px;
}
button:hover {
	background:#3D7EAE;
}

#address {
    border: none;
    border-bottom: 1px solid #888;
    padding: 4px;
}


#choose-message {
  margin-top: -6px;
  font-size: 14px;
}

#selectdiv {
  padding: 6px;
  padding-bottom: 10px;
}

#selectdiv select {
  font-size: 12px;
}

#initially-hidden {
  display: none;
}

#colour-picker, #opacity-div {
  visibility: hidden;
  float: left;
  position:relative;
}

#opacity-div {
  margin-left: 22px;
}

#opacity-slider {
  width: 100px;
  margin:0;
}

#choose-colour-message {
  margin-bottom: 0;
}

div.colour-option {
  float: left;
  cursor: pointer;
  margin-top: 2px;
}



div.colour-option:hover {
  background: #ddd;
}

.colour-option-svg, .colour-option-rect, .colour-option-background-rect {
  pointer-events: none;
}

#geocode-div {
   visibility: hidden;
}

#mobile-message {
  display:none;
}

#loading-message {
  display: none;
  font-size: 14px;
}
#loading-message img {
  float: left;
  padding-right: 6px;
}
#loading-message div {
  position: relative;
  top:-1px;
  margin:0;
}

@media (max-width:480px) {
  #top-box {
    width: 100%;
    width: calc(100% - 6px);
    font-size: 60%;
    left: 0;
    padding: 2px;
  }
  
  #logo-div a {
    font-size: 10px;
  }
  
  #geocode-div {
    display: none;
  }
  
  #selectdiv {
    padding: 2px;
  }
  
  #legend-box {
    font-size: 75%;
    padding: 2px;
    width: 83%;
    width: calc(100% - 42px);
    left: 30px;
  }
  
  #show-hide {
    font-size: 100%;
    padding: 1px;
  }
  
  #loading-message {
    font-size: 11px;
    top:0px;
  }
  
  #mobile-message {
    font-size: 12px;
    padding: 40px;
  }
}