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

* {
    font-family: "Roboto";
}



body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* min-height: 50vh; */
    /* transform: translateY(40%); */
    width: 100%;
    overflow: hidden;
    height: 100vh;
    background-image: radial-gradient(circle at center center,
            rgb(71, 71, 71), rgb(8, 8, 8));
}



video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    /* inset: 0; */
    pointer-events: none;
    filter: brightness(0.2);
    /* position: absolute; */
    z-index: -1;

}

/* .container {
    width: 50%;
    height: 400px;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.508), rgba(7, 26, 26, 0.289)), url("bg.jpg") 
    center/cover no-repeat;
    background-size: cover;
    position: relative;
    cursor: pointer;
    overflow: visible;
    box-shadow: 0px 0px 10px #0f0f0f,
        0px 4px 5px #0b0b0b;
    left: 5%;
    z-index: 1;
} */


.container {
    width: 50%;
    /* height: 400px; */
    height: auto;
    min-height: 400px;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.508), rgba(7, 26, 26, 0.289)), url("bg.jpg") center/cover no-repeat;
    background-size: cover;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0px 0px 10px #0f0f0f,
                0px 4px 5px #0b0b0b;
    /* left: 5%; */
    margin: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* padding: 2px; */
}



.weather_header {
    /* width: 200px; */
    width: 40%;
    max-width: 300px;
    min-width: 200px;
    margin: 10px;
    background: rgba(255, 255, 255, 0.964);
    padding: 0.2em;
    border-radius: 2px;
    box-shadow: inset 0px 0px 4px #0000003c,
        inset 0px 0px 0px #1414147e;
    z-index: 1;
}

.weather_header input {
    border: none;
    outline: none;
    background: none;
    margin-left: 5px;
    color: none;
}

input::placeholder {
    color: #333333;
    font-size: 1em;
}

form .fa-magnifying-glass {
    font-size: 0.9em;
}


.weather_body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    margin-top: -60px;
}


.weather_data{
    margin: 5px;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    text-align: center;
}

.weather_forecast{
    width: 70px;
    height: 25px;
    background: rgba(255, 255, 255, 0.453);
    border-radius: 25px;
    /* margin-bottom: 15px; */
    /* animation: scale 0.5s ease forwards; // when page loads it doesn't work
                                        // so we need to remove this line from CSS see on chatGPT to get full understanding */

    margin-top: -30px;

}

.weather_icon{
    width: 70px;
    height: 70px;
    /* background: #fff; */
    /* display: inline-block; */
    margin-top: 0px;
    display: inline-flex;
    z-index: -1;
}

.weather_icon img{
    width: 100%;
    height: 100%;
    /* filter: brightness(0) invert(1); */
}


.covering{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -15px;
}

.w-temp{
    margin: 20px;
    /* background: #fff; */
}

.weather_minmax{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin: 5px;
    margin-top: -15px;
}

.para{
    font-size: 1.6em;
    font-family: "roboto";
    font-weight: 340;
    letter-spacing: 0.5px;
    user-select: none;
}

.para2{
    font-size: 1.2em;
    font-family: "roboto";
    font-weight: 340;
    letter-spacing: 0.2px;
    user-select: none;
}


.font_weight{
    font-weight: 350;
    font-size: 1.8em;
    letter-spacing: 0.5px;
}

/* .weather_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2em;
    border-radius: 5px;
    margin-top: 250px;
} */


.weather_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    /* background: rgba(255, 255, 255, 0.1); */
    backdrop-filter: blur(15px);
    padding: 1.5em;
    border-radius: 5px;
}


.weather_card {
    display: flex;
    justify-content: first baseline;
    color: #fdfdfde5;
    margin-left: -20px;
}

.weather_card p {
    font-weight: 300;
    letter-spacing: 0.5px;
}

.weather_feelsLike {
    font-weight: 300;
}

.fa-droplet, .fa-water, .fa-wind{
    margin: 10px;
}




@media (max-width: 768px) {

    /* video{
        width: 100%;
        height: 100vh;
    } */

  
    .container {
        width: 95%;
        height: auto;
        margin: auto;
    }

    .weather_header {
        width: 70%;
        /* max-width: none; */
        /* min-width: 0; */
        margin: 15px auto;
        padding: 0.3em;
    }


    .weather_header .fa-magnifying-glass{
        margin: 5px;
    }

    h1{
        font-size: 1em;
    }
    .weather_search{
        text-align: center;
        display: flex;
        /* margin: 5px; */
        /* padding: 0.1em; */
    }

    .weather_header input {
        font-size: 1.2em;
    }

    .weather_body{
        font-size: 1em;
        padding: 0;
        margin-top: 1%;
    }

}


@media (max-width:1500px) {
    .container{
        width: 500px;
        margin: 10px;
    }
}



@media (min-width: 800px) {

  


    .weather_header {
        width: 90%;
        /* max-width: none; */
        /* min-width: 0; */
        margin: 15px auto;
        padding: 0.3em;
    }


    .weather_header .fa-magnifying-glass{
        margin: 5px;
    }

    h1{
        font-size: 1em;
    }
    .weather_search{
        text-align: center;
        display: flex;
        /* margin: 5px; */
        /* padding: 0.1em; */
    }

    .weather_header input {
        font-size: 1.2em;
    }

    .weather_body{
        font-size: 1em;
        padding: 0;
        margin-top: 1%;
    }

}




