/* Overall wrapper */
.air-quality-meter-wrapper { 
  padding-left: 6.25%;
  padding-right: 6.25%;
  padding-bottom: 6.25%;
}
.aqi-section-wrapper {
  margin-top:2.5rem;
  @media (min-width: 768px) {
    margin-top:5rem;
  }
}
.aqi-section-wrapper h2 {
  margin-bottom: 1rem;
}
.past-air-quality-wrapper {

  @media (min-width: 768px) {
    width:48%;
    margin-right: 4%;
    display: inline-block;
    float: left;
  }
}
.location-wrapper {
  @media (min-width: 768px) {
    width:48%;
    display: inline-block;
  }
}
/*  AQI-meter SECTION  */
.ch-wrapper { 
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
#aqi-meter-container {
  position: relative; 
  width: 100%; 
  max-width: 600px; 
  margin: auto;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
}
canvas#aqMeter { /* colored squares */
  margin-top: 30px;
}
.aqi-label { /* colored squares number */
  position: absolute;
  font-size: 2.5rem;
  font-weight: 600;
  color: #222;
  top: 125px;
  transform: translateX(-50%);
  white-space: nowrap;
  @media (min-width: 500px) {
    top: calc(135px + 4vw);
  }
  @media (min-width: 768px) {
      font-size: 3rem;
      /*top: 200px;*/
      top: calc(140px + 4vw);
  }
  @media (min-width: 1024px) {
    font-size: 3rem;
    top: 170px;
  }
}
#aqi-description-wrapper { /* aqi meter content wrapper */
  position: relative;
  top:10px;
  width: 100%; 
  left: 0; 

  @media (min-width: 768px) {
    top:50px;
  }
}
.aqi-description { /* aqi-meter wysiywg content wrapper */
  text-align: center;
}
.aqi-link { /* link under the aqi-desription for the policy page */
  font-size: 0.85rem;
  margin: 1rem auto;
  text-align: center;
  max-width: 100%;
  padding: 0 16px;
}
/* END AQI-meter section  */

/*WYSYWYG CSS Labels can be changed */
.lc--layout-container {
  p.aqi-level { /* Good, Moderate.... */
    font-family: 'Fira Sans Extra Condensed', sans-serif;
    font-size: 1.7rem;
    font-weight: bold;
    margin: 20px 6px 10px;
    text-align: center;
  }
  p.aqi-range {
    font-family: 'Fira Sans Extra Condensed', sans-serif;
    font-size: 1.125rem;
    font-weight: bold;
    text-align: center;
    margin-top: -0.75rem;
  }
  p.aqi-level-affected {  /* who is affected */
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2.25rem;
  }
  @media (min-width: 768px) {
    p.aqi-level {
      font-size: 2rem;
    }
    p.aqi-range {
      font-size: 1.25rem;
    }
    p.aqi-level-affected {
      font-size: 1.2rem;
    }
  }
/* Actions to take at this level box */ 
  .aqi-actions-box { /* keep the label */
    padding: 10px;
    margin-top: 10px;
  }
  .aqi-actions-title { /* Actions to take at this level title */ 
    font-weight: bold;
    text-transform: uppercase;
    color: black;
    margin-bottom: 8px;
    font-family: 'Fira Sans Extra Condensed', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
  }
  .aqi-actions-title.white {
    color: white;
  }
  .aqi-actions-content {
    background: white;
    padding: 20px;
    color: black;
  }
  .aqi-actions-content p {
    margin-bottom: 10px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
  }
  .aqi-actions-content h4 {
    font-family: 'Fira Sans Extra Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 10px;
  }
}

/* 5-day AQI Forecast SECTION */
#aqi-forecast {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  
  @media (max-width: 767px) {
    flex-direction: column;
  }
}
.aqi-today {
  display: inline-block;
}
.aqi-upcoming {
  display: inline-flex;
  flex: 1; /* makes it fill the whole box */ 
  @media (max-width: 767px) {
    flex-wrap: wrap;
  }
}
.aqi-forecast-wrapper { 
  width: 14.4vw;
  height: 14.4vw;
  background-color: #f5f5f5; /*#f8f8f8; */
  border-top: solid 15px;
 
  @media (max-width: 767px) {
    width: 40vw;
    height: 40vw;
    margin-bottom: 7.5vw;
  }
  @media (min-width: 768px) {
    margin: 1.475vw;
    flex: 1; /* makes them fill the whole box */ 
  }
}
.aqi-today .aqi-forecast-wrapper { 
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 18.1vw;
  height: 18.1vw;
  margin-left: 0;
  border: 5px solid;
  border-top: solid 25px;
  background-color: #fff;
  padding-top:15px;
  
  @media (max-width: 767px) {
    width: 87.5vw;
    height: 50vw;
  }
}
.aqi-upcoming .aqi-forecast-wrapper { 
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #f8f8f8!important;
}
.aqi-upcoming .aqi-forecast-wrapper:first-child,
.aqi-upcoming .aqi-forecast-wrapper:nth-child(3) {
  @media (max-width: 767px) {
    margin-right: 7.5vw;
  }
}
.aqi-upcoming div.aqi-forecast-wrapper:last-of-type {
  margin-right: 0;
}
.aqi-forecast-date {
  font-family: 'Fira Sans Extra Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  display:block;
  position: relative;
  top: 5px;

  @media screen and (min-width: 768px)  and (max-width: 1023px) {
    font-size: 1.1rem;
    top: 7px;
  }
}
.aqi-forecast-value {
  font-size: 2.25rem;
  font-weight: 700;

  @media screen and (min-width: 768px)  and (max-width: 1023px) {
    font-size: 2.1rem;
  }
}
.aqi-forecast-level {
  font-size: 1rem;
  position: relative;
  top: -5px;

  @media screen and (min-width: 768px)  and (max-width: 1023px) {
    font-size: 0.9rem;
    top: -8px;
  }
}
.aqi-today .aqi-forecast-date {
  font-size: 1.5rem;
  top: 2px;

  @media screen and (min-width: 768px)  and (max-width: 1023px) {
    font-size: 1.3rem;
  }
}
.aqi-today .aqi-forecast-value {
  font-size: 3.2rem;
  font-weight: 700;
  position: relative;
  top: -11px; 

  @media screen and (min-width: 768px)  and (max-width: 1023px) {
    font-size: 3rem;
  }
}
.aqi-today .aqi-forecast-level {
  font-size: 1.2rem;
    position: relative;
    top: -20px; 

    @media screen and (min-width: 768px)  and (max-width: 1023px) {
      font-size: 1rem;
    }
}

/* 5-Day weather Forecast SECTION */
#weather-forecast {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: column;

  @media (min-width: 768px) {
    display: flex;
    align-items: center; 
    margin: 0 auto; /* to center horizontally */
    width:700px;
    flex-direction: row;
  }
} 
.weather-today {
  flex: 1;
  max-width: 275px;  

  @media (min-width: 768px) {
    margin-right: 20px; 
  }
  
}
.weather-upcoming {
  display: inline-flex;
  flex: 1; /* makes it fill the whole box */ 
  flex-wrap: wrap;
  justify-content: space-between;
  
  @media (min-width: 768px) {
    display: flex; 
  }
}
.weather-forecast-wrapper { 
  position: relative;
  aspect-ratio: 1 / 1;
  
  @media (max-width: 767px) {
    margin-bottom: 7.5vw;
  }
}
.weather-forecast-wrapper img {
  width:100%;
  height:100%;
  position: absolute;
  z-index: -1;
  top: 0px;
}
.weather-today .weather-forecast-wrapper {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 10px;
  min-width: 255px; 
  text-align: right;
  padding-right: 20px;
}
.weather-upcoming .weather-forecast-wrapper {
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 190px;
  height: 190px;
  text-align: right;
  padding-right: 10px;

  @media (max-width: 767px) {
    width: 40vw;
  }
}
.weather-upcoming .weather-forecast-wrapper:first-child, 
.weather-upcoming .weather-forecast-wrapper:nth-child(2) {
  @media (min-width: 768px) {
    margin-bottom: 20px;
  }
}
.weather-upcoming .weather-forecast-wrapper:first-child,
.weather-upcoming .weather-forecast-wrapper:nth-child(3) {
  @media (max-width: 767px) {
  margin-right: 7.5vw;
  }
}
.weather-date {
  font-family: 'Fira Sans Extra Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  display:block;
}
.weather-temperature {
  font-size: 2.25rem;
  font-weight: 700;
}
.weather-description{
  font-size: 0.75rem;
  width: 70%;
  margin-left: 30%;
  line-height: 1.3;
}
.weather-wind-conditions {
  font-family: 'Fira Sans Extra Condensed', sans-serif;
  font-size: 0.95rem;
  position: absolute;
  bottom: 5px;
  right: 10px;
}
.weather-today .weather-date {
  font-size: 1.75rem;
}
.weather-today .weather-temperature {
  font-size: 3.2rem;
  font-weight: 700;
}
.weather-today .weather-description{
  font-size: 1.1rem;
}
.weather-today .weather-wind-conditions {
  font-size: 1.2rem;
  right: 20px;
}

/* Weather Alerts SECTION */
#weather-alerts {
  margin-top: 1em;
}
.weather-alerts.weather-temperature {
  font-size: 1.8rem;
  font-weight: 700;
}
.weather-alerts.weather-description {
  font-size: 0.85rem;
}
.weather-alerts.weather-wind-conditions {
  font-size: 0.75rem;
}
.alert-item {
  display: flow-root;
  margin: 0 0 .75rem;
  line-height: 1.35;
}
.alert-icon {
  float: left;
  width: 48px;
  height: 48px;
  margin: 2px 10px 2px 0;
  shape-outside: inset(0 round 4px);
}


/* Air Quality Past Week SECTION */
#historyChart {
  margin-top: 40px;
  width: 600px;
  height: 300px;
}
/* Air Quality map SECTION */
#aqi-map {
  width: 100%; 
  margin-top: 40px;
}

#map {
  width: 100%; 
  height: 400px;
}

.air-quality-meter-wrapper p.note {
  font-family: 'Fira Sans Extra Condensed', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.3847;
  margin-top: 1rem;

  a {
    font-size: inherit!important;
    font-family: inherit;
  }
  strong {
    font-size: inherit;
    font-family: inherit;
  }
}

