	/* Basic Settings */

h1 {
  color: blue;
}

h3 {
  margin-top: 14px;
}

h4 {
  margin-top: 0rem;
}

li {
  margin-right: 20px;
  display: inline-block;
}

h5 {
  display: inline;
}


/* Sections of the Webpage */

.container_bottom {
  height: 530px;
}

.container_top {
  height: 610px;
  margin-top: -50px;
}

.background {
  fill: none;
  pointer-events: all;
}

#svg-area {
  width: 850px;
  height: 567px;
  float: left;
  margin-left: 14%;
}

svg{
  overflow: hidden;
}

#right_sidebar {
  position: absolute;
  margin-left: 74%;
  width: 100px;
  height: 520px;
  padding-left: 5px;
}

#static_note {
  text-align: center;
  margin-top: -45px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: normal;
}

#all_tracts_title {
  margin-top: 0px;
  display: block;
  text-align: center;
  font-size: 18px;
}

#svg-allCT {
  margin-left: 13%; 
}

#app {
  margin-left: 15%;
}


/* 508 Table */

#tabler {
  position: absolute;
  top: 1100px;
}

#content {
  display: block;
  max-width: 850px;
  height: 105px;
  overflow-y: scroll;
}

#fiveoeight_table {
  display: block;
  border: 2px solid #D3D3D3;
  border-collapse: collapse;
  font-size: 15px;
  font-family: sans-serif;
  position: absolute;
  width: 883px;
  margin-top: -40px;
}

#fiveoeight_table table, #fiveoeight_table table th, #fiveoeight_table table td {
  border: 2px solid #D3D3D3;
}

#fiveoeight_table td {
  width: 172px;
  height: 15px;
  padding-top: 7px;
  padding-bottom: 7px;
  border: 2px solid #D3D3D3;
  text-align: center;
}

.top_row {
  background-color: lightskyblue;
  font-size: 16px;
}

.first_col {
  background-color: #D3D3D3;
}

#fiveoeight_table thead {
  height: 15px;
  display: inline-table;
  width: 863px;
}

#fiveoeight_table tbody {
  display: inline-block;
  overflow-y: scroll;
  max-height: 500px;
  width: 880px;
}

#fiveoeight_table th {
  height: 15px;
  text-align: center;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 10px;
  padding-bottom: 10px;
  border: 2px solid #D3D3D3;
  font-weight: normal;
  width: 172px;
}


/* Search Bar */

.navbar-nav {
  display: inline-block;
  margin-top: 20px;
}

select {
  font-size: 13px;
}

.searchBar {
  margin-top: -10px;
}


/* Above the Viz, top part of the page */

#censusTractDiv {
  text-align: left;
  display: inline-block;
  width: 880px;
  font-size: 14px;
  margin-top: 0px;
}

#data_download {
  font-size: 14px;
}

.descript {
  width: 75%;
}

#download_row {
  margin-top: 10px;
}

.tablink {
    background-color: #555;
    color: white;
    float: left;
    border: none;
    outline: none;
    cursor: default;
    padding: 12px 8px;
    font-size: 16px;
    width: 21%;
    margin-left: 10px;
    border-radius: 12px;
}

.tablink:hover {
  background-color: #777;
}

.tabcontent {
  color: black;
  display: none;
  padding: 100px 20px;
  height: 100%;
}


/* Between the Viz and the Table */

.footnoter {
  font-size: 13px;
  margin-bottom: 7px;
  margin-top: -10px;
  font-family: sans-serif; 
  text-align: center;
}

.tableNote {
  font-family: sans-serif; 
  margin-bottom: 0px;
  font-size: 14px;
  margin-left: 15%;
}

#anchor {
  background-color: #075290; 
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: normal;
  font-size: 18px;
  border-radius: 4px;
  margin-top: 0px;
  width: 883px;
  margin-left: 15%;
}


/* Parts of the Right Sidebar */ 

#rt_button{
  border: solid 1px black;
  font-family: 'Open Sans' sans-serif;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  margin-top: 2px;
  margin-bottom: 2px;
  width: 70px;
  border-radius: 5px;
  font-size: 13px;
}

#rt_button_move{
  border: solid 1px black;
  font-family: 'Open Sans' sans-serif;
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 5px;
  padding-right: 5px;
  margin-top: 2px;
  margin-bottom: 2px;
  width: 70px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 900;
}


/* Map Elements */

#state-borders {
  fill:none;
  stroke-linejoin: round;
  stroke-linecap: round;
  pointer-events: none;
}

.county-boundary {
    stroke: #000;
}

#legend text {
  font-size: 13px;
  color: #333;
  font-weight: 400;
}

#legendSVG {
  margin-top: 0px;
  margin-bottom: 20px;
  margin-left: 50%
}

#legendSVG_intMap {
  margin-top: 0px;
  margin-bottom: 20px;
  margin-left: 50%
}

#legendSVG_statMap {
  margin-top: 0px;
  margin-bottom: 20px;
  margin-left: 50%
}


/* Info Tool */

#log_button{
  position: absolute;
  border: solid 1px black;
  font-family: 'Open Sans' sans-serif;
  font-size: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  margin-top: 2px;
  margin-bottom: 2px;
  width: 70px;
  border-radius: 5px;
  top: 80px;
}

.save{
  margin-left: 55px;
}

.reset{
  margin-left: 135px;
}

.infoTool {
  position: absolute;
  padding: 7px;
  font-size: 13px;
  font-family: 'Open Sans' sans-serif;
  pointer-events: visiblePainted;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  visibility: hidden;

  -moz-box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.25);
}

.infoTool > .currentArea {
  font-weight: 600;
  font-size: 13px;
  margin-top: 5px;
  margin-left: 5px;
}

.infoTool > .logName {
  font-weight: 600;
  font-size: 13px;
  margin-top: 75px;
  margin-left: 5px;
}

#infoToolTable {
  position: absolute;
  top: 125px;
}

#infoToolTable table, #infoToolTable td, #infoToolTable tr, #infoToolTable th {
  border: 1px solid black;
  border-collapse: collapse;
  font-size: 12px;
}

#currentGeoTable {
  position: absolute;
  top: 35px;
}

#currentGeoTable table, #currentGeoTable td, #currentGeoTable tr, #currentGeoTable th {
  border: 1px solid black;
  border-collapse: collapse;
  font-size: 12px;
}

#right_itTable {
  text-align: right;
  padding-right: 5px;
}

#left_itTable {
  padding-left: 5px;
}


/* Tooltip */

.tooltip {
  position: absolute;
  padding: 7px;
  font-size: 13px;
  font-family: 'Open Sans' sans-serif;
  pointer-events: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  opacity: 0;

  -moz-box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.25);
}

.tooltip p {
  margin: 0;
  padding: 0;
}

.tooltip table {
  margin: 0;
  padding: 0;
  border-collapse: collapse;
}


/* Loading Dongle */

.lds-ring {
  display: inline-block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin-left: 44%; 
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 51px;
  height: 51px;
  margin: 6px;
  border: 6px solid #A9A9A9;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #A9A9A9 transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(306deg);
  }
}


/* CSS for different screen sizes */

/*Viewport 5 Styles */
@media screen and (min-width: 1440px){

 .searchBar {
   margin-left: 22%;
 }
}

/* Viewport 4 Styles */
@media screen and (max-width: 1439px) and (min-width: 1200px){

 .searchBar {
   margin-left: 18%;
 }

 #svg-allCT {
   margin-left: 5%;
 }

 #svg-area {
   margin-left: 7%;
 }

 #right_sidebar {
   margin-left: 80%;
 }

 #app {
   margin-left: 9%;
 }

 .tableNote{
   margin-left: 9%;
 }

 #anchor {
   margin-left: 9%;
 }
}

/* Viewport 3 Styles */
@media screen and (max-width: 1199px){

 h5 {
  font-size: 13px;
 }

 .searchBar {
   margin-left: 17%;
   margin-top: 0px;
 }

 .navbar-nav {
   margin-top: 0px;
 }

 .tablink {
   padding: 8px 8px;
   font-size: 13px;
 }

 #right_sidebar {
    margin-left: 87%;
 }

 #svg-allCT {
  margin-left: -3%;
 }

 #download_row {
   margin-top: 10px;
 }

 #svg-area {
   margin-left: 1%;
 }

 #app {
   margin-left: 1%;
 }

 .tableNote{
   margin-left: 1%;
 }

 #anchor {
   margin-left: 1%;
 }
}

@media screen and (max-width: 980px) {
  #right_sidebar {
    margin-left: 840px;
  }
}

@media screen and (max-width: 885px) {
  #fiveoeight_table {
    font-size: 12px;
    width: 625px;
  }

  #fiveoeight_table tbody {
    width: 620px;
  }

  .top_row  {
    font-size: 12px;
    width: 602px;
  }

  #anchor {
    font-size: 13px;
    width: 625px;
  }

  .tableNote {
    font-size: 12px;
  }

  #fiveoeight_table td {
    padding-top: 2px;
    padding-bottom: 2px;
    width: 120px;
  }

  #fiveoeight_table th {
    padding-top: 2px;
    padding-bottom: 2px;
    height: 8px;
    width: 120px;
  }

  #fiveoeight_table thead {
    height: 8px;
    width: 602px;
  }
}

@media screen and (max-width: 767px) {
  .descript {
    width: 100%;
  }
}


/* Tabler Media Screens */

@media screen and (max-width: 1439px) and (min-width: 1200px){
  #tabler {
    top: 1121px; 
  }
}

@media screen and (max-width: 1199px) and (min-width: 881px){
  #tabler {
    top: 1134px; 
  }
}

@media screen and (max-width: 880px) and (min-width: 838px){
  #tabler {
    top: 1169px; 
  }
}

@media screen and (max-width: 837px) and (min-width: 780px){
  #tabler {
    top: 1198px; 
  }
}

@media screen and (max-width: 779px) and (min-width: 674px){
  #tabler {
    top: 1219px; 
  }
}

@media screen and (max-width: 673px){
  #tabler {
    top: 1240px; 
  }
}