@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;1,600&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

a,
a:hover,
a:visited {
  color: #0071bc;
}

#navBar {
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  transition: all 0.3s ease-in-out;
  opacity: 1;
}
#navBar.hideNav {
  opacity: 0;
}
#navBar.hideNav:hover {
  opacity: 1;
}

#map {
  top: 0;
  height: 100vh;
  width: 100vw;
  position: fixed;
}

#mapInset {
  bottom: 50px;
  right: 30px;
  height: 180px;
  width: 250px;
  max-width: 100%;
  position: fixed;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

#mapInset .mapboxgl-ctrl-bottom-left {
  display: none;
}

@media (max-width: 500px) {
  #mapInset {
    display: none;
  }
}

#header {
  margin: auto;
  width: 100%;
  position: relative;
  z-index: 5;
}

#header h1,
#header h2,
#header p {
  margin: 0;
  padding: 2vh 2vw;
  text-align: center;
}

h3 {
  color: #0071bc;
}

#footer {
  width: 100%;
  min-height: 5vh;
  padding-top: 2vh;
  padding-bottom: 2vh;
  text-align: center;
  line-height: 25px;
  font-size: 13px;
  position: relative;
  z-index: 5;
}

#features {
  padding-top: 7vh;
  padding-bottom: 7vh;
}

.hidden {
  visibility: hidden;
}

.centered {
  width: 50vw;
  margin: 0 auto;
}

.lefty {
  width: 33vw;
  margin-left: 5vw;
}

.righty {
  width: 33vw;
  margin-left: 62vw;
}

.fully {
  width: 100%;
  margin: auto;
}

.light {
  color: #8a8c8f;
  background-color: rgba(250, 250, 250, 0.9);
}

.dark {
  color: #fafafa;
  background-color: #444;
}

.step {
  padding-bottom: 50vh;
  /* margin-bottom: 10vh; */
  opacity: 0.25;
  transition: all 0.3s ease-in-out;
}

.step.active {
  opacity: 0.99;
}

.step div {
  padding: 10px 25px;
  line-height: 25px;
  font-size: 13px;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  text-align: justify;
  position: relative;
}

.step img.imgFluid {
  width: 100%;
  border-radius: 4px;
}

.logoContainer {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logoContainer a {
  text-decoration: none;
}
.logoContainer a img {
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  justify-self: end;
  list-style: none;
  gap: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  color: #444;
  margin: 0;
  padding: 0;
}
.menu li {
  cursor: pointer;
}

.menu a {
  color: #444;
  text-decoration: none;
}

.hero {
  height: 100vh;
  background-color: #fff;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding-top: 50px;
}

.hero h1,
.hero h5,
.hero p {
  z-index: 1;
  position: relative;
}

.hero p {
  font-size: 14px;
  font-weight: 200;
  text-align: center;
}

.hero h1 {
  max-width: 80%;
  text-align: center;
  font-size: 2.5rem;
}

.hero h5 {
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 4px;
  word-spacing: 6px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  padding: 3px 20px;
  border-radius: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero h5 img {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2px 3px;
  border-radius: 3px;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.hero .video-wrapper:before {
  content: '';
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
}

.mapboxgl-control-container {
  top: 70px;
  position: fixed;
}

.step .ch4OnMap {
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  position: fixed;
  bottom: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.step .ch4OnMap.left {
  left: 10px;
}

.step .ch4OnMap.right {
  right: 10px;
}

.ch4OnMap h4 {
  margin: 5px 0;
  font-size: 18px;
  color: #444;
}

.step.active .ch4OnMap,
.step.active .legends {
  opacity: 1;
  visibility: visible;
}

.layerlist {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.legends {
  background-color: #fff;
  padding: 5px 10px;
  border-radius: 10px;
  position: fixed;
  bottom: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.legends.left {
  left: 10px;
}

.legends.right {
  right: 10px;
}

.legends h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #444;
}

.stakeholders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  text-align: left;
}
.stakeholders img {
  height: 60px;
  max-width: 100%;
  display: block;
}

.footer {
  max-width: 80%;
  margin: auto;
  text-align: left;
}
#refs {
  display: none;
}
#refs.showRefs {
  display: block;
}
.refBtn {
  cursor: pointer;
  text-decoration: underline;
}

.modal {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  display: none;
}
.modal .modalContainer {
  background-color: #fff;
  padding: 20px;
  margin: 20vh auto 0;
  border-radius: 8px;
  position: relative;
}

.modal.fs .modalContainer {
  margin-top: 0;
  padding: 5px;
  max-width: 80%;
}

.show {
  display: block !important;
}
.closeBtn {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  z-index: 1;
  background: #fff;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
}
#modalCh4 .modalContainer {
  display: table;
  padding: 5px;
}
#modalCh4 .modalContainer img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 100%;
}
#comparison {
  aspect-ratio: 843 / 488;
  overflow: hidden;
  position: relative;
}
figure {
  position: absolute;
  background-image: url(./images/after_sundarbans.png);
  background-repeat: no-repeat;
  background-size: contain;
  font-size: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
#divisor {
  background-image: url(./images/before_sundarbans.png);
  background-repeat: no-repeat;
  background-size: calc(80vw - 44px);
  position: absolute;
  width: 50%;
  box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.3);
  bottom: 0;
  height: 100%;
}
#divisor::before,
#divisor::after {
  content: '';
  position: absolute;
  right: -2px;
  width: 4px;
  height: calc(50% - 25px);
  background: white;
  z-index: 3;
}
#divisor::before {
  top: 0;
  box-shadow: 0 -3px 8px 1px rgba(0, 0, 0, 0.3);
}
#divisor::after {
  bottom: 0;
  box-shadow: 0 3px 8px 1px rgba(0, 0, 0, 0.3);
}
#handle {
  position: absolute;
  height: 50px;
  width: 50px;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  z-index: 1;
}
#handle::before,
#handle::after {
  content: '';
  width: 0;
  height: 0;
  border: 6px inset transparent;
  position: absolute;
  top: 50%;
  margin-top: -6px;
}
#handle::before {
  border-right: 6px solid white;
  left: 50%;
  margin-left: -17px;
}
#handle::after {
  border-left: 6px solid white;
  right: 50%;
  margin-right: -17px;
}
input[type='range'] {
  -webkit-appearance: none;
  -moz-appearance: none;
  position: absolute;
  top: 50%;
  left: -25px;
  transform: translateY(-50%);
  background-color: transparent;
  width: calc(100% + 50px);
  z-index: 2;
}
input[type='range']:focus,
input[type='range']:active {
  border: none;
  outline: none;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: none;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background: transparent;
  border: 4px solid white;
  box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.3);
}
input[type='range']::-moz-range-track {
  -moz-appearance: none;
  height: 15px;
  width: 100%;
  background-color: transparent;
  position: relative;
  outline: none;
}

#fullMap,
#topSlide {
  visibility: hidden;
}
.scrollToZoom {
  position: absolute;
  top: -25px;
  border: none;
  padding: 5px 10px;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
}
.legend-img {
  background-color: #fff;
  box-shadow: none;
  margin-bottom: 5px;
}
.legend-img img {
  width: 100px;
}

@media (max-width: 750px) {
  .centered,
  .lefty,
  .righty,
  .fully {
    width: 90vw;
    margin: 0 auto;
  }
  .logoContainer {
    gap: 10px;
    flex-wrap: wrap;
  }
  .logoContainer a {
    font-size: 12px;
  }
  .logoContainer img {
    height: 30px;
  }
  .logoContainer a:last-child {
    flex-basis: 100%;
  }
  .menu {
    gap: 10px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero h5 {
    gap: 10px;
  }
  .video-wrapper video {
    height: 100%;
  }
  .legends,
  .legends.right,
  .legends.left,
  .step .ch4OnMap {
    position: relative;
    display: block;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }
}

/* 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;
}

.mapboxgl-popup-tip {
  border: 4px solid transparent;
}

.mapboxgl-popup .mapboxgl-popup-content {
  padding: 0px 2px 0px;
  font-size: 10px;
}
