@font-face {
  font-family: Raleway;
  src: url(../static/fonts/Raleway-VariableFont_wght.ttf);
}

@font-face {
  font-family: openSans;
  src: url(../static/fonts/OpenSans-Light.ttf);
}

:root {
  --header-height: 7.5rem;
  --footer-height: 1.5rem;
  --logo-padding: 1rem;
  --main-height: calc(100vh - var(--header-height) - var(--footer-height));
  --panel-height: var(--main-height);
  --panel-left: 0px;
  --panel-width: 23rem;
  --frca-blue-l1: hsl(209, 100%, 31%);
  --frca-blue-l2: hsl(212, 44%, 47%);
  --frca-blue-l3: hsl(210, 39%, 66%);
  --frca-green-l1: hsl(73, 87%, 40%);
  --frca-green-l2: hsl(180, 34%, 64%);
  --frca-green-l3: hsl(85, 43%, 54%);
  --frca-orange: hsl(33, 100%, 50%);
  --frca-purple: hsl(219, 14%, 50%);
  --frca-text-dark: hsl(0, 0%, 39%);
  --frca-text-light: hsl(0, 0%, 100%);
  --scrollbar-color: hsl(0, 0%, 69%);
  --panel-background: hsl(0, 0%, 100%);
  --panel-background-l2: hsl(212, 44%, 47%);
  --footer-background: hsl(0, 0%, 30%);
  --palette-primary: hsl(128, 12%, 48%);
  --palette-outreach: hsl(128, 12%, 70%);
  --palette-covered: hsl(128, 12%, 57%);
  --palette-not-covered: hsl(0, 0%, 42%);
}

::-webkit-scrollbar {
  /* -webkit-appearance: none; */
  width: 0.65rem;
}

::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: var(--scrollbar-color);
}

* {
  box-sizing: border-box;
  font-family: openSans;
  line-height: normal;
  margin: 0;
  padding: 0;
}

hr {
  background-color: #cfcfcf;
  height: 1px;
  border: none;
  width: 100%;
}

a,
a:link,
a:visited {
  text-decoration: none;
}

a:hover,
a:link:hover,
a:visited:hover,
#address-table:hover {
  cursor: pointer;
  color: var(--frca-blue-l1);
  font-weight: 300;
}

p {
  font-size: 1rem;
  font-weight: 200;
  color: var(--frca-text-dark);
}

h6 {
  font-family: Raleway;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--frca-blue-l2);
}

h5 {
  font-family: Raleway;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--frca-blue-l1);
}

h4 {
  font-family: Raleway;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--frca-blue-l2);
  padding: 0.6rem 0;
}

.header {
  display: flex;
  align-items: center;
  height: var(--header-height);
  width: 100vw;
  background-color: var(--panel-background);
  border-bottom: 1rem solid var(--footer-background);
  background: linear-gradient(0.25turn, var(--panel-background), 80%, #a2d06c, 92%, #6c7fc4);
}

img.logo {
  height: calc(var(--header-height) - var(--logo-padding));
  margin-left: 3rem;
}

.icon {
  width: 1.3rem;
  height: 1.3rem;
  margin-right: 0.5rem;
}

li {
  font-size: 1rem;
  padding: 0.2rem 0;
  margin-left: 0.3rem;
  list-style-type: none;
}

li > * {
  display: inline-block;
}

li a {
  text-decoration: none;
  color: var(--frca-text-dark);
}

a,
a * {
  display: inline-block;
  vertical-align: middle;
}

.address {
  display: flex;
  justify-content: left;
  align-items: center;
  color: var(--frca-text-dark);
  padding-top: 0.2rem;
}

.back-button {
  display: flex;
  align-content: center;
}

.back-button img {
  padding: 0;
  width: 2rem;
  height: 2rem;
}

.zoom-button {
  display: none;
  margin-right: 0.5rem;
}

.back-button:hover,
.back-button img:hover,
.zoom-button:hover {
  cursor: pointer;
}

.loader-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--panel-background);
  left: 0;
  top: var(--header-height);
  height: var(--main-height);
  width: 100vw;
  z-index: 5;
}

.loader {
  border: 8px solid hsl(0, 0%, 77%);
  border-top: 8px solid var(--frca-blue-l2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  animation: spin 2s linear infinite;
}

.main {
  position: absolute;
  background-color: var(--panel-background);
  left: 0;
  top: var(--header-height);
  height: var(--main-height);
  width: 100vw;
  opacity: 0;
  overflow: hidden;
  z-index: 0;
}

#map {
  position: absolute;
  left: calc(var(--panel-width));
  right: 0;
  top: 0;
  height: 100%;
  z-index: 2;
}

.list-panel-group,
.info-panel-group {
  position: absolute;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: var(--panel-width);
  background-color: var(--panel-background);
  z-index: 2;
  opacity: 0;
}

.info-panel-background {
  background-color: var(--panel-background);
  height: var(--panel-height);
  width: var(--panel-width);
}

.list-panel-header,
.info-panel-header {
  display: flex;
  align-items: center;
  background-color: var(--frca-blue-l2);
  color: var(--frca-text-light);
  font-family: Raleway;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 1rem 0.8rem;
  box-shadow: 0px 0.8px 4px 0.6px hsl(0, 0%, 20%);
  z-index: 4;
}

.list-panel-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-container {
  display: flex;
  justify-content: center;
  background-color: var(--scrollbar-color);
  padding: 0.8rem;
}

.search-container input {
  font-size: 1rem;
  background-color: var(--panel-background);
  color: var(--frca-text-dark);
  caret-color: var(--frca-text-dark);
  width: 95%;
  height: 2rem;
  outline: none;
  border: none;
  padding: 0 10px;
  border-radius: 0.9rem;
}

.info-panel-header {
  padding: 0.86rem 0.3rem;
  justify-content: space-between;
}

.list-panel,
.info-panel {
  color: hsl(0, 0%, 27%);
  font-size: 0.9rem;
  font-weight: 200;
  text-align: left;
  height: 100%;
  width: inherit;
  padding: 0;
  margin: 0;
  overflow-y: scroll;
  overflow-x: hidden;
}

.info-panel-group {
  left: calc((var(--panel-width) + var(--panel-left)) * -1);
  transition: 0.3s linear;
  z-index: 3;
}

.info-panel {
  opacity: 0;
  transition: opacity 0.2s linear;
  padding: 0.4rem 0.5rem;
  background-color: var(--panel-background-l2);
  padding-bottom: 4rem;
}

.info-panel h6 {
  text-align: center;
  padding-top: 0.3rem;
  margin-bottom: 0.3rem;
}

.sticky-header {
  /* position: -webkit-sticky; */
  position: sticky;
  top: -0.4rem;
  background-color: var(--panel-background);
  padding: 1rem 0.7rem 0.8rem 0.7rem;
  border-radius: 0 0 10px 10px;
  box-shadow: 0px 1.5px 1px 0.6px hsla(0, 0%, 20%, 0.4);
  z-index: 3;
}

.info-panel .center-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--panel-background);
  padding: 0.7rem;
  padding-bottom: 0;
  margin-top: 0.5rem;
  border-radius: 10px 10px 0 0;
}

img#center-logo {
  max-width: calc(var(--panel-width) - 2rem);
  max-height: calc(var(--panel-width) / 1.5);
  object-fit: contain;
  padding: 1rem 1rem 0 1rem;
  margin-bottom: 0;
}

.info-panel .contact,
.info-panel .about-us,
.info-panel .success-story {
  background-color: var(--panel-background);
  padding: 0.5rem 1.8rem;
  text-align: left;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  border-radius: 10px;
  box-shadow: 1px 1px 1px 1px hsl(0, 0%, 30%);
}

.info-panel h4 {
  font-size: 1.2rem;
}

.heading {
  font-weight: 600;
  color: var(--frca-blue-l2);
}

.service-types,
.geographic-types {
  margin-top: 5px;
}

.service-types > li,
.geographic-types > li,
.organization-structure > li {
  list-style-type: "- ";
  margin-left: 1.5rem;
  font-size: 1rem;
  color: var(--frca-text-dark);
}

#list-item {
  padding: 0.9rem;
}

#list-item h5 {
  padding-bottom: 0.2rem;
}

#list-item:hover {
  background-color: hsla(0, 0%, 45%, 0.1);
}

.legend {
  position: absolute;
  display: flex;
  flex-direction: column;
  background-color: var(--panel-background);
  bottom: 2rem;
  right: 0.8rem;
  height: fit-content;
  max-width: fit-content;
  border-radius: 8px;
  padding: 0.4rem 1rem 0.1rem 1rem;
  box-shadow: 1px 1px 3px 1px hsl(0, 0%, 45%);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.4s linear;
}

.legend .title {
  text-align: center;
  color: var(--frca-blue-l2);
  margin: 0.4rem 0 0.3rem 0;
  font-size: 1.2rem;
  font-weight: 500;
  font-family: Raleway;
  padding-bottom: 0.2rem;
}

.legend-item {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.legend-type {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.legend-type p {
  font-size: 1rem;
  font-weight: 600;
}

.legend-palette {
  width: 2rem;
  height: 1.2rem;
  margin-right: 0.7rem;
}

.legend-statement {
  font-size: 1rem;
  padding-bottom: 0.6rem;
}

[data-area-color="primary"],
[data-area-color="FRCA-Member-Center-Coverage"] {
  background-color: var(--palette-covered);
}

[data-area-color="outreach"] {
  background-color: var(--palette-outreach);
}

[data-area-color="not-covered"] {
  background-color: var(--palette-not-covered);
}

.footer {
  position: absolute;
  display: flex;
  align-items: center;
  top: calc(var(--header-height) + var(--main-height));
  left: 0;
  height: var(--footer-height);
  width: 100vw;
  background-color: var(--footer-background);
  z-index: 1;
}

.footer p {
  font-size: 0.7rem;
  font-weight: 200;
  padding-left: 2rem;
  color: hsl(0, 0%, 85%);
}

.mapboxgl-popup-close-button {
  display: none;
}

.mapboxgl-popup-content {
  background-color: rgb(44, 44, 44) !important;
  color: hsl(0, 0%, 88%) !important;
  padding: 8px 8px !important;
  max-width: 15rem;
  max-height: fit-content;
  font-size: 1rem !important;
  font-weight: 200;
  text-align: center;
  border-radius: 5px !important;
}

.mapboxgl-popup-tip {
  display: none !important;
}

.show {
  opacity: 1;
  transition: opacity 0.3s linear;
}

.show-block {
  display: block;
}

.hide {
  display: none;
}

.slide-in {
  left: var(--panel-left);
  opacity: 1;
  transition: 0.3s linear;
}

.slide-out {
  left: calc(var(--panel-width) * -1);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* .map-overlay {
  display: none;
  position: absolute;
  width: 220px;
  top: 125px;
  right: 10px;
  padding: 10px;
  background-color: rgb(236, 236, 236);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  font-size: 0.8rem;
  z-index: 5;
}

.map-overlay-header {
  display: flex;
  justify-content: space-between;
  background-color: rgb(236, 236, 236);
}

.map-overlay label {
  font-size: 0.8rem;
}

.tool-close {
  font-size: 20px;
  font-weight: 600;
}

.tool-close:hover {
  cursor: pointer;
}

.layers-edit {
  display: flex;
  justify-content: baseline;
  padding: 3px;
}

.layers-edit p {
  position: absolute;
  right: 5px;
  font-size: 0.9rem;
}

.color-switch {
  position: absolute;
  background-color: #fff;
  top: 125px;
  right: 10px;
  padding: 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  z-index: 4;
}

.color-switch:hover {
  cursor: pointer;
}

.show-color-tool {
  display: block;
} */
