.background {
  background: rgba(61, 117, 148, 0.51);
}

.app {
  background: linear-gradient(
    89deg,
    rgb(18, 66, 99) 0%,
    rgb(22, 94, 142) 15%,
    rgb(40, 122, 177) 40.5%,
    rgb(67, 140, 180) 100.2%
  );
  max-width: 600px;
  margin: 60px auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 30px 50px rgba(144, 187, 239, 0.08);
  font-family: "Roboto", sans-serif;
}

.search-container {
  display: flex;
  align-items: center;
  position: relative;
}

.search-bar,
.search-button {
  font-size: 16px;
  padding: 20px;
  border: none;
  border-radius: 5px;
}

.search-bar {
  background-color: #dde6f3;
  color: rgba(39, 33, 66, 0.4);
  width: 75%;
  flex: 1;
  min-width: 0;
}

.search-button {
  margin-left: 5px;
  background-color: #6b8195;
  color: white;
  line-height: 1;
  flex-shrink: 0;
}

.errorMessage {
  color: #ff6b6b;
  font-size: 0.9em;
}

main {
  padding: 30px 0;
}

#suggestions {
 list-style: none;
  margin: 4px 0 0 0;
  padding: 0;
  background: white;
  color: black;
  max-height: 180px;
  overflow-y: auto;
  position: absolute;
  top: 100%; 
  left: 0;
  width: 75%;
  z-index: 1000;
}

#suggestions li {
  padding: 8px;
  cursor: pointer;
  color: black;
}

#suggestions li:hover {
  background: #f0f0f0;
}

.current-weather,
.weekly-forecast {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  box-sizing: border-box;
}

.current-city {
  font-size: 30px;
  font-weight: 900;
  margin: 0;
  color: whitesmoke;
}

.current-details {
  color: #a9bfd3;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
}

.current-details strong {
  color: #d2525a;
}

.current-weather {
  display: flex;
  justify-content: space-between;
  color: whitesmoke;
}

.current-temp {
  display: flex;
}
.current-icon {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
}

.current-icon img:hover {
  transform: scale(1.2);
}

.current-value {
  font-size: 80px;
  line-height: 80px;
  font-weight: bold;
}

.current-unit {
  font-size: 28px;
  margin-top: 6px;
}

.weekly-forecast {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  opacity: 85%;
}

.weekly-forecast-date {
  text-align: center;
  color: whitesmoke;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 10px;
}

.weekly-forecast-icon {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.weekly-forecast-temperatures {
  text-align: center;
  color: white;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease;
}

.weekly-forecast-temperatures:hover {
  transform: scale(1.3);
}

.weekly-max-temperature {
  padding: 0 10px;
}

.weekly-min-temperature {
  padding: 0 10px;
}

footer {
  border-top: 1px solid #abc5dd;
  text-align: center;
  padding-top: 15px;
  color: whitesmoke;
  font-size: smaller;
}

a {
  color: #e1aeff;
}
