/*!
 * Main css for DNAinfo Crime Map
 */

html, body {
    height: 100%;
    font-family:"Titillium Web", Helvetica, Sans-Serif;
    color: #252525;
}

/*
* loading screen modals
*/

body.loading {
    overflow: hidden;   
}

body.loading .loading-modal {
    display: block;
}

.loading-modal {
    display:    none;
    position:   fixed;
    z-index:    10000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    opacity:  .7;
    background: url('images/spinner.gif') 
                50% 50% 
                no-repeat;
    background-color: #fff;
}


.map {
    position:absolute;
    left:0;
    right:0;
    top:0;
    bottom:0;
    width:100%;
    margin-top: 58px;
	overflow: hidden;
	-webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.map-results {
	margin-top: 0px;
}

.map-popup-wrapper-open {
	bottom:35%;
}

.map-popup-wrapper-75pct {
	bottom:75%;
}

.popup-wrapper {
    z-index: 1001;
    position: fixed;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 0px;
    overflow: auto;
    background: #fff; /*#d9d9d9;*/
    border-top: #545454 1px solid;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.popup-wrapper-open {
	height: 35%;
}

.popup-wrapper-75pct {
	height: 75%;
}
 
.popup-content {
	display: none;
	text-align: left;
	width: 100%;
	padding: 8px;
    height: 25%;
    display: block;	
}

.axis line,
.axis path {
  fill: none;
  stroke: #545454;
  shape-rendering: crispEdges;
  width: 1px;
}

.increaseText {
	color: #931212;
}

.decreaseText {
	color: #545454;
}

.increaseTextPopup {
	color: #e4b1b1;
}

.increaseTextPopupRE {
	color: #a4d4f2;
}

.decreaseTextPopup {
	color: #bdbdbd;
}

.decreaseTextPopupRE {
	color: #e4b1b1;
}

.margin10top {
	margin-top: 10px;
}

.margin30top {
	margin-top: 30px;
}

.margin0bottom {
	margin-bottom: 0px;
}

.padding15topbottom {
	padding: 15px 0px;
}

.form-control {
	margin: 2px;
}

.no-margin {
	margin: 0px;
}

/*
* Legend CSS
*/

#legend {
	margin-bottom: 10px;
}

.legend-category ul {
	padding: 0 0 5px 0;
	margin: 0;
	list-style: none;
}

.legend-category ul li {
	position: relative;
	margin: 0 0 7px;
	font-size: 12px;
	text-align: left;
	height: 10px;
	line-height: 10px;
	vertical-align: middle;
}

.legend-category ul li .bullet {
	float: left;
	margin: 0 5px 0 0;
	width: 10px;
	height: 10px;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	-o-border-radius: 50%;
	border-radius: 50%;
	padding: 2px;
	background: #fff;
	border: 1px solid rgba(0,0,0,.2);
	z-index: 1000;
}

.legend-cloropleth ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.legend-cloropleth ul li {
	font-size: 12px;
	line-height: 10px;
}

.legend-cloropleth li.min {
	float: left;
	margin: 0 0 5px;
}

.legend-cloropleth li.one {
	float: left;
	margin: 0 0 5px;
}

.legend-cloropleth li.max {
	float: right;
	margin: 0 0 5px;
}

.legend-cloropleth li.maxWithBreaks {
	position: absolute;
	right: 15px;	
}

.legend-cloropleth li.breaks {
	clear: both;
	overflow: hidden;
	display: table;
	width: 100%;
	height: 16px;
}

.legend-cloropleth li.breaks .numbers {
	display: table-row;
	width:100%;
}

.legend-cloropleth li.breaks .quartile {
	display: table-cell;
	width:1%;
}

.legend-cloropleth li.breaks div {
	width: 10px;
	height: 16px;
}


.legend-cloropleth li.graph {
	clear: both;
	overflow: hidden;
	display: table;
	width: 100%;
	height: 22px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-ms-border-radius: 3px;
	-o-border-radius: 3px;
	border-radius: 3px;
	-moz-background-clip: padding;
	-webkit-background-clip: padding;
	background-clip: padding;
	border: 1px solid #b3b3b3;
}

.legend-cloropleth li.graph.half {
	width: 22.22%;
}

.legend-cloropleth li.graph .colors {
	display: table-row;
}

.legend-cloropleth li.graph .quartile {
	display: table-cell;
}

.legend-cloropleth li.graph div {
	width: 10px;
	height: 22px;
}

.legend-bubbles {
	height: 80px;
}

.legend-bubbles ul {
	padding: 0 0 5px 0;
	margin: 0;
	list-style: none;
}

.legend-bubbles ul li {
	position: relative;
	padding: 0;
	margin: 0;
	font-size: 12px;
	line-height: normal;
	float: left;
	top: 12px;
}

.legend-bubbles ul li.graph {
	top: 0;
	width: 120px;
	height: 40px;
	margin: 0 10px;
}

.legend-bubbles ul li.graph .bubbles {
	background: url("images/bubbles.png") no-repeat 0 0;
	width: 120px;
	height: 40px;
}

.legend-bubbles ul li.graph-re {
	top: 0;
	width: 166px;
	height: 40px;
	margin: 0 10px;
}

.legend-bubbles ul li.graph-re .bubbles-re {
	background: url("images/bubbles_real_estate.png") no-repeat 0 0;
	width: 166px;
	height: 40px;
}

/*
* Leaflet overrides
*/

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
	background-color: #595959;
}

.leaflet-popup-content {
	color: #fff;
}

.popup-link {
    color: #99CCFF !important;
}

/*
* Bootstrap overrides
*/

.navbar {
	min-height: 50px;
	margin-bottom: 0px;
	border-radius: 0px; 
}

.navbar-default {
	background-color: #2e2925;
	border-color: #2e2925;
}

.navbar-default .navbar-brand {
	color: #f1f1f1;
	font-family:Georgia, Times, Serif;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
	color: #f1f1f1;
	background-color: transparent;
}

.navbar-brand-img-nyc {
	height: 20px;
}

.navbar-brand-img-chi {
	height: 26px;
}


.navbar-text {
	color: #f1f1f1 !important;
    background-color: transparent;
    font-size: 20px;
    font-weight: 100;
    margin-top: 12px;
}

.navbar-default .navbar-nav > li > a {
  color: #f1f1f1;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #dbdbdb;
  background-color: transparent;
}

.navbar-almostLeft {
  margin-left: 25px;
}

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
  color: #dbdbdb;
  background-color: #2e2925;
}


/*
* New DNAinfo nav bar
*/

.navbar-default-newdna {
	min-height: 56px;
	box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
	background-color: #fff;
	border: 0px;
}

.navbar-default-newdna .navbar-brand-newdna {
	height: 26px;
	width: 97px;
	margin: 15px 15px;
}

.navbar-default-newdna .navbar-brand-newdna:hover,
.navbar-default-newdna .navbar-brand-newdna:focus {
	color: #fff;
	background-color: transparent;
}

.navbar-default-newdna .navbar-nav > li > a {
  color: #fff;
}

.navbar-default-newdna .navbar-nav > li > a:hover,
.navbar-default-newdna .navbar-nav > li > a:focus {
  color: #fff;
  background-color: transparent;
}

.navbar-text-newdna {
	color: #2e2925!important;
    background-color: transparent;
    font-size: 20px;
    font-weight: 200;
    margin-top: 15px;

}




@media (max-width: 767px) {
	.navbar-nav .open .dropdown-menu {
	  position: absolute;
	  float: left;
	  width: auto;
	  margin-top: 0;
	  background-color: #fff;
	  border: 1px solid rgba(0, 0, 0, .15);
	  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
	  box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
	}
}

@media (min-width: 600px) {
	.navbar-default-newdna .navbar-brand-newdna {
		margin: 15px 0px;
	}
}


.navbar-form {
    width: auto;
    border: 0;
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
    padding-left: 0;
    padding-bottom: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.navbar-form .form-group {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: middle;
}


.btn-danger {
	background-color: #fc5158;
}


/*
* Form top padding
*/

.topPadding50 {
	padding-top: 50px;
}

/*
* Neighborhood draw maps buttons
*/

.shareButtons {
	width: 100%;
}

#imFinished, #showShareFB {
	position: absolute;
	top: 130px;
	left: 10px;
}

#startOver, #showShareTwitter {
	position: absolute;
	top: 170px;
	left: 10px;
}

#viewOnDNA {
	position: absolute;
	top: 210px;
	left: 10px;	
}

#helpButton {
	position: absolute;
	top: 68px;
	right: 10px;	
}

.red-pencil {
	color: #fc5158;
}

#street-view {
	height: 200px;
}

#chooseAnotherNeighborhood {
	z-index: 1001;
	position: absolute;
	top: 0;
	left: 10px;
}

a {
    color: #00b3e7;
    text-decoration: none;
}


