:root {
  --color-primary: #5cad5ce6;
  --color-primary-light: #d6ebd6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  background-color: var(--color-primary-light);
  font-weight: 500;
  background-size: cover;
  background-position: top left;
  background-attachment: fixed;
  font-family: 'IBM Plex Sans', sans-serif;
  overflow-x: hidden;
  color: #333;
  position: absolute;
}

.body-container {
  display: grid;
  grid-template-columns: 60fr 40fr;
  column-gap: 1.2rem;
  padding: 3rem;
}

.weather-container {
  padding: 2rem;
  border-radius: 12px;
  position: relative;
}

/* ==== Error Display ==== */
.error-container {
  margin: 0 auto;
  background-color: var(--color-primary);
  padding: 20rem 10rem;
  border-radius: 12px;
  width: 80%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 25%);
}

.error-header {
  font-size: 6rem;
  text-align: center;
}

.error-text {
  font-size: 4rem;
  text-align: center;
}

/* ==== Utilities ==== */
.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
}

.mar-left-sm {
  margin-left: 1.2rem;
}

/* ==== General Styles ==== */
.deg-style {
  font-size: 60%;
  vertical-align: top;
}

.deg-style-small {
  font-size: 75%;
  vertical-align: top;
}

/* ==== !Current Day ==== */
.current-day-container {
  margin: 0 auto;
  margin-bottom: 1.6rem;
  border-radius: 12px;
  padding: 2rem;
  background-color: var(--color-primary-light);
  display: grid;
  grid-template-columns: 26fr 38fr 38fr;
  column-gap: 5rem;
  max-width: 126.8rem;
  min-width: 100rem;
  box-shadow: 0.1rem 0.3rem 2rem rgba(0, 0, 0, 0.15);
}

.current-location {
  font-size: 2.6rem;
}

.current-time,
.current-date {
  font-weight: 400;
  font-size: 2rem;
}

.icon-temp-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.lg-svg-icon {
  height: 11rem;
  width: 11rem;
  display: block;
  margin: auto;
}

.current-temp {
  font-size: 6.4rem;
  letter-spacing: -3px;
  text-align: center;
  align-self: center;
}

.current-description-container {
  grid-column: 1 / -1;
}

.current-description {
  font-weight: 400;
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.feels-like {
  font-weight: 400;
  font-size: 1.8rem;
  text-align: center;
}

.current-details-container {
  justify-content: space-between;
}

.current-day {
  font-size: 2.6rem;
}

.current-details-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  row-gap: 2.4rem;
  column-gap: 5rem;
}

.current-detail-title {
  font-size: 1.4rem;
  color: #777;
}

.current-detail {
  font-weight: 400;
  font-size: 2.2rem;
}

/* Current tips aside */
.current-tips-container {
  background-color: var(--color-primary);
  padding: 2rem;
  border-radius: 12px;
  position: relative;
}

.current-tips-date {
  font-size: 2.6rem;
  text-align: center;
  background-color: var(--color-primary-light);
  padding: 0.6rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.current-tips-list {
  background-color: var(--color-primary-light);
  list-style: none;
  padding: 2rem;
  border-radius: 12px;
  gap: 2rem;
}

.current-leaf-icon {
  align-self: center;
  font-size: 2.4rem;
  color: var(--color-primary);
}

.current-tip {
  font-weight: 400;
  font-size: 1.8rem;
}

/* ==== Slider ==== */
.slider-container-outer {
  margin-top: auto;
  margin-bottom: 0.8rem;
}

.slider-container {
  min-width: 18rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: flex-start;
}

.slider-label {
  position: relative;
  display: inline-block;
  width: 4.8rem;
  height: 2.2rem;
}

.deg-checkbox {
  z-index: 99;
  position: absolute;
  cursor: pointer;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 90px;
  border: 2px solid #cc5801;
  background-color: #ffc11a;
  transition: 0.4s;
}

.slider::before {
  position: absolute;
  content: '';
  height: 1.5rem;
  width: 1.5rem;
  left: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background-color: white;
  transition: 0.4s;
}

.deg-checkbox:checked + .slider::before {
  transform: translateX(2.45rem) translateY(-50%);
}

.fahrenheit,
.celsius {
  font-weight: 400;
  font-size: 1.8rem;
}

/* ==== !Forecast Day ==== */
.forecast-day-container {
  margin: 0 auto;
  margin-bottom: 0.4rem;
  border-radius: 12px;
  padding: 1rem 3rem 1rem 1rem;
  background-color: var(--color-primary-light);
  display: grid;
  grid-template-columns: 8fr 59fr 26fr 7fr;
  align-items: center;
  max-width: 126.8rem;
  box-shadow: 0.1rem 0.3rem 2rem rgba(0, 0, 0, 0.15);
}

.forecast-date {
  border-right: 1px solid var(--color-primary);
}

.forecast-day {
  font-size: 2.4rem;
  align-self: center;
}

.forecast-day-num {
  align-self: center;
  font-size: 3rem;
}

.forecast-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding-left: 2rem;
  margin-right: 4rem;
}

.forecast-list-item {
  gap: 0.5rem;
}

.forecast-img-icon {
  align-self: center;
  height: 2.4rem;
  width: 2.4rem;
}

.forecast-detail {
  font-size: 2rem;
  font-weight: 400;
  flex: 1;
  align-self: center;
}

.forecast-detail-high {
  display: inline;
  font-size: 2.8rem;
  font-weight: 400;
}

.forecast-detail-low {
  display: inline-flex;
  font-size: 2rem;
  font-weight: 400;
}

.forecast-icon-description-container {
  width: 100%;
  justify-self: center;
  justify-content: space-between;
}

.sm-forecast-icon {
  flex: 1;
}

.sm-svg-icon {
  height: 7rem;
  width: 7rem;
  display: block;
  margin: auto;
}

.forecast-description {
  font-weight: 400;
  align-self: center;
  font-size: 2rem;
  text-align: center;
  flex: 1;
}

.checkbox-label {
  justify-self: end;
  position: relative;
  cursor: pointer;
}

.chevron {
  content: '';
  position: relative;
  background-color: #333;
  height: 2.4rem;
  width: 2.4rem;
  clip-path: polygon(50% 65%, 80% 35%, 100% 35%, 50% 85%, 0 35%, 20% 35%);
  cursor: pointer;
  transition: all 0.4s;
}

.tips-checkbox {
  position: absolute;
  opacity: 0;
}

.tips-checkbox:checked + .chevron {
  clip-path: polygon(50% 35%, 80% 65%, 100% 65%, 50% 15%, 0 65%, 20% 65%);
}

/* Forecast tips */
.forecast-tips-container {
  grid-column: 1 / -1;
  margin-top: -2.4rem;
  transition: all 0.4s;
  margin-bottom: 0.4rem;
  border-radius: 12px;
  padding: 2.8rem 3rem 2rem 1rem;
  background-color: var(--color-primary-light);
}

.forecast-tips-inner {
  margin-left: 2rem;
  gap: 1.2rem;
}

.forecast-tip {
  display: grid;
  grid-template-columns: 1fr 30fr;
}

.forecast-leaf-icon {
  align-self: center;
  font-size: 2rem;
  color: var(--color-primary);
}

.forecast-tip-text {
  font-weight: 400;
  font-size: 1.8rem;
}

/* ==== !Footer ==== */
.footer-container {
  margin: 0 auto;
  background-color: var(--color-primary);
  width: 100%;
  padding: 3rem 6rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.footer-list-item {
  font-size: 1.6rem;
}

.footer-portfolio {
  justify-self: center;
}

.footer-attribute {
  justify-self: right;
}

.footer-text {
  text-align: center;
  font-size: 1.6rem;
}

/* ==== Loader + Animation ==== */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 99;
  background-color: var(--color-primary-light);
}

.loader-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 250px;
  width: 250px;
}

.middle-flower {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 100px;
  border-radius: 50%;
}

.petal {
  position: absolute;
  height: 90px;
  width: 90px;
  opacity: 1;
  animation: addColor 1.35s ease-in-out infinite;
}

.p1 {
  left: 50px;
  background-color: #cc0099;
  clip-path: ellipse(50% 16% at 50% 50%);
}

.p2 {
  transform: rotate(45deg);
  left: 39px;
  bottom: -28px;
  background-color: #990099;
  clip-path: ellipse(50% 16% at 50% 50%);
  animation-delay: -1.05s;
}

.p3 {
  left: 5px;
  bottom: -40px;
  background-color: #74018b;
  clip-path: ellipse(16% 50% at 50% 50%);
  animation-delay: -0.9s;
}

.p4 {
  transform: rotate(135deg);
  left: -28px;
  bottom: -28px;
  background-color: #0051d4;
  clip-path: ellipse(50% 16% at 50% 50%);
  animation-delay: -0.75s;
}

.p5 {
  left: -39px;
  background-color: #009900;
  clip-path: ellipse(50% 16% at 50% 50%);
  animation-delay: -0.6s;
}

.p6 {
  transform: rotate(-135deg);
  left: -28px;
  bottom: 39px;
  background-color: #66cc00;
  clip-path: ellipse(50% 16% at 50% 50%);
  animation-delay: -0.45s;
}

.p7 {
  left: 5px;
  bottom: 50px;
  background-color: #ff9900;
  clip-path: ellipse(16% 50% at 50% 50%);
  animation-delay: -0.3s;
}

.p8 {
  transform: rotate(-45deg);
  left: 39px;
  bottom: 39px;
  background-color: #ff0000;
  clip-path: ellipse(50% 16% at 50% 50%);
  animation-delay: -0.15s;
}
@keyframes addColor {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.4;
  }
}

.center-flower {
  height: 53px;
  width: 53px;
  background-color: #ffdc4e;
  border: 1px solid #111;
  border-radius: 50%;
  z-index: 5;
  animation: fade 3s ease-in-out infinite;
}

@keyframes fade {
  0% {
    background-color: #ffdc4e;
  }
  50% {
    background-color: #f8b729;
  }

  100% {
    background-color: #ffdc4e;
  }
}

/* Hide elements */
.collapsed {
  height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

.hidden {
  opacity: 0;
  /* visibility: hidden; */
}

.hide-load {
  display: none;
}
