* {
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;

}

.heading{
  text-align: center;
  font-size: 30px;
  color: #fff;
  margin-bottom: 20px;
}

.error{
  text-align:left;
  margin-left: 10px;
  font-size: 17px;
  margin-top: 20px;
  display: none;
}

.card {
  width: 90vw;
  max-width: 400px;
  background: linear-gradient(135deg, #1a237e, #303f9f, #512da8);
  color: #fff;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

}

.search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.weather{
  display: none;
}
.search input {
  border: 0;
  outline: 0;
  background: #ebfffc;
  color: #555;
  padding: 12px 20px;
  height: 50px;
  border-radius: 25px;
  flex: 1;
  font-size: 16px;
}

.search button {
  border: 0;
  outline: 0;
  background: #ebfffc;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search button img {
  width: 14px;
}

.weather-icon {
  width: 140px;
  margin-top: 20px;
}

.weather h1 {
  font-size: 50px;
  font-weight: bold;
}

.weather h2 {
  font-size: 30px;
  font-weight: 400;
  padding-top: 10px;
}

.details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  margin-top: 30px;
}

.col {
  display: flex;
  align-items: center;
  text-align: left;
}

.col img {
  width: 30px;
  margin-right: 10px;
}

.humidity, .wind {
  font-size: 18px;
  margin-top: -5px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* RESPONSIVE DESIGN */
@media (max-width: 600px) {
  .card {
    width: 95vw;
    max-width: 350px;
    padding: 20px;
  }

  .search input {
    font-size: 14px;
    height: 45px;
    padding: 10px;
  }

  .search button {
    width: 45px;
    height: 45px;
  }

  .weather h1 {
    font-size: 40px;
  }

  .weather h2 {
    font-size: 25px;
  }

  .weather-icon {
    width: 120px;
  }

  .details {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .col {
    justify-content: center;
    text-align: center;
  }
}
