
/* ==========================================================================
   Author's custom styles
   ========================================================================== */
      
html, body, #map {
	height: 100%; width: 100%;
	position: absolute; top: 0; left: 0;
}

/*
.leaflet-bottom.leaflet-left {
	transform: scale(0.8);
	transform-origin: 0 bottom;
	-ms-transform: scale(1);
}

.leaflet-top.leaflet-left {
	transform: scale(0.8);
	transform-origin: 0 top;
	-ms-transform: scale(1);
}

.leaflet-top.leaflet-right {
	transform: scale(0.89);
	transform-origin: right top;
	-ms-transform: scale(1);
	-moz-transform: scale(0.88);
}

.leaflet-bottom.leaflet-right {
	transform: scale(0.8);
	transform-origin: bottom right;
}
*/

#map {
	z-index: 1;	
}

/*
#dialog-no-data {
	display: none;
	z-index: 2;
}
*/

/* workaround for bug in leaflet display of imageOverlay at high zoom levels */ 
.leaflet-container img.leaflet-image-layer {
    max-width: none !important;
}

/* search */

input#global-search {
	display: none;
}

/* region info box */

div.region-info {
	text-align: center;
	padding: 0px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    /*background: rgba(255,255,255,1);*/
    background-color: #215A33;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border: 4px solid #215A33;
    border-radius: 10px;
    width: 270px;
    color: #FFFFFF;
}

.leaflet-bottom.leaflet-right {
	z-index: 799 !important;
}

div#region-info-inner {
	padding: 15px 5px 5px 5px;
    border: 3px solid #FFFFFF;
    border-radius: 10px;
}

div.region-info span.region-info-header {
    margin: 0 0 8px;
    padding: 5px;
    border-radius: 3px;
    /*color: #777;*/
    background-color: #FFFFFF;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
}

div.region-info span.region-hover {
	/*color: #0099ff;*/
	color: #FFFFFF;
	/*font-style: italic;*/	
}

div.region-info span#region-area {
	color: #F3D217;	
}




div.info {
	text-align: left;
    padding: 6px 8px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    /*background: rgba(255,255,255,1);*/
    background-color: #FFFFFF;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    width: 220px;
    color: #000000;
}
div.info h4 {
    margin: 0 0 8px;
    padding: 5px;
    border-radius: 3px;
    /*color: #777;*/
    background-color: #FFFFFF;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
}

div.info span.region-hover {
	/*color: #0099ff;*/
	color: #FFFFFF;
	/*font-style: italic;*/	
}

div.info span#region-area {
	color: #F3D217;	
}
	
div#opacity_slider {
	margin-top: 15px;	
	margin-left: 18px;
}

div#opacity_slider span.ui-slider-handle {
	cursor: pointer;	
}

.legend {
    line-height: 18px;
    color: #555;
    width: 130px;
}

.legend-item i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}	

.sa-layer-select {
	width: 80%;
	margin: 10px 5px;
	padding: 5px;
}

.leaflet-control-layers-base {
	display: none;
}

.leaflet-control-layers.leaflet-control-layers-expanded {
	width: 194px;
}

div#base-layer {
	padding-left: 0px;
	margin-bottom: 12px;		
}

img.base-layer {
	width: 50px;
	height: 50px;
	/*margin: 2px 2px 1px 2px;*/
	margin: 2px;
	cursor: pointer;
	border: 1px solid #e6e6e6;
	padding: 1px;
}

img.base-layer:hover {
	/*width: 50px;*/
	/*margin: 1px 1px 0px 1px;*/	
	border: 1px solid #666666;
}

img.base-layer-selected {
	/*width: 50px;*/
	/*margin: 1px 1px 0px 1px;*/	
	border: 1px solid #ff3300;
}

div#base-layer-row-1, div#base-layer-row-2 {
	padding-left: 3px;
	height: 58px;
}

div#gcm-row-1 {
	margin-top: 5px;	
}


div.gcm-label-col-1 {
	margin-left: 5px;
	float: left;
}

div.gcm-label-col-2 {
    float: left;
}


div#gcm-row-1, div#gcm-row-2, div#gcm-row-3 {
	margin-left: 0px;
	height: 33px;
}


div.gcm-label-gcm, div.gcm-label-consensus {
	margin: 2px 2px 1px 2px;
	text-align: center;
	padding: 5px;
	background-color: #ffffff;
	color: #333;
	cursor: pointer;
	/*font-weight: bold;*/
	font-size: 11px;
	border: 1px solid #e6e6e6;		
}

div.gcm-label-gcm {
	width: 83px;
}

div.gcm-label-consensus {
	width: 170px;	
}

div.gcm-label-gcm:hover, div.gcm-label-consensus:hover {
	/*margin: 1px 1px 0px 1px;*/	
	border: 1px solid #666666;	
}

div.gcm-label-gcm.gcm-selected, div.gcm-label-consensus.gcm-selected {
	/*margin: 1px 1px 0px 1px;*/	
	border: 1px solid #ff3300;	
	/*background-color: #009900;*/
}

.gcm-bullet {
	color: #ccc;
}

/*
div.gcm-label-gcm.gcm-selected {
	width: 85px;
}

div.gcm-label-consensus.gcm-selected {
	width: 172px;
}

div.gcm-label-gcm:hover {
	width: 85px;
}	

div.gcm-label-consensus:hover {
	width: 172px;
}
*/

div#timestep-row-1 {
	margin-top: 5px;	
}

div#slider-play {
	float: left;
	margin-left: 20px;
	margin-right: 0px;
	width: 8px;	
	padding-top: 1px;
	cursor: pointer;
}

div#slider {
	float: left;
	margin: 5px 0px 0px 20px;
	width: 100px;
}

input#timestep-decade {
	width: 50px;
	margin-left: 50px;
	margin-top: 3px;
	border:0;
	color:#f6931f;
	font-weight:bold;	
}

div#threshold-row-1 {
	height: 40px;
	padding-top: 8px;
}

div.threshold-col-1 {
	width: 90px;
	float: left;
	border: 0px solid red;
}

div.threshold-col-2 {
	padding-top: 2px;
	width: 60px;
	float: left;
	border: 0px solid red;
	text-align: left;
}

div.threshold-col-2 span {
	font-size: 10px;
	color: #bfbfbf;	
}

div#threshold-row-1 label.simple-switch-outter {
	margin-left: 35px;
	height: 25px;
	width: 45px;
}

div#threshold-row-1 label.simple-switch-outter span.simple-switch-circle {
	height: 25px;
	width: 25px;
}

div.threshold-col-2 span.threshold-enabled {
	color: green;	
}

/* point_pol */

div#pointpol-row-1 {
	margin-left: 3px;	
}

div#pointpol-row-1 p {
	margin-bottom: 0px;
}

div[class^="pointpol-col-"] {
	float: left;
}

div[class^="pointpol-col-"] p {
	margin: 0px;
	padding-top: 0px;
	text-align: center;
	font-size: 11px;
	line-height: 14px;
	color: #777777;	
}

img.pointpol-occ-layer, img.pointpol-reg-layer, img.pointpol-sos-layer {
	width: 25px;
	margin: 0px 8px 3px 0px;
	/*margin: 2px 2px 1px 2px;*/
	cursor: pointer;
	border: 1px solid #e6e6e6;
	padding: 0px;
}

img.pointpol-occ-layer:hover, img.pointpol-reg-layer:hover, img.pointpol-sos-layer:hover {
	width: 25px;
	/*margin: 1px 1px 0px 1px;*/	
	border: 1px solid #666666;
}

img.pointpol-occ-layer-selected, img.pointpol-reg-layer-selected, img.pointpol-sos-layer-selected {
	width: 25px;
	/*margin: 1px 1px 0px 1px;*/	
	border: 1px solid #ff3300;
}

/* legend */

div#legend-body {
	width: 220px;
	padding: 10px 0px 10px 5px;
	font-family: 'Open Sans', sans-serif;	
}

div#legend-description {
	font-size: 14px;	
	line-height: 20px;
	font-weight: bold;
	margin-bottom: 15px;
}

div#legend-body img {
	margin-left: 7px;	
}

div.legend-item {
	margin: 0px 0px 4px 25px;
}

div.legend-item i {
	width: 18px;	
	border: 1px solid #000000;
}

div.legend-item span {
	font-size: 14px;	
}

div#map-info {
	padding: 10px 10px 0px 5px;
}

div#map-info hr {
	margin: 10px 0px 15px 0px;
}

.layer-info-title {
	color: #000;
	font-weight: bold;
}

.layer-info-data {
	padding-left: 10px;	
	font-size: 14px;
	color: #7f8c8d;
}

.layer-info-data.species {
	/*font-style: italic;*/	
}

/*
div#legend-layer-info {
	margin-top: 15px;	
}

span.layer-info-species {
	font-weight: bold;
	font-style: italic;
}
*/

div#layer-info-body {
	width: 280px;
	height: 54px;
	padding: 10px;	
	/*margin-left: 45px;
	margin-top: -53px;*/
}

div#layer-info-body p {
	margin-top: 10px;	
}

span.layer-info-species {
	font-size: 24px;
	font-weight: bold;
	font-style: italic;	
}

li { width: 18px; }

div#species-info-wrapper {
	z-index: 100000;
	position: absolute;
	background-color: #FFFFFF;
	color: #000000;
	top: 10px;
	left: 20%;	
	width: 60%;
	height: 63px;
	padding: 10px;
	border-radius: 6px;
	opacity: 1;
}

.dropdown-menu {
	width: 220px;
}

.dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a {
	background-image: none;
	background-color: #f2f2f2;
	width: 218px;
}

div#species-info:hover {
	cursor: pointer;
	opacity: 1;
}

div#species-info h1 {
	margin: 3px;
	font-size: 28px;
	font-weight: bold;
}

div#species-info span.glyphicon {
	font-size: 24px;
	color: #CCCCCC;
	padding: 5px 10px;
}

span#icon-narclim img {
	height: 38px;
	padding: 5px 12px;
}

/* tooltips */

/*
.tooltip-inner {
	background-color: #ccc;
	color: #000;
	border: 1px solid #ccc;
	font-size: 16px;
}
*/

.tooltip > .tooltip-inner {
  border: 2px solid #ff9999;
  padding: 12px;
  max-width: 450px;
  color: black;
  text-align: left;
  background-color: white;
  background: white;

  opacity: 1.0;
  filter: alpha(opacity=100);
} 

.tooltip > .tooltip-arrow { border-bottom-color:black; }

.tooltip.in {
  opacity: 1 !important;
  filter: alpha(opacity=100);
}

.leaflet-image-layer {
	image-rendering: -moz-crisp-edges;         /* Firefox */
	image-rendering: -o-crisp-edges;         /* Opera */
	image-rendering: -webkit-optimize-contrast;/* Webkit (non-standard naming) */
	image-rendering: pixelated; /* crisp-edges; */
	-ms-interpolation-mode: nearest-neighbor;  /* IE (non-standard property) */
}

/* control.loading */

.leaflet-control-loading {
  position: absolute;
}

/* workarounds for geosearch CSS interference */

.leaflet-control-geosearch form input {
	height: 14px;
}

.leaflet-touch .leaflet-control-geosearch form {
	box-sizing: content-box;
}

.leaflet-control-geosearch a.alert {
	padding: 0px;
}

/* region dialog */

span#dialog-region-name span.region-name,
span#dialog-download-species span.species-name,
span#dialog-search-title,
.modal-title {
    font-size: 22px;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    color: #1E824C;	
}

span#dialog-region-name span.region-type {
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
    color: #ABB7B7;	
}

#dialog-region .modal-body p {
	font-family: 'Open sans', sans-serif;
	font-size: 16px;	
}

#dialog-region .modal-body p a {
	font-family: 'Open sans', sans-serif;
	font-size: 16px;	
	color: #4183D7;	
}

#dialog-search .modal-dialog,
#dialog-search .modal-dialog .modal-content,
#dialog-region .modal-dialog,
#dialog-region .modal-dialog .modal-content {
    /* 80% of window height */
    height: 80%;
}

.modal-body {
    /* 100% = dialog height, 120px = header + footer */
    max-height: calc(100% - 120px);
    overflow-y: scroll;
}

p#search-dialog-matches {
	font-family: 'Open sans', sans-serif;
	font-size: 16px;	
	color: #019875;	
}

span#search-term {
	color: #F22613;
	font-weight: bold;
}

table#species_list {
	font-family: 'Open sans', sans-serif;
	font-size: 14px;		
}

#region_species_list thead th {
	vertical-align: top;
}
