:root {
  --minimal-bg-color: #f1f1f1;
  --minimal-primary-text: rgb(15, 15, 15);
  --minimal-muted-text: #575757;
  --dark-bg-color: #000000f9;
  --dark-border: 1px solid #000000f9;
  --dark-primary-text: #a4a3a3;
  --colorful-border: 1px solid #a8b0dc;
  --colorful-primary-text: #16125b;
}
body {
  font-family: "Mona Sans", sans-serif;
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 100vh;
}
.weather-app-container {
  max-width: 600px;
  width: 85%;
  margin: 50px auto;
  padding: 10px;
  border-radius: 20px;
  font-size: 15px;
}
.highlight {
  opacity: 0.8;
}
.hidden {
  display: none !important;
}
.scr-only {
  position: absolute;
  height: 1px;
  overflow: hidden; 
}
h1,
.user-greeting {
  text-align: center;
}
h1 {
  font-size: 28px;
  margin-bottom: 5px;
}
.user-greeting {
  margin-bottom: 15px;
  font-weight: 500;
}
.search-form {
  margin: 30px auto 10px;
  display: flex;
  justify-content: center;
}
.search-form-input,
.primary-button {
  padding: 10px;
  border-radius: 5px;
  font-size: 13px;
  border: none;
}
.search-form-input {
  width: 72%;
  margin-right: 5px;
}
.search-form-input::placeholder {
  opacity: 0.8;
}
.primary-button {
  transition: ease-in-out 300ms;
}
.primary-button:hover,
.primary-button:focus-visible {
  cursor: pointer;
  opacity: 0.8;
}
.search-tip {
  padding: 10px 20px 30px;
  text-align: center;
  font-size: 12px;
}
section {
  padding: 30px 10px;
  font-weight: 500;
  font-size: 14px;
}
section.error {
  text-align: center;
}
section .primary-button {
  margin-top: 20px;
}
.weather-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 20px;
  line-height: 24px;
}
.location-details {
  font-size: 20px;
  font-weight: 600;
  max-width: 300px;
}
#date {
  opacity: 0.9;
}
.current-temp-icon {
  width: 80px;
  border-radius: 50px;
}
.current-temp-value,
.current-temp-unit {
  position: relative;
}
.current-temp-value {
  top: -20px;
  font-size: 60px;
  line-height: 70px;
}
.current-temp-unit {
  top: -54px;
}
.high-low {
  font-style: italic;
}
hr {
  display: none;
}
.right-float {
  margin-top: 25px;
  padding-right: 10px;
}
p {
  text-align: center;
  padding-bottom: 15px;
}
.forecast-weather-container,
.forecast-weather-temperatures {
  display: flex;
  justify-content: space-around;
}
.forecast-weather-container {
  margin: 25px auto;
}
.forecast-weather-day {
  text-align: center;
  font-weight: 500;
  padding: 0 20px;
}
.forecast-weather-day-name {
  margin-bottom: 10px;
}
.forecast-weather-icon {
  width: 65px;
  border-radius: 50px;
}
.forecast-weather-temperatures {
  margin: 10px auto;
}
.forecast-weather-temperature-high {
  font-weight: bold;
}
.themes,
.theme-button,
footer {
  font-size: 13px;
}
.themes {
  display: flex;
  justify-content: space-between;
  padding: 30px 50px;
  text-align: center;
}
.themes a {
  text-decoration: none;
}
.theme-button {
  display: block;
  width: 30%;
  margin: 10px auto 0;
  padding: 4px 7px;
  border-radius: 10px;
  border: none;
  transition: ease-in-out 350ms;
}
.theme-button:hover {
  cursor: pointer;
}
footer {
  text-align: center;
  margin: 20px auto;
  padding: 0 30px;
  opacity: 0.9;
}
footer a {
  transition: all ease-in-out 800ms;
  line-height: 2;
  font-weight: 500;
}
footer a:hover,
footer a:focus-visible {
  padding: 0 4px 2px;
  border-radius: 5px;
}

body#home-page-minimal,
#home-page-minimal .search-form-input {
  background-color: var(--minimal-bg-color);
}
#home-page-minimal .weather-app-container {
  background-color: white;
  box-shadow: 5px 5px 20px rgb(164 164 164);
  color: var(--minimal-muted-text);
}
#home-page-minimal .highlight {
  color: var(--minimal-primary-text);
}
#home-page-minimal h1,
#home-page-minimal .location-details,
#home-page-minimal .current-temp-value,
#home-page-minimal .current-temp-unit {
  color: var(--minimal-primary-text);
}
#home-page-minimal .search-form-input {
  border: 2px solid rgb(108, 108, 108);
}
#home-page-minimal .search-form-input:focus {
  border-color: rgba(0, 0, 0, 0.926);
}
#home-page-minimal .search-form-input:-webkit-autofill,
#home-page-minimal .search-form-input:-webkit-autofill:hover,
#home-page-minimal .search-form-input:-webkit-autofill:focus,
#home-page-minimal .search-form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--minimal-bg-color) inset !important;
  -webkit-text-fill-color: var(--minimal-primary-text);
}
#home-page-minimal .primary-button {
  color: #f0ffff;
  background-color: black;
}
#home-page-minimal main {
  border-top: 2px solid var(--minimal-bg-color);
  border-bottom: 2px solid var(--minimal-bg-color);
}
#home-page-minimal #date {
  opacity: 0.9;
}
#home-page-minimal .current-temp-icon {
  margin-right: 10px;
  background-color: var(--minimal-bg-color);
}
#home-page-minimal .high-low {
  margin-top: 5px;
}
#home-page-minimal hr {
  border: 1px dashed var(--minimal-bg-color);
}
#home-page-minimal p {
  border-bottom: 2px solid var(--minimal-bg-color);
}
#home-page-minimal .forecast-weather-day {
  border-right: 2px solid var(--minimal-bg-color);
  border-left: 2px solid var(--minimal-bg-color);
}
#home-page-minimal .forecast-weather-icon {
  background-color: var(--minimal-bg-color);
}
#home-page-minimal .themes {
  border-top: 2px solid var(--minimal-bg-color);
}
#home-page-minimal .theme-button {
  box-shadow: 5px 5px 5px #c0bec0;
}
#home-page-minimal .dark-button {
  color: var(--dark-primary-text);
  background-color: var(--dark-bg-color);
}
#home-page-minimal .color-button {
  background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}
#home-page-minimal .dark-button:hover,
#home-page-minimal .dark-button:focus-visible,
#home-page-minimal .color-button:hover,
#home-page-minimal .color-button:focus-visible {
  background: rgba(194, 194, 194, 0.7);
  color: black;
}
#home-page-minimal footer {
  color: var(--minimal-muted-text);
}
#home-page-minimal footer a {
  color: var(--minimal-primary-text);
}
#home-page-minimal footer a:hover,
#home-page-minimal footer a:focus-visible {
  background-color: #c7c7c7;
}

body#dark-theme {
  background-color: var(--dark-bg-color);
}
#dark-theme .weather-app-container {
  color: var(--dark-primary-text);
  background-color: #1e1e1ef9;
  box-shadow: 0 0 20px #bfbfbfdd;
}
#dark-theme .highlight {
  color: rgb(172, 169, 169);
  opacity: 1;
}
#dark-theme .search-form-input,
#dark-theme .primary-button {
  background-color: var(--dark-primary-text);
  color: black;
}
#dark-theme .search-form-input::placeholder {
  color: rgba(0, 0, 0, 0.75);
}
#dark-theme .search-form-input:-webkit-autofill,
#dark-theme .search-form-input:-webkit-autofill:hover,
#dark-theme .search-form-input:-webkit-autofill:focus,
#dark-theme .search-form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--dark-primary-color) inset !important;
  -webkit-text-fill-color: var(--dark-primary-text);
}
#dark-theme main,
#dark-theme p {
  border-bottom: var(--dark-border);
}
#dark-theme main {
  border-top: var(--dark-border);
}
#dark-theme hr {
  border: 1px dashed var(--dark-primary-text);
}
#dark-theme .forecast-weather-day {
  border-left: var(--dark-border);
  border-right: var(--dark-border);
}
#dark-theme .themes {
  border-top: var(--dark-border);
}
#dark-theme .theme-button {
  box-shadow: 5px 5px 8px #979797b5;
}
#dark-theme .minimal-button {
  background-color: var(--minimal-bg-color);
  color: var(--minimal-primary-text);
}
#dark-theme .color-button {
  background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}
#dark-theme .minimal-button:hover,
#dark-theme .minimal-button:focus-visible,
#dark-theme .color-button:hover,
#dark-theme .color-button:focus-visible {
  background: #00000091;
  color: #cbcaca;
}
#dark-theme footer a {
  color: #c0c0c0;
}
#dark-theme footer a:hover,
#dark-theme footer a:focus-visible {
  background-color: black;
}

body#colorful-theme {
  background: linear-gradient(
    179.2deg,
    rgb(34, 34, 34) 0%,
    rgb(8, 0, 153, 0.8) 29.7%,
    rgb(118, 6, 166, 0.6) 63.4%,
    rgba(233, 0, 64, 0.4) 100.1%
  );
}
#colorful-theme .weather-app-container {
  background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
  box-shadow: 5px 5px 20px rgb(0 0 0 / 50%);
  color: var(--colorful-primary-text);
}
#colorful-theme .highlight {
  color: #800020;
}
#colorful-theme .search-form-input,
#colorful-theme .primary-button {
  background-color: white;
  outline: 2px solid #a47cff;
  color: var(--colorful-primary-text);
}
#colorful-theme .search-form-input::placeholder {
  color: var(--colorful-primary-text);
}
#colorful-theme .search-form-input:focus,
#colorful-theme .primary-button:hover,
#colorful-theme .primary-button:focus-visible {
  outline: 2px solid #cf80b5;
}
#colorful-theme .search-form-input:-webkit-autofill,
#colorful-theme .search-form-input:-webkit-autofill:hover,
#colorful-theme .search-form-input:-webkit-autofill:focus,
#colorful-theme .search-form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: var(--colorful-primary-text);
}
#colorful-theme main {
  border-top: var(--colorful-border);
  border-top: var(--colorful-border);
  border-bottom: var(--colorful-border);
}
#colorful-theme hr {
  border: 1px dashed var(--colorful-primary-text);
}
#colorful-theme p {
  border-bottom: var(--colorful-border);
}
#colorful-theme .forecast-weather-day {
  border-left: var(--colorful-border);
  border-right: var(--colorful-border);
}
#colorful-theme .themes {
  border-top: var(--colorful-border);
}
#colorful-theme .theme-button {
  box-shadow: 5px 5px 5px #7277af;
}
#colorful-theme .minimal-button {
  background-color: var(--minimal-bg-color);
  color: var(--minimal-primary-text);
}
#colorful-theme .dark-button {
  color: var(--dark-primary-text);
  background-color: var(--dark-bg-color);
}
#colorful-theme .minimal-button:hover,
#colorful-theme .minimal-button:focus-visible,
#colorful-theme .dark-button:hover,
#colorful-theme .dark-button:focus-visible {
  background-color: #c14498;
  color: #cbcaca;
}
#colorful-theme footer a {
  color: #800ea4;
  color: #8b5ac2;
  color: #714db8;
  color: #800080;
}
#colorful-theme footer a:hover,
#colorful-theme footer a:focus-visible {
  background-color: #dcc3fc;
}
@media (max-width: 680px) {
  .forecast-weather-day {
    padding: 0 10px;
    font-size: 13px;
  }
}
@media (max-width: 540px) {
  .weather-app-container {
    font-size: 13px;
  }
  h1 {
    font-size: 26px;
  }
  .location-details {
    font-size: 18px;
  }
  .current-temp-icon {
    width: 60px;
  }
  .current-temp-value {
    top: -15px;
    font-size: 46px;
  }
  .current-temp-unit {
    top: -38px;
  }
  .right-float {
    padding-right: 0;
  }
  .minimal-button {
    width: 38%;
  }
  .forecast-weather-day {
    padding: 0 5px;
  }
  .forecast-weather-icon {
    width: 55px;
  }
  footer {
    padding: 0 50px;
  }
}
@media (max-width: 450px) {
  .search-form,
  .weather-details {
    flex-direction: column;
  }
  .search-form-input,
  .primary-button {
    display: block;
    margin: 0 auto;
  }
  .search-form-input {
    text-align: center;
    margin-bottom: 5px;
  }
  h1 {
    font-size: 24px;
  }
  section {
    text-align: center;
  }
  .weather-details {
    text-align: center;
    margin: 5px 10px;
    padding-bottom: 5px;
  }
  .location-details {
    max-width: 100%;
    font-size: 16px;
  }
  .current-temp-icon {
    width: 40px;
  }
  .current-temp-value {
    top: -10px;
    font-size: 33px;
  }
  .current-temp-unit {
    font-size: 13px;
    top: -26px;
  }
  .high-low {
    font-style: normal;
    display: flex;
    justify-content: space-evenly;
    text-transform: capitalize;
    opacity: 0.8;
  }
  .hide-word {
    display: none;
  }
  .forecast-weather-temperature-high,
  .forecast-weather-temperature-low {
    margin: 0 10px;
  }
  hr {
    display: block;
    width: 30%;
    margin-top: 20px;
  }
  .right-float {
    margin-top: 10px;
  }
  p#quote {
    border-bottom: none;
    padding: 0;
  }
  p em {
    font-style: normal;
  }
  .forecast-weather-container {
    flex-direction: column;
  }
  .forecast-weather-day {
    padding: 8px;
    margin: 5px;
    border-radius: 10px;
  }
  #home-page-minimal .forecast-weather-day {
    box-shadow: 3px 3px 10px rgba(141, 140, 140, 0.393);
  }
  #dark-theme .forecast-weather-day {
    box-shadow: 1px 1px 5px #bfbfbfdd;
  }
  #colorful-theme .forecast-weather-day {
    box-shadow: 3px 3px 10px rgba(40, 40, 40, 0.393);
  }
  .forecast-weather-temperatures {
    justify-content: center;
  }
  div.themes {
    flex-direction: column;
    padding: 10px 5px;
  }
  .theme-button {
    margin-bottom: 10px;
    width: 25%;
  }
}
