* {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #1e1b2e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 90%;
  max-width: 460px;
  background: linear-gradient(
    135deg,
    #a18cd1,
    #fbc2eb
  ); /* lavender-pink gradient */
  color: #1e1b2e;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}
.search {
  width: 100%;
  display: flex;
  height: auto;
  align-items: center;
}
.search button {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  background-color: beige;
  border-radius: 50%;
}

.search button img {
  height: 35px;
  width: 35px;
}
.search input {
  border: 0;
  padding: 7px 15px;
  outline: 0;
  background-color: beige;
  justify-self: center;
  color: rgb(49, 0, 0);
  border-radius: 20px;
  margin-right: 10px;
  width: 100%;
  font-size: 18px;
}
.weathericon {
  width: 170px;
  margin-top: 30px;
}

.weather h1 {
  font-size: 40px;
  font-weight: 400;
  margin-top: -10px;
}

.col img {
  width: 55px;
  height: 50px;
  margin-right: 9px;
}
.col {
  display: flex;

  align-items: center;
  text-align: left;
}
.details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-top: 50px;
}
.humidity,
.wind {
  font-size: 28px;
  margin-top: -6px;
}
.weather {
  display: none;
}
.error {
  text-align: left;
  margin-left: 10px;
  font-size: 15px;
  margin-top: 10px;
  display: none;
}
@media (max-width: 480px) {
  .card {
    padding: 20px;
  }

  .search input {
    font-size: 14px;
    padding: 8px 12px;
  }

  .weather h1 {
    font-size: 26px;
  }

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

  .col img {
    width: 35px;
    height: 35px;
  }
}
