@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700');

/* ==================================================
   ================= GLOBAL STYLES ==================
   ================================================== */

html {
  font-size: 0.85vw;
}

html, body, .map {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  padding: 0;
  margin: 0;
  font-family: Poppins, sans-serif;
}

.leaflet-popup-content-wrapper {
  border-radius: 5px; 
}

.jconfirm-box {
  width: 300px;
  color: white;
  background-color: #1c93ce !important;
}

.jconfirm-title {
  font-weight: bold;
}

.tooltipster-box {
	background: #1c93ce !important;
}

.tooltipster-top .tooltipster-arrow-border {
  border-top-color: #1c93ce !important;
}

.tooltipster-right .tooltipster-arrow-border {
  border-right-color: #1c93ce !important;
}

.tooltipster-bottom .tooltipster-arrow-border {
  border-bottom-color: #1c93ce !important;
}

.tooltipster-left .tooltipster-arrow-border {
  border-left-color: #1c93ce !important;
}

.rounded {
  border-radius: 5%;
  box-shadow: rgb(76, 88, 94) 0 0 10px;
}

/* ==================================================
   ================== LEFT PANEL ====================
   ================================================== */

/* ---------- Generic styles ---------- */

.map-panel {
  display: block;
  width: 23rem;
  position: absolute;
  background-color: white;
  border-radius: 0 20px 20px 0;
  z-index: 999;
  top: 2rem;
  bottom: 2rem;
  padding: 1.2rem 2.4rem 0 2.4rem; 
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

h1 {
  color: #1c93ce;
  font-weight: 500;
  line-height: 2rem;
  font-size: 1.6rem;
  margin-top: 0;
}

.separator {
  width: calc(100% + 4.8rem);
  height: 1px;
  background-color: rgba(76, 88, 94, .25);
  margin-left: -2.5rem;
  margin-right: -2.5rem;
}

.btn-active {
  color: white;
  background-color: #f59c00 !important;
  border-radius: 30px;
}

#atmo-panel, #icair365-panel {
  display: none;
}

/* ---------- Selection ---------- */

.selection, #map-selection {
  border-radius: 30px;
  font-size: 0.9rem;
  justify-content: space-between;
  margin: 1.1rem 0;
  display: flex;
}

.selection {
  background-color: #f0f1f4;
}

#map-selection {
  background-color: white;
  position: absolute;
  z-index: 9999;
  top: 1rem;
  left: 33rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.selection div, #map-selection div {
  padding: 0.4rem 1rem;
  cursor: pointer;
}

#icairh, #icair365 {
  font-weight: bold;
}

/* ---------- Timeline ---------- */

.timeline {
  margin-top: 5rem !important;
  margin-bottom: 5rem !important;
}

#icairh-panel .timeline {
  width: 13rem;
  margin-left: 5rem !important;
}

#icair365-panel .timeline {
  width: 18rem;
  margin-left: 2rem !important;
}

.noUi-value {
  padding: 0.2rem;
  border-radius: 5px;
  color: black;
}

.noUi-marker {
  background-color: black !important;
}

.noUi-tooltip {
  background-color: #f0f1f4;
}

.datetime {
  display: none;
}

/* ---------- Options ---------- */

.options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.options div {
  padding: 0.2rem 1rem;
  background-color: #f0f1f4;
  border-radius: 30px;
  cursor: pointer;
}

#icair365-panel .options div {
  width: 50%;
  margin: auto;
  text-align: center;
}

.options div i {
  margin-right: 0.3rem;
}

.leaflet-left .easy-button-container {
  display: none;
}

/* ---------- Comment ---------- */

#forecasts-comment {
  font-size: 0.9rem;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  height: 5.5rem;
}

/* ---------- Search ---------- */

.search {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  width: 100%;
  background-color: #f0f1f4;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 30px;
}

.search input {
  padding: 0.5rem 0.5rem 0.5rem 1.1rem; 
  border: 0;
  background-color: #f0f1f4;
  font-family: Poppins, sans-serif;
  border-radius: 30px;
  box-shadow: unset;
  width: 20rem;
}

.search input:focus {
  outline: none;
}

.search i {
  padding: 0.6rem !important;
  font-weight: bolder;
  color: #1c93ce;
  position: relative;
  left: -1rem;
}

.search .easy-autocomplete {
  width: 100%;
}

.bi-search::before {
  font-weight: bolder !important;
}

.easy-autocomplete-container {
  top: 3rem;
  left: 1rem;
}

/* ---------- Legend ---------- */

.legend {
  display: flex;
}

.legend > img {
  display: block;
  padding: 0.6rem 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
}

.legend h3 img {
  height: 1rem;
  margin-top: 0;
  margin-bottom: 0;
}

#icairh-panel .legend > img {
  height: 9.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 82%);
}

#icair365-panel .legend > img {
  height: 8.5rem;
}

.legend h3 {
  font-size: 1.3rem;
  text-align: center;
  line-height: 1;
  margin-bottom: 0;
  margin-top: 1.1rem;
}

.legend h3 span {
  font-weight: normal;
  font-size: 1.1rem;
}

.legend h3 + p {
  margin-top: 0;
  margin-bottom: 0;
}

.legend p {
  margin-left: 0.9rem;
  font-size: 0.9rem;
  padding: 0.6rem;
  border-radius: 10px;
}

.legend p + div {
  padding: 0.2rem;
  text-align: center;
  cursor: pointer;
  width: 75%;
  margin: auto;
}

.legend strong {
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
}

.m-legend {
  display: none;
}

#icairh-map .m-legend img {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 88%);
}

#atmo-panel .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#atmo-panel .legend {
  flex-direction: column;
  margin-top: 1.2rem;
}

#atmo-panel .legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.15rem;
  font-size: 0.9rem;
}

#atmo-panel .legend-item-circle {
  width: 0.8rem;
  height: 0.8rem;
  border: 3px solid #fff;
  border-radius: 50%;
  position: relative;
  margin-right: 0.3rem;
}

#atmo-panel .legend-item-circle::before {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: -3px;
  right: -3px;
  border: 1px solid rgba(76, 88, 94, .25);
  border-radius: 50%;
}

#atmo-panel .legend-item-img {
  width: 1rem;
  margin-right: 0.3rem;
}

#raep {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  color: #ababac;
}

#atmo-panel .legend em,
#raep p em {
  font-size: 0.75rem;
}

#atmo-panel .legend em {
  margin-bottom: 0.8rem;
}

#raep svg {
  width: 7rem;
}

#raep svg text {
  font-size: 33px;
}

#raep a {
  margin-right: 2.2rem;
}

/* ==================================================
   =============== LEAFLET CONTROLS =================
   ================================================== */

/* ---------- Minimaps ---------- */

.minimaps {
  display: flex;
  flex-direction: column;
}

.minimaps figure {
  position: relative;
  width: 3.7rem;
  height: 3.7rem;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .65);
  margin: 0.6rem 0 0 0;
  text-align: center;
  transition: transform .4s ease;
  width: initial;
}

.minimaps figure:hover {
  cursor: pointer;
  transform: scale(1.08);
}

.minimaps img {
  width: 3.7rem;
  border-radius: 5px 5px 0 0;
}

.minimaps figcaption {
  position: absolute;
  top: 2.8rem;
  width: 100%;
  color: white;
  background-color: #1c93ce;
  border-radius: 0 0 5px 5px;
  font-size: 0.75rem;
}

.minimaps figcaption.active {
  background-color: #f59c00;
}

/* ---------- Zoom ---------- */

.leaflet-control-zoom {
  margin-top: 2rem;
  border-radius: 30px;
}

.leaflet-control-zoom-in {
  border-radius: 30px 30px 0 0 !important;
}

.leaflet-control-zoom-out {
  border-radius: 0 0 30px 30px !important;
}

.easy-button-container, .easy-button-button {
  border-radius: 30px !important;
}

.bi-x-lg::before {
  font-weight: bolder !important;
}

/* ---------- Legal ---------- */

.legal {
  margin-bottom: 0 !important;
}

.legal img {
  height: 1.5rem;
  margin-left: 0.6rem;
}

/* ==================================================
   ================== CHART/POPIN ===================
   ================================================== */

#chart-dimmer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
}

#chart-container {
  width: 47rem;
  padding: 1rem;
  background-color: white;
  border-radius: 15px;
}

#chart-container i {
  font-size: 1.25rem;
  cursor: pointer !important;
  position: relative;
  top: 1.25rem;
  left: 97%;
}

#chart-container .bi::before,
#chart-container [class*=" bi-"]::before,
#chart-container [class^="bi-"]::before {
  position: absolute;
  z-index: 99999;
}

#chart {
  width: 100%;
  height: 22rem;
}

#address {
  text-align: center;
  margin-bottom: 1rem;
}

#address span {
  color: #1c93ce;
  padding: 0 0.6rem;
  border-left: solid 3px #f59c00;
  border-right: solid 3px #f59c00;
}

#go-to-forecasts, .go-to-annual {
  color: white;
  background-color: #f59c00;
  border: none;
  border-radius: 30px;
  text-align: center;
  cursor: pointer;
}

#go-to-forecasts {
  width: 60%;
  display: block;
  margin: auto;
  font-size: 1.1rem;
  padding: 0.6rem;
}

.go-to-annual {
  font-size: 1rem;
  padding: 0.5rem 0.8rem;
}

/* ==================================================
   ==================== TUTORIAL ====================
   ================================================== */

h1 i {
  cursor: pointer;
  color: #adadaf;
}

.shepherd-element {
  max-width: 26rem;
}

.shepherd-content,
.shepherd-arrow::before {
  background: #1c93ce; 
}

.shepherd-text {
  color: white;
  font-size: 0.9rem;
}

.shepherd-button:first-child,
.shepherd-button:first-child:hover {
  color: black;
  background: white; 
  font-size: 0.9rem;
  padding: 0.5rem;
}

.shepherd-button:last-child,
.shepherd-button:last-child:hover {
  color: white;
  background: #f59c00; 
  font-size: 0.9rem;
  padding: 0.5rem;
}

/* ==================================================
   ================= SPECIFIC MAPS ==================
   ================================================== */

/* ---------- ATMO map ---------- */

#atmo-map {
  background-color: #21b3e8;
}

.atmo-map-marker > div {
  color: #4c585e;
  margin-top: -6px;
  margin-left: -6px;
  display: flex;
  align-items: center;
}

.atmo-map-marker > div > div {
  margin-top: -4px;
  margin-left: -4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px;
  border-radius: 20px;
  background-color: rgba(240, 241, 244, 0.5);
}

.atmo-map-marker span:first-child {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: solid 3px white;
  display: inline-block;
  flex-shrink: 0;
  margin-right: 3px;
}

#atmo-map .leaflet-div-icon {
  border: none;
}

#atmo-map .leaflet-popup-content-wrapper {
  border-radius: 20px;
  text-align: center;
}

#atmo-map .leaflet-popup-content {
  margin: 7px;
}

#atmo-map .leaflet-popup-tip-container {
  display: none;
}

#atmo-map .leaflet-popup-pane {
  pointer-events: none;
}

/* ---------- ICAIR365 map ---------- */

#icair365-map .leaflet-popup-content {
  text-align: center;
  width: 220px;
}

#icair365-map .leaflet-popup-content strong {
  font-size: 1.1rem;
  color: #1c93ce;
}

#icair365-map .leaflet-popup-content span {
  font-size: 2.2rem;
  line-height: 2;
  margin: 0.6rem 0;
}

#year-info {
  position: absolute;
  font-size: 10rem;
  color: rgba(0,0,0,0.15);
  z-index: 999;
  top: calc(50% - 5rem);
  left: 50%;
  font-family: Poppins, sans-serif;
}

/* ==================================================
   ================= MEDIA QUERIES ==================
   ================================================== */

@media screen and (max-width: 1800px) {
  .minimaps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 10rem;
  }

  .minimaps figure {
    margin: 0.5rem;
  }
}

@media screen and (max-width: 1080px) {
  html {
    font-size: 16px;
  }

  h1 i,
  .leaflet-control-velocity,
  .timeline,
  .legend,
  .options,
  #m-top-separator,
  #chart-dimmer,
  .leaflet-control-zoom,
  .easy-button-container,
  .easy-button-container + .leaflet-control,
  #forecasts-comment,
  #raep,
  .minimaps {
    display: none;
  }

  #map-selection {
    top: 10rem;
    left: calc(50% - 108px);
  }

  .map-panel {
    top: 0;
    bottom: initial;
    width: 100%;
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column-reverse;
  }

  h1 {
    margin: 0.6rem 1.25rem;
    font-size: 1.4rem;
    line-height: 1.7rem;
    text-align: center;
  }

  .selection, .search {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .selection {
    font-size: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .search input {
    width: 18rem;
  }

  .search i {
    padding: 0.2rem 0 !important;
    margin-right: 0.75rem;
  }

  .m-legend {
    display: block;
    margin-left: 0.2rem !important;
  }

  .m-legend img {
    margin-top: 13rem;
  }

  .datetime {
    display: block;
    color: white;
    background-color: #f59c00;
    margin-left: 0 !important;
    margin-bottom: 1.4rem !important;
    padding: 0.2rem 0.6rem 0.2rem 0.2rem;
    font-size: 0.9rem;
    border-radius: 0 30px 30px 0;
  }

  .leaflet-top.leaflet-left {
    z-index: 500;
  }

  .leaflet-control-attribution {
    font-size: 0.6rem;
  }

  .legal img {
    height: 1.25rem;
  }

  .leaflet-left .easy-button-container {
    display: block;
    margin-left: 0.2rem;
    margin-top: 0.2rem;
    border-color: white;
  }

  @keyframes colorize {
    0% { background-color: #245aa6; }
    50% { background-color: #21b3e8; }
    100% { background-color: #fbb911; }
  }

  .leaflet-left .easy-button-container button {
    color: white;
    animation: colorize 3s linear infinite alternate;
  }

  .atmo-map-marker > div > div:not(.main-cities) {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  #map-selection {
    top: 11.5rem;
    left: calc(50% - 108px);
  }

  .tooltipster-base {
    max-width: 90%;
  }
}
