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

body {
  background: url(images/Storm-and-Powerlines-Photo-min.jpg);
  width: 100vw;
  height: 90vh;
  object-fit: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

.card {
  width: 90%;
  max-width: 470px;
  color: #fff;
  margin: 50px auto 20px;
  text-align: center;
  padding: 40px 35px;
  transition: all 0.4s;
  border-radius: 20px;
  /* background-color: #ffffff41; */
  background-color: #00000039;
}

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

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

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

.search button i {
  font-size: 18px;
}

.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;
  margin-top: 50px;
  padding: 0 20px;
}

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

.col img {
  margin-right: 10px;
  width: 40px;
}

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

.weather {
  display: none;
}

.error {
  text-align: left;
  font-size: 14px;
  color: white;
  margin: 20px 0 0 10px;
  display: none;
}

@media screen and (max-width: 600px) {

  .card {
    max-width: 400px;
    text-align: center;
    padding: 8px;
    border-radius: 16px;
    box-shadow: none;
    background: transparent;
  }

  .search input {
    padding: 10px 25px;
    height: 60px;
    margin-right: 16px;
    font-size: 15px;
  }

  .search button {
    height: 50px;
    width: 50px;
    font-size: 14px;
  }

  .col img {
    margin-right: 7px;
    width: 30px;
  }

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

@media screen and (max-width: 400px) {
  .card {
    max-width: 320px;
    text-align: center;
    padding: 4px;
    border-radius: 16px;
    box-shadow: none;
    background: transparent;
  }

  .search input {
    padding: 5px 13px;
    height: 50px;
    margin-right: 16px;
    font-size: 15px;
  }

  .search button {
    height: 35px;
    width: 35px;
    font-size: 14px;
  }

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

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

  .details {
    flex-direction: column;
    gap: 3rem;
  }
}
