body {
  background-image: url("https://s3.amazonaws.com/shecodesio-production/uploads/files/000/172/410/original/1442345.jpg?1755516120");
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #e9d2b9;
  font-family: "Nunito", sans-serif;
}
header {
  color: white;
  font-style: italic;
  font-weight: lighter;
  letter-spacing: 7px;
  font-size: 50px;
  text-align: center;
  margin: 50px;
}

footer {
  color: white;
  text-align: center;
  margin-top: 130px;
}

.weather-container {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  max-height: 1000px;
  margin: 0 auto;
  color: #4f4e4e;
}
.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 500px;
}
.weather-block {
  background-color: white;
  opacity: 0.65;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.current-weather {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  text-align: center;
  padding: 20px;
  gap: 12px;
  min-height: 420px;
  height: auto;
}
.search-city {
  display: flex;
  gap: 10px;
  flex: 1;
  max-height: 8%;
  font-weight: bold;
}
.search {
  font-size: 18px;
  border: none;
  width: 73%;
  text-align: center;
}
.submit {
  color: #4f4e4e;
  border-radius: 20px;
  border-color: 0.2px solid #b1b1b1;
  font-size: 13px;
  padding: 10px 20px;
}
.submit:hover {
  cursor: pointer;
}
.current-city {
  font-size: 40px;
  font-weight: normal;
  letter-spacing: 1px;
  margin: 0;
}
.specs {
  margin: 0;
  font-size: 28px;
  line-height: 1.4;
  text-align: left;
}
.current-temp {
  font-size: 68px;
  font-weight: bold;
  max-width: 100%;
  word-wrap: break-word;
}
.today-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.today-details {
  display: flex;
  flex-direction: column;
  margin-top: 5px;
  margin-bottom: 15px;
  text-align: left;
  flex-shrink: 1;
}
.today {
  margin: 0;
  font-size: 45px;
  font-weight: bold;
}
.specs {
  margin: 0;
  margin-top: 20px;
  font-size: 28px;
  line-height: 1.4;
}
.current-temp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 80px;
  font-weight: bold;
  margin-left: 20px;
  line-height: 1;
}
.current-temp .temp-unit {
  font-size: 0.4em;
  align-self: flex-start;
}
.current-temp .temp-value {
  font-size: 1em;
}
.weekly-forecast {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  min-height: 559.33px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  padding: 1em;
}
.forecast-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75em 1.5em;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
}

.weather-forecast-date {
  font-size: 23px;
}
.weather-forecast-icon {
  width: 48px;
  height: auto;
}
.weather-forecast-temperatures {
  font-size: 23px;
}

.forecast-row:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .weather-container {
    grid-template-columns: 1fr;
    max-width: 95%;
  }

  .left-column {
    height: auto;
  }

  .current-weather,
  .search-city,
  .weekly-forecast {
    height: auto;
    min-height: unset;
  }

  .current-temp {
    font-size: 48px;
  }

  .today {
    font-size: 32px;
  }

  .specs {
    font-size: 20px;
  }
}

@media (max-width: 500px) {
  .today-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }

  .forecast-row {
    font-size: 20px;
    padding: 0.5em 1em;
  }

  .search {
    width: 100%;
  }

  .submit {
    width: 100%;
  }
}
