* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 60vh;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}

.card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, #00feba, #5b548a);
  color: #fff;
  border-radius: 20px;
  padding: 24px 18px;
  text-align: center;
}

.search {
  display: flex;
  gap: 10px;
}

.search input {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  background: #ebfffc;
  color: #333;
}

.search button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  outline: none;
  background: #ebfffc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search button img {
  width: 14px;
}


.weather {
  display: none;
}

.weather-icon {
  width: clamp(90px, 35vw, 140px);
  margin: 20px auto 10px;
}

.weather h1 {
  font-size: clamp(36px, 10vw, 64px);
  font-weight: 500;
}

.weather h2 {
  font-size: clamp(20px, 6vw, 32px);
  font-weight: 400;
  margin-top: -6px;
}

.details {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 14px;
}

.col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.col img {
  width: 32px;
}

.humidity,
.wind {
  font-size: 16px;
}

.error {
  display: none;
  text-align: left;
  margin-top: 8px;
  font-size: 14px;
}

@media (max-width: 320px) {
  .details {
    flex-direction: column;
    align-items: center;
  }

  .col {
    width: 100%;
    justify-content: center;
  }
}

