* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #222;
}

.card {
  width: 90%;
  max-width: 470px;
  margin: 50px auto 0;
  padding: 40px 35px;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #00feba, #5b548a);
}

.search {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.search input {
  border: 0;
  outline: 0;
  border-radius: 30px;
  padding: 10px 25px;
  background: #ebfffc;
  color: #555;
  font-size: 18px;
  flex: 1;
  height: 60px;
  margin-right: 16px;
}

.search button {
  border: 0;
  outline: 0;
  border-radius: 50%;
  background: #ebfffc;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.search button img {
  width: 16px;
}

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

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

.weather h2 {
  font-size: 45px;
  font-weight: 400;
  margin-top: -10px;
}

.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 {
  font-size: 28px;
  margin-top: -6px;
}

.weather {
  display: none;
}

.error {
  text-align: left;
  margin-left: 18px;
  color: #fff;
  margin-top: 15px;
  font-size: 19px;
  display: none;
}

@media screen and (max-width:550px) {
  .card {
    margin-top: 0px;
    width: 100%;
    max-width: 100%;
    padding: 20px 10px;
  }

  .search input {
    padding: 5px 5px 0px 10px;
    font-size: 18px;
    flex: 1;
    height: 50px;
    margin-right: 6px;
  }

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

  .details {
    flex-direction: column-reverse;
    gap: 20px;
  }
}