body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #e0eafc, #cfdef3);
  margin: 0;
  padding: 0;
  text-align: center;
}

header {
  padding: 20px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  position: relative;
}

.logo {
  position: absolute;
  left: 20px;
  top: 20px;
  font-weight: bold;
  font-size: 18px;
  color: #333;
}

@media (min-width: 600px) {
  header {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
}

input, select, button {
  padding: 10px;
  font-size: 16px;
  margin: 0 5px;
}

.weather-main {
 
  background-size: cover;
  padding: 45px;
  color: black;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  margin: 30px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-image 0.5s ease-in-out;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); /* Додано контраст */
}

.forecast {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.day {
  background: white;
  border-radius: 10px;
  padding: 10px;
  width: 120px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

.label {
  font-weight: bold;
}
.text {
  margin: 10px;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 10px;
  }

  .logo {
    position: static;
    transform: none;
    text-align: center;
    margin-bottom: 10px;
  }

  input,
  select,
  button {
    width: 100%;
    margin: 5px 0;
    font-size: 16px;
  }

  .weather-main {
    width: 95%;
    padding: 15px;
    font-size: 14px;
  }

  .forecast {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .day {
    width: 80%;
    height: auto;
    padding: 15px;
    font-size: 14px;
  }

  h1, h3 {
    font-size: 18px;
    margin: 10px;
  }
}