@import "./reset.css";
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

html {
  font-size: 16px;
}
body {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 4.6rem;
  background-color: #f9fefe;
  min-height: 100vh;
}
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(90deg, rgba(111, 122, 222, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%);
  padding: 2.5rem 0.93rem 3.125rem;
  width: 100%;
}
.title {
  margin-bottom: 1.25rem;
  font-style: normal;
  font-weight: 700;
  font-size: 2.75rem;
  color: #fff;
  text-align: center;
  line-height: 1.18;
}
.form {
  background-color: #fff;
  border-radius: 0.375rem;
  height: 100%;
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 1.56rem 1.25rem;
}

.cloud {
  background-color: #fff;
  width: 31rem;
  height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: stretch;
}
.input {
  font-weight: 300;
  padding: 0.93rem;
  font-size: 1.25rem;
  line-height: 1;
  color: #000;
  flex-grow: 1;
  border: 0.125rem solid #9f9e9e ;
  border-radius: 0.375rem 0rem 0rem 0.375rem;
} 
.button {
  width: 9rem;
  height: 3.75rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  background-color: #f453c4;
  transition: background-color 0.2 ease-in;
  border-radius: 0rem 0.375rem 0.375rem 0rem;
}

.button:hover {
  background-color: #e31273;
}

input:focus {
  outline: none;
  border: 0.125rem solid #e31273;
  border-radius: 0.375rem 0rem 0rem 0.375rem;
}

.input.error {
  border: 0.12rem solid #e31273;
  border-radius: 0.375rem 0rem 0rem 0.375rem;
}
.card {
  padding: 1.875rem;
  border-radius: 0.375rem;
  background: #fff;
  min-width: 25rem;
  position: relative;
  flex-direction: column;
  gap: 1.25rem;
  display: flex;
  box-shadow: 0rem 0.3125rem 1.56rem rgba(27, 108, 114, 0.25);
}

.card:before {
  content: "";
  display: block;
  position: absolute;
  height: 100%;
  background-color: #fff;
  z-index: -1;
  left: 0.625rem;
  bottom: -0.625rem;
  width: calc(100% - 1.25rem);
  border-radius: 0.375rem;
  box-shadow: 0rem 0.3125rem 1.56rem rgba(27, 108, 114, 0.25);
}
.city {
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 2rem;
  color: #000;
}

.city-value {
  display: inline-block;
  padding: 0.19rem 0.31rem;
  background: rgb(216, 13, 13);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  vertical-align: text-top;
  border-radius: 0.375rem;

}
.card-weather {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.1rem;
}
.card-value {
  font-size: 5.75rem;
  line-height: 1;
  color: black;
}

.card-value sup {
  font-size: 50%;
}

.card-img {
  width: 9.3rem;
}
.card-description {
  font-size: 1.25rem;
  line-height: 1.2;
}

.footer {
  padding: 0.43rem 0rem;
  height: 2rem;
  background: #e3f1ee;
  font-size: 0.875rem;
  line-height: 1;
  text-align: center;
  color: #2e7695;
  width: 100%;
  margin-top: auto;
}

.footer-href {
  text-decoration: none;
  color: #2e7695;
}

.footer-href:hover {
  text-decoration: underline;
  text-decoration-color: #2e7695;
  text-underline-offset: 0.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.25rem;
  height: 3.75rem;
}

.error-text {
  min-height: 1rem;
  font-size: 0.875rem;
  color: red;
  margin-top: 0rem;
  display: none;
}
 
.error-text.active {
  display: block;
}

.button:disabled {
  background-color: #c9c8c8;
  cursor: none;
}

.button:not(:disabled):hover {
  background-color: #e31273;
}

@media (max-width: 600px) {
  html {
    font-size: 11px;
  }
}

