body {
  margin: 0;
  padding: 0;
}

#chart {
  width: 155px;
}

.story-map-container {
  display: flex;
  overflow-x: hidden;
}

.demo-tool-link {
  margin-top: 5%;
  display: block;
}

.demo-tool-button.hide {
  display: none;
}

.demo-tool-button {
  width: 40%;
  border-radius: 25px;
  border: 1px solid;
  background-color: #E04B26;
  ;
  color: white;
  display: inherit;
  margin: auto;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.5rem;
  padding: 0.375rem .75rem;
}

.demo-tool-button:hover {
  border: 1px solid #E04B26;
  ;
  background-color: white;
  color: #E04B26;
}

.demo-tool-button a:hover {
  color: #E04B26;
}

.demo-popup-button {
  width: 25%;
  border-radius: 25px;
  margin-left: 10px;
  margin-right: 10px;
}

.contact-button {
  border-radius: 25px;
  width: 40%;
  display: inherit;
  margin: auto;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.5rem;
  padding: 0.375rem .75rem;
}


#map {
  height: calc(100vh - 56px);
  width: 100%;
  z-index: -5;
  background-color: #213C63;
  margin-top: 56px;
}

#clickArea {
  color: #ffffff;
  width: 100%;
  height: 100%;
  position: absolute;
}


#test {
  position: absolute;
  top: 20px;
  right: 50px;
  height: 400px;
  width: 400px;
  z-index: 99;
  border: 1px solid red;
  background-color: wheat;
}

.image_half {
  float: right;
  width: calc(50% - 60px);
  display: grid;
  margin: 20px;
}
.image_container {
  min-width: 160px;
  max-width: 300px;
  justify-self: center;
}

.image_container + .image_container {
  margin-top: 30px;
  margin-left: 0px;
  min-width: 80px;
  max-width: 150px;
  width: 50%;
  justify-self: center;
}

.popup-image {
  padding-left: 10px;
  justify-self: center;
  max-height: 190px;
}

#footer {
  width: 100%;
  min-height: 2vh;
  padding-top: 2vh;
  padding-bottom: 2vh;
  text-align: center;
  line-height: 20px;
  font-size: 16px;
  opacity: 0.75;
}

#logo {
  width: 50%;
}

.tab-tooltip {
  color: #00213F;
  /* background-color: #E04B26; */
  width: 120px;
  height: 100%;
  border-radius: 1rem 0rem 0rem 1rem;
  padding: 1rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -120px;
  transition: right 0.2s ease-in-out;
  z-index: 2;
}

.tab:hover .tab-tooltip {
  display: flex;
  right: 0px;
}

.tab[active="false"] .tab-tooltip {
  background-color: #D7D6D1;
}

.tab[active="true"] .tab-tooltip {
  background-color: #E04B26;
  color: #F0EFE6
}

.centered {
  width: 50vw;
  margin: 0 auto;
}

.lefty {
  height: calc(100vh - 56px);
  overflow-y: auto;
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
  scrollbar-width: none;
  /* Firefox */
}

.lefty::-webkit-scrollbar {
  display: none;
  width: 0px;
}

.righty {
  width: 33vw;
  margin-left: 62vw;
}

.light {
  color: #00213F;
  min-height: calc(100vh - 56px);
  background-color: #F0EFE6;
  opacity: 1;
  padding: 0px 2rem 1rem 2rem;
}

.tabs {
  height: 100%;
  width: auto;
  display: flex;
  flex-direction: column;
}

.tab {
  flex-grow: 1;
  width: 20px;
  position: relative;
  border-radius: 1rem 0rem 0rem 1rem;
  /* border-left: rgba(0,0,0,.1) 1px solid; */
}

.tab:not(:last-child) {
  margin-bottom: 4px;
}

.tab[active="false"] {
  background-image: linear-gradient(to right, transparent 0%, transparent 13px, #D7D6D1 13px, #D7D6D1 100%);
}

.tab[active="true"] {
  background-image: linear-gradient(to right, transparent 0%, transparent 13px, #E04B26 13px, #E04B26 100%);
  color: #F0EFE6
}

.story-open {
  display: none;
}

.story-open.open {
  display: block;
}

.story-closed {
  display: none;
}

.read-more-button {
  display: none;
}

.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid #D7D6D1;
  width: 100%;
}

.title-text-icon {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.title-text-icon h2 {
  font-size: 19px;
}

.arrows {
  position: absolute;
  bottom: 1rem;
  left: 19.5rem;
  height: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-height: 1rem;
  z-index: 1;
}

.arrow-up-link,
.arrow-down-link {
  align-content: center;
  display: flex;
  flex-direction: row;
}

.arrow-up,
.arrow-down {
  padding: 3px 2px;
  background-color: #F0EFE6;
}

.arrow-up.hide,
.arrow-down.hide {
  opacity: 0%;
  cursor: default;
}

.relevant-picture {
  min-height: 100px;
  max-height: 207px;
  height: 28vh;
  width: 100%;
  object-fit: cover;
  background-color: #D7D6D1;
}

.dark {
  color: rgb(236, 19, 193);
  background-color: #888d93;
}

.step {
  opacity: 0.1;
  display: flex;
}

.step.active {
  opacity: 1;
}

.step div {
  /* padding: 15px 3rem 15px 3rem; */
  line-height: 20px;
}

.relevant-picture {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
}

.step .description ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.step .description li {
  font-size: 12px;
}

.desktop-description {
  display: block;
}

.desktop-description p {
  font-size: 16px;
}

.description-general ul {
  font-size: 16px;
}

.livestatus {
  z-index: 1;
  color: white;
  opacity: 0.8;
}

.circle {
  border-radius: 50%;
  width: 9px;
  height: 9px;
  opacity: 0.8;
}

.green {
  display: inline-block;
  background-color: #33a02c;
  -webkit-animation: up-right 2s infinite;
  -moz-animation: up-right 2s infinite;
  -o-animation: up-right 2s infinite;
  animation: up-right 2s infinite;
}

@keyframes up-right {
  0% {
    transform: scale(1);
    opacity: 0.25;
  }

  50% {
    transform: scale (1, 5);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

#story {
  padding-top: 56px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  width: 25vw;
  z-index: 1;
  min-width: 350px;
  max-width: 500px;
}

.popup-column {
  min-width: 210px;
  max-width: 210px;
  padding-right: 10px;
}

.popup-column.operating-pieChart-column {
  max-width: 240px;
  padding-right: 5px;
  height: 220px;
}

.popup-column-wide {
  min-width: 420px;
  max-width: 420px;
  padding-right: 10px;
}

.popup-column + .popup-column {
  border-left-width: 1px;
  border-left-color: rgb(163, 163, 163);
  border-left-style: solid;
  padding-left: 10px;
}

.popup-column + .popup-column-wide {
  border-left-width: 1px;
  border-left-color: rgb(163, 163, 163);
  border-left-style: solid;
  padding-left: 10px;
}
.mapboxgl-popup-content {
  background-color: #F0EFE6;
  border-radius: 0px;
}

/* #pieChart {
  display: none;
} */

#pieChart {
  display: block;
  position: absolute;
  right: -250px;
  bottom: 10px;
  line-height: 20px;
  font-size: 10px;
  opacity: 0;
  color: #F0EFE6;
  z-index: 5;
  max-width: 250px;
  transition: 0.5s;
  height: 200px;
  width: 200px;
}

#lineChart {
  position: absolute;
  right: -350px;
  bottom: 10px;
  line-height: 20px;
  font-size: 10px;
  opacity: 0;
  color: #F0EFE6;
  z-index: 5;
  transition: 0.5s;
  width: 420px;
  height: 250px;
}

#barChart {
  position: absolute;
  background-color: #00213F;
  right: -350px;
  bottom: 10px;
  line-height: 20px;
  font-size: 10px;
  opacity: 0;
  color: #F0EFE6;
  z-index: 5;
  transition: 0.5s;
  width: 420px;
  height: 250px;
}

#gaugeChart {
  position: absolute;
  right: -350px;
  line-height: 20px;
  font-size: 10px;
  opacity: 0;
  color: #F0EFE6;
  z-index: 5;
  transition: 0.5s;
  width: 300px;
  height: 300px;
}

#gaugeChart::after {
  position: relative;
  display: block;
  content: "";
  bottom: 65%;
  left: 0%;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background-image: linear-gradient(to bottom, #00213F 0, #00213F calc(55% + 10px), rgba(0,0,0,0) calc(55% + 10px));
  z-index: -1;
}

#assetBarChart {
  position: absolute;
  right: -350px;
  bottom: 10px;
  line-height: 20px;
  font-size: 10px;
  opacity: 0;
  color: #F0EFE6;
  z-index: 5;
  transition: 0.5s;
  width: 420px;
  height: 250px;
}


#site_graph {
  position: absolute;
  right: -420px;
  bottom: 2px;
  line-height: 20px;
  font-size: 2rem;
  opacity: 0;
  color: #F0EFE6;
  z-index: 5;
  transition: 0.5s;
  width: 420px;
  height: 250px;
}

#pieChart.comein {
  opacity: 1;
  right: 0px;
  bottom: 27px;
  font-size: 14px;
}

#gaugeChart.comein {
  opacity: 1;
  right: 10px;
  bottom: 0px;
  font-size: 14px;
}

#lineChart.comein {
  opacity: 1;
  right: 10px;
  bottom: 40px;
  font-size: 14px;
}

#barChart.comein {
  opacity: 1;
  right: 10px;
  bottom: 40px;
  font-size: 14px;
}

#assetBarChart.comein {
  opacity: 1;
  right: 10px;
  bottom: 40px;
  font-size: 14px;
}

#site_graph.comein {
  opacity: 1;
  right: 10px;
  font-size: 14px;
}


/* condition inspector side table */
#site_graph_wrapper::before {
  content: attr(data-before-title);
  color: black;
  background-color: rgb(253, 191, 111);
  padding: 5px 10px;
  font-size: 14px;
  top: -2em;
  position: absolute;
  width: 100%;
}

#site_graph_wrapper {
  display: none;
  height: 212px;
  z-index: -1;
  background-color: #213C63;
}

#site_graph_wrapper.hasData {
  display: flex;
  z-index: 2;
}

#site_graph_chart_side {
  background-color: #213C63;
  color: #F0EFE6;
}

#site_graph_chart_side .form-check {
  padding-left: 4em;
  padding-top: 5px;
  background-color: #213C63;
}

#site_graph_chart {
  height: 100%;
  margin-top: -2px;
  padding: 10px 0px;
}

#site_graph_chart.nofaultsfound {
  background-color: #213C63;
  position: relative;
}

#site_graph_chart.nofaultsfound::before {
  content: "No Faults";
  color: #F0EFE6;
  font-weight: bold;
  font-size: 2rem;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  padding-left: 20px;
}

#site_graph_side {
  height: 100%;
  padding: 10px;
  color: #F0EFE6;
}

.graph_display {
  height: 50%;
  font-size: 18px;
  color: #F0EFE6;
  padding: 0px 10px;
  text-align: center;
  background-color: #213c63;
}

.graph_display h5 {
  padding: 0px;
  margin: 0px;
}

.graph_display h5+h5 {
  padding: 15px;
  font-size: 30px;
  font-weight: bold;
  background-color: #F0EFE6;
  color: #213c63;
  border-radius: 5px;
  margin-top: 10px;
}

#pieChart::after {
  content: attr(data-count); /* value that that refers to CSS 'content' */ 
  position: absolute;
  bottom: 55px;
  right: 54px;
  min-height: 62px;
  line-height: 90px;
  width: 92px;
  height: 90px;
  color: #F0EFE6;
  font-size: 1.1rem;
  text-align: center;
  border-radius: 50%;
  background-color:rgba(0, 33, 64, 0.8);
}

#pieChart.enviro::after {
  content: "150"; /* value that that refers to CSS 'content' */ 
}

#pieChart.asset::after {
  content: "3,011"; /* value that that refers to CSS 'content' */ 
}

#pieChart.condition::after {
  content: "1,500"; /* value that that refers to CSS 'content' */ 
}


#legendimg {
  display: inline-block;
  border: 0px solid;
  border-radius: 10px;
  width: 15px;
  height: 15px;
  margin-right: 10px;
}

#legend {
  position: absolute;
  left: -250px;
  bottom: 30px;
  padding: 10px;
  line-height: 20px;
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.9;
  color: #F0EFE6;
  z-index: 1;
  max-width: 250px;
  transition: 0.5s;
}

#legend.comein {
  width: 210px;
  left: 0px;
}

.legend-header {
  background-color: #00213F;
  width: 210px; 
  padding: 1rem 0rem 0.3rem 1rem;
  letter-spacing: 0.1em;
}

.legend-item {
  background-color: #00213F;
  width: 210px; 
  padding-left: 1rem;
}

.legend-item-last {
  background-color: #00213F;
  width: 210px; 
  padding-left: 1rem;
  padding-bottom: 1rem;
}

.legend-key {
  display: inline-block;
  border: 0px solid;
  border-radius: 10px;
  width: 10px;
  height: 10px;
  margin-right: 10px;
}

.legend2-key {
  display: inline-block;
  border: 0px solid;
  border-radius: 10px;
  width: 15px;
  height: 15px;
  margin-right: 10px;
}

#roadLegend {
  line-height: 20px;
  font-size: 12px;
  opacity: 0.9;
  color: #000000;
}

.roadLegend-key {
  display: inline-block;
  border-radius: 0px;
  width: 15px;
  height: 5px;
  margin-right: 10px;
}

#dimmingLegend {
  line-height: 20px;
  font-size: 12px;
  opacity: 0.9;
  color: #000000;
}

.dimmingLegend-key {
  display: inline-block;
  border-radius: 0px;
  width: 10px;
  height: 15px;
  margin-right: 10px;
}

#bikeLegend {
  line-height: 20px;
  font-size: 12px;
  opacity: 1;
  color: #000000;
}

.bikeLegend-key {
  display: inline-block;
  border-style: dashed;
  border-radius: 1px;
  border-width: 1px;
  border-color: pink;
  width: 12px;
  height: 0px;
  margin-right: 10px;
}

.haloLegend-key {
  display: inline-block;
  border: 3px solid;
  border-radius: 5px;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  box-sizing: content-box;
}

.crashlegend-key {
  width: 100px;
  background-image: linear-gradient(to right, #ffffff, #dc9d28, #ad1093);
  height: 10px;
  display: inline-block;
  border-radius: 0px;
  margin: 0px 0px 0px;
}

.crashlegend-text {
  display: inline-block;
  margin-right: 70px;
}

.line-legend {
  display: inline-block;
  border-style: solid;
  border-radius: 0px;
  border-width: 2px;
  width: 15px;
  height: 0px;
  margin-right: 10px;
  margin-bottom: 2px;
}

.poly-legend {
  display: inline-block;
  border-style: solid;
  width: 15px;
  height: 15px;
  margin-right: 10px;
}

.arrow-right {
  display: none;
}

.arrow-left {
  display: none
}


/* Fix issue on mobile browser where scroll breaks  */
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas {
  touch-action: unset;
}

@media only screen and (max-width: 992px) {
  .mapboxgl-popup-content {
    display: none;
  }

  .mapboxgl-popup-tip {
    display: none;
  }
  
  #pieChart.comein {
    display: none;
  }
  #gaugeChart.comein {
    display: none;
  }
  #lineChart.comein {
    display: none;
  }
  #barChart.comein {
    display: none;
  }

  #assetBarChart.comein {
    display: none;
  }

  #site_graph {
    display: none;
  }

  #chart {
    width: 120px;
  }
}

@media only screen and (max-width: 768px) {
  .story-map-container {
    display: flex;
    flex-direction: column-reverse;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    padding-top: 56px;
  }

  #story {
    padding-top: 0px;
    height: 40vh;
    height: calc((var(--vh, 1vh) * 40));
    display: flex;
    flex-direction: column-reverse;
    width: auto;
    max-width: none;
    min-width: none;
  }

  #story.visible {
    height: calc(100vh - 56px);
    height: calc((var(--vh, 1vh) * 100) - 56px);
  }

  .lefty {
    height: 40vh;
    height: calc(var(--vh, 1vh) * 40);
    overflow-y: hidden;
    display: flex;
    scroll-snap-points-x: repeat(100vw);
    scroll-snap-type: x mandatory;
  }

  .lefty.visible {
    height: calc(100vh - 56px);
    height: calc((var(--vh, 1vh) * 100) - 56px);
  }

  #map {
    width: 100vw;
    height: calc(60vh - 56px);
    height: calc((var(--vh, 1vh) * 60) - 56px);
    margin-top: 0px;
  }

  #map.mobile {
    width: 100vw;
    height: calc(60vh);
    height: calc((var(--vh, 1vh) * 0));
    margin-top: 0px;
  }

  #map.hide {
    display: none;
  }

  #legend {
    padding: 10px;
  }

  .legend-item, .legend-item-last, .legend-header {
    width: 140px; 
    padding: 0.5rem;
  }

  .read-more-button {
    display: block;
    position: absolute;
    bottom: 0.5rem;
    right: 2rem;
    text-decoration: none;
    border: none;
    color: #00213F;
    background-color: #F0EFE6;
    font-size: 12px;
    line-height: 1.5em;
    border-bottom: 1px solid;
  }


  .read-more-button.hide {
    display: none;
  }

  .light {
    min-height: calc(40vh - 56px);
    min-height: calc((var(--vh, 1vh) * 40)-56px);
    height: calc(40vh - 56px);
    height: calc((var(--vh, 1vh) * 40)-56px);
    top: 60vh;
    width: 100vw;
  }

  .light.open {
    top: 56px;
    min-height: calc(100vh - 56px);
    min-height: calc((var(--vh, 1vh) * 100) - 56px);
  }

  .desktop-description {
    display: none;
  }

  .story-closed {
    display: block;
  }

  .story-closed.open {
    display: none;
  }

  .tabs {
    flex-direction: row;
    width: 100%;
    height: auto;
  }

  .tab {
    flex-grow: 1;
    height: 20px;
    position: relative;
    border-radius: 0rem 0rem 1rem 1rem;
  }

  .tab:not(:last-child) {
    margin-right: 2px;
    margin-bottom: 0px;
  }

  .tab[active="false"] {
    background-image: linear-gradient(to top, transparent 0%, transparent 13px, #D7D6D1 13px, #D7D6D1 100%);
  }

  .tab[active="true"] {
    background-image: linear-gradient(to top, transparent 0%, transparent 13px, #E04B26 13px, #E04B26 100%);
    color: #F0EFE6
  }

  .tab-tooltip {
    width: 100%;
    height: 120px;
    border-radius: 0rem 0rem 1rem 1rem;
    padding: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -120px;
    right: 0px;
    transition: top 0.2s ease-in-out;
    writing-mode: vertical-rl;
  }

  .tab:hover .tab-tooltip {
    display: flex;
    top: 0px;
    right: 0px;
  }

  .relevant-picture {
    display: none;
  }

  .step {
    scroll-snap-align: start;
    opacity: 0.1;
  }


  .description-general {
    display: flex;
    flex-direction: column;
    height: calc(100% - 1rem);
    overflow-y: hidden;
    padding-top: 0px;
  }

  .description-general p {
    font-size: 17px;
  }

  .container-description-general {
    overflow: auto;
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox */
  }

  .container-description-general::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
  }

  .title {
    margin: 1rem 0px 1rem;
  }

  .title-text-icon {
    display: flex;
    justify-content: center;
    gap: 2rem;
  }

  .title h2 {
    margin-right: 1rem;
    margin-top: 0.2rem;
    font-size: 17px;
  }

  .arrow-left {
    display: block;
  }

  .arrow-left.hide {
    display: none;
  }


  .arrow-right {
    display: block;
  }


  .arrow-right.hide {
    display: none;
  }

  .arrows {
    display: none;
  }
}