:root{
    --primaryColor: #FFD9DA;
    --secondaryColor: #EA638C;
    --accentColor: #DECEBE;
    --headingText: Changa;
    --productNameText: Comfortaa;
    --productPriceText: 'Mochiy Pop One';
    --contentText: Pompiere;
    --Abel: Abel;
    --Itim: Itim;
    --classic: Antic Didone;
    --funky: Marko One;
    --abzee: ABeeZee;
}

body{
    margin: 0;
    padding: 0;
    overflow: hidden;
    overflow-y: scroll;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
    "nav"
    "main"
    "footer";
    transition: 0.7s 0s ease-in-out;
}
::-webkit-scrollbar{
    display: none;
}
a{
    text-decoration: none;
    color: inherit;
}
ul{
    list-style: none;
}
ol{
    list-style: none;
}

/* NAVBAR */
nav#Navbar{
    width: 100vw;
    height: 10vh;
    display: flex;
    background-color: var(--accentColor);
    align-items: center;
    justify-content: space-evenly;
    grid-area: 'nav';
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
}
nav#Navbar img#logo{
    width: auto;
    height: 80%;
    border: 1px solid black;
    border-radius: 50%;
    margin-left: 5%;
}
nav#Navbar h1{
    font-size: 1.25rem;
    font-family: var(--Abel);
    margin-left: 5%;
    margin-right: auto;
}
nav#Navbar img#search{
    height: 40%;
    margin-right: 2%;
}
nav#Navbar img#menu{
    height: 40%;
    margin-left: 5%;
    margin-right: 5%;
}
nav#Navbar ol#navList{
    display: none;
}
nav#Navbar aside{
    background-color: var(--accentColor);
    height: 90vh;
    width: 65vw;
    padding: 5vh 1vw;
    padding-right: 7vw;
    position: absolute;
    top: 0;
    visibility: hidden;
    right: -80%;
    display: flex;
    flex-direction: column;
    transition: 1s 0s ease-in-out;
}
nav#Navbar aside.open{
    visibility: visible;
    right: 0;
}
nav#Navbar aside button#close img{
    width: 90%;
    height: 90%;
}
nav#Navbar aside>button{
    width: 10vw;
    height: fit-content;
    border: none;
    background-color: transparent;
    margin-left: 60vw;
}
nav#Navbar aside ol#sidemenu{
    width: 80%;
    position: relative;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    padding-left: 10%;
}
nav#Navbar aside ol#sidemenu li{
    font-size: 1.5rem;
    font-family: var(--headingText);
    text-decoration: underline;
    display: flex;
}
nav#Navbar aside ol#sidemenu li img{
    width: auto;
    height: 3vh;
    margin-right: 5vw;
}
nav#Navbar aside ol#sidemenu li button#login{
    width: 100%;
    height: 180%;
    background-color: var(--secondaryColor);
    border: 1.5px solid white;
    color: white;
    border-radius: 15px;
    justify-content: center;
    font-family: var(--Abel);
    text-decoration: none;
    margin-left: auto;
}
nav#Navbar aside ol#sidemenu li:has(button#login){
    width: 90%;
}

/* FOOTER */
footer{
    grid-area: 'footer';
    background-color: var(--accentColor);
    width: 100vw;
    min-height: fit-content;
    height: 70vh;
    overflow: hidden;
    text-align: center;
    justify-items: center;
    align-items: start;
    font-family: var(--Abel);
}
footer h1{
    font-size: 2rem;
    font-family: var(--headingText);
}
footer h2{
    font-size: 2vh;
    width: 90%;
}
footer div.links{
    width:90%;
    display: flex;
    height: fit-content;
    position: relative;
    flex-direction: column;
    justify-content: top;
    padding: 0; 
}
footer div.links div.websitelinks{
    width: 90%;
    justify-content: center;
    justify-items: center;
    position: relative;
    height: 100%;
}
footer div.links div.websitelinks ul{   
    display: flex;
    flex-direction: column;
    width: 90%;
    height: 100%;
    justify-content: space-between;
    gap: 2vh;
    padding: 0;
    padding-top: 1%; 
}
footer div.links div.websitelinks ul li{
    text-align: start;
    align-self: flex-end;
    width: 100%;
    height: 25%;
    text-decoration: underline;
}
footer div.links div.contactlinks {
    width: 90%;
    height: fit-content;
    overflow: hidden;
    text-align: center;
}
footer div.links div.contactlinks ul img{
    width: 5%;
    margin-right: 4%;
}
footer div.links div.contactlinks ul{
    text-align: start;
    gap: 2vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}
footer h1.copyright{
    font-size: 3vw;
    font-family: var(--Abel);
}
footer > ul{
    display: flex;
    width: 100vw;
    text-align: center;
    align-content: center;
    align-items: start;
    padding: 0;
    justify-content: space-evenly;
}
footer > ul li{
    width: auto;
    text-align: start;
    font-size: 3vw;
}

@media screen and (orientation: landscape){
    /* NAVBAR */
    nav#Navbar{
        display: flex;
        align-content: center;
        justify-content: space-around;
        width: 100vw;
        overflow: hidden;
        height: 8vh;
    }
    nav#Navbar img#logo{
        margin-left: 2%;
    }
    nav#Navbar h1{
        font-size: 1.5rem;
        margin-left: 1%;
    }
    nav#Navbar img#search{
        display: none;
    }
    nav#Navbar img#menu{
        display: none;
    }
    nav#Navbar ol#navList{
        padding-top: 1%;
        padding-right: 5%;
        overflow: hidden;
        min-width: fit-content;
        width: min(70vw, 70%);
        display: flex;
        justify-content: end;
        gap: 4vw;
        list-style-type: none;
        font-size: 1.7rem;
        font-family: var(--Abel);
    }
    nav#Navbar ol#navList li a{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    nav#Navbar ol#navList li button#login{
        width: 110%;
        height: 70%;
        background-color: var(--secondaryColor);
        border: 1.5px solid white;
        color: white;
        border-radius: 15px;
        justify-content: center;
        font-family: var(--Abel);
    }
    nav#Navbar ol#navList hr{
        border-radius: 10px;
        width: 0px;
        transition: 0.5s 0s ease-in-out;
        align-self: center;
        justify-self: center;
        display: hidden;
        border: 0;
    }
    nav#Navbar ol#navList li:hover {
        transform: translateY(-10%);
        transition: 0.5s 0s ease-in-out;
        color: var(--secondaryColor);
        cursor: pointer;
    }
    nav#Navbar ol#navList li:hover:has(button#login){
        align-content: center;
    }
    nav#Navbar ol#navList li:hover button#login{
        align-self: center;
    }
    nav#Navbar ol#navList li:hover hr{
        display: inline-flex;
        width: 100%;
        transition: 0.75s 0s ease-in-out;
        border: 1.5px solid #EA638C;
    }
    nav#Navbar aside{
        display: none;
    }

    /* FOOTER */
    footer {
        height: fit-content;
    }
    footer div.links{
        flex-direction: row;
        height: fit-content;
    }
    footer div.links div.websitelinks ul li{
        text-align: start;
        align-self: flex-end;
        width: 30%;
        height: 25%;
        text-decoration: underline;
        padding-right: 20%;
    }
    footer div.links div.contactlinks ul img{
        width: 2vh;
    }
    footer h1.copyright{
        font-size: 1.2rem;
    }
    footer > ul li{
        font-size: 1rem;
        text-decoration: underline;
    }
}