/* header & footer */

header, footer{
    background-color: #484848;
    color: white;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

*{
    margin: 0;
    padding: 0;
}

footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 5vw 0;
    font-size: 1.5vw;
    font-weight: 800;
}

#TopHeader{
    height: 20vw;
}

#TopHeader > div{
    height: 15vw;
    width: 100%;
    opacity: 0.5;
    background-color: #484848;
    z-index: 2;
    position: absolute;
}

#TopHeader > img{
    height: 15vw;
    width: 100%;
    position: relative;
    z-index: 1;
}

#TopHeader > p{
    position: absolute;
    top: 4.3vw;
    left: 20vw;
    font-size: 4vw;
    font-weight: 900;
    z-index: 3;
}

#logo{
    width: 5.7vw;
    height: 3.7vw;
}

#NavBar img{
    width: 8.5vw;
    height: 5vw;
    margin-left: 4vw;
    margin-top: -0.5vw;
}

#NavBar{
    display: flex;
    flex-direction: row;
    text-decoration: none;
    margin-top: -5vw;
}

#Navigation{
    margin-left: 14.5vw;
    font-size: 1.3vw;
    font-weight: 700;
    padding: 0;
    white-space: nowrap;
}

#Navigation a{
    text-decoration: none;
    color: white;
}

#Navigation > ul{
    list-style: none;
    display: flex;
    flex-direction: row;
    margin: 0;
    margin-left: 2vw;
    padding: 0;
}

#Navigation > ul > li{
    padding: 1.3vw 4vw;
}

#Navigation ul li:hover{
    background-color: black;
}

#Navigation ul li ul{
    display: none;
}

#Navigation ul li:hover ul{
    background-color: #2c2c2c;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0;
    margin-left: -4vw;
    margin-top: 1.2vw;
    position: absolute;
}

#Navigation > ul > li > ul > li{
    list-style: none;
    padding: 1.5vw 2.3vw;
    width: 8.4vw;
}

#Navigation ul li ul li:hover{
    background-color: #484848;
}

/* product css */

#StationerySection{
    display: flex;
    flex-direction: row;
}

#StationerySideBar{
    background-color: #303030;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 10vw;
    font-weight: 800;
    font-size: 1.5vw;
    white-space: nowrap;
}

#StationerySideBar li{
    list-style: none;
    padding: 1.5vw 5vw;
}

#StationerySideBar li:hover{
    background-color: #484848;
}

#StationerySideBar a{
    text-decoration: none;
    color: white;
}

#StationeryList{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    margin: 3vw 3vw;
}

.StationeryBox{
    display: flex;
    flex-direction: column;
    margin: 1vw 1vw;
    box-shadow: 0 0 8px lightgray;
    align-items: flex-start;
    border: 0.3vw #484848 solid;
    padding-bottom: 1vw;
    font-weight: 500;
}

.StationeryBox:hover{
    box-shadow: 0 1vw 1vw lightgray;
}

.StationeryBox img{
    width: 80%;
    margin: 1vw 1vw 1vw 1.6vw;
}

.StationeryBox > p{
    font-size: 1.3vw;
    margin: 0 1vw;
}

.StationeryTitle{
    color: #484848;
    font-weight: 1000;
    font-size: 1.5vw;
    border-bottom: 0.3vw #484848 solid;
    padding-bottom: 0.3vw;
}

#ProductList{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    margin: 2vw 8vw 5vw 8vw;
}

.ProductBox{
    display: flex;
    flex-direction: column;
    margin: 1vw 1vw;
    box-shadow: 0 0 8px lightgray;
    align-items: flex-start;
    border: 0.3vw #484848 solid;
    padding-bottom: 1vw;
    font-weight: 500;
}
.ProductBox img{
    width: 80%;
    margin: 1vw 1vw 1vw 1.6vw;
}

.ProductBox p{
    font-size: 1.4vw;
    margin: 0 1.5vw;
}

.ProductBox:hover{
    box-shadow: 0 1vw 1vw lightgray;
}

.ProductBox ul{
    margin-left: 1.5vw;
    margin-top: 0.5vw;
}

.ProductBox li{
    font-size: 1.2vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ProductTitle{
    color: #484848;
    font-weight: 1000;
    font-size: 1.7vw;
    border-bottom: 0.3vw #484848 solid;
    padding-bottom: 0.3vw;
}

#Title{
    margin-left: 9vw;
    margin-top: 2vw;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 800;
    font-size: 4vw;
}

@media screen and (max-width: 800px){
    #ProductList{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        margin: 2vw 8vw 5vw 8vw;
    }

    .ProductBox p{
        font-size: 2.3vw;
        margin: 0 1.5vw;
    }

    .ProductBox li{
        font-size: 2vw;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
/* header & footer */

    footer{
        font-size: 2vw;
    }

    #Title{
        font-size: 6vw;
    }

    #Navigation{
        margin-left: 8vw;
        font-size: 1.8vw;
    }
    
    #Navigation > ul > li > ul > li{
        padding: 2vw 3.2vw;
    }

    #Navigation > ul > li{
        padding: 2vw 4vw;
    }

    #NavBar img{
        width: 8.5vw;
        height: 5vw;
        margin-left: 4vw;
        margin-top: 0.5vw;
    }
}
