@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: Inter;
  src: url(../assets/fonts/InterVariableFont.ttf);
}
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: linear-gradient(#3e67cf, #264082);
  min-height: 100dvh;
  overflow: auto;
  color: white;
  padding: 3rem 0;
}

a {
  color: lightgray;
}

noscript {
  text-align: center;
}

.vertical-space-between, #precipitation-card, #air-quality-card #pollen-wrapper, #hourly-weather-card, #current-weather-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.horizontal-space-between, #location-pop-up div {
  display: flex;
  justify-content: space-between;
}

[data-horizontal-scroll],
[data-vertical-scroll] {
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
[data-horizontal-scroll] img,
[data-vertical-scroll] img {
  pointer-events: none;
}
[data-horizontal-scroll][data-mouse-down],
[data-vertical-scroll][data-mouse-down] {
  cursor: grabbing;
}

#current-weather-card #current-weather-and-temperature {
  display: flex;
  justify-content: space-between;
}
#current-weather-card #current-weather-and-temperature img {
  width: 40%;
  align-self: start;
}
#current-weather-card #current-weather-and-temperature > div {
  text-align: center;
}
#current-weather-card #current-weather-and-temperature > div #current-temperature {
  font-size: 6.5rem;
  line-height: 5.5rem;
  font-weight: bold;
  position: relative;
}
#current-weather-card #current-weather-and-temperature > div #current-temperature::before {
  content: "°C";
  position: absolute;
  right: -0.25em;
  top: -0.25em;
  font-size: 0.2em;
  line-height: 0;
  font-weight: normal;
}
#current-weather-card #current-weather-and-temperature > div #current-weather-text {
  font-size: 1.2rem;
}
#current-weather-card #highest-lowest-and-apparent-temperature {
  display: flex;
  justify-content: space-between;
}

#weather-conditions-card {
  white-space: nowrap;
}
#weather-conditions-card > div {
  -moz-column-count: 3;
       column-count: 3;
  height: 90%;
}
#weather-conditions-card > div div {
  margin-left: 5%;
  align-content: center;
  height: 50%;
}
#weather-conditions-card > div div img {
  width: 1.5rem;
  margin-right: 0.3rem;
  float: left;
}
#weather-conditions-card > div div p {
  white-space: nowrap;
}

#hourly-weather-card #hourly-weather-items {
  display: flex;
  overflow-x: auto;
}
#hourly-weather-card #hourly-weather-items::-webkit-scrollbar {
  display: none;
}
#hourly-weather-card #hourly-weather-items .hourly-weather-item {
  text-align: center;
  padding: 0 1rem;
  border-right: 0.05rem solid white;
}
#hourly-weather-card #hourly-weather-items .hourly-weather-item:first-child {
  padding-left: 0;
}
#hourly-weather-card #hourly-weather-items .hourly-weather-item:last-child {
  border: none;
  padding-right: 0;
}
#hourly-weather-card #hourly-weather-items .hourly-weather-item .hourly-weather-item-time {
  opacity: 0.5;
}
#hourly-weather-card #hourly-weather-items .hourly-weather-item img {
  width: 2.5rem;
  margin: 0.5rem 0;
}
#hourly-weather-card #hourly-weather-items .hourly-weather-item .hourly-weather-item-temperature {
  font-weight: bold;
  font-size: 1.2rem;
}
#hourly-weather-card #hourly-weather-items .hourly-weather-item .hourly-weather-item-temperature::after {
  content: "°";
}

#daily-weather-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
}
#daily-weather-card #daily-weather-items {
  display: flex;
  flex-direction: column;
  overflow: auto;
}
#daily-weather-card #daily-weather-items::-webkit-scrollbar {
  display: none;
}
#daily-weather-card #daily-weather-items .daily-weather-item {
  display: grid;
  justify-items: center;
  grid-template-columns: 1fr 0.6fr 0.5fr 0.5fr;
  padding: 0.715rem 0;
  border-bottom: 0.05rem solid white;
}
#daily-weather-card #daily-weather-items .daily-weather-item:last-child {
  border-bottom: 0;
}
#daily-weather-card #daily-weather-items .daily-weather-item .daily-weather-item-day {
  flex-basis: 5rem;
  justify-self: left;
}
#daily-weather-card #daily-weather-items .daily-weather-item img {
  height: 1.5rem;
  scale: 1.4;
}
#daily-weather-card #daily-weather-items .daily-weather-item .daily-weather-item-max-temperature::before {
  content: "H:";
}
#daily-weather-card #daily-weather-items .daily-weather-item .daily-weather-item-max-temperature::after {
  content: "°";
}
#daily-weather-card #daily-weather-items .daily-weather-item .daily-weather-item-min-temperature {
  justify-self: right;
}
#daily-weather-card #daily-weather-items .daily-weather-item .daily-weather-item-min-temperature::before {
  content: "L:";
}
#daily-weather-card #daily-weather-items .daily-weather-item .daily-weather-item-min-temperature::after {
  content: "°";
}

#day-night-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
#day-night-card #day-night-canvas {
  height: 0;
  flex-grow: 1;
  width: 100%;
}
#day-night-card p #sunrise {
  position: absolute;
  bottom: 1.3rem;
  left: 3.8rem;
}
#day-night-card p #sunset {
  position: absolute;
  bottom: 1.3rem;
  right: 3.8rem;
}

#air-quality-card {
  display: flex;
  gap: 0.65rem;
}
#air-quality-card #aqi-wrapper {
  flex-grow: 1;
  position: relative;
}
#air-quality-card #aqi-wrapper #aqi-indicator {
  position: absolute;
  left: 50%;
  top: 35%;
  translate: -50%;
  white-space: nowrap;
}
#air-quality-card #aqi-wrapper #aqi-meter {
  position: absolute;
  left: 50%;
  top: 70%;
  translate: -50% -50%;
  width: 100%;
  height: 0.7rem;
  border-radius: 1rem;
}
#air-quality-card #aqi-wrapper #aqi-meter::-webkit-progress-value {
  background-color: currentColor;
}
#air-quality-card #aqi-wrapper #aqi-meter::-webkit-progress-bar {
  border-radius: 1rem;
  background-color: lightgray;
  overflow: hidden;
}
#air-quality-card #air-quality-divider {
  width: 0.05rem;
  height: 100%;
  background-color: white;
}
#air-quality-card #pollen-wrapper div h2 {
  line-height: 0.6;
}
#air-quality-card #pollen-wrapper div em {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
#air-quality-card #pollen-wrapper ul {
  list-style-type: none;
}

#precipitation-card #precipitation-canvas-wrapper {
  overflow: auto hidden;
}
#precipitation-card #precipitation-canvas-wrapper::-webkit-scrollbar {
  display: none;
}
#precipitation-card #precipitation-canvas-wrapper #precipitation-canvas {
  width: 100%;
  height: 100%;
}

#location-pop-up {
  background-color: rgb(217, 217, 217);
  padding: 1.04rem 1.3rem;
  border-radius: 1rem;
  border: none;
  margin-top: 1rem;
  top: 100%;
  grid-column: 1/2;
  width: 100%;
  z-index: 1;
  height: 40rem;
  max-height: 90dvh;
  display: none;
  transition: opacity 1s;
  gap: 1rem;
  flex-direction: column;
}
#location-pop-up[open] {
  display: flex;
  animation: fade-in 0.3s;
}
#location-pop-up[closing] {
  display: flex;
  animation: fade-out 0.3s;
}
#location-pop-up button,
#location-pop-up input {
  color: black;
  border: none;
  font-size: 1.1rem;
}
#location-pop-up button {
  cursor: pointer;
  transition: 0.2s;
}
#location-pop-up input {
  padding: 0.65rem;
  border-radius: 0.5rem;
}
#location-pop-up div {
  border-bottom: 0.05rem solid black;
  padding-bottom: 0.65rem;
}
#location-pop-up div button {
  background-color: transparent;
  padding: 0;
}
#location-pop-up div button:hover, #location-pop-up div button.active {
  opacity: 0.5;
}
#location-pop-up #current-location-button {
  padding: 0.5rem;
  border-radius: 0.5rem;
  text-align: left;
}
#location-pop-up #current-location-button:hover {
  background-color: #d0d0d7;
}
#location-pop-up ul {
  flex-shrink: 1;
  overflow: auto;
}
#location-pop-up ul li {
  position: relative;
  width: 100%;
  gap: 0.05rem;
}
#location-pop-up ul li:not(:last-child) {
  margin-bottom: 0.65rem;
}
#location-pop-up ul li button {
  border-radius: 0.5rem;
}
#location-pop-up ul li button:hover {
  background-color: #d0d0d7;
}
#location-pop-up ul li button.change-location-button {
  text-align: left;
  padding: 0.5rem;
  width: 100%;
}
#location-pop-up ul li button.change-location-button span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}
#location-pop-up ul li button.star-location-button, #location-pop-up ul li button.unstar-location-button {
  position: absolute;
  right: 0.25rem;
  top: 0.25rem;
  width: 1.8rem;
  height: 1.8rem;
  background-size: 80%;
  background-position: 50% 45%;
  background-repeat: no-repeat;
}
#location-pop-up ul li button.star-location-button {
  background-image: url(../assets/icons/star.svg);
}
#location-pop-up ul li button.unstar-location-button {
  background-image: url(../assets/icons/unstar.svg);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
#header {
  margin: auto;
  width: 70rem;
  margin-top: 1rem;
  position: relative;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1.2fr 0.2fr 1fr;
  grid-template-rows: 1fr;
}
#header > button {
  background-color: rgba(175, 175, 175, 0.2);
  padding: 1.04rem 1.3rem;
  border-radius: 1rem;
  cursor: pointer;
  text-align: left;
  grid-column: 1/2;
  font-size: 1.1rem;
  color: white;
  border: none;
}

#location-tab {
  background-image: url(../assets/icons/location.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
}

#footer {
  margin: auto;
  width: 70rem;
  margin-top: 1.3rem;
}

#weather-grid {
  margin: auto;
  width: 70rem;
  margin-top: 1rem;
  height: 40rem;
  display: grid;
  gap: 1rem;
  grid-template-rows: 1fr 1fr 1.4fr 1fr;
  grid-template-columns: 1fr 1.2fr 0.2fr 1fr;
}

#weather-grid > section {
  background-color: rgba(175, 175, 175, 0.2);
  padding: 1.04rem 1.3rem;
  border-radius: 1rem;
  min-width: 0;
  min-height: 0;
}
#weather-grid > section h2 {
  font-size: 1.2rem;
}
#weather-grid > section p {
  font-size: 1.1rem;
}

#current-weather-card {
  grid-area: 1/1/span 2/span 1;
}

#weather-conditions-card {
  grid-area: 1/2/span 2/span 2;
}

#hourly-weather-card {
  grid-area: 3/1/span 1/span 3;
}

#daily-weather-card {
  grid-area: 1/4/span 3/span 1;
}

#day-night-card {
  grid-area: 4/1/span 2/span 1;
}

#air-quality-card {
  grid-area: 4/2/span 2/span 1;
}

#precipitation-card {
  grid-area: 4/3/span 2/span 2;
}

@media (max-width: 1170px) {
  #header {
    grid-template-columns: repeat(2, 1fr);
    width: 40rem;
  }
  #footer {
    width: 40rem;
  }
  #weather-grid {
    width: 40rem;
    height: 1100px;
    grid-template-rows: 1.4fr 1.3fr 0.7fr 0.8fr 0.7fr;
    grid-template-columns: repeat(2, 1fr);
  }
  #current-weather-card {
    grid-area: 1/1/span 1/span 1;
  }
  #weather-conditions-card {
    grid-area: 2/1/span 2/span 1;
  }
  #weather-conditions-card > div {
    -moz-column-count: 2 !important;
         column-count: 2 !important;
  }
  #weather-conditions-card > div div {
    margin-left: 0;
    height: 33%;
  }
  #hourly-weather-card {
    grid-area: 4/1/span 1/span 2;
  }
  #daily-weather-card {
    grid-area: 1/2/span 2/span 1;
  }
  #day-night-card {
    grid-area: 5/1/span 1/span 1;
  }
  #air-quality-card {
    grid-area: 5/2/span 1/span 1;
  }
  #precipitation-card {
    grid-area: 3/2/span 1/span 1;
  }
}
@media (max-width: 700px) {
  body {
    padding: 1rem;
  }
  #header {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 25rem;
  }
  #footer {
    width: 100%;
    max-width: 25rem;
  }
  #weather-grid {
    width: 100%;
    max-width: 25rem;
    height: 1800px;
    grid-template-rows: 0.6fr 0.4fr 1fr 0.8fr 0.33fr 0.33fr 0.33fr;
    grid-template-columns: 1fr;
  }
  #current-weather-card {
    grid-area: 1/1/span 1/span 1;
    background-color: transparent !important;
  }
  #weather-conditions-card {
    grid-area: 4/1/span 1/span 1;
  }
  #weather-conditions-card > div {
    -moz-column-count: 2 !important;
         column-count: 2 !important;
  }
  #weather-conditions-card > div div {
    margin-left: 5%;
    height: 33%;
  }
  #hourly-weather-card {
    grid-area: 2/1/span 1/span 1;
  }
  #daily-weather-card {
    grid-area: 3/1/span 1/span 1;
  }
  #day-night-card {
    grid-area: 5/1/span 1/span 1;
  }
  #air-quality-card {
    grid-area: 6/1/span 1/span 1;
  }
  #precipitation-card {
    grid-area: 7/1/span 1/span 1;
  }
}/*# sourceMappingURL=style.css.map */