body {
  background-color: #f9f7fe;
  font-family: "roboto", sans-serif;
}

a {
  color: #885df1;
}

.weather-app {
  background-color: white;
  max-width: 600px;
  margin: 45px auto;
  box-shadow: 0 30px 50px rgba(65, 50, 100, 0.08);
  border-radius: 16px;
  padding: 30px;
}

header {
  border-bottom: 1px solid #f9f7fe;
  padding: 0 0 30px 0;
}

.search-form-input {
  background-color: #f9f7fe;
  border: none;
  border-radius: 6px;
  width: 80%;
  padding: 15px 20px;
  font-size: 16px;
}

.search-form-button {
  background-color: #885df1;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  color: white;
  margin-left: 5px;
  font-size: 16px;
}

main {
  padding: 30px 0;
}

.weather-app-data {
  display: flex;
  justify-content: space-between;
}

.weather-app-city {
  margin: 0;
  font-size: 38px;
  line-height: 48px;
}

.weather-app-details {
  font-size: 16px;
  color: rgba(39, 33, 66, 0.4);
  line-height: 24px;
  font-weight: 500;
}

.weather-app-details strong {
  color: #f65282;
}

.weather-app-temperature-container {
  display: flex;
  margin-right: -50px;
}

.weather-app-icon {
  font-size: 88px;
  height: 60px;
  margin-right: -30px;
  margin-top: 15px;
}
.weather-app-temperature {
  font-size: 88px;
  margin-left: -100px;
  line-height: 88px;
  font-weight: bold;
  margin-right: -120px;
}

.weather-app-unit {
  margin-top: 6px;
  font-size: 28px;
  margin-left: -60px;
}

#forecast {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.weather-forecast-date {
  text-align: center;
  color: rgba(39, 33, 66, 0.4);
  font-size: 16px;
  line-height: 20px;
}

.weather-forecast-icon {
  width: 88px;
  height: 88px;
  display: block;
  margin: 0 auto;
}

.weather-forecast-temperatures {
  text-align: center;
  color: #f65282;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.weather-forecast-temperature {
  padding: 0 10px;
}

footer {
  border-top: 1px solid #f9f7fe;
  padding: 30px 0 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}

#icon.rainy,
.weather-forecast-day.rainy {
  position: relative;
  overflow: visible;
}
#icon.rainy::before,
#icon.rainy::after,
.weather-forecast-day.rainy::before,
.weather-forecast-day.rainy::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 12px;
  background: transparent;
  top: 70px;
  left: 40px;
  animation: none;
}
#icon.rainy::before {
  left: 30%;
}
#icon.rainy::after {
  left: 65%;
}

@keyframes drop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    transform: translateY(20px);
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

#icon.cloudy .weather-app-icon {
  animation: drift 4s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

#icon.sunny img {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.weather-forecast-day.cloudy img,
.weather-forecast-day.cloudy > .weather-forecast-icon {
  animation: drift 4s ease-in-out infinite;
}

.weather-forecast-day.sunny img,
.weather-forecast-day.sunny > .weather-forecast-icon {
  animation: pulse 2s ease-in-out infinite;
}
