@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #222222;
}

.card {
  width: 90%;
  max-width: 670px;
  /* TODO : Understand this CSS property in depth */
  background: linear-gradient(135deg, #00feba, #5b548a);
  color: #fff;
  /* TOP , LR, BOTTOM */
  margin: 100px auto 0;
  border-radius: 20px;
  padding: 40px 35px;
  text-align: center;
}

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

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

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

.search button img {
  width: 16px;
}

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

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

.weather h1 {
  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: center;
  margin-left: 10px;
  font-size: 24px;
  margin-top: 10px;
  display: none;
  color: rgb(17, 7, 7);
  font-weight: 500;
}

@media (max-width: 600px) {
  .card {
    max-width: 98%;
    padding: 20px 10px;
    border-radius: 12px;
    margin: 40px auto 0;
  }

  .search input {
    padding: 8px 12px;
    height: 40px;
    font-size: 14px;
    border-radius: 20px;
    margin-right: 8px;
  }

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

  .search button img {
    width: 12px;
  }

  .weather-icon {
    width: 90px;
    margin-top: 18px;
  }

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

  .weather h2 {
    font-size: 22px;
    font-weight: 400;
    margin-top: -6px;
  }

  .details {
    flex-direction: column;
    gap: 18px;
    padding: 0 4px;
    margin-top: 24px;
  }

  .col img {
    width: 24px;
    margin-right: 6px;
  }

  .humidity,
  .wind {
    font-size: 18px;
    margin-top: -2px;
  }

  .error {
    font-size: 16px;
    margin-top: 8px;
    margin-left: 0;
  }
}
