@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');


  /*|| RESET */
  *,
  *::after,
  *::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: 0;
  }

  /* button,input{
    font: inherit;
  } */

  
  /* VARIABLES */

  :root{
    /* COLOR */
    --BC: blue;
    --BC-CONTAINER: #fff;

    /* FONT */
    --FF: "Roboto", sans-serif;
    --FS: ;
  }

  /* || GENERAL STYLES */

html{
  
  font-family: var(--FF);
}
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #000;
  background-color: #74C0FC;
}

/* || BLOCKS */


/* LOADER */

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
  text-align: center;
}

.fa-solid{

  font-size: 50px;
}


/* CONTAINER */
.container{
  position: relative;
  width: 400px;
  height: 105px;
  background-color: var(--BC-CONTAINER);
  overflow: hidden;
  border-radius: 15px;
  padding: 28px 32px;
  transition: 1s ease-in;
  /* box-shadow: ; */
}

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

.search-box input{
  width: 80%;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  backgroung-color: transparent;
}


.search-box input::placeholder{
  font-size: 20px;
  font-weight: 500;
  color: #747b7e; 
}
/*  */
.search-box button{
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  transition: 0.4s ease;
  &:hover{
    background-color: rgb(78, 77, 77);
    color: #fff;
  }
}


.search-box .fa-solid{
  font-size: 18px;
  color: #062830;
}

#weather-retrieved{
  text-align: center;
}

#weather-retrieved #condition i{
  width: 60%;
  margin-top: 30px;
  text-align: center;
  font-size: 100px;
}

#weather-retrieved .temp{
  position: relative;
  font-size: 4rem;
  font-weight: 800;
  color: #000;
  margin-top: 30px;
  margin-left: -16px;
}

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

#weather-retrieved .description{
  color: #000;
  font-size: 22px;
  font-weight: 500;
  text-transform: capitalize;
}

.weather-info{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.weather-info {
.humidity,
 .wind{
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 50%;
  height: 100px;
  }
}

.weather-info .wind{
  padding-right: 20px;
  justify-content: flex-end;
}

.weather-info .humidity{
  padding-left: 20px;
  justify-content: flex-start;
}

.weather-info i{
  color: #000;
  font-size: 26px;
  margin-right: 10px;
  margin-top: 6px;
}

.weather-info span{
  color: #000;
  font-size: 22px;
  font-weight: 500;
}


.weather-info p{
  color:#000;
  font-size: 14px;
  font-weight: 500;
}

#not-found{
  width: 100%;
  text-align: center;
  margin-top: 50px;
  scale: 0;
  opacity: 0;
  display: none;
}

#not-found i{
  font-size: 200px;
}

#not-found p{
  color: #000;
  font-size: 22px;
  font-weight: 500;
  margin-top: 12px;

}


.weather-info, #weather-retrieved{
  scale: 0;
  opacity: 0;
}

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


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