/*
Stylesheet for Central Indiana Stem map
james@jamesbetley.com
version .99911226
1.12.26
*/

body {
  font-size: 1.2em;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: #2a4e6c;
  background: #031E51;
  margin: 0;
  padding: 0;
}

h4 {
  margin: 10px;
}

p {
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

dialog {
  background: #e3e3e3;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  border: thin solid steelblue;
  min-width: 300px;
  padding: 15px 10px;
  pointer-events: auto;
  position: absolute;
  margin-top: 90px;
}

/* removes default styling */
blockquote {
  margin: 0;
  padding: 0;
}

.modal-content {
  background-color: white;
  padding: 20px;
  width: 50%;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: #2a4e6c;
}

.modal-overlay.visible {
  display: flex;
}

#modal-text {
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .4rem;
  padding: .2rem;
  margin-bottom: 10px;
}

button {
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  color: #2a4e6c;
  background-color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .5rem;
  padding: 9px;
  padding-top: 2px;
  height: 25px;
  width: 70px;
  position: relative;
}

button:hover {
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  color: white;
  background-color: #c0c1c7;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(70, 130, 180, 1);
  border-radius: .5rem;
  padding: 9px;
  padding-top: 2px;
  height: 25px;
  width: 70px;
  position: relative;
}

/* remove default styles */
header {
  margin: 0;
  padding: 0;
}
.title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2px;
}
.title {
  padding-left: 15px;
  color: #ffffff;
}
.instruction-button {
  margin-left: auto;
  width: 100px;
  height: 30px;
  font-size:9px;
  padding-bottom:2px;
  margin-right: 16px;
}
.instruction-button:hover {
  width: 100px;
  height: 30px;
  font-size:9px;
}

.parent {
  /* display: grid; */
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 1px;
  grid-row-gap: 2px;
  width: 100%;
  }

/* currently a placeholder */
.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;
}

.nav-contents {
  display: contents;
}

#navigation {
  display: contents;
}

#overlay-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  margin-right: 15px;
  background-color: #ffffff;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .2rem;
  height: 25px;
}

.overlay-label {
  transform: translateY(5px);
  font-weight: 600;
}

#display-academic {
  padding-top: 5px;
}
.ctr {
  display: flex;
  align-items: center;
}

#overlay-title {
  font-size: 12px;
  font-weight: 600;
  margin-right:15px;
}

#nav-one {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  margin-right: 15px;
}
#nav-one-checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  margin-bottom: 5px;
  background-color: #ffffff;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .2rem;
  width: 100%;
  height: 30px;
}
#nav-one-radio-container {
  display:flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  margin-bottom: 5px;
  background-color: #ffffff;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .2rem;
  width: 100%;
  height: 30px;
}

#nav-two {
  display: flex;
  align-items: center;
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 5px;
}

#nav-two-legend-container {
  display:flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .2rem;
  height: 25px;

}
#legend {
  align-items: center;
  font-size: 10px;
  padding-left: 15px;
  height: 25px;
  width: 600px;
}

.legend-title {
  line-height: 17px;
  margin-right: 12px;
  font-weight: 600;
  font-size: 1.1em;
}

.legend-item {
  display: flex;
  float: left;
  align-items: center;
  margin-top: 4px;
}

.legend-box {
  opacity: .6;
  width: 15px;
  height: 15px;
  margin-right: 2px;
  border: 1px solid #ccc;
}

.legend-label {
  line-height: 17px;
  margin-right: 6px;
  font-weight: 600;
}

#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;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}

#main-map-container {
  border-radius: .2rem;
  margin-left:15px;
  background-color: rgba(192, 193, 199, .7);
}
.map {
  height: 800px;
  width: 800px;
  overflow: visible;
  float: left;
  z-index: 97;
  cursor: pointer;
}

#sidebar-container {
  margin-left: 5px;
  margin-right: 15px;
  width: 100%;
}

#main-key-container {
  font-family: 'Lora', sans-serif;
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
  background-color: #ffffff;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .2rem;
  height: 20%;
}

.key-table {
  font-size: 10px;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: 5px;
  width:94%;
  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;
}

#main-analysis-container {
  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: 79%;
  width: 100%;
}

.analysis-table {
  justify-content: center;
  font-size: 10px;
  border: 1px solid rgba(192, 193, 199, 1);
  border-radius: .3rem;
  width:94%;
  padding:3px;
  margin-bottom: 5px;
  height: 15px;
}

caption {
  font-size: 12px;
  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: 11px;
  font-weight: 550;
}

/* 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;
}

/* analysis table */
.table-line > td {
  position: relative;
  text-align: center;
  padding: 3px;
  }

.table-line > td::after {
  content: '';
  position: absolute;
  bottom: 1;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  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;
}

/* maplibre override to hide popup tip */
.maplibregl-popup-tip {
  display: none;
  width: 0px;
  height: 0px;
  box-shadow: none !important;
}

/* background when dialog is active */
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.maplibregl-popup table {
  border: 1px solid rgba(56,104,144, .5);
  padding: 5px; 
  font: 10px 'Inter', sans-serif;
  font-weight: bold;
  color: #2a4e6c;
  text-align: center;
  width: 100%;
}

#info-popup {
  border: 1px solid rgba(56,104,144, .5);
  border-radius:.7em;
  padding: 5px; 
  font: 14px 'Inter', sans-serif;
  font-weight: bold;
  color: #2a4e6c;
  text-align: center;
  width: 100%;
}

#info-popup-msg {
  line-height: 30px;
}
#offerlist {
  text-align: left !important;;
}

.optext {
  font-size: 10px;
}

select {
  background: none;
  border: 1px solid #b4b4b4;
  border-radius: .5rem;
  box-sizing: border-box;
  color: #2a4e6c;
  font-size: .75rem;
  font-family: 'Inter', sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

#select-subject  {
  margin-left: 25px;
  background-color: #ffffff;
  height: 25px;
  width: 30%;
}

select option {
  color: #2a4e6c;
}

select:hover {
  background-color: #c0c1c7;
}

select:focus {
  outline: 1px solid #000000;
  outline-offset: 1px;
}

#multi-checkbox-title {
  font-size: 12px;
  font-weight: 600;
  margin-right: 5px;
}

/* multiselect checkbox labels */
.multiselect-dropdown label {
  font-size: 10px;
} 

input[type="checkbox"] {
  height: 18px;
  width: 18px;
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
  display: inline-block;
  margin-right: 5px; 
  margin-left: 15px; 
  border: 1px solid #0070BB; 
}

#program-checkboxes {
  display:flex;
  vertical-align: middle;
}

#program-checkboxes > label {
  padding-top: 5px;
  vertical-align: middle;
}

/* Basic Checkboxes */
/* Multi-checkbox styling is in multiselect-dropdown.js */
.checkbox-wrapper *,
.checkbox-wrapper ::after,
.checkbox-wrapper ::before {
  box-sizing: content-box;
}

.checkbox-wrapper {
  user-select: none;
  display: flex;
}

.checkbox-wrapper label {
  display: inline-block;
  cursor: pointer;
  font-size: 12px;
  line-height: 25px;
}

/* Radio Buttons */
.radio-wrapper input[type=radio] {
  opacity: 0;
  position: absolute
}

.radio-wrapper input[type=radio] + label {
  /* font-size: 11px; */
  font-size: 1vw;
  font-weight: 600;
  cursor: pointer;
}

.radio-wrapper input[type=radio] + label:before {
  content: "";
  background: #f4f4f4;
  border-radius: 50%;
  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;
  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: 1px solid #000000;
  outline-offset: 1px;
  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;
}