* {
  margin: 0;
  padding: 0;
  font-family: "poppins", sans-serif;
  box-sizing: border-box;
}
body {
  background: #222;
}
.card {
  width: 90%;
  max-width: 470px;
  background: linear-gradient(135deg, #4facfe, #00c6fb);
  margin: 100px auto 0;
  color: #fff;
  border-radius: 20px;
  padding: 40px 35px;
  text-align: center;
}
.search {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search input {
  border: 0;
  outline: 0;
  background: #ebfffc;
  color: #555;
  padding: 10px 25px;
  height: 60px;
  border-radius: 30px;
  flex: 1;
  margin-right: 16px;
  font-size: 18px;
}
.search button {
  border: 0;
  outline: 0;
  background: #ebfffc;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.search button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 198, 251, 0.4);
}
.search button img {
  width: 16px;
}
.weather-icon {
  width: 170px;
  margin-top: 30px;
}
.weather h1 {
  font-size: 80px;
  font-weight: 500;
}
.weather h2 {
  font-size: 43px;
  font-weight: 400;
  margin-top: -10px;
}
.description {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  text-transform: capitalize;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.updated-time {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ffe082d2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-top: 50px;
}
.col {
  display: flex;
  align-items: center;
  text-align: left;
}
.col img {
  width: 40px;
  margin-right: 10px;
}
.humidity,
.wind,
.feels-like {
  font-size: 25px;
  margin-top: -6px;
}
.weather {
  display: none;
}
.error {
  color: #ff3b3b;
  text-shadow:
    0 0 5px #ff0000,
    0 0 10px #ff0000,
    0 0 20px #ff1a1a,
    0 0 40px #ff1a1a;
  text-align: left;
  margin-left: 10px;
  font-size: 14px;
  margin-top: 10px;
  display: none;
  text-transform: uppercase;
}
.recent-searches {
  margin-top: 35px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: none;
}
.recent-searches h3 {
  font-size: 18px;
  font-weight: 500;
  color: white;
  text-align: left;
  margin-bottom: 18px;
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-list li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 14px 20px;
  margin-bottom: 12px;
  color: white;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.history-list li:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.delete-city {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.25s ease;
  padding-left: 12px;
}
.delete-city:hover{
    color: #ff6b6b;
    transform: scale(1.2) rotate(90deg);
}

@media (max-width: 480px) {
  .card {
    width: 95%;
    margin: 30px auto 20px;
    padding: 28px 18px;
    border-radius: 16px;
  }
  .search input {
    height: 48px;
    padding: 8px 16px;
    font-size: 15px;
    margin-right: 10px;
  }
  .search button {
    width: 48px;
    height: 48px;
  }
  .weather-icon {
    width: 130px;
    margin-top: 20px;
  }
  .weather h1 {
    font-size: 54px;
  }
  .weather h2 {
    font-size: 30px;
  }
  .details {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-around;
    padding: 0;
    margin-top: 30px;
  }
  .col {
    font-size: 14px;
  }
  .col img {
    width: 32px;
  }
  .humidity, .wind, .feels-like {
    font-size: 18px;
  }
}