@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

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

body {
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #fff;
}

img {
  max-width: 100%;
}

.weather-card {
  width: 90%;
  max-width: 420px;
  padding: 30px 25px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, #00feba, #5b548a);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.search {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

.search input {
  flex: 1;
  height: 48px;
  padding: 0 20px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  background: #ebfffc;
  color: #333;
  outline: none;
}

.search button {
  width: 48px;
  height: 48px;
  background: #ebfffc;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search button:hover {
  background: #d4f7f4;
}

.search i {
  font-size: 18px;
  color: #333;
}

.weather-icon {
  width: 140px;
  height: 140px;
  margin: 10px 0;
}

.temp {
  font-size: 56px;
  font-weight: 600;
  margin: 10px 0;
}

.city {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 20px;
}

.details {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  flex-wrap: wrap;
}

.col {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 130px;
}

.details img {
  width: 36px;
  height: 36px;
  margin-right: 10px;
}

.info {
  text-align: left;
}

.humidity,
.wind {
  font-size: 20px;
  font-weight: 500;
}

@media screen and (max-width: 576px) {
  .weather-card {
    padding: 20px;
  }

  .search input {
    font-size: 14px;
    padding: 0 15px;
  }

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

  .temp {
    font-size: 40px;
  }

  .city {
    font-size: 24px;
  }

  .humidity,
  .wind {
    font-size: 16px;
  }

  .weather-icon {
    width: 100px;
    height: 100px;
  }

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

  .col {
    justify-content: center;
    margin-bottom: 15px;
  }
}
