/* General */
* {
  margin: 0;
}
body {
  font-size: 15px;
  font-family: "Roboto", sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}
h1 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 500;
  color: #06688E;
}
fieldset {
  font-size: 1em;
  border-radius: var(--border-radius);
  background-color: white;
}
select,
input {
  cursor: pointer;
}
select {
  border: 1px dotted var(--theme-dvrpc-accent);
  border-radius: var(--border-radius);
  padding: 0.75em;
  background-color: white;
  font-size: inherit;
  box-shadow: var(--box-shadow);
}
input[type="radio"],
input[type="checkbox"] {
  margin-right: 0.75em;
}
a {
  color: var(--theme-black);
}

:root {
  --theme-dvrpc: #0078ae;
  --theme-dvrpc-accent: #366478;
  --theme-black: #505a5e;
  --theme-white: #f7f7f7;
  --theme-offwhite: #f2f2f2;
  --theme-offwhite2: #ebebf3;
  --theme-dark: #505a5e;
  --theme-dark2: #979797;
  --theme-pop: #004e76;
  --theme-emp: #54278f;

  --padding-half: 5px;
  --padding: 10px;
  --padding-2: 20px;

  --border-radius: 4px;
  --box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.15);
  --box-shadow-nav: 1px 2px 3px rgba(0, 0, 0, 0.3);
  --box-shadow-half: 0.5px 1px 1.5px rgba(0, 0, 0, 0.15);
}
.flex-row {
  display: flex;
  align-items: center;
}
.flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flex-between {
  justify-content: space-between;
}
.flex-around {
  justify-content: space-around;
}
.flex-end {
  justify-content: flex-end;
}
.material-icons {
  font-size: 21px;
  color: #06688E;
}
.icon-button {
  all: unset;
  height: 21px;
}
.icon-button:hover {
  cursor: pointer;
}
/* END General */

/* Modal */
.modal-toggle,
.close-modal {
  cursor: pointer;
  font-size: inherit;
}
.modal {
  position: fixed;
  display: none;
  z-index: 3;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.3);
}
.modal-content {
  position: relative;
  background: var(--theme-white);
  color: var(--theme-black);
  width: 50em;
  height: 90vh;
  overflow-y: auto;
  padding: var(--padding-2);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.modal-content > * {
  max-width: 45em;
  margin: 0 auto;
}
.modal-content p {
  margin-top: 1em;
}
.modal-section h3 {
  color: var(--theme-dvrpc-accent);
}
.close-modal {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 1.5em;
}
.modal-content-subheader {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--theme-dvrpc);
}
.modal-hr {
  margin: var(--padding-2) auto;
  width: 45em;
}
#about_footer {
  background-color: #b9def0;
  border-radius: 4px;
  border: 1px solid transparent;
}
#about_footer p {
  margin: 0px 0px 0px 10px;
  padding: 5px;
}
/* END Modal */

/* Navbar */
nav {
  position: relative;
  height: 50px;
  width: calc(100% - var(--padding-2));
  padding: 0 var(--padding);
  background-color: var(--theme-dvrpc-accent);
  color: var(--theme-white);
  box-shadow: var(--box-shadow-nav);
  z-index: 2;
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}
.nav-btn {
  font-size: 1em;
  color: var(--theme-white);
  background: transparent;
  border: none;
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
}
.nav-vr {
  font-size: 1.5em;
  font-weight: 200;
}

.project-logo {
  margin-right: var(--padding-half);
}
.mapboxgl-ctrl-dvrpc{
  height:100px;
}
/* END Navbar */

/* Main Webmap Area */
.main-content-wrapper {
  height: calc(100vh - 64px);
}
#regional-extent-img {
  display: block;
  margin: 0 auto;
  height: 20px;
  width: 20px;
}
.lds-ring {
  display: none;
  position: relative;
  width: 100px;
  height: 100px;
  top: calc(50% - 40px);
  left: calc(50% - 40px);
  z-index: 2;
}
.lds-ring-active {
  display: inline-block;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 80px;
  height: 80px;
  margin: 8px;
  border: 8px solid var(--theme-dvrpc);
  border-radius: 50%;
  border-color: var(--theme-dvrpc) 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(360deg);
  }
}
/* END Main Webmap Area */

/* Sidebar */
.sidebar-wrapper {
	width: 33%;
	height: 100%;
	box-shadow: var(--box-shadow);
	z-index: 1;
	border-top-right-radius: var(--border-radius);
}
.sidebar {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--theme-offwhite);
  color: var(--theme-black);
  box-shadow: var(--box-shadow);
  z-index: 1;
}
.sidebar-content {
  padding-top: var(--padding);
  min-height: calc(100% - var(--padding));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.details {
  margin:var(--padding);

}
.summary {
  font-weight: 700;
  cursor: pointer;
}
.details-ul {
  margin-bottom: var(--padding);
}
.sidebar-h2 {
  font-size: 1.25rem;
}
.sidebar-h2-large {
  font-size: 1.5rem;
}
.sidebar-h2-large small {
  display: block;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 400;
}
.sidebar-h3 {
  color: var(--theme-dvrpc-accent);
  font-size: 1.125em;
  font-weight: 400;
  margin-top: var(--padding-2);
}
.sidebar-h3:first-of-type {
  margin-top: var(--padding);
}
.sidebar-img {
  display: block;
  max-width: 100%;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
}
.sidebar-fieldset label {
  margin-right: 5px;
}
.details-content {
  box-shadow: var(--box-shadow-half);
  border-radius: var(--border-radius);
  padding: var(--padding) var(--padding-2);
  margin-bottom: var(--padding);
  background: white;
}
.mcdName {
  display: none;
  text-align: center;
  background-color: white;
  padding-bottom: var(--padding);
}
.mcdDetails {
  display: none;
  background-color: #fff;
  padding: var(--padding);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-half);
  margin:var(--padding);

}
.table-wrapper {
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
}
.sidebar-group-header {
  background-color: var(--theme-dvrpc-accent);
  color: #f7f7f7;
  padding: 0.25rem 0;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.chart-wrapper {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: var(--box-shadow);
  margin-bottom: var(--padding-2);
}
.chart-wrapper:last-of-type {
  margin: 0;
}
.chart {
  max-height: 315px;
  display: inline-block;
  width: 100%;
  padding-top: var(--padding);
}
.chartCO-header {
  margin-top:20px;
}
/* END Sidebar */

/* Header */
header {
    height: 64px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    box-shadow: var(--box-shadow);
}

.header-container {
  display: flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 24px;
}

#dvrpc-logo {
  height: 100%;  
}

.logo-container {
  height: 36px;
  margin-left: 24px;

  padding-right: 16px;
  margin-right: 16px;
  border-right: 2px solid #06688E;
}
/* END Header */

/* Map */
.map {
  position: relative;
  width: 67%;
  height: 100%;
}
.map-overlays-container {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.legend-form {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: var(--padding);
  box-shadow: var(--box-shadow-half);
  border-radius: var(--border-radius);
  background-color: white;
  margin-bottom: var(--padding);
}
.mapboxgl-popup-content {
  padding: var(--padding-2) var(--padding);
}
.popup-span {
  display: block;
}
.popup-span:not(:last-of-type) {
  border-bottom: 1px dotted var(--theme-black);
}
.mapboxgl-ctrl-geocoder,
.mapboxgl-ctrl-geocoder .suggestions,
.mapboxgl-ctrl-group:not(:empty) {
  box-shadow: var(--box-shadow);
}
.mapboxgl-ctrl-geocoder--input {
  cursor: text;
  color: var(--theme-black);
}
.mapboxgl-popup-content {
  border-radius: 4px;
  font-size: 1.2em;
  text-align: center;
}
/* END Map */

/* Legend Boxes */
.legend-container {
  position: absolute;
  z-index: 1;
  top: 100px;
  left: 10px;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  background-color: #fff;
  color: var(--theme-black);
  padding: var(--padding) 15px;
  width: max-content;
}
.legend-h3 {
  width: 100%;
  font-size: 0.9rem;
  margin-bottom: var(--padding-half);
  align-self: flex-start;
  color: var(--theme-dvrpc-accent);
}
.legend-box-item {
  margin-bottom: var(--padding);
  width: 100%;
}
.legend-icon {
  width: 20px;
  height: 20px;
  margin-right: var(--padding-half);
}
.legend-icon:last-child {
  margin-bottom: 0;
}
/* Score Colors */
.pop-1 {
  background: #dfeffb;
}
.pop-2 {
  background: #a6cfe1;
}
.pop-3 {
  background: #4d9dc0;
}
.pop-4 {
  background: #0078ae;
}
.pop-5 {
  background: #004e76;
}
.popABS-1 {
  background: #cccccc;
}
.popABS-2 {
  background: #dfeffb;
}
.popABS-3 {
  background: #a6cfe1;
}
.popABS-4 {
  background: #4d9dc0;
}
.popABS-5 {
  background: #0078ae;
}
.popPER-1 {
  background: #dfeffb;
}
.popPER-2 {
  background: #a6cfe1;
}
.popPER-3 {
  background: #4d9dc0;
}
.popPER-4 {
  background: #0078ae;
}
.emp-0 {
  background: #cccccc;
}
.emp-1 {
  background: #dadaeb;
}
.emp-2 {
  background: #bcbddc;
}
.emp-3 {
  background: #9e9ac8;
}
.emp-4 {
  background: #756bb1;
}
.emp-5 {
  background: #54278f;
}

/* End Score Colors */

/* Footer */
footer {
  /* height: calc(5% - var(--padding-2));
  width: calc(100% - var(--padding-2));
  padding: var(--padding);
  background-color: white;
  color: var(--theme-black); */
  /* position: relative; */
  background-color: #3A3A3A;
  color: white;
  padding: 32px 16px 32px 16px;
  margin-top: auto;
}

footer a {
  color: white;
  text-decoration: underline;

}

.footer-top {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.footer-logo-wrapper {
  /* width: 50%; */
  /* padding-right: 16px; */
}

.dvrpc-info-wrapper {
  /* width: 50%; */
  padding-left: 16px;
  border-left: 2px solid white;

}

.footer-bottom {
  margin-top: 16px;
  text-align: left;
  width: 100%;
  text-align: center;
}

.social-media-logo {
  height: 16px;
}

.social-media-link {
  text-decoration: none !important;
}





.footer-logo {
  height: 70px;
}
/* END Footer */
/* Table */
/* ------------------
 styling for the tables 
   ------------------   */
.crashtable {
  border-collapse: collapse;
  text-align: center;
  width: 100%;
  margin-bottom: var(--padding-2);
}
th {
  text-align: left;
  font-weight: normal;
  font-size: 80%;
}
td {
  font-size: 90%;
}
th {
  font-weight: 700;
}
th:last-child {
  border: none;
}
td, th {
  padding: 8px 4px;
}
.th-true {
  text-align: center;
  border-right: 1px solid #bdbdbd;
}
.crashtable .odd {
  background: #ededed;
}
/* .crashtable .odd th {
  padding: 4px;
}
.crashtable .odd td {
  padding: 2px;
}
.crashtable .even th {
  padding: 4px;
}
.crashtable .even td {
  padding: 2px;
} */

/* END Footer */
