@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url("img/background.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* Media Queries for responsiveness */

@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  .container {
    width: 100%;
    height: auto;
  }

  .search-box input {
    padding: 10px 20px;
  }

  .weather-box img {
    width: 100%;
    margin: 20px 0;
  }

  .weather-details {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .weather-details .humidity,
  .weather-details .wind {
    width: 100%;
    margin-bottom: 10px;
  }

  .weather-details i {
    font-size: 40px;
    margin-right: 5px;
  }

  .not-found {
    margin-top: 50px;
  }

  .not-found img {
    width: 80%;
  }

  .vanshika {
    font-size: 8px;
    margin-top: 300px;
  }
}

/* Main styles continue */

.container {
  position: relative;
  height: 100px;
  width: 400px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 25px;
  color: rgb(0, 0, 0);
  transition: height 0.6s ease;
}

/* search box */

.search-box {
  position: relative;
  /* background: rgb(114, 114, 246); */
  width: 100%;
  height: 55px;
  display: flex;
  align-items: center;
  border-radius: 10px;
}

.search-box i {
  position: absolute;
  left: 10px;
  font-size: 28px;
}

.search-box input {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.3);
  outline: none;
  border-radius: 10px;
  color: rgb(0, 0, 0);
  font-weight: 500;
  text-transform: uppercase;
  padding: 0 48px 0 42px;
}

.search-box input::placeholder {
  color: rgb(0, 0, 0);
  text-transform: capitalize;
  /* text-shadow: rgb(245, 222, 222); */
}

.search-box button {
  position: absolute;
  right: 0;
  width: 40px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 26px;
  color: rgb(0, 0, 0);
  padding: 0 40px 0 5px;
  cursor: pointer;
}

/* weather box */

.weather-box {
  text-align: center;
}

.weather-box,
.weather-details,
.not-found {
  visibility: hidden;
}

.weather-box.active,
.weather-details.active,
.not-found.active {
  visibility: visible;
}

.weather-box img {
  width: 45%;
  margin: 40px 0;
}
.weather-box .temp {
  position: relative;
  font-size: 50px;
  line-height: 1;
  font-weight: 600;
  margin: 1px 0 6px -30px;
  color: rgb(0, 0, 0); /* box icons */
}

.weather-box .temp span {
  position: absolute;
  font-size: 20px;
  margin-left: 4px;
  color: rgb(0, 0, 0);
}

.weather-box .description {
  font-size: 20px;
  color: rgb(0, 0, 0);
  font-weight: 500;
  text-transform: capitalize;
}

.weather-details {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  padding: 0 20px;
  display: flex;
}

.weather-details .humidity,
.weather-details .wind {
  display: flex;
  align-items: center;
  width: 50%;
}

.weather-details .humidity {
  padding-left: 20px;
  justify-content: flex-start;
}

.weather-details .wind {
  padding-right: 20px;
  justify-content: flex-end;
}

.weather-details i {
  font-size: 60px;
  margin-right: 10px;
}
.weather-details span {
  display: inline-block;
  font-size: 20px;
  font-weight: 500;
}
.weather-details p {
  font-size: 14px;
  font-weight: 500;
}

/* not found */

.not-found {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  margin-top: 110px;
}

.not-found img {
  width: 65%;
}

.not-found p {
  font-size: 15px;
  font-weight: 300;
  margin-top: 5px;
}

.vanshika {
  font-size: 10px;
  margin-top: 700px;
  font-weight: 500;
  color: rgb(80, 200, 243);
  padding-left: 0;
}
