* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Poppins', Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #2a2a2a, #111); 
  color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.weather-app {
  background: rgba(25, 25, 25, 0.95);
  border-radius: 20px;
  padding: 2rem;
  width: 850px;       
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}


.search-form {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.search-form-input {
  flex: 1;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
  font-size: 1.08rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: border 0.2s;
}

.search-form-input::placeholder {
  color: #aaa;
}

.search-form-button {
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(120deg, #ffb347, #ffcc33);
  color: #111;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(255, 200, 100, 0.3);
  transition: background 0.2s, transform 0.2s;
}

.search-form-button:hover {
  background: linear-gradient(120deg, #ffcc33, #ffb347);
  transform: translateY(-2px) scale(1.04);
}


.weather-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.weather-app-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.weather-app-city {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
}

.weather-app-details {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.5;
  color: #ccc;
}


.weather-app-temperature {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  background: none;  
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none; 
}

#icon {
  font-size: 3rem;
  margin-right: 1rem;
  color: #ffcc33;
}

#temperature {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
}

.weather-unit {
  font-size: 1.2rem;
  color: #ffcc33;
  font-weight: 600;
  align-self: flex-start;
}


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

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

.weather-forecast-icon {
  height: 88px;
  width: 88px;
  display: block;
  margin: 0 auto;
}
.weather-forecast-temperatures {
  text-align: center;
  color:#ffcc33;
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

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

.forecast-day .high {
  font-weight: 600;
  color: #ffcc33;
}

.forecast-day .low {
  opacity: 0.6;
  font-size: 0.8rem;
  color: #aaa;
}


footer {
  font-size: 0.75rem;
  opacity: 0.7;
  line-height: 1.4;
  text-align: center;
  margin-top: 1.5rem;
  color: #888;
}

footer a {
  color: #ffcc33;
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


@media (max-width: 720px) {
  .weather-app {
    width: 95vw;
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .search-form {
    flex-direction: row;
    gap: 0.5rem;
  }

  .search-form-input {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
  }

  .search-form-button {
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
  }

  .weather-overview {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding-top: 0.5rem;
    border-top: none;
  }

  .weather-app-city {
    font-size: 1.4rem;
  }

  .weather-app-details {
    font-size: 0.95rem;
  }

  .weather-app-temperature {
    width: 100%;
    justify-content: flex-start;
    gap: 0.6rem;
  }

  #icon {
    font-size: 2.6rem;
  }

  #temperature {
    font-size: 2.2rem;
  }

  .weather-forecast {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-top: 0.8rem;
  }

  .weather-forecast::-webkit-scrollbar {
    height: 8px;
  }

  .weather-forecast::-webkit-scrollbar-thumb {
    background: rgba(255, 204, 51, 0.8);
    border-radius: 8px;
  }

  .weather-forecast-day {
    min-width: 100px;
    flex: 0 0 auto;
    background: rgba(255,255,255,0.03);
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
  }

  .weather-forecast-icon {
    height: 56px;
    width: 56px;
  }

}

