@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family: 'poppins';
    box-sizing: border-box;
}
body {
  background-image: url('assets/bg.jpg');
  height: 100vh;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative; /* Add this */
    color: white;
}

body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; /* Cover the whole body */
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.15); /* Use rgba for transparency */
  backdrop-filter: blur(15px);
  z-index: 1; /* Ensure it layers above body bg, below other content */
  pointer-events: none; /* Allows clicks on content below */
}
main{
    height: 100vh;
    width: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-container{
    height: 600px;
    width: 350px;
    border: none;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.15),rgba(255,255,255,0.15));
    border-radius: 12px;
    backdrop-filter: blur(100px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.input-container{
    position: relative;
}
.input-container input{
    width: 100%;
    border-radius: 99px;
    border: 3px solid transparent;
    background: rgb(0,0,0,0.15);
    padding: 10px 16px;
    outline: none;
    font-weight: 500;
    transition: 0.25s border;
    padding-right: 45px;
    
}
input:focus{
    border: 3px solid rgb(0,0,0,0.15);
   color: rgb(255,255,255,0.75);
}
input::placeholder{
    color: rgb(255,255,255,0.75);
}
.input-btn{
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
background: none;
display: flex;
border: none;
cursor: pointer;
color: rgb(255,255,255,0.75);
font-size: 15px;
}
.input-btn:hover{
    background:rgba(0, 0, 0, 0.15);
}
.info{
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 2px;
}
.location{
    display: flex;
    align-items: center;
}
.location h3{
    font-weight: 500;
}
.location i {
    margin-right: 10px;
}
.weather{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
}
.weather-img img{
    height: 120px;
}
.weather-info{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.temp h1{
    font-weight: 500;
}
.condition p{
    font-size: 1.35rem;
    font-weight: 400;
}
.weather-data{
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: auto;
}
.humidity-container{
    display: flex;
}
.humidity-container i , .wind-container i{
    font-size: xx-large;
}
.humidity-info p:last-child,.wind-info p:last-child{
    font-weight: 700;
}
.humidity-info p{
    margin-right: 2rem;
}
.forcast-container{
    width: 100%;
    margin-top: 1rem;
    display: flex;
    gap: 15px;
    overflow: scroll;
    padding: 16px;
    overflow-y: hidden;

}
.forcast-container::-webkit-scrollbar{
    height: 15px;
}
.forcast-container::-webkit-scrollbar-track{
    background: rgba(0,0,0,0.15);
    border-radius: 99px;

}
.forcast-container::-webkit-scrollbar-thumb{
    background: rgba(0, 0, 0, 0.15);
    border-radius: 99px;

}
.forcast {
    min-width: 80px; 
    height: 130px;  
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border-radius: 15px;
    gap: 6px;
    padding: 10px;
    background: rgba(255,255,255,0.15);
    transition: 1.25s background;
}
.forcast:hover{
    background: rgb(0,0,0,0.15);
}
.forcast img{
    width: 50px;
}
.forcast p:last-child{  
    font-weight: 600;
}
.forcast p:first-child{
    font-weight: 300;
}
.additional-info-container{
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.none-container{
    display: none;
}
.not-found{
    height: 100%;
}
.not-found img, .search-city img{
    margin-top: 10%;
    height: 70%;
    width: 100%;
    margin-bottom: 10%;
}
.not-found p{
    text-align: center;
    font-size: larger;
    font-weight: 500;
}
.search-city{
    height: 100%;
}
.search-city p:first-of-type{
    text-align: center;
    font-size: xx-large;
    font-weight: 700;
}
.search-city p:last-child{
    font-size: normal;
    text-align: center;
}

