*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

/* Hide leaflet control scroll bar */
.leaflet-control-layers-list {
  overflow: hidden;
}

.leaflet-control-layers {
  font-size: 11px;
}

body {
  font-family: sans-serif;
  box-sizing: border-box;
}

/* ================================================================== HEADER STYLING ================================================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: black;
}

header h1 {
  font-size: 28px;
  color: white;
  text-shadow: 2px 2px 4px #858080;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* ================================================================== NAVIGATION STYLES ================================================================== */
nav ul {
  list-style: none;
  display: flex;
}

header nav ul li {
  margin-right: 10px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
}

header nav ul li a:hover {
  color: cyan;
}

/* ================================================================== FOOTER STYLES ================================================================== */
footer {
  background-color: black;
  color: #555;
  padding: 10px 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: white;
  cursor: pointer;
}

/* ================================================================== ABOUT POPUP STYLES ================================================================== */
#about-popup {
  display: none;
  position: fixed;
  background-color: white;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  width: 900px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
}

@media (max-width: 768px) {
  #about-popup {
    width: 450px;
  }
}

#about-popup .close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #555;
}

#about-popup .close-btn:hover {
  color: black;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

#about-popup > p {
  color: black;
  font-size: 18px;
  padding: 10px 10px 0px 10px;
}

.credits {
  font-size: 12px;
  padding: 10px 10px 0px 10px;
}

.linkedin-link {
  color: rgb(0, 128, 128);
  text-decoration: none;
}

.linkedin-link:hover {
  text-decoration: underline;
}

h5 {
	font-size: 0.8rem;
}

h3 {
	font-size: 1.5rem;
}
/* ================================================================== MAP STYLING ================================================================== */
/* ================================= MAP CONTAINERS ================================= */
#map-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
}

@media (min-width: 768px) {
  #map-layout {
    flex-direction: row;
  }
}

/* Map section container */
#map-section {
  margin-top: 3vh;
  margin-left: 1vw;
}

/* Map container */
#map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

@media (min-width: 320px) {
  #map-container {
    height: 700px;
    width: auto;
  }
}

/* Styles for all maps, hidden by default */
.map {
  height: 100%;
  width: 100%;
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Show selected map */
.map.active {
  display: block;
}

#languageSelect,
#disabilitySelect {
  font-size: 10px;
}

/* ================================= MAP BUTTON STYLING ================================= */
#map-btn-container {
  display: flex;
  flex-wrap: wrap;
}

.mapSelectBtn {
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: black;
  flex: 1;
  min-width: 50px;
  text-align: center;
}

@media (min-width: 768px) {
  .mapSelectBtn {
    padding: 10px 20px;
  }
}

.mapSelectBtn:focus,
.mapSelectBtn:active {
  outline: 3px solid lightblue;
  z-index: 1;
}

#btnDemographicLanguageMap {
  background-color: rgb(0, 188, 212);
}

#btnHealthRiskBehaviorsMap {
  background-color: rgb(96, 125, 139);
  color: white;
}

#btnHealthOutcomesMap {
  background-color: rgb(255, 221, 221);
}

#btnScreeningRatesMap {
  background-color: rgb(156, 39, 176);
  color: white;
}

#btnHealthStatusMap {
  background-color: rgb(76, 175, 80);
}
/* ================================================================== ZIPCODE STYLING ================================================================== */
#zip-code-container {
  margin-top: 3vh;
  width: 100%;
  height: auto;
  border: 1px solid rgb(33, 37, 41);
}

@media (min-width: 768px) {
  #zip-code-container {
    width: 30vw;
    height: auto;
  }
}

#zip-code-header {
  display: flex;
  gap: 20px;
  padding: 18px;
  background-color: rgb(0, 150, 136);
}

#zip-code-header-text {
  font-weight: bold;
  color: white;
  font-size: 16px;
}

#zip-code-dropdown {
  font-weight: bold;
}

#zip-code-content {
  max-height: 95%;
  overflow-y: auto;
  padding: 5px 18px 18px 18px;
}

details > summary {
  padding: 4px;
  width: 200px;
  background-color: #f7f5f5;
  border: none;
  border-radius: 5px;
  box-shadow: 1px 1px 2px #bbbbbb;
  cursor: pointer;
}

details > p {
  background-color: #fff;
  border-radius: 5px;
  padding: 4px;
  margin: 0;
  box-shadow: 1px 1px 2px #bbbbbb;
}

#zip-list-item {
  font-size: 14px;
}

/* ================================================================== LEGEND STYLING ================================================================== */
/* Legend container styles */
.legend,
.healthRiskLegend,
.healthOutcomesLegend,
.screeningRatesLegend,
.healthStatusLegend {
  padding: 2px 2px;
  font: 9px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255, 255, 255, 0.5);
  line-height: 24px;
  color: #555;
  min-width: 125px;
  max-width: 150px;
}

/* Legend heading styles */
.legend h4,
.healthRiskLegend h4,
.healthOutcomesLegend h4,
.screeningRatesLegend h4,
.healthStatusLegend h4 {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 0px;
}

/* Legend icon styles */
.legend i,
.healthRiskLegend i,
.healthOutcomesLegend i,
.screeningRatesLegend i,
.healthStatusLegend i {
  width: 12px;
  height: 18px;
  float: left;
  margin: 0 4px 0 0;
  opacity: 0.7;
}

/* Legend text styles */
.legend span,
.healthRiskLegend span,
.healthOutcomesLegend span,
.screeningRatesLegend span,
.healthStatusLegend span {
  position: relative;
  bottom: 3px;
}

/* ================================================================== High Charts ================================================================== */
#highCharts-section {
  margin-top: 10px;
  padding: 20px;
}

#hc-btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: black;
}

#hc-btns button {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  color: white;
  background-color: transparent;
  border: none;
}

#hc-btns button:hover {
  background-color: #777;
}

#hc-btns button:focus,
#hc-btns button:active {
  background-color: rgb(33, 150, 243);
}

.high-charts-container {
  width: 100%;
  height: 400px;
  border: 1px solid rgb(33, 37, 41);
}

.highcharts-credits {
  display: none;
}

/* ================================================================== High Charts ================================================================== */

/* COLOR PREDOMINANT LANGUAGE RETURN SIDEBAR TEXT*/
/* .Chinese{
            color : #963f92ff;
            font-weight: bold;
        }
.Russian{
            color: #e28513ff;
            font-weight: bold;
        }
.German{
            color: #3288bd;
            font-weight: bold;
        }
.Spanish{
            color: #41a15b;
            font-weight: bold;
        }
.French {
    color: rgb(44, 165, 172);
    font-weight: bold;
}
.Korean {
    color: rgb(78, 218, 155);
    font-weight: bold;
}
.Korean {
    color: rgb(78, 218, 155);
    font-weight: bold;
} */
