@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f3d9fa;
  font-family: "Roboto", sans-serif;
}

a {
  color: #be4bdb;
}

header {
  border-bottom: 1px solid #f3d9fa;
  padding: 0 0 30px;
}

.weather-app {
  background-color: #f8f9fa;
  max-width: 700px;
  width: 100%;
  margin: 45px auto;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.08);
}

.search-input {
  background-color: #e599f7;
  border: none;
  border-radius: 6px;
  max-width: 500px;
  width: 100%;
  font-size: 18px;
  padding: 15px 20px;
}

.search-input::placeholder {
  color: #f8f9fa;
}

.btn-submit {
  background-color: #be4bdb;
  color: #f8f9fa;
  border: none;
  border-radius: 6px;
  padding: 15px 30px;
  margin-left: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}

.btn-submit:hover {
  background-color: #9c36b5;
}

.weather {
  padding: 30px 0;
}

.weather-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.city-name {
  font-size: 38px;
  line-height: 48px;
}

.weather-details {
  font-size: 18px;
  line-height: 28px;
}

.weather-details span:nth-child(n + 5) {
  color: #f03e3e;
}

.weather-display {
  display: flex;
  align-items: center;
}

.weather-icon {
  margin: 15px 0 0;
}

.weather-temperature,
.weather-unit {
  font-size: 88px;
  font-weight: bold;
}

.forecast-container {
  display: flex;
  justify-content: space-evenly;
  flex: wrap;
  margin: 25px 0;
}

.forecast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.forecast-day {
  font-size: 18px;
  color: #212529;
}

.forecast-weather-icon {
  width: 50px;
  height: 50px;
}

.forecast-temperatures {
  display: flex;
  gap: 15px;
}

.forecast-high,
.forecast-low {
  color: #f03e3e;
  font-weight: bold;
}

footer {
  border-top: 1px solid #f3d9fa;
  padding: 30px 0 0;
  text-align: center;
  font-size: 14px;
  color: #212529;
}
