body {
  font-family: Arial, sans-serif;
  background-color: #f0f4f7;
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
}

.input-section {
  margin-bottom: 20px;
}

input[type="text"] {
  padding: 10px;
  width: 80%;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

button {
  padding: 10px 20px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-left: 10px;
}

button:hover {
  background-color: #0056b3;
}

.weather-info {
  display: none;
  margin-top: 20px;
}

.weather-info img {
  width: 100px;
  height: 100px;
}

.weather-info p {
  font-size: 18px;
  margin: 10px 0;
}

h2 {
  margin: 0;
  font-size: 28px;
  color: #007bff;
}

.error-message {
  color: red;
  font-size: 16px;
}

.weather-sunny {
  background-color: #ffeb3b;
  color: #ff5722;
}

.weather-rainy {
  background-color: #2196f3;
  color: #ffffff;
}

.weather-cloudy {
  background-color: #9e9e9e;
  color: #ffffff;
}

.weather-snowy {
  background-color: #e0f7fa;
  color: #00796b;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 10px;
  }

  input[type="text"] {
    width: calc(100% - 120px);
  }

  button {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }

  .weather-info img {
    width: 80px;
    height: 80px;
  }

  h2 {
    font-size: 24px;
  }

  .weather-info p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 5px;
  }

  input[type="text"] {
    width: calc(100% - 80px);
  }

  button {
    width: 100%;
    padding: 12px;
  }

  .weather-info img {
    width: 60px;
    height: 60px;
  }

  h2 {
    font-size: 20px;
  }

  .weather-info p {
    font-size: 14px;
  }
}
