@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&display=swap');

*{
    margin : 0;
    padding : 0;
    box-sizing: border-box;
    font-family: "Baloo Bhai 2", sans-serif;
    color: white;
    font-weight: 600;
}

body{
    background: url('media/bg.jpg');
    width: 100%;
    height: 100dvh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100dvh;
    background: rgb(0 ,0 ,0, 0.15);
    backdrop-filter: blur(12px);
}

/*-----UTILITIES-----*/

.regular-txt{
    font-weight: 400;
}

/*-----UTILITIES END-----*/

.main-container{
    width: 300px;
    height: 496px;
    z-index: 1;
    background: linear-gradient(
        to top, rgb(0, 0 ,0 ,0.15),
        rgb(255,255,255,0.15));
    border-radius: 12px;
    backdrop-filter: blur(100px);
    padding: 20px;
    position: relative;
}

/*------INPUT CONTAINER-----*/

.input-container{
    position: relative;
    margin-bottom: 25px;
}

.city-input{
    width: 100%;
    padding: 10px 16px;
    border-radius: 99px;
    border: 3px solid transparent;
    background: rgba(0, 0, 0, 0.15);
    outline:none;
    font-weight: 500;
    transition: border 0.2s ease;
    padding-right: 45px;
}

.city-input:focus{
    border: 3px solid rgba(0, 0, 0, 0.15);
}

.city-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.search-btn{
    position:absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
}

/*-----INPUT CONTAINER END----*/

/*-----SECTION: WEATHER INFO -----*/

.weather-info{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.location-date-container{
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.location{
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-summary-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-summary-img{
    width: 120px;
    height: 120px;
}

.weather-summary-info{
    text-align: end;
}

.weather-conditions-container{
    display: flex;
    justify-content: space-between;
}

.condition-item{
    display: flex;
    align-items: center;
    gap: 6px;
}

.condition-item span{
    font-size: 30px;
}

.forecast-items-container{
    display: flex;
    gap: 15px;
    overflow-x: scroll;
    padding-bottom: 12px;
}

.forecast-items-container::-webkit-scrollbar{
    height: 8px;
}

.forecast-items-container::-webkit-scrollbar-track{
    background: rgb(0, 0, 0, 0.1);
    border-radius: 99px;
}

.forecast-items-container::-webkit-scrollbar-thumb{
    background: rgb(0, 0, 0,0.15);
    border-radius: 99px;
}

.forecast-item{
    min-width: 70px;
    background: rgb(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    align-items: center;
    border-radius: 12px;
    transition: 0.3s background;
}

.forecast-item:hover {
    background: rgb(255, 255, 255, 0.15);
}

.forecast-item-img{
    width: 35px;
    height:35px;
}

/*-----SECTION: Weather Info Ends -----*/

/*-----SECTION: MESSAGE-----*/

.section-message{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-top: 25%;
}

.section-message img{
    height: 180px;
    width: fit-content;
}

/*-----SECTION: MESSAGE END-----*/

/*-----LOCAL TIME-----*/

.current-time-txt {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 4px;
}

/*-----LOADING SPINNER-----*/

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 10;
}

.spinner-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




