@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;400;700&display=swap');

*{
    box-sizing: border-box;
    margin:0;
    padding:0;
}

body{
   background: url('wea.jpg');
     background-repeat: no-repeat;
    background-size:cover;
    overflow:hidden;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
}

.search-container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.search{ 

    padding: 10px; /* Add padding for spacing */
    border: none;
    outline: none;
    border-radius: 15px; /* Rounded corners */
    /* outline: none; Remove default input outline */
    transition: border-color 0.3s; /* Smooth border color transition */
    width: 300px;
     
}

/* Styles for the search button */
.btn {
    padding: 10px 20px; /* Add padding for spacing */
    border: none;
    border-radius: 5px; /* Rounded corners */
    background: #007BFF; /* Button background color */
    color: #fff; /* Text color */
    cursor: pointer;
    outline: none; /* Remove outline on click */
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: 0.1rem;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.8rem;
    transition: 0.5s; /* Smooth transition for animation */
  }
  
  /* ::before pseudo-element for button animation */
  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0; /* Initial width is 0, making it invisible */
    height: 100%;
    background-color: #ffffff; /* Change this color to your desired fill color */
    z-index: -1;
    transition: 0.5s; /* Smooth transition for animation */
  }
  
  /* Button hover styles */
  .btn:hover {
    color: black; /* Text color changes on hover */
  }
  
  /* Button hover animation */
  .btn:hover::before {
    width: 100%; /* Width gradually increases on hover, creating a fill effect */
  }
  





.w-icon{
    height: 60px;
    width: 60px;
   
}

.container{
    padding: 20px 70px;
    color:#fff;
}

.current-info{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.container .current-info .others .weather-items{
    display: flex;
    justify-content: space-between;
    font-weight: 300;
}
.date-container{
    font-weight: 100;
}
.date-container .time{
    font-size: 70px;
    font-weight: 400;
}

.date-container #am-pm{
    font-size: 30px;
    margin-left: 20px;
    color: aqua;
}

.date-container .date{
    font-size: 30px;
}

.place-container{
    text-align: end;
}

.place-container .time-zone{
    font-size: 30px;
    font-weight: 400;

}

.place-container .country{
    font-size: 12px;
    font-weight: 700;
}

.current-info .others{
    display: flex;
    flex-direction: column;
    background: rgba(24,24,27, 0.6);
    padding:20px;
    border-radius: 10px;
    margin: 10px 0;
    border: 1px solid #eee;
}

.s-w-data{
     
    
    background: rgba(11, 11, 11, 1);
    padding:20px;
    border-radius: 10px;
    margin: 10px 0;
    border: 1px solid #eee;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
    
     
}








.tem{
    display: flex;
    justify-content: space-between;
}

.current-info .others .weather-item{
    display: flex;
    justify-content: space-between;
}


.future-forecast{
    background: rgba(24,24,27,0.5);
    padding: 25px;
    position: fixed;
    bottom: 0;
    display: flex;
    color:white;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
}

.future-forecast .today{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 10px;
    padding:15px;
    padding-right: 40px;
    border-radius: 10px;
    background: rgba(0,0,0,0.2)
}

.future-forecast .today .day{
    padding: 5px 15px;
    background: #525290;
    border-radius: 50px;
    text-align: center;
}

.future-forecast .today .temp{
    font-size: 18px;
    padding-top: 15px;
}

.future-forecast .weather-forecast{
    display: flex;
}

.weather-forecast .weather-forecast-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    background: rgba(0,0,0,0.2);
    
 
}

.weather-forecast .weather-forecast-item .day{
    padding: 5px 15px;
    background: #1b1bb2;
    border-radius: 50px;
    text-align: center;
}

.weather-forecast .weather-forecast-item .temp{
    font-weight: 400;
    font-size: 12px;
    color:bisque;
}


@media only screen and  (max-width:730px){
    
    .container{
        padding: 10px;
    }
    
    .future-forecast{
        justify-content: start;
        align-items: none;
        overflow-y: scroll;
        z-index: 2;
    }

    .future-forecast .today .temp{
        font-size: 16px;
    }

    .date-container .time{
        font-size: 50px;
    }

    .date-container #am-pm{
        font-size: 20px;
       
    }

    .date-container .date{
        font-size: 20px;
    }

    .place-container{
        text-align: end;
        margin-top: 15px;
    }

    .place-container .time-zone{
        font-size: 20px;
    }

    .current-info .others{
        padding: 12px;
    }

    .current-info .others .weather-item{
        font-size: 14px;
    }
    #searched-data{
        color:#eee;
    }

    .s-w-data{
        position: relative;
        z-index: 5;
         
     
  
   
    }

    .search{
        border-radius: 12px;
        
        font-weight: bold;
        letter-spacing: 0.1rem;
        margin-bottom: 12px ;
        margin-top: 12px;
        width: 250px;
    }

    .search-container{
         
       gap: 12px;
    }

    .place-container div{
        position: absolute;
       top: 0;
       right: 0;
       color:white;
       font-weight: 600;
       
    }

     
    

}

@media only screen and (max-width: 1400px){
    .future-forecast{
        justify-content: start;
        align-items: none;
        overflow-x: scroll;
    }
}