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

body {
  background: linear-gradient(135deg, #0d0d1a, #1a1a40, #2a2a72);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: 90%;
  max-width: 450px;
  background: linear-gradient(145deg, #23233b, #1a1a2f);
  margin: 100px auto;
  border-radius: 20px;
  padding: 40px 35px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.search {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 0.5rem;

}

.search input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 1rem;
  min-width: 0;

}

.search button {
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.search button img {
  width: 18px;
  height: 18px;
}


.weather-icon {
  width: 170px;
  margin-top: 30px;
}

.weather h1 {
  margin-top: 50px;
  font-size: 80px;
  font-weight: 500;
}

.weather h2 {
  font-size: 45px;
  font-weight: 400;
  margin-top: -10px;
  color: rgb(196, 194, 194);
}

.details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 50px;
  padding: 0 20px;
}

.co1 {
  text-align: left;
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.co1 img {
  width: 40px;
  margin-right: 15px;
}

.humidity,
.wind {
  font-size: 28px;
  margin-top: -6px;
}

.weather {
  display: none;
}

.error {
  text-align: left;
  margin-left: 15px;
  font-size: 16pz;
  margin-top: 15px;
  display: none;
}

@media (max-width: 500px) {
  .card {
    padding: 1.5rem;
  }

  .temp {
    font-size: 2rem;
  }

  .weather-icon {
    width: 80px;
  }

  .details {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  .details .co1 {
    justify-content: center;
  }

  .search input {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  .search button {
    width: 40px;
    height: 40px;
  }

  .search button img {
    width: 16px;
    height: 16px;
  }
}