body{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

*{
    transition: all 0.5s;
}

#container{
    width: 100%; 
    /* height: 100vh; */
    background-color: blue;
    background: url("img/mist.jpg") no-repeat fixed center;
    overflow: hidden;
}

.nav{
    margin: auto;
    width: 90%;
    height: 10%;
    display: flex;
    justify-content: space-between;
    background:transparent;
}
#bg{
    /* border: 1px solid white; */
    display: flex;
    justify-content: center;
}

.weather-app{
    /* border: 1px solid white; */
    color: whitesmoke;
    font-family: 'Jost', sans-serif;
    margin: 30px 20px;
}

.search{
    display: flex;
}
#search-city{
    /* border: 2px solid rgb(161, 161, 161); */
    color: rgb(234, 234, 234);
    width: 25rem;
    height: 4rem;
    background: transparent;
    margin-left: 10px; 
}


@media only screen and (min-width: 1100px) {   /* PC view */
    #bg{
        height: 95vh;
    }
    .detail{
        /* border: 1px solid pink; */
        width: 60%;
        height: 10rem;
        display: flex;
        margin: 50% 15%;
        color: white;
    }
    #main-d{
        /* border: 1px solid violet; */
        width: 60%;
    }
    .search{
        z-index: 2;
        width: 35%;
        margin: 1rem;
        padding: 0;
        overflow: hidden;
    }
    .search-icon{
        height: 4rem;
        /* width: 4rem; */
    }
    #temp{
        /* border: 1px solid blueviolet; */
        margin: auto;
        font-size: 4.5rem;
        font-family: 'Jost', sans-serif;
    }
    #city{
        margin: auto;
        /* border: 1px solid blueviolet; */
    }
    .whether-status{
        /* border: 1px solid red; */
        margin: auto;
        height: 5rem;
    }
    .whether-icon{
        /* aspect-ratio: 1; */
        height: 3.5rem;
        width: 3.5rem;
    }
    
    .c-name{
        font-family: 'Jost', sans-serif;
        font-size: 3rem;
    }
    .date-time{
        display: flex;
        font-size: 1rem;
    }
    #side-d{
        /* border: 1px solid orangered; */
        width: 35%;
        height: 100vh;
        transform: translateY(-6em);
        color: rgb(240, 240, 240);
        z-index: 0;
        backdrop-filter: blur(2rem);
        overflow: hidden;
    }
    .line{
        width: 90%;
        color: rgb(216, 216, 216);
        margin-top: 8rem;
    }

    #temp-details{
        /* border: 1px solid white; */
        font-size: large;
        font-family: 'Jost', sans-serif;
    }
    .temp-d{
        display: flex;
        margin: 2rem 2rem;
    }
}

@media only screen and (min-width: 450px) and (max-width: 1099px){ /* tab view */
    .search{
        /* border: 1px solid white; */
        z-index: 2;
        width: 35%;
        margin: 1rem;
        padding: 0;
        /* overflow: hidden; */
    }
    #search-city{
        color: rgb(182, 181, 181);
        height: 3rem;
        background: transparent;
    }
    .search-icon{
        height: 3rem;
    }
    #bg{
        display: block;
    }
    #main-d{
        /* border: 1px solid violet; */
        height: 10rem;
        color: rgb(243, 243, 243);
    }
    .detail{
        /* border: 1px solid white; */
        width: 60%;
        display: flex;
        justify-content: center;
        margin: 15rem 0rem;
    }

    #temp{
        /* border: 1px solid blueviolet; */
        margin: auto;
        font-size: 4rem;
        font-family: 'Jost', sans-serif;
    }
    #city{
        margin: auto;
        /* border: 1px solid blueviolet; */
    }
    .whether-status{
        /* border: 1px solid red; */
        margin: auto;
        /* height: 4rem; */
    }
    .whether-icon{
        /* aspect-ratio: 1; */
        height: 3rem;
        width: 3.5rem;
    }
    .c-name{
        font-family: 'Jost', sans-serif;
        font-size: 3rem;
    }
    .date-time{
        display: flex;
        font-size: 1rem;
    }

    #side-d{
        /* border: 1px solid orangered; */
        height: 30%;
        color: rgb(240, 240, 240);
        z-index: 0;
        backdrop-filter: blur(2rem);
        overflow: hidden;
    }

    #temp-details{
        /* border: 1px solid white; */
        margin-left: 1.5rem;
        font-family: 'Jost', sans-serif;
    }

}

@media only screen and (min-width: 780px) and (max-width: 1099px){ /* tab-2*/
    #temp-details{
        display: grid;
        grid-template-columns: auto auto auto auto;
    }
}

@media only screen and (min-width: 450px) and (max-width: 779px){ /*tab-3*/
    .search{
        /* border: 1px solid white; */
        margin: 1rem 3rem;
        padding: 0;
    }
    #search-city{
        color: rgb(182, 181, 181);
        height: 3rem;
        background: transparent;
    }
    
    .whether-icon{
        height: 2.5rem;
        width: 2.5rem;
    }
    .c-name{
        font-family: 'Jost', sans-serif;
        font-size: 2rem;
    }
    #temp{
        font-size: 3rem;
    }
    
    #temp-details{
        display: grid;
        grid-template-columns: auto auto auto;
    }
}

@media only screen and (max-width: 450px){ /* smartphone view */
    /* #container{
        overflow: visible;
        background: url("img/mist.jpg") no-repeat fixed center;
    } */
    .weather-app{
        margin: 40px 10px;
    }
    #bg{
        display: block;
    }
    #main-d{
        /* border: 1px solid violet; */
        width: 100%;
        height: 50vh;
    }

    .detail{
        margin-left: 1rem;
        color: rgb(255, 255, 255);
    }
    #temp{
        /* border: 1px solid blueviolet; */
        margin-top: 50px;
        font-family: 'Jost', sans-serif;
        font-size: 2.5rem;
    }
    #city{
        /* border: 1px solid blueviolet; */
        font-size: larger;
    }
    .whether-status{
        /* border: 1px solid red; */
        font-family:'Jost', sans-serif;
        width: 40%;
        font-size: smaller;
        color: rgb(238, 238, 238);
    }
    .whether-icon{
        margin-top: 20px;
        height: 2.2rem;
        width: 2.2rem;
    }
    .c-name{
        font-family: 'Jost', sans-serif;
        font-size: 2.5rem;
    }
    .date-time{
        display: flex;
        font-size: 1rem;
    }

    .search{
        margin: 2rem -0.5rem;
    }
    #search-city{
        color: rgb(165, 165, 165);
        /* border-radius: 5px; */
        width: 6rem;
        height: 2rem;
        background: transparent;
    }
    .search-icon{
        /* border-radius: 5px; */
        height: 2rem;
        width: 2rem;
    }
    .line{
        /* display: none; */
        width: 70%;
        margin: 1rem auto;
    }
    #side-d{
        /* border: 1px solid orangered;  */
        color: rgb(240, 240, 240);
        backdrop-filter: blur(1rem);
        height: 50%;
        /* width: 100%; */
    }
    #temp-details{
        /* border: 1px solid white; */
        padding-left: 10px;
        display: grid;
        grid-template-columns: auto auto;
        font-family: 'Jost', sans-serif;   
        font-size: smaller;
    }
    .temp-d{
        margin: 5px;
        /* border: 1px solid red; */
        /* width: 50%; */
    }
}
.bottom{
    font-size: x-small;
    text-align: center;
    color: rgb(161, 161, 161);
}