.card {
  background-color: rgba(217, 220, 220, 0.701);
  border-radius: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  max-width: 30rem;
  padding: 2rem;
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0 auto;
}

.forecast {
  margin-top: 3rem;
}

.search {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

input.search-bar {
  background-color: rgba(217, 220, 220, 0.701);
  border: none;
  border-radius: 2rem;
  font-stretch: expanded;
  font-size: 1.1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  outline: none;
  padding: 0.6rem 1.2rem;
  height: 2.5rem; 
  width: calc(100% - 10rem);
}




button {
  background-color: #007bff;
  border: none;
  border-radius: 50%; 
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  height: 3.5rem;
  width: 3.5rem; 
  margin: 0 1rem;
  outline: none;
  padding: 0.5rem;
  transition: background-color 0.3s ease-in-out;
}

button.location-button {
  background-color: #6c757d;
  color: #fff;
  font-size: 0.9rem;
  height: 3.5rem;
  padding: 0.6rem 1rem;
}


button:hover {
  background-color: #0056b3;
}


.card .weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card .weather .city {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #333333;
}

.card .weather .icon img {
  width: 100px;
}

.card .weather .description {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0b0b0bc8;
}

.card .weather .temp {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #000000;
}

.card .weather .humidity,
.card .weather .wind {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #211010, #07142a);
  -webkit-background-clip: text;        
  -webkit-text-fill-color: transparent;
}

.card .forecast {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card .forecast .forecast-item {
  margin-bottom: 1rem; 
}


.card .forecast .day {
  flex-basis: 30%;
  margin-bottom: 1.5rem;
  text-align: center;
}

.card .forecast .day .date {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1f1f1f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.card .forecast .day .icon img {
  width: 60px;
  margin-bottom: 0.5rem;
}

.card .forecast .day .temp {
  font-size: 1.2rem;
  color: #666666;
}


.container {
  margin-top: 2rem;
}

.card.loading {
  opacity: 0.5;
  pointer-events: none;
}

.card.loading::after {
  content: "Loading...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: #666666;
}

.card.error {
  background-color: rgba(255, 0, 0, 0.2);
}

.card.error::after {
  content: "Error loading weather data.";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: #FF0000;
}

