/* General Reset & Body Styling */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #256eff, #102b72);
  font-family: "Segoe UI", Arial, sans-serif;
  color: white;
  box-sizing: border-box;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 800px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 40px 20px;
  text-align: center;
}

/* Header */
header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Search Bar */
.search-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

#search-input {
  flex: 1 1 350px;
  min-width: 250px;
  max-width: 600px;
  padding: 10px 12px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  outline: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:focus {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}

.search-button:hover {
  background-color: #0056b3;
}

.search-button:active {
  background-color: #004494;
}

/* Current Weather */
.current-weather {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #5bc6f7 0%, #b3e0fc 100%);

  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  margin-top: 20px;
}

#current-date {
  font-size: 1.5rem;
}

.current-city {
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-align: left;
}

.current-details {
  font-size: 1.3rem;
  opacity: 0.85;
  display: block;
  text-align: left;
}

#description {
  font-size: 1.2rem;
}

.current-temperature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
}

.current-temperature-value {
  font-size: 88px;
  font-weight: 300;
  line-height: 88px;
}

.current-temperature-unit {
  font-size: 1.5rem;
  font-weight: 400;
  position: relative;
  top: -12px;
  margin-left: 2px;
}

strong {
  color: #123458;
}

/* Forecast Section */
.forecast {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.forecast-item {
  flex: 1 1 70px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 8px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Styling for the container that holds the image */
.forecast-icon-container {
  width: 44px; /* Set the container's dimensions */
  height: 44px;
  display: flex; /* Use flexbox to easily center the image within */
  justify-content: center;
  align-items: center;
  /* You might also add border-radius, background, etc. to this container */
}

/* Styling for the image itself */
.forecast-image {
  max-width: 100%; /* Ensures the image fits within its container */
  max-height: 100%; /* Ensures the image fits within its container */
  /* If you want it to always be exactly 44x44 and potentially stretch: */
  /* width: 100%; */
  /* height: 100%; */
  /* object-fit: contain; /* or 'cover' to control how it fits */
}

.forecast-temp {
  font-size: 14px;
  font-weight: bold;
  color: #123458;
}

.forecast-temp .min,
.forecast-temp .max {
  font-size: 14px; /* Set both to the same size */
}
.forecast-day {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Called from SheCodes API */
.weather-app-icon {
  width: 88px;
  height: 88px;
}

/* Footer */
footer {
  margin-top: 40px;
  font-size: 0.9rem;
  color: grey;
}

footer a {
  color: #007bff;
  text-decoration: none;
}

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