/*There is currently a chrome (61) bug with background-color and opacity - on some browsers (not  mine, but JP's and my husband's) some of them will get stuck. So keep at 1 for now

/********
Begin mixins
********/
/********
End mixins
*********/
/******************
BEGIN PAGE STYLES
*******************/
html, body {
  margin: 0;
  box-sizing: border-box;
  overflow: auto;
  width: auto;
  height: auto; }

#main {
  position: relative;
  overflow: hidden;
  top: 0; }

#loading {
  position: absolute;
  width: 100%;
  height: 800px;
  background-color: white;
  padding-top: 100px;
  font-family: 'Arial';
  font-size: 2em;
  color: #CCCCCC;
  text-align: center;
  z-index: 9999; }

/******************
END PAGE STYLES
*******************/
/******************
BEGIN MAP STYLES
*******************/
#map-box {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  /*@media screen and (max-width: $mobile-width) {
    padding: 0px 15px; // Necessary so user can still scroll on mobile
  }*/ }

#map {
  height: 700px;
  width: 100%; }
  @media screen and (max-width: 600px) {
    #map {
      height: 500px; } }

.leaflet-interactive {
  z-index: 99999; }

#data-source {
  font-family: 'Arial';
  font-size: .7em;
  color: #999999;
  margin-top: 2em; }

.precinct-default {
  stroke: white;
  stroke-width: 1;
  stroke-opacity: .5;
  fill-opacity: 1;
  fill: #dbdbdb; }

.precinct-selected {
  stroke: black;
  stroke-width: 3px;
  stroke-opacity: 1; }

/*.precinct-hidden {
	stroke-opacity: 0;
	fill-opacity: 0;
}*/
/******************
END MAP STYLES
*******************/
/************************
BEGIN SUMMARY TABLE STYLE
*************************/
.results-summary {
  top: 0;
  right: 0;
  width: 100%;
  margin-bottom: 20px;
  z-index: 9999999;
  background: white;
  opacity: .9;
  border-radius: 10px; }

.eln-summary-table {
  font-family: 'Arial';
  border-collapse: collapse;
  font-size: 12px;
  background: white;
  width: 100%; }
  .eln-summary-table tr {
    border-bottom: 1px solid #e2e2e2;
    line-height: 30px; }
    @media (max-width: 400px) {
      .eln-summary-table tr {
        line-height: 1.5; } }
  .eln-summary-table td {
    border-bottom: 1px solid #e2e2e2; }

.results-summary-title, .section-title {
  font-size: 1.5em;
  font-family: 'Arial'; }
  @media (max-width: 400px) {
    .results-summary-title, .section-title {
      margin-bottom: 8px; } }

#info {
  display: none;
  position: absolute;
  width: 200px;
  z-index: 999999;
  font-family: 'Arial';
  font-size: 12px;
  background: white;
  border-radius: 5px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.8);
  padding: 6px 8px; }
  #info tr {
    line-height: 1.5; }
  #info.fixed {
    left: 25px !important;
    top: auto !important;
    bottom: 10px; }
    @media (max-width: 600px) {
      #info.fixed {
        height: 130px;
        opacity: .9;
        width: 100%;
        left: 0 !important;
        bottom: 0;
        border-radius: 0;
        border: 1px solid linen; } }

#close-button {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  top: 5px; }
  .fixed #close-button, .sticky #close-button {
    display: block; }

#race-summary-table th:nth-child(2), #race-summary-table td:nth-child(2), .eln-summary-header th:nth-child(2), .eln-summary-row td:nth-child(2), .eln-summary-header th:nth-child(3), .eln-summary-row td:nth-child(3) {
  text-align: right; }

.eln-summary-header th:nth-child(2), .eln-summary-row td:nth-child(2) {
  padding-right: 10px; }

.color-box {
  width: 10px;
  height: 10px;
  display: inline-block;
  opacity: 1;
  background-color: #d3d3d3; }
  #race-summary-table .color-box {
    margin-right: 5px; }
  .color-box.abrams {
    background-color: #4E66A2; }
  .color-box.kemp {
    background-color: #C92125; }
  .color-box.metz {
    background-color: #50AF71; }

path.abrams {
  fill: #4E66A2; }

path.kemp {
  fill: #C92125; }

path.metz {
  fill: #50AF71; }

h4.candidate-table-title {
  font-size: 1.3em;
  text-align: left; }

h4.tooltip-title {
  margin: 2px; }

.participation {
  font-size: .7em;
  font-family: 'Arial';
  color: grey;
  line-height: 20px; }

/**********************
END SUMMARY TABLE STYLES
***********************/
/***************************
BEGIN ADDRESS SEARCH STYLES
****************************/
#search-bar {
  margin-bottom: 40px; }
  @media (max-width: 400px) {
    #search-bar {
      margin-bottom: 15px; } }

label {
  font-family: 'Arial'; }

/***************************
BEGIN ADDRESS SEARCH STYLES
****************************/
/***************************
BEGIN FILTER OPTION STYLES
****************************/
#left {
  padding-right: 20px;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 800px; }
  @media (min-width: 1200px) {
    #left {
      position: initial;
      float: left;
      width: 300px; } }
  @media (max-width: 1200px) {
    #left {
      padding: 15px;
      left: 50%;
      transform: translateX(-50%); } }

.filter-table-head {
  text-align: left;
  font-family: Arial;
  color: #999999; }

#filter-select, #county-select {
  font-size: 1em;
  line-height: 15px;
  text-align: center; }
  #filter-select label, #county-select label {
    font-size: 1em; }

#filters {
  display: none; }

.filter-bar, .filter-selected {
  opacity: .5;
  cursor: pointer;
  font-family: 'Arial';
  text-align: left;
  width: 100%;
  height: 30px;
  background-color: #F5A9A9;
  border-radius: 5px;
  margin-bottom: 10px; }

.filter-title {
  pointer-events: none;
  position: absolute;
  top: 0;
  padding: 6px 4px;
  font-size: 1em;
  border-radius: 3px;
  color: black; }

.filter-bar:hover {
  opacity: 1; }

.filter-selected {
  opacity: 1; }

/***************************
END FILTER OPTION STYLES
****************************/
/*I think we got rid of the ranking table, the one under the map that used to be there I think */
/***************************
BEGIN RANKING TABLE
****************************/
/*.rank-table-holder {
  max-width: 1100px;
  position: relative;
  margin-bottom: 150px;
  @include centered;
  .out-link {
    width: 100%;
    display: block;
    font-size: 1em;
    text-align: center;
    cursor: pointer;
  }
  margin-top: 10px;
  padding-top: 20px;
}

.top-precincts {
  position: relative;
  clear: both;
  max-width: 800px;
  text-align: left;
  @include centered;
}

#top-precincts-title {
  font-family: 'Arial';
  font-size: 1.3em;
  text-align: center;
}*/
/*#rank-table-kemp > table, #rank-table-bottoms > table, #rank-table-tippins > table{
  @include table;
  width: 100%;
  td.rank {
    width: 10%;
  }
  td.neighborhood {
    width: 70%;
  }
  td.proportion {
    width: 20%;
  }
}

.rank-sub-county,  .sub-county {
  display: block;
  color: #999999;
  font-size: 8px;
}

.table-title {
  font-family: 'Arial';
  font-size: 1.2em;
  margin: 10px 0px;
  border-bottom: 1px solid;
}

#kemp-rank-title {
 color: $candidateA-color;
 opacity: .7;
}

#bottoms-rank-title {
  color: #FA5858;
}

#ranking-subhed {
  display: block;
  color: #999999;
  font-size: .7em;
}*/
/**************************
/* END RANKING TABLE STYLES
/**************************/
/*********************
/* BEGIN BYLINE STYLES
/********************/
.byline {
  position: relative;
  max-width: 1100px;
  left: 50%;
  transform: translateX(-50%);
  clear: both;
  padding: 20px 5px 100px 5px;
  font-family: 'Arial';
  color: #999999; }

/********************
/* END BYLINE STYLES
/********************/
.foreground-bar {
  height: 30px;
  border-radius: 5px 0px 0px 5px;
  background-color: #A9E2F3; }

.filter-bar-holder {
  position: relative; }

.flex-container {
  display: flex;
  flex-flow: row wrap; }

.flex-item:first-child {
  padding-right: 10px; }

.flex-item:last-child {
  padding-left: 10px; }

.flex-container .flex-item {
  flex: 1 0 300px; }

.explanation {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: 800px; }

.out-link {
  margin-bottom: 200px; }

.year-toggle {
  font-size: 2em;
  font-weight: bold;
  text-align: right; }
  @media (max-width: 600px) {
    .year-toggle {
      text-align: center; } }

.inactive-year-toggle {
  color: #e2e2e2; }

.year-toggle {
  cursor: pointer; }

.rank-row:hover {
  background-color: #e2e2e2;
  cursor: pointer; }

.meta {
  font-size: .8em;
  margin: 10px 0; }

.instructions {
  font-size: .8em;
  color: #999999; }

.ssd-map {
  height: 500px; }
