@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

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

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url("images/bg.jpg");
  backdrop-filter: blur(3px);
}

.title h1 {
  text-align: center;
  color: white;
  font-size: 90px;
  text-shadow: 2px 2px 4px #000000;
 
}

.container {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.58);
  width: 400px;
  height: 105px;
  background-color: rgba(255, 255, 255, 0.55);
  padding: 28px 32px;
  overflow: hidden;
  border-radius: 18px;
  transition: 0.8s ease-out;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

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

.search-box input {
  color: black;
  width: 80%;
  background-color: transparent;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  padding-left: 40px;
}
.search-box input::placeholder {
  font-size: 20px;
  font-weight: 500;
  color: grey;
  text-transform: capitalize;
}
.search-box button {
  cursor: pointer;
  width: 50px;
  height: 50px;
  background-color: transparent;
  border-radius: 50%;
  font-size: 22px;
  transition: 0.4s ease;
  border: none;
}
.search-box button:hover {
  color: white;
  background: rgba(0, 0, 0, 0.216);
}
.search-box i {
  position: absolute;
  color: rgb(53, 143, 199);
  font-size: 28px;
}
.weather-box {
  text-align: center;
}
.weather-box img {
  width: 60%;
  margin-top: 30px;
}

.weather-box .temperature {
  position: relative;
  font-size: 4rem;
  font-weight: 800;
  margin-top: 30px;
  margin-left: -16px;
}

.weather-box .temperature span {
  position: absolute;
  margin-left: 4px;
  font-size: 1.5rem;
}

.weather-box .description {
  font-size: 22px;
  font-weight: 500;
  text-transform: capitalize;
}

.weather-details {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}
.weather-details .humidity,
.weather-details .wind {
  display: flex;
  align-items: center;
}

.weather-details i {
  margin-right: 10px;
  font-size: 26px;
  margin-top: 6px;
  color: rgb(0, 136, 255);
}
.weather-details span {
  font-size: 22px;
  font-weight: 500;
}

.weather-details p {
  font-size: 15px;
  font-weight: 500;
}

.not-found {
  width: 100%;
  text-align: center;
  scale: 0;
  opacity: 0;
  display: none;
}

.not-found img {
  width: 70%;
}
.not-found p {
  color: #06283d;
  font-size: 22px;
  font-weight: 500;
}

.weather-box,
.weather-details {
  scale: 0;
  opacity: 0;
}

.socials i {
  color: black;
  font-size: 30px;
  margin-left: 5px;
}
.socials i:hover {
  color: white;
  cursor: pointer;
}

footer {
  bottom: 0;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
footer p {
  color: black;
}

.fadeIn {
  animation: 0.5s fadeIn forwards;
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  to {
    scale: 1;
    opacity: 1;
  }
}
