body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #a1c4fd, #c2e9fb);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 90%;
  text-align: center;
  transition: transform 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
}

h1 {
  margin-bottom: 1.5rem;
  color: #1f3c88;
  transition: 0.3s;
}

form {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  position: relative;
}

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

input:focus {
  border-color: #1f3c88;
  outline: none;
  background: #f0f8ff;
}

button {
  background-color: #1f3c88;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background-color: #163172;
  transform: scale(1.05);
}

#suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 150px;
  overflow-y: auto;
  z-index: 10;
  width: 100%;
}

.suggestion {
  padding: 0.5rem;
  cursor: pointer;
  transition: 0.2s;
}

.suggestion:hover {
  background-color: #f0f0f0;
}

#weatherInfo {
  margin-top: 1rem;
  animation: fadeIn 0.5s ease-in-out;
}

#weatherIcon {
  width: 80px;
  height: 80px;
  transform: scale(1);
  transition: transform 0.3s ease;
}

#weatherIcon:hover {
  transform: scale(1.1);
}

#error {
  color: red;
  margin-top: 10px;
  font-weight: bold;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  form {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
