@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: #1e1e1e;
  color: #171717;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #fff;
  color: #171717;
  padding: 2rem;
  width: 35rem;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

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


.weather_search {
  position: relative;
}

.weather_search i {
  position: absolute;
  cursor: pointer;
  right: 12px;
  top: 10px;
  font-size: 20px;
  color: #fff;
}

input {
  border: none;
  background: #1e1e1e;
  color: #fff;
  outline: none;
  width: 220px;
  padding: 0.5rem 1rem;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

input::placeholder {
  color: #f7f7f7;
}

.main_data {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.loading_msg {
  text-align: center;
  padding: 1rem;
  white-space: pre-line;
}

.weather_body {
  display: block;
  text-align: center;
}

.weather_datetime {
  font-size: 14px;
}

.weather_forecast {
  display: inline-block;
  background: #1e1e1e;
  color: #fff;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
}

.weather_icon img {
  width: 100px;
  filter: drop-shadow(2px 4px 6px rgb(142, 142, 142));
  -webkit-filter: drop-shadow(2px 4px 6px rgb(142, 142, 142));
}

.weather_temperature {
  font-size: 1.75rem;
}

.weather_minmax {
  display: flex;
  justify-content: center;
}

.weather_minmax p {
  font-size: 14px;
  margin: 0.5rem;
}

.weather_info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
}

.weather_card {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  background-color: #f7f7f7;
  color: #000;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.weather_card i {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.weather_card p {
  font-size: 14px;
}

@media (max-width: 630px) {
  body {
    height: auto;
    padding: 1.5rem 0;
  }
  .container {
    width: 90%;
  }

  .weather_header {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  body {
    height: auto;
    padding: 1rem 0;
  }

  /* input{
    width: 200px;
  } */
  .weather_info {
    grid-template-columns: none;
  }
}