/*Override bootstrap*/
html, body {
  height: 100%;
  font-size:16px;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;

}
.container-fluid{
	margin-left: 5%;
	margin-right:5%;
}
.h4, h4{
	font-size:1.5rem;
}
.h5, h5{
	  font-size:1.25rem;
}
.lead{
	font-size: 1.25rem;
	font-weight: 300;
}
footer{
	border-top: 1px solid #999;
	color:#999;
	font-size: 11px;
	line-height:10px;
	margin: 25px -15px;
	padding-top: 5px;
}

.page-space{
	width:100%;
	height:400px;
}
.navbar-default{
	background-image: none;
	background-color:#f6f6f6;
	border:none ;
	box-shadow: none ;
}

.container {
	padding:0;
}
.headline{
	text-align: center;
	margin-top:100px;
	margin-left: auto;
	margin-right: auto;
	max-width: 720px;

}
.headline-title{
	font-family: "georgia", serif;
	font-size:43px;
	font-weight: 300;
}

a:link {
    color: #326891;
    text-decoration: none;
}

a:hover {
    /*color: #326891;*/
    text-decoration: underline;
}

.navbar-brand{
	padding:0;
}

#navbar{
	float:center;
}
#navbar h5, #navbar a{
	font-weight: bold;
	color:#555;
	margin-bottom: 5px;
}

.dropdown-menu{
	margin: 25px 0 0;
}
.btn-group.open .dropdown-toggle {
    box-shadow: none;
}
.dropdown-menu > li:focus, .dropdown-menu > li:hover {
    background-color: #e8e8e8;
    background-image: linear-gradient(to bottom, #f5f5f5 0px, #e8e8e8 100%);
    background-repeat: repeat-x;
}
/*application CSS*/

#clear{
	position:absolute;
	right:10px;
	cursor: pointer;
	font-size: 0.75rem;
	color: #d64f4f;
}

#clear:hover{
	color:#aaa;
}
.mapbox-improve-map {
    display: none;
}


#legend, #legend{
	position: absolute;
	display: inline-flex;
	right:50px;
	top:20px;
	border-radius: 3px;
	background-color: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,0.10);
}
.legend {
    background-color: #fff;
    /*border-radius: 3px;*/
    /*bottom: 30px;*/
    /*box-shadow: 0 1px 2px rgba(0,0,0,0.10);*/
    font: 12px/20px ;
    padding: 5px;
    /*position: absolute;*/
    /*right: 10px;*/
    /*z-index: 1;*/
}

/*.legend > div {
    display: inline !important;
}*/
.legend-text{
	font-size: 0.7rem;
}
.legend-text.pull-right{
	font-size: 0.8rem;
	margin-right:-5px;
	margin-top:3px;
	-ms-transform: rotate(-38deg); /* IE 9 */
    -webkit-transform: rotate(-38deg); /* Chrome, Safari, Opera */
    transform: rotate(-38deg);
}

.legend-text.pull-left{
	margin-left:17px;
	margin-top:-5px;
	font-size: 0.8rem;
	-ms-transform: rotate(-38deg); /* IE 9 */
    -webkit-transform: rotate(-38deg); /* Chrome, Safari, Opera */
    transform: rotate(-38deg);
}

.legend h6 {
    margin: 0;
    text-align: center
}

.legend div span {
    /*border-radius: 50%;*/
    display: block;
    height: 16px;
    margin-right: 0;
    width: 25px;
}
/*.legend > h6 {
    text-align: center;
}*/

.legend-party{
	font-size: 0.8rem;
	text-align: center;
}
.election-districts{
	position:fixed;
	left:0;
	width: 100%;
	background-color: #fff;
	margin-top:35px;
	padding:15px 0 0;
	text-align: center;
	z-index: 1001;
	/*margin-bottom: 40px;*/
}

ul.election-navigation li{
	display:inline-block;
	font:400 14px/16px Helvetica, Arial, sans-serif;
	padding:0;	
}

.election-navigation li::before {
    background: #ccc none repeat scroll 0 0;
    content: " ";
    display: inline-block;
    height: 11px;
    margin: 0 5px;
    position: relative;
    top: 1px;
    width: 1px;
}

.election-navigation li:first-child::before {
    display: none;
}

.election-navigation li a {
    color: #999;
}

.election-navigation-a.active {
    text-decoration: underline;
    color: #d64f4f;
}

.election-navigation-a:hover{
	cursor: pointer;
}

.navbar-center img {
    height: 33px;
    margin: 0 11px 3px;
}

.navbar-center{
	/*margin-left: -5%;*/
	text-align: center;
}
.navbar-center h5{
	display:inline-block;
	height:30px
	margin: 5px auto auto 7px;
	padding: 0 0 0 20px;
}
.navbar-center h5::before {
    background: #ccc none repeat scroll 0 0;
    content: " ";
    display: inline-block;
    height: 24px;
    margin: 0 5px;
    position: relative;
    top: 7px;
    width: 1px;
}
.navbar-center h5:first-child::before {
    display:none;
}


.home-button{
	position: absolute;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.5);
    font-family: arial,helvetica,sans-serif;
    border:none;
    text-transform: none;
    padding:0;	
}

.share-group{
	position: absolute;
	right:7px;
	top:15px;
}


.share-button{
/*	position: relative;
	right:7px;
	top:10px;*/
    background-color: transparent;
    color: rgba(0, 0, 0, 0.5);
    font-family: arial,helvetica,sans-serif;
    border:none;
    text-transform: none;	
}

#shareBtn {
	color: #3b5998;
	padding: 3px 20px;
	cursor:pointer;	
}

#shareBtn:hover {
	
}
#twitter a{
	color:#00aced;
}
#linkedin a{
	color:#006fa6;
}
.button-text {
    display: inline-block;
    vertical-align: middle;
}

.graphic-containter{
	/*height:500px;*/
}

/*No affix for smaller devices*/
.prefix{
  position: relative !important;
}

.affix-container.affix {
  /*left:5px;*/
  top: 70px;
  width: 25%;
}


.affix-container.affix-bottom {
	position: absolute;
  /*left:5px;*/
  margin-top: 0;
  /*width: 25%;*/
}
.mapboxgl-ctrl-top-right.affix {
  position: fixed;
  top: 80px;
  right:5%;
}

#legend.affix{
  position: fixed;
  top: 90px;
  right:calc(5% + 50px);
}

.affix-container.affix > .sidebar{

  width: 90%;
}

.affix-container.affix-bottom > .sidebar{
  padding: 0 15px 10px 0;
  width: 80%;
}

.sidebar{	
	padding: 10px;
}

#map{
	float:right;
	top:5px;
}
.map-container{
	border: 1px solid #e6e6e6;
	padding:0;
}

.sidebar-search{
	padding-bottom:20px;
	padding-right: 40px;
}
.sidebar-search label{
	/*display:table-row;*/
}
.input-group-btn{
	display: block;
}

@media (max-width: 620px) { 
	::-webkit-scrollbar {
    -webkit-appearance: none;
}

::-webkit-scrollbar:vertical {
    width: 12px;
}

::-webkit-scrollbar:horizontal {
    height: 12px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .5);
    border-radius: 10px;
    border: 2px solid #ffffff;
}

::-webkit-scrollbar-track {
    border-radius: 10px;  
    background-color: #ffffff; 
}

	.sidebar-search{
		padding-bottom:0;
	}

	.affix-container{
		position:absolute;
		max-height:300px;
		overflow-y: scroll;
		bottom:-15px;
		z-index: 1001;
		background-color:#fff;
		width:100%;
	}

	#clear{
		bottom:5px;
		font-size:1rem;
	}

	ul.election-navigation{

		padding:0;	
	}
	.headline-title, .lead{
		display:none;
	}
	.container-fluid{
		margin-left:2%;
		margin-right:2%;
	}
	.navbar-center h5:first-child {
	    display: none;
	}
	.navbar-center h5 img {
	    margin:0;
	}

	.navbar-center{
	margin-left: 30px;
	text-align: left:;
   }
   .navbar, .navbar h5{
   	font-size: .85rem;
   	padding:0;
   }
   .affix-container.affix > .sidebar {
     width: 100%; 
}
}
@media (max-width: 800px){
	.h5, h5{
		font-size: 1rem;
	}
	.affix-container.affix > .sidebar {
    width: 100%;
}
	.affix-container.affix{
		position:relative;
		width:100%;
		top:0;
		height:100%;
	}
	#map{

		float:none;
	}

	.mapboxgl-ctrl-top-right.affix {
	  position: relative;
	  top: 0;
	  right:0;
	}
	#legend{
		display:none;
	}

/*	.affix + #map{
		height:300px !important;
		margin-bottom: 300px;
		float:none;
	}*/
	.prefix{
		/*margin: 0 5%;*/
	}
}

#precinct-results{
	font-size: 0.85rem;
}

#precinct-results th, #precinct-results td{
	padding:2px;
}
.winner-DFL{
	color:steelblue;
}
.winner-R{
	color:brown;
}

.tdimage{
	width:40px;
}
.fa-check{
	color:green;
}

#candidate-table th{
	text-transform: uppercase;
	font-size: .75rem;
	color: #aaa;
	font-weight: 500;
	/*width:33%;*/
	padding-left: 2px;
	}
#candidate-table tr{
	font-size: .9rem;
}

#candidate-table td{
	font-size: .85rem;
	padding: 5px;
}



#candidate-table img{
	max-height: 30px;
	float:left;
	margin-top:4px;
	margin-right: 5px;
	border-radius: 3px;
}

/* Bootstrap map view selector, anchored inside the map */
#map-view-control {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
#map-view-control .btn.active {
    background-color: #e6e6e6;
    background-image: none;
    box-shadow: inset 0 2px 3px rgba(0,0,0,.12);
}
