/* Header */
body{
    padding: 0;
    margin: 0;
    line-height:1.5em;
}
header{
    font-family: Arial,Helvetica, sans-serif;
    align-content: center;
    background-color: #0a1e29;
    height: 110px;
    width: 100%;
    display: block;
    float: left;
    top: 0px;
}
nav{
    width: 100%;
    display: inline-flex;

}
nav img{
    width: 100px;
}
ul{
    list-style-type: none;
    margin: 0px;
    padding: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-around;
    left: 100px;
}
li{
    position:relative;
    padding: 0 15px 20px;
    height: 100%;
    display: flex;
    width: 20%;
}
li a{  
    z-index:0;
    color: white;
    text-decoration: none;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 500;
    font-size: 18px;
    padding: 55px 5px 0px ;
}
li:before{
    content: "";
    position: absolute;
    height: 33.33%;
    width: 0;
    background-color: #0D7CFF;
    right: 0;
    z-index: 0;
    top: 33.33%;
    transition: all 0.5s; 

}
li:after{
    content: "";
    position: absolute;
    height: 33.3%;
    width: 0;
    background-color: #0D7CFF;
    left: 0;
    z-index: 0;
    bottom: 0;
    transition: all 0.5s;

}
a:before{
    position: absolute;
    content: "";
    height: 33.33%;
    width: 0;
    background-color: #0D7CFF;
    bottom:58.66%;
    left: 0;
    transition: all 0.5s;
}
li:hover:before,
li:hover:after,
li:hover a:before{
    width:100%
}
li:hover{
    cursor: pointer;
}

/* Main */
main{
    width: vw;
    height: 505px;
}

/* Footer */
footer{
    width: 100%;
    float: right;
    background-color: #0a1e29;
    padding: 20px 0px 10px 0px;
    align-content: center;
    justify-content: space-around;
}
footer center{
    color: white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
}


/* Tablet layout */
@media only screen and (max-width: 480px){

    /* Body */
    body{
        height: fit-content;
    }
    nav{
        display: inline-flex;
    }

    /* Header */
    nav > a >img{
        width:0px;
    }
    header{
        margin-right: 0;
        padding-right: 0;
        width: 100%;
        height: 55px;
    }
    nav > a > li{
        padding: 10px;
        width: 20%;
    }
    li > a{
        padding: 25px 0px 25px 0px ;
        font-size: smaller;
    }
    ul{
        width: 100%;
    }


    /* Main */
    main{
    width: 100%;
    }


    /* Footer */
    footer{
        display: inline-block;
    }
}