html {
  height: 100%;
}
/* this is to make sure the gradient does not get cut */

body {
  margin: 0;
  min-height: 100%;
  background: #f896d8;
  background: linear-gradient(
    356deg,
    rgba(248, 150, 216, 1) 0%,
    rgba(255, 209, 220, 1) 100%
  );
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: "Funnel Sans", sans-serif;
  transition: background 0.5s ease;
}

body.cloudy {
  background: linear-gradient(
    356deg,
    rgba(202, 125, 249, 1) 0%,
    rgba(209, 210, 230, 1) 100%
  );
  background-attachment: fixed;
}

body.rainy {
  background: linear-gradient(
    356deg,
    rgba(86, 69, 146, 1) 0%,
    rgba(6, 10, 69, 1) 100%
  );
  background-attachment: fixed;
}

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

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

.search-form-input {
  background-color: #fff5f9;
  border: 1px solid #fbe4f0;
  border-radius: 25px;
  width: 80%;
  padding: 15px 20px;
  font-size: 16px;
}

.search-form-input:focus {
  outline: none;
  border: 2px solid #edf67d;
  background-color: white;
}

.search-form-input::placeholder {
  color: #564592;
  opacity: 0.5;
}

.search-form-button {
  background-color: #724cf9;
  border: none;
  border-radius: 25px;
  padding: 15px 30px;
  color: white;
  margin-left: 5px;
  font-size: 16px;
  transition: all 0.2s ease-in-out;
}

.search-form-button:hover {
  background-color: #f896d8;
  color: white;
}

.search-form-button:active {
  transform: scale(0.95);
  background-color: #edf67d;
  color: #564592;
}

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;
  line-height: 24px;
}

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

.weather-app-temperature-container {
  display: flex;
}

.weather-app-icon {
  width: 88px;
  height: 88px;
  margin-top: 5px;
}

.weather-app-temperature {
  font-size: 88px;
  font-weight: bold;
  margin-left: 10px;
}

.weather-app-unit {
  margin-top: 20px;
  font-size: 28px;
}

.weather-forecast {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.weather-forecast-date {
  text-align: center;
  font-size: 16px;
  margin-bottom: 5px;
}

.weather-forecast-icon {
  width: 50%;
  display: block;
  margin: 0 auto;
}
.weather-forecast-temperatures {
  text-align: center;
  color: #f896d8;
  margin-top: 5px;
  display: flex;
  justify-content: center;
  font-size: 14px;
}

.weather-forecast-temperature {
  padding: 0 5px;
}

.weather-forecast-temperature strong {
  color: #724cf9;
  font-weight: bold;
}

footer {
  border-top: 1px solid #efefef;
  padding: 30px 0 0 0;
  text-align: center;
  font-size: 14px;
  color: #564592;
  opacity: 0.8;
  line-height: 2;
}
footer a {
  color: #724cf9;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative; /* Needed for the custom underline effect */
  padding: 2px 4px;
  border-radius: 4px;
}

footer a:hover {
  color: #f896d8;
  background-color: rgba(248, 150, 216, 0.1);
  text-decoration: underline;
}
footer a:active {
  color: #564592;
  background-color: #edf67d;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  margin-bottom: 20px;
}

.logo-link {
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.app-logo {
  max-width: 90px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.app-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.logo-link:active .app-logo {
  transform: scale(0.95);
  filter: invert(75%) sepia(36%) saturate(1656%) hue-rotate(295deg)
    brightness(101%) contrast(96%);
}
