/* ROOT, MAIN AND BODY */
:root{
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}
body{
    color: black;
    background-color: white;
    margin: 0;
    padding: 0;
}

body::-webkit-scrollbar{
    width: 0.5rem;
}
body::-webkit-scrollbar-track{
    background: black;
}
body::-webkit-scrollbar-thumb{
    background: white;
}

main{
    text-transform: uppercase;
    margin-left: 12rem;
    padding: 1rem;
}
h1{
    font-size: 40px;
    margin-bottom: 5px;
}
@media only screen and (max-width: 700px){
    main{
        margin-left: 2rem;
    }
}
/* BACKGROUND ANIMATION AND THEME*/
#backgroundAnimation{
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, skyblue, aliceblue);
    background-size: 500% 500%;
    position: relative;

    animation: moveBackground 10s ease infinite;
    transition: all 2s ease-in-out;
}
@keyframes moveBackground {
    0%{
        background-position: 0 50%;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0 50%;
    }
}

.normal{
    filter: sepia(0%);
}
.mystic{
    filter: sepia(10%) invert();
}
/* WEATHER */
#weather{
    display: flex;
    flex-wrap: wrap;
    border-bottom: solid 1px black;
    max-width: 1425px;
}
#weather img{
    width: 100%;

    animation: bouncy 2s ease-in-out infinite;
}
@keyframes bouncy {
    0%{
        transform: scale(1, 1);
    }
    50%{
        transform: scale(1.1, 1.1);
    }
    100%{
        transform: scale(1. 1);
    }
}
#weather h2{
    margin: 0 0 0 0;
    width: 100%;
}
#weather p{
    margin-top: 0;
}
#currentWeather{
    width: 20%;
    min-width: 12rem;
}
#location{
    font-size: 20px;
}
#weather #weatherInfo{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 2rem;
}
#weather #temp{
    font-size: 70px;
    font-weight: bolder;
    margin: 0; 
}
#weather #feel{
    font-weight: bolder;
    font-size: 25px;
    margin: 0;
}
#weather #desc{
    font-size: 30px;
    width: 100%;
}
@media only screen and (max-width: 700px){
    #weather{
        flex-direction: column;
    }
    #currentWeather{
        width: 12rem;
    }
    #weather #weatherInfo{
        margin: 0 0 0 0;
        justify-content: left;
        align-items: baseline;
    }
}
/* FORECAST */
#summary{
    font-size: 20px;
}
#forecast ul{
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}
#forecast ul li h2{
    font-size: 40px;
}
#forecast ul li{
    width: 20%;
    margin: 10px;
    border-bottom: solid 1px black;
    text-align: center;
    background-color: rgba(256, 256, 256, 5%);
    transition: all .2s ease-in-out;
}
#forecast ul li:hover{
    transform: scale(1.1);
    background-color: rgba(256, 256, 256, 20%);
}
#forecast ul li:hover i, #forecast ul li:hover #futDesc{
    font-size: 25px;
    opacity: 100%;
}
i, #futDesc{
    font-size: 0px;
    opacity: 0%;
    transition: all .5s ease;
    margin: 0px;
}
#futTime, #futDate{
    font-size: 18px;
}
#futTemp{
    margin: 20px 0px 0px 0px;
}
@media only screen and (max-width: 1700px){
    #forecast ul li{
        width: 30%;
    }
    @media only screen and (max-width: 1200px){
        #forecast ul li{
            width: 40%;
        }
    }
    @media only screen and (max-width: 900px){
        #forecast ul li{
            width: 100%;
        }
    }
    @media only screen and (max-width: 700px){
        #forecast ul li{
            margin-bottom: 4rem;
        }
    }
}
#forecast ul li img{
    margin: 0 16% 0 16%;
}
/* NAVIGATION BAR */
.navBar{
    position: fixed;
    background-color: black;
    color: white;
    text-align: center;
    z-index: 1;

    transition: 200ms ease;
}
.navLink p{
    display: none;
    margin-left: 1rem;
}
.navBarUl{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.navItem{
    width: 100%;
}
.navItem img {
    max-width: 3rem;
    padding: 2rem;
}
.navItem:last-child{
    margin-top: auto;
}
.navLink{
    display: flex;
    align-items: center;
    height: 5rem;
    color: white;
    text-decoration: none;

    transition: 200ms ease;
}
.navLink:hover{
    filter: invert();
    background-color: orangered;
}
@media only screen and (max-width: 700px){
    .navBar{
        width: 100vw;
        bottom: 0;
        height: 5rem;
    }
    .navBarUl{
        flex-direction: row;
    }
    .navLink{
        justify-content: center;
    }
    .navItem img {
        max-width: 3rem;
        padding: 1rem;
    }
}
@media only screen and (min-width: 700px){
    .navBar{
        width: 7rem;
        height: 100vh;
    }
    .navBar:hover{
        width: 18rem;
    }
    .navBar:hover .navLink p{
        display: block;
    }
}
