* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

body {
  background: #222;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

#h1 {
  text-align: center;
  background-color: #00feba;
  margin: 10px 5%;
  padding: 10px;
  border-radius: 10px;
}

.card {
  width: 90%;
  max-width: 470px;
  background: linear-gradient(135deg, #00feba, #5b548a);
  color: #fff;
  margin: 20px auto;
  border-radius: 20px;
  padding: 40px 35px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.search {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.search input {
  border: 0;
  outline: 0;
  background: #ebfffc;
  color: #555;
  padding: 10px 20px;
  height: 50px;
  border-radius: 30px;
  flex: 1;
  margin-right: 10px;
  font-size: 16px;
}

.search button {
  border: 0;
  outline: 0;
  background: #ebfffc;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
}

.search button img {
  width: 16px;
}

/* Weather */
.weather-icon {
  width: 150px;
  margin-top: 20px;
}

.weather h1 {
  font-size: 60px;
  font-weight: 500;
  margin: 10px 0;
}

.weather h2 {
  font-size: 35px;
  font-weight: 400;
  margin-top: -10px;
}

.details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  margin-top: 30px;
}

.col {
  display: flex;
  align-items: center;
  text-align: left;
}

.col img {
  width: 30px;
  margin-right: 8px;
}

.humidity,
.wind {
  font-size: 20px;
  margin-top: -6px;
}

/* Error */
.error {
  text-align: left;
  margin-left: 10px;
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

/* Responsive Design css code */

@media screen and (max-width: 768px) {
  .card {
    padding: 30px 25px;
  }

  .search input {
    font-size: 14px;
    padding: 8px 15px;
  }

  .search button {
    width: 40px;
    height: 40px;
  }

  .weather-icon {
    width: 120px;
  }

  .weather h1 {
    font-size: 50px;
  }

  .weather h2 {
    font-size: 30px;
  }

  .details {
    flex-direction: column;
    margin-top: 20px;
  }

  .col {
    margin-bottom: 10px;
  }

  .humidity,
  .wind {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  #h1 {
    font-size: 18px;
  }

  .card {
    padding: 20px 15px;
  }

  .weather h1 {
    font-size: 40px;
  }

  .weather h2 {
    font-size: 25px;
  }

  .search input {
    height: 40px;
    font-size: 14px;
  }

  .search button {
    width: 35px;
    height: 35px;
  }
}
