body {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: background 0.5s ease-in-out; /* Smooth transition for gradient changes */

  font-family: "Roboto", sans-serif;
}

.weather-app {
  width: fit-content;
  height: fit-content;
  margin: 30px auto 0;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
  padding: 30px 30px 40px 30px;
  border-radius: 25px;
  border: none;
  background-color: rgba(0, 0, 0, 0.05);
}

a {
  color: rgba(28, 33, 65, 0.8);
}

input[type="search"] {
  padding: 21px 35px 20px 21px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  width: 70%;
  background-color: rgba(224, 222, 213, 0.4);
  box-shadow: 3px 3px 10px rgba(224, 222, 213, 0.9);
}

input[type="submit"] {
  background-image: url("Day_to_night_1.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: none;
  color: #fff;
  padding: 22px 45px;
  border-radius: 10px;
  font-size: 18px;
}

main {
  padding: 45px 0;
}

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

h1 {
  font-size: 40px;
  margin: 0;
}

.time {
  font-size: 22px;
  font-weight: 500;
  opacity: 0.8;
}

.sky-conditions {
  font-size: 22px;
  font-weight: 500;
  color: #5c7390;
}

.atmosphere {
  font-size: 18px;
  font-weight: 400;
}

.weather-info p {
  line-height: 24px;
  margin: 5px;
}

.weather-forecast {
  margin-top: 30px;
  display: flex;
  justify-content: space-around;
  position: relative;
  top: 30px;
  color: rgba(0, 0, 0, 1);

  border-radius: 35px;
  padding: 15px;
}

.column {
  text-align: center;
}

.forecast-day {
  font-size: 20px;
  font-weight: 500;
  color: rgba(0, 0, 0, 1);
}

.forecast-icon {
  width: 80px;
  height: 80px;
}

.forecast-temp {
  font-size: 16px;
  font-weight: 500;
  display: flex;
  justify-content: space-around;
}

.min-temp {
  color: rgba(0, 0, 0, 0.8);
}

.temperature {
  display: flex;
  position: relative;
  right: 15px;
}

.temperature .value {
  font-size: 90px;
  margin-top: 7px;
  line-height: 90px;
}

.temperature .icon {
  width: 90px;
  height: 90px;
  margin-top: 7px;
}

.temperature .unit {
  font-size: 25px;
  margin-top: 10px;
}

footer p {
  text-align: center;
  font-size: 16px;
  padding: 20px 0 0 0;
  border-top: rgba(28, 33, 65, 0.4) solid 0.1px;
  position: relative;
  top: 40px;
}

@media (max-width: 768px) {
  .weather-app {
    padding: 20px;
    margin: 20px auto;
  }

  input[type="search"] {
    width: 100%;
    margin-bottom: 10px;
    padding: 18px 20px;
    font-size: 16px;
  }

  input[type="submit"] {
    width: 100%;
    padding: 18px;
    margin-top: 10px;
    font-size: 16px;
  }

  .weather-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .temperature {
    justify-content: center;
    right: 0;
    margin-top: 15px;
  }

  .weather-forecast {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  .time,
  .sky-conditions,
  .atmosphere {
    font-size: 18px;
  }

  .temperature .value {
    font-size: 70px;
    line-height: 70px;
  }

  .temperature .unit {
    font-size: 20px;
  }

  .forecast-icon {
    width: 60px;
    height: 60px;
  }

  .forecast-day {
    font-size: 16px;
  }

  footer p {
    font-size: 14px;
    padding: 15px 10px 0;
  }
}
