@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans&family=Poppins&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  background: linear-gradient(to right top, #1e3c72, #2a5298, #3c8ce7, #00c6ff);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 90%;
  max-width: 480px;
  background: linear-gradient(145deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  padding: 40px 35px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.search {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}

.search input {
  flex: 1;
  padding: 10px 20px;
  height: 50px;
  border: none;
  border-radius: 25px 0 0 25px;
  font-size: 16px;
  outline: none;
  background: #f2f2f2;
  color: #333;
}

.search button {
  width: 60px;
  height: 50px;
  border: none;
  border-radius: 0 25px 25px 0;
  background: #00c6ff;
  cursor: pointer;
  transition: background 0.3s;
}

.search button:hover {
  background: #0072ff;
}

.search button img {
  width: 20px;
}

.weather-icon {
  width: 120px;
  margin-top: 20px;
}

.weather h1 {
  font-size: 60px;
  font-weight: 600;
  margin: 10px 0;
}

.weather h2 {
  font-size: 36px;
  font-weight: 500;
}

.weather h3 {
  font-size: 16px;
  font-weight: 400;
  margin-top: 8px;
  color: #ffeb3b;
}

.details {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  padding: 0 10px;
}

.col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.col img {
  width: 36px;
}

.humidity, .wind {
  font-size: 22px;
  font-weight: 500;
  color: #00ffe7;
}

.error {
  color: #ff5252;
  background: #ffe6e6;
  padding: 10px;
  border-radius: 8px;
  display: none;
  margin-bottom: 10px;
}

.weather {
  display: none;
}
