/*
Stylesheet for Marion County Stem map
james@jamesbetley.com
version .995
12.11.25
*/

/* if device has a touch screen */
/* @media (any-pointer: coarse) {
  .yourDiv:active {
      background-color:red; 
  }
} */

/* if device has no touch screen */
/* @media (any-pointer: fine) {
  .yourDiv:active {
      background-color:green; 
  }
} */
  /* mobile/tablet layouts go here */
/* @media screen and (max-width: 768px) {
  body {
    background-color: lightblue;
  }
} */

body {
  font-size: .7em;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: steelblue;
  background: #031E51;
  margin: 0;
  padding: 0;

}

h4 {
  margin: 10px;
}

p {
  font-size: .7em;
  font-weight: 600;
  /* margin-left: 10px; */
}

button {
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  color: steelblue;
  background-color: #ffffff;
  font-size: .7em;
  font-weight: 300;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .5rem;
  padding: 9px;
  padding-top: 4px;
  height: 25px;
  width: 70px;
  position: relative;
}

button:hover {
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  color: white;
  background-color: #c0c1c7;
  font-size: .7em;
  font-weight: 600;
  border: 1px solid rgba(70, 130, 180, 1);
  border-radius: .5rem;
  padding: 9px;
  padding-top: 4px;
  height: 25px;
  width: 70px;
  position: relative;
}

.title-container {
  margin: 5px;
  text-align: center;
  font-weight: 700;
}

.title {
  padding-left: 15px;
  color: #ffffff;

}

.parent {
  /* display: grid; */
  /* grid-template-columns: repeat(2, 1fr); */
  grid-column-gap: 1px;
  grid-row-gap: 2px;
  width: 100%
  }

.overlay-div { grid-area: 1 / 1 / 2 / 3; }
.nav-one-div{ grid-area: 2 / 1 / 3 / 3; }
.nav-one-checkbox-div { grid-area: 2 / 1 / 3 / 3; }
.nav-two-div{ grid-area: 3 / 1 / 4 / 3; }
.nav-two-radio-div { grid-area: 3 / 1 / 4 / 3; }
.nav-three-div { grid-area: 4 / 1 / 5 / 3; }
.nav-three-legend-div { grid-area: 4 / 1 / 5 / 3; }
.main-div{ grid-area: 5 / 1 / 6 / 3; }
.main-map-div { grid-area: 5 / 1 / 6 / 3; }

/* all single col except for progs/overlay */
/* .overlay-div { grid-area: 1 / 1 / 2 / 3; }
.nav-one-div{ grid-area: 2 / 1 / 3 / 3; }
.nav-one-checkbox-div { grid-area: 2 / 1 / 3 / 2; }
.nav-one-radio-div { grid-area: 2 / 2 / 3 / 3; }
.nav-two-div { grid-area: 3 / 1 / 4 / 3; }
.nav-two-legend-div { grid-area: 3 / 1 / 4 / 3; }
.main-div{ grid-area: 4 / 1 / 5 / 3; }
.main-map-div { grid-area: 4 / 1 / 5 / 3; } */


/* .navigation-div { 
  grid-area: 1 / 1 / 4 / 5;
  width: 100%;
}

.overlay-div {
  grid-area: 1 / 1 / 2 / 5;
}

.nav-one-div {
  grid-area: 2 / 1 / 3 / 5;
}
.nav-one-checkbox-div { 
  grid-area: 2 / 1 / 3 / 3; 
}
.nav-one-radio-div { 
  grid-area: 2 / 3 / 3 / 5; 
}

.nav-two-div {
  grid-area: 3 / 1 / 4 / 5;
}
.nav-two-legend-div { 
  grid-area: 3 / 1 / 4 / 4;
}
.nav-two-subject-div { 
  grid-area: 3 / 4 / 4 / 5;
  min-width: 0;
} */
/* 
.main-div {
  grid-area: 4 / 1 / 6 / 5;
  display: flex;
}
.main-map-div { 
  grid-area: 4 / 1 / 6 / 4;
}

.sidebar-div { 
  grid-area: 4 / 4 / 6 / 5;
}
.main-key-div { 
  grid-area: 4 / 4 / 5 / 5;
  min-width: 0;
}
.main-analysis-div { 
  grid-area: 5 / 4 / 6 / 5;
  min-width: 0;
} */

#navigation {
  display: contents;
}

#overlay-nav {
  display: flex;
  justify-content: center;
  margin-left: 5px;
  margin-right: 5px;
  background-color: #ffffff;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .2rem;
}

#overlay-label {
  transform: translateY(5px);
  font-weight: 600;
}

#cbx-academic {
  padding-top: 5px;
}
.ctr {
  display: flex;
  align-items: center;
}

#overlay-title {
  font-size: .6rem;
  font-weight: 600;
}

#nav-one {
  display: flex;
  align-items: center;
  margin-left: 5px;
  margin-right:5px;
}
#nav-one-checkbox-container {
  display: flex;
  align-items: center;
  margin-top: 5px;

  background-color: #ffffff;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .2rem;
  width: 100%;
  /* height: 30px; */
}

#nav-two {
  margin-left: 5px;
  margin-right:5px;
  margin-bottom: 5px;
}
#nav-two-radio-container {
  display:flex;
  align-items: center;
  margin-top: 5px;
  margin-bottom: 5px;
  background-color: #ffffff;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .2rem;
  height: 30px;
}

#nav-two-label {
  margin-left:15px;
}
#nav-three {
  margin-left: 5px;
  margin-right:5px;
  margin-bottom: 5px;
}
#nav-three-legend-container {
  display:flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .2rem;
}

#legend {
  align-items: center;
  font-size: .7em;
  padding-left: 5px;
  height: 25px;
}
.legend-box {
  opacity: .6;
}

/* #nav-two-subject-container {
  display:flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid rgba(192, 193, 199, 1);
  padding-right: 10px;
  border-radius: .2rem;
  width: 100%;
  height: 25px;
} */

#main-map-container {
  border-radius: .2rem;
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
  background-color: rgba(192, 193, 199, .7);

}
.map {
  height: 800px;
  overflow: visible;
  z-index: 99;
}

#sidebar-container {
  margin-left: 5px;
  margin-right: 15px;
}

/* #main-key-container {
  display: none;
  font-family: 'Lora', sans-serif;
  justify-content: center;
  margin-bottom: 5px;
  background-color: #ffffff;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .2rem;
  height: 20%;
}

.key-table {
  display:none;
  font-size: .7em;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: 5px;
  width:20%;
  padding:3px;
  margin-bottom: 5px;
  height: 15px;
}

.key-table-header {
  font-weight: 700;
}

.key-table-tr {
  font-weight: 550;
}

.violet-circle {
  width: 20px;
  height: 20px;
  background-color: #3b42b7;
  opacity: .8;
  border-radius: 50%
}

.yellow-circle {
  width: 20px;
  height: 20px;
  background-color: #f7c640;
  opacity: .8;
  border-radius: 50%
}

.poly {
  transform: scale(0.7);
  transform-origin: left;
} */

/* adjust this using transform-origin top or bottom */
/* .poly-txt {
  transform: translateY(-0px);
} */

#main-analysis-container {
  display: none;
  font-family: 'Lora', sans-serif;
  display: flex;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .3rem;
  margin-bottom: 5px;
  height: 75%;
  width: 20%;
}

.analysis-table {
  display: none;
  justify-content: center;
  font-size: .7em;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .3rem;
  width:94%;
  padding:3px;
  margin-bottom: 5px;
  height: 15px;
}

caption {
  font-size: .7em;
  font-weight: 600;
  padding-bottom: 3px;
  padding-top: 3px;
}

.analysis-table-tr-header {
  height: 15px;
  font-weight: 600;
  text-align: center;
}

.analysis-table-title {
  font-size: .7em;
  font-weight: 550;
}

/* for popups */
#row-mid-line {
  position: relative;
  overflow: hidden;
  height: 10px;
}

#row-mid-line:before {
  content: '';
  position: absolute;
  left: 16%;
  width: 66%;
  height: 1px;
  background-color:  rgba(56,104,144, 1);
  margin-top:5px;
}

/* for analysis table */
.table-line > td {
  position: relative;
  text-align: center;
  padding: 5px;
  }

.table-line > td::after {
  content: '';
  position: absolute;
  bottom: 2;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1.5px;
  background-color:  rgba(56,104,144, 1);
}

.analysis-table-tr-val {
  height: 15px;
  font-weight: 500;
  text-align: center;
}

.analysis-table-tr {
  justify-content: center;
  font-weight: 600;
  height: 20px;
}

.row {
  display:flex;
}

#program-search {
  width: 15em;
}

/* override for mobile popup positioning - just
  below header */
/* .maplibregl-popup {
  transform: none !important;
  right: 20px !important;
  bottom: 20px !important;
  top: 7px !important;
  left: 7% !important;
  pointer-events: none;
} */

/* maplibre override to hide popup tip */
.maplibregl-popup-tip {
  display: none;
  width: 0px;
  height: 0px;
  box-shadow: none !important;
}

.maplibregl-popup table {
  border: 1px solid rgba(56,104,144, .5);
  padding: 5px; 
  font: 10px 'Inter', sans-serif;
  font-weight: bold;
  color: steelblue;
  text-align: center;
  width: 100%;
}

/* Popup styling */
#offerlist {
  text-align: left !important;;
}

.optext {
  font-size: .7em;
}

select {
  background: none;
  border: 1px solid #b4b4b4;
  border-radius: .5rem;
  box-sizing: border-box;
  color: steelblue;
  font-size: .7em;
  font-family: 'Inter', sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

#subjectSelect  {
  margin-left: 25px;
  background-color: #ffffff;
  height: 25px;
  width: 30%;
}

select option {
  color: steelblue;
}

select:hover {
  background-color: #c0c1c7;
}

select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

#multi-checkbox-title {
  padding-left:15px;
  font-size: .7em;
  font-weight: 600;
}

/* multiselect checkbox labels */
.multiselect-dropdown label {
  font-size: .7em;
} 

input[type="checkbox"] {
  height: auto;
  width: auto;
  -webkit-transform: scale(.5);
  -moz-transform: scale(.5);
  -ms-transform: scale(.5);
  -o-transform: scale(.5);
  transform: scale(.5);
  display: inline-block;
  margin-right: 5px; 
  border: 1px solid #0070BB; 
}

#program-checkboxes {
  display:flex;
  vertical-align: middle;
}

#program-checkboxes > label {
  padding-top: 5px;
}

/* Basic Checkboxes */
/* Multi-checkbox styling is in multiselect-dropdown.js */
.checkbox-wrapper *,
.checkbox-wrapper ::after,
.checkbox-wrapper ::before {
  box-sizing: content-box;
}

.checkbox-wrapper .cbx {
  position: relative;
  margin-left: 10px;
  margin-top: 4px;
  display: block;
  float: left;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid #b4b4b4;
  transition: all 0.15s ease;
}

.checkbox-wrapper .cbx svg {
  position: absolute;
  top: 3px;
  left: 3px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 17;
  stroke-dashoffset: 17;
  transform: translate3d(-.15rem, -.1rem, 0);
}

.checkbox-wrapper .cbx + span {
  float: left;
  margin-left: 3px;
}

.checkbox-wrapper {
  user-select: none;
}

.checkbox-wrapper label {
  display: inline-block;
  cursor: pointer;
  font-size: .7em;
  /* line-height: 18px; */
}

.checkbox-wrapper input[type="checkbox"] {
  display: none;
  visibility: hidden;
}

.checkbox-wrapper input[type="checkbox"]:checked + .cbx {
  background-color: #606062;
  background-image: linear-gradient(#255cd2, #1d52c1);
}

.checkbox-wrapper input[type="checkbox"]:checked + .cbx svg {
  stroke-dashoffset: 0;
  transition: all 0.15s ease;
}

/* Radio Buttons */
.radio-wrapper input[type=radio] {
  display: none;
  appearance: none;
}

.radio-wrapper input[type=radio] + label {
  font-size: .7em;
font-weight: 600;
}

.radio-wrapper input[type=radio] + label:before {
  content: "";
  background: #f4f4f4;
  border-radius: 100%;
  border: 1px solid #b4b4b4;
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  position: relative;
  top: -0.1em;
  margin-right: .2em;
  margin-left: .8em;
  vertical-align: middle;
  cursor: pointer;
  text-align: center;
}

.radio-wrapper input[type=radio]:checked + label:before {
  background-color: #3197EE;
  box-shadow: inset 0 0 0 4px #f4f4f4;
}

.radio-wrapper input[type=radio]:checked + label {
  font-weight: 800;
}

.radio-wrapper input[type=radio]:focus + label:before {
  outline: none;
  border-color: #3197EE;
}

.radio-wrapper input[type=radio]:disabled + label:before {
  box-shadow: inset 0 0 0 4px #f4f4f4;
  border-color: #b4b4b4;
  background: #b4b4b4;
}

.radio-wrapper input[type=radio] + label:empty:before {
  margin-right: 0;
}