/* devanagari */

@font-face {
  font-family: "Biryani";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/biryani/v6/hv-WlzNxIFoO84YdfUoTPAh5.woff2)
    format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8,
    U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}

/* latin-ext */

@font-face {
  font-family: "Biryani";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/biryani/v6/hv-WlzNxIFoO84YdfUUTPAh5.woff2)
    format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */

@font-face {
  font-family: "Biryani";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/biryani/v6/hv-WlzNxIFoO84YdfUsTPA.woff2)
    format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ROOT DOCUMENT THEMES
------------------------------------------------- */

:root {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
  --nav-bar-height: 62.4px;
  --tab-height: 35.2px;
}

/* width */

::-webkit-scrollbar {
  width: 10px;
}

/* Track */

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 15px;
}

/* Handle */

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 15px;
}

/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
  background-image: url("/assets/owow-slide_main-B-07.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  min-height: 100vh;
  /* min-width: 500px; */
  max-width: 100vw;
  overflow-y: auto;
}

/* BOOTSTRAP OVERRIDES */

/* -------------------------------------------------  */

/* * {
  font-size: 14px;
} */

.nav-tabs > .nav-item {
  cursor: pointer;
}

.btn-outline-primary {
  background-color: #fff;
  border: 0.8px #2196f3 solid;
  box-shadow: 0 0 8px #2196f3;
}
.bg-dark {
  --bs-bg-opacity: 1;
  background-color: #00050e;
}

.accordion-button {
  font-size: 1.1rem;
}

.navbar {
  padding: 0.3rem 0.5rem;
}

.alert a:not(.btn),
.alert .alert-link {
  /* color: #2a0079; */
  text-decoration: underline;
}

.alert a:not(.btn):hover,
.alert .alert-link:hover {
  /* color: #2a0079; */
  color: rgb(226, 226, 226);
}

.title_card {
  height: 100%;
}

.titleCardBody {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
  height: 100%;
  max-height: 400px;
  overflow-y: auto;
}

.custom-control-input ~ .custom-control-label,
.custom-control-input ~ .custom-control-label {
  font-weight: bold;
}

.custom-control-input[disabled] ~ .custom-control-label,
.custom-control-input:disabled ~ .custom-control-label {
  color: rgb(172, 172, 172);
  font-style: italic;
  font-weight: 400;
}

.row.row-grid [class*="col-"] + [class*="col-"] {
  margin-top: 15px;
}

@media (min-width: 1200px) {
  .row.row-grid [class*="col-xl-"] + [class*="col-xl-"] {
    margin-top: 0;
  }
}

@media (min-width: 992px) {
  .row.row-grid [class*="col-lg-"] + [class*="col-lg-"] {
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .row.row-grid [class*="col-md-"] + [class*="col-md-"] {
    margin-top: 0;
  }
}

.card-body {
  padding: 0.8rem !important;
}

/* Dash Style Class Overrides */

/* ---------------------------------------------------- */

.Select-multi-value-wrapper {
  height: 24px;
  /* padding: 0.25rem 0.5rem; */
  font-size: 0.75rem;
  line-height: 1.5;
  font-family: "Roboto";
  padding: 0.25rem 0.5rem;
}

.VirtualizedSelectOption {
  height: 25px !important;
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

.VirtualSelectGrid {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

.mapboxgl-ctrl-logo {
  display: None !important;
}

.js-plotly-plot .plotly .mapboxgl-ctrl-attrib.mapboxgl-compact::after {
  background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E') !important;
}
.mapbox-improve-map {
  display: none;
}
/* Personal Style Classes*/

/* ----------------------------------------------- */

.scrollingDropdown > .dropdown-menu {
  max-height: 150px;
  overflow: scroll;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

/* .dropdown-menu */
/* style anything like a card */

.cardStyle {
  position: relative;
  /* display: -webkit-box; */
  /* display: -ms-flexbox; */
  /* display: flex; */
  padding: 5px;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 0 solid transparent;
  border-radius: 0.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* helper class to ceter item absolutely */

.absoluteCenter {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* margin: auto; */
  left: 0;
  right: 0;
  text-align: center;
}

.fillCont {
  width: 100%;
  height: 100%;
}

/* placeholder for plot without data */

.blankPlot {
  background-image: url("/assets/plot_placeholder.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
}

.ts_switch {
  /* line-height: 10px; */
  margin-left: 5px;
}
.ts_switch_label {
  margin-bottom: 0px;
}
/* for help and maximize spans to alert user that they are buttons */

.grow {
  transition: all 0.1s ease-in-out;
}

.grow:hover {
  transform: scale(1.1);
}

/* class defining a maximized component card */

.maximizedPlot {
  position: fixed !important;
  height: calc((100vh - var(--nav-bar-height) - 16px) * 1) !important;
  top: calc(var(--nav-bar-height) + 5px) !important;
  left: 8px;
  z-index: 100;
  width: calc(100vw - 24px) !important;
}

.stationImgCont {
  display: block;
  width: auto;
  height: auto;
  margin: auto;
  max-height: calc(100% - 30px) !important;
  max-width: 100% !important;
  overflow: hidden;
}

.stationImgCont > img {
  object-fit: contain;
  width: 100%;
}

.maximizedImg {
  position: fixed !important;
  top: calc(var(--nav-bar-height) + 5px) !important;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: block;
  width: auto;
  height: auto;
  max-width: 100% !important;
  max-height: 85% !important;
  overflow: visible !important;
}

.maximizedImg > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 95vh;
}

.z100 {
  z-index: 100;
}

.z90 {
  z-index: 90;
}

.bottomBorder {
  border-bottom: 2px solid rgb(151, 151, 151);
  outline: 0px none;
  /* margin-right: 50px; */
  overflow: hidden;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.aboutInfoCard {
  max-width: 350px;
  margin: 20px auto;
}

.squareBtn {
  border-radius: 0px;
}

.alertHelp {
  position: fixed;
  z-index: 500;
  left: 50%;
  transform: translateX(-50%);
  top: calc(var(--nav-bar-height) + 10px);
  /* width: 80vw; */
  /* height: calc(100vh - var(--nav-bar-height) - 20px); */
}

.alertHelp video {
  max-width: 80vw;
  max-height: 70vh;
  height: auto;
  width: auto;
  z-index: -1000;
  overflow: hidden;
}
.maximizer {
  margin-left: 10px;
}

.cardToolbar {
  position: absolute;
  right: 8px;
  top: 8px;
  background-color: #d1e5ff;
  border-radius: 10px;
  padding: 1px 10px;
  z-index: 1;
  border: 1px solid #a3baff;
}

.maximizer {
  margin-left: 10px;
}

.cardToolbar {
  position: absolute;
  right: 8px;
  top: 8px;
  background-color: lightblue;
  border-radius: 10px;
  padding: 1px 10px;
}

@media (min-width: 768px) {
  .ts_switch {
    margin-left: 0px;
  }
}

/* .updatedBadge {
  position: absolute;
  right: 10px;
  top: 0px;
} */

/* .homeBtn {
  background-color: transparent !important;
  background-image: none !important;


  
}
.homeBtnGroup {
  display: flex;
  background-image: url("/assets/owow-slide_main-B-07.jpg");
  background-size: contain;
} */

/* SPECIFIC ELEMENT STYLES */

/* ----------------------------------------------- */

/*************************************************************/

/* full height strip and compliance plots inside of tab inside of card */

#aboutCardBody {
  display: block;
  font-size: 1.15rem;
  font-weight: 300;
}

#aboutImg {
  float: none;
  margin: 15px auto;
  display: block;
}

/* #sawpaLinkCardCont {
  display: flex;
  flex-direction: row;
  margin: 20px auto;
  justify-content: space-around;
  align-items: stretch;
  width: 800px;

 
} */

#headerText {
  text-align: left;
  padding-top: 20px;
  display: none;
}
/* 
#headerText > h5,
h3 {
  #font-family: "Biryani";
} */

/* #inventoryCont {
  width: 50%;
  padding-right: 10px;
  position: relative;
} */

#homeTable td {
  padding: 5px;
}

#aboutContainer {
  margin-top: 10px;
}

/* #timeSeriesCard > .card-body {
  height: 100%;
} */

#complianceContainer > div,
#stripContainer > div {
  height: calc(100% - 35.5px);
}

#stripCard,
#stripCardBody,
#stripContainer,
.tab-pane,
.tab-pane > div,
.tab-pane > div > .dash-graph {
  height: 100%;
}

.tab-pane,
.tab-pane > div,
.tab-pane > div > .dash-graph {
  height: 100%;
}

.nav.nav-tabs {
  height: auto !important;
}

#table
  > div.dash-spreadsheet-container
  > div.dash-spreadsheet-inner
  > div.dt-table-container__row.dt-table-container__row-1 {
  overflow: auto;
  min-width: 150px;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

/*************************************************************/

/*style mapframe as a card*/

.map > .js-plotly-plot > .plot-container > .svg-container > .main-svg,
.map
  > .js-plotly-plot
  > .plot-container
  > .svg-container
  > .gl-container
  > .mapboxgl-map {
  border-radius: 5px;
}

/*************************************************************/

/* make navbar buttons have larger text */

#navbar-collapse > .navbar-nav > .nav-link {
  font-size: 16px;
}

/*************************************************************/

/* Style priority group buttons */

#quarter_btn_group {
  width: 100%;
  margin-bottom: 10px;
}

.topdropdown {
  margin-right: 1rem !important;
  margin-top: 0.25rem !important;
}

.topdropdown > .btn.dropdown-toggle {
  min-width: 105px;
}

.topdropdown > .btn.dropdown-toggle::before {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
}

/*************************************************************/

/* when on a small screen set heights of various components */

#homeDataRow > [class*="col"] {
  min-height: 400px;
}

#homeTable {
  overflow-wrap: anywhere;
}

#homeMapCol {
  height: 100px;
}

#mapCol {
  height: 30vh;
  min-height: 200px;
}

#stripCol {
  height: 30vh;
  min-height: 300px;
}

#complianceRowThree {
  min-height: 350px;
  /* height: 80vh; */
}

#complianceTableRow {
  height: 40vh;
}

/* #downloadtext:before {
  content: "";
} */

#dataTableCont {
  /* height: calc(100% - 135px); */
  height: calc(100% - 85px);
}

#table {
  height: 100%;
}

#page-content {
  max-width: 1900px;
}

.dash-spreadsheet.dash-freeze-top,
.dash-spreadsheet.dash-virtualized {
  max-height: 100% !important;
}

/*************************************************************/

/* flex radio button on small screen */

#TsOptsChevron {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
}

#TsOptsBtn {
  padding: 0px;
}

#stationsRadio {
  display: flex;
  flex-wrap: wrap;
  /* margin-top: 2rem; */
  margin-bottom: 0rem;
  margin-right: 1.5rem;
  /* max-height: %; */
  /* overflow-y: auto; */
  min-width: 150px;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
  flex-grow: 0;
}

#stationsRadioContainer {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

#stationsControlContainer {
  padding-top: 20px;
  /* height: 100%; */
}

#stationsRadio > .custom-radio {
  margin-right: 10px;
}

#complianceContainer {
  flex-grow: 1;
  padding: 10px;
  width: 100%;
  /* min-height: 50vh; */
  /* max-height: 80vh; */
}

#stationsRadio > .custom-radio.custom-control > .custom-control-label::before,
#stationsRadio > .custom-radio.custom-control > .custom-control-label::after {
  left: -1.8rem !important;
}

#imgMaximizer {
  display: none;
}

#trendsMapCol {
  max-height: 300px;
}

#wetWeatherCol1 {
  height: 100%;
  border-bottom: 1px grey solid;
  /* padding-bottom: 5px; */
}

#longProfCol {
  height: 100%;
  border-bottom: 1px grey solid;
  padding-bottom: 5px;
}
#wetWeatherCol2 {
  padding-top: 5px;
}

#longProfRow,
#wetWeatherRow {
  min-height: 300px;
}

#wetWeatherCard {
  margin-left: calc(var(--bs-gutter-x) * 0.5);
  height: auto;
}

#trendsPlotsCol {
  height: auto;
}

#ts_switch_container {
  border-bottom: solid grey 1px;
  padding-bottom: 3px;
  margin-bottom: 8px;
  display: flex;
}

/*************************************************************/

/* 
media queries to limit row heights when on a large screen
these media queries fit all cards in the view port when screen is large
*/
@media (max-width: 1034px) {
  #logoBar,
  #logoDesc {
    display: None;
  }
}

@media (min-width: 576px) {
  #headerText {
    display: block;
  }
  #aboutImg {
    float: right;
  }
  #imgMaximizer {
    display: block;
  }
}

@media (min-width: 768px) {
  #ts_switch_container {
    display: block;
  }

  #homeMapCol {
    height: auto;
  }
  #aboutContainer {
    max-width: 80%;
    margin: 10px auto;
  }
  #stationsRadio > .custom-radio.custom-control > .custom-control-label::before,
  #stationsRadio > .custom-radio.custom-control > .custom-control-label::after {
    left: -3rem !important;
  }
  #complianceContainer {
    width: calc(100% - 172px - 1.5rem);
    height: 100%;
    min-height: unset;
    max-height: unset;
  }
  #complianceRowOne {
    height: 40px;
  }
  #complianceRowTwo {
    height: calc((100vh - var(--nav-bar-height) - 40px) * 0.4);
    min-height: 250px;
  }
  #complianceRowThree {
    height: calc((100vh - var(--nav-bar-height) - 40px) * 0.6);
    min-height: 350px;
  }
  #mapCol {
    height: 100%;
    padding-right: 7.5px;
    min-height: 0px;
  }
  #stripCol {
    height: 100%;
    padding-left: 7.5px;
    min-height: 0px;
  }
  /* #downloadtext:before {
    content: "Download Data ";
  } */
  /* #stationsRadioContainer {
    max-height: calc(100% - 1.6rem);
  } */

  #stationsRadio {
    display: block;
    flex-wrap: nowrap;
    /* margin-top: 1.5rem;
    max-height: 100%; */
  }
  #stationsRadio > .custom-radio {
    margin-right: 0px;
  }
  /* #aboutCardBody {
    display: flex;
    flex-direction: row;
  } */
  /* #aboutInfoCard {
    margin: 20px;
  } */
  #stationsControlContainer {
    /* padding-top: 20px; */
    height: 100%;
  }
}

@media (min-width: 992px) {
  #headerText {
    text-align: right;
    padding-top: 0px;
  }
  #homeDataRow > [class*="col-"] {
    height: calc((100vh - var(--nav-bar-height)) * 0.45);
  }
  #complianceTableRow,
  #trendsMapRow {
    height: calc((100vh - var(--nav-bar-height) - 40px) * 0.5);
  }
  #longProfRow,
  #wetWeatherRow {
    height: 50%;
    min-height: initial;
  }
  #trendsPlotsCol {
    padding-left: 7.5px;
    height: 100%;
  }
  #complianceTableCol,
  #trendsMapCol {
    padding-right: 7.5px;
  }

  #trendsMapCol {
    max-height: 100%;
  }

  #wetWeatherCol1 {
    border-right: 1px grey solid;
    border-bottom: None;
    padding-bottom: 5px;
    padding-top: 5px;
  }

  #wetWeatherCard {
    /* margin-left: calc(var(--bs-gutter-x) * 0.5); */
    height: calc((100vh - var(--nav-bar-height) - 40px));
  }
}

/*************************************************************/

/*custom app loading spinner */

._dash-loading {
  content: none;
  text-indent: -9999px;
  background-image: url("/assets/owow-slide_main-B-07.jpg");
  height: 100vh;
  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: top + 500px;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  z-index: -1;
}

._dash-loading::before {
  animation: 1.5s linear infinite spinner;
  animation-play-state: inherit;
  border: solid 10px #cfd0d1;
  border-bottom-color: #1c87c9;
  border-radius: 50%;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 100px;
  height: 100px;
  will-change: transform;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/***************************************************************/

/* #blurground {
  opacity: 0.7;
  background-image: url("https://sawpa.org/wp-content/uploads/revslider/owow-home/owow-slide_main-B-07.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
  filter: blur(50px);
  transform: scale(1.2);
  height: 100%;
  width: 100%;
}

#blurground_cont {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
  width: 100%;
  height: 100%;
} */

/* #title_card{
    width:50%;
    position: fixed;
    top:50%;
    left:20%;
} */

/* Dash Tabs 100% height
.tab {
  padding: 0px !important;
  height: var(--tab-height);
}

#strips-parent,
#strips-parent > .tab-content > div,
#strips-parent > .tab-content > div > .dash-graph {
  height: 100%;
}

#strips-parent > .tab-container {
  height: auto !important;
}

#strips-parent > .tab-content {
  height: calc(100% - var(--tab-height));
} */

/* Dash boot strap component 100% height tab content */

/* #complianceTS
  > .js-plotly-plot
  > .plot-container
  > .svg-container
  > .modebar-container {
  margin-top: 40px !important;
} */

/* #paramsRadio {
  margin-left: 5px;
  padding-bottom: 10px;
  height: 30px;
  border-bottom: solid 1px #2196f3;
  display: inline-block;
} */

/* #complianceTS {
  width: 100%;
  height: calc(100% - 30px - 10px);
} */

/* @media (min-width: 768px) {
  #paramsRadio {
    position: absolute;
    right: 0px;
    top: 0px;
    margin-top: 5px;
    margin-right: 40px;
  }
} */
