* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #4969b4, #010b39);
  display: flex;
  justify-content: center;
  align-items: center;
}

.app {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.title {
  text-align: center;
  margin-bottom: 20px;
  color: #0f172a;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-box input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  outline: none;
}

.search-box button {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: #3b82f6;
  color: white;
  cursor: pointer;
}

.search-box button:hover {
  opacity: 0.9;
}

.message {
  text-align: center;
  margin-bottom: 10px;
  color: #475569;
}

.weather-container {
  margin-top: 10px;
}

.weather-card {
  text-align: center;
}

.weather-main img {
  width: 80px;
}

.temp {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 6px 0;
}

.condition {
  color: #475569;
  margin-bottom: 12px;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.info-box {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 10px;
}

.info-box span {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
}

.info-box strong {
  font-size: 1rem;
}

@media (max-width: 480px) {
  .card {
    padding: 18px;
  }

  .temp {
    font-size: 2rem;
  }
}
