/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #4facfe, #00f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Main Container */
.app-container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

/* Weather Card */
.weather-box {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Heading */
.weather-box h1 {
  margin-bottom: 20px;
  color: #333;
}

/* Input and Button Group */
.input-group {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.input-group input {
  flex: 1;
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.input-group button {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Weather Result */
.weather-result {
  padding: 1rem;
  background-color: #f0f8ff;
  border-radius: 12px;
  text-align: left;
}

.weather-result h2 {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 500px) {
  .input-group {
    flex-direction: column;
  }

  .input-group input,
  .input-group button {
    width: 100%;
  }
}
