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

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

body {
  background-color: #222;
}

.card {
  width: 90%;
  max-width: 470px;
  height: 138px;
  overflow: hidden;
  background: linear-gradient(135deg,hsl(209, 93%, 70%),#b56ff3 );
  color: #ffffff;
  margin: 100px auto 0;
  padding: 40px 35px 20px;
  border-radius: 20px;
  text-align: center;
}

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

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

.search button {
  border: 0;
  outline: 0;
  background: #ebfffc;
  border-radius: 50%;
  height: 60px;
  width: 60px;
  cursor: pointer;
}

.search button img {
  width: 18px;
}

.error {
  margin-top: 20px;
  margin-bottom: -17px;
  display: none;
}

.detailbtn {
  padding: 1px;
  border: 1px solid rgb(255, 252, 252);
  outline: 0;
  margin-top: 20px;
  border-radius: 50px;
  font-weight: 400;
  color: white;
  cursor: pointer;
  background-color: transparent;
}

.weather {
  transition: all 1.5s ease-in-out;
}

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

.weather h1 {
  font-size: 75px;
  font-weight: 500;
  margin-top: -20px;
}

.weather h2 {
  font-size: 35px;
  font-weight: 400;
  margin-top: -20px;
}

.details {
  margin-top: 30px;
  padding: 0 10px;
}

.subdetails {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.col {
  display: flex;
  align-items: center;
  text-align: left;
  margin: 15px;
}

.high,
.low {
  font-size: 25px;
  margin-top: -6px;
}

.humidity,
.wind {
  font-size: 22px;
  margin-top: -6px;
}

.thermo {
  width: 59px;
  margin-right: 15px;
  margin-left: -15px;
}

.sign {
  width: 42px;
  padding-right: 10px;
}

@media screen and (max-width: 550px) {
  .card {
    max-width: 400px;
    height: 125px;
  }

  .search input {
    padding: 7px 20px;
    width: 60%;
    height: 45px;
  }

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

  .weather-icon {
    width: 150px;
    margin-top: 40px;
  }

  .weather h1 {
    font-size: 63px;
    margin: 4px 0;
  }

  .weather h2 {
    font-size: 30px;
  }

  .details {
    padding: 0px;
    margin-left: -25px;
    margin-right: -25px;
  }

  .high,
  .low {
    font-size: 18px;
    margin-top: -6px;
  }

  .humidity,
  .wind {
    font-size: 15px;
    margin-top: -6px;
  }

  .thermo {
    width: 45px;
    margin-right: 10px;
  }

  .sign {
    width: 35px;
    padding-right: 5px;
  }
}
