html, body {  padding: 0;  margin: 0;}
header, footer, .menu,
.sidenav, article, aside {
    padding: 0.25em;
}

/* Flex*/
.vbox {
    display: -webkit-flex;
    display:    -moz-flex;
    display:     -ms-flex;
    display:         flex;

    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* items flex/expand horizontally */
.hbox {
    display: -webkit-flex;
    display:    -moz-flex;
    display:     -ms-flex;
    display:         flex;

    -webkit-flex-direction: row;
    -moz-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
}

.space-between {
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    -ms-justify-content: space-between;
    justify-content: space-between;
}

ul {
    padding: 0;
    list-style: none;
}


.menu {
    display: flex;
    height: 70px;
    align-items: center;
    z-index: 3;
    will-change: transform;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.search {
    margin-left: auto;
    margin-right: auto;
}

.search input[type=text] {
    background-color: #fcfdff;
    padding: 6px 20px 6px 20px;
    border: none;
    height: 40px;
    font-size: 1rem;
    color: #000816;
    width: 26vw;
}

.logo{
    background-color: #00040b;
    width: 100px;
    margin-left: 10vw;
    font-size: 1.5rem;
}

@media only screen and (max-width: 800px) {

}

.logo:hover{
    text-decoration: none;
}

.pure-menu-link{
    font-size: 1rem;
}

.pure-menu-link:hover {
    text-decoration: none;
}

.topnav {
    position: fixed;
    top: 0;
    z-index: 3;
    overflow: hidden;
    width: 100%;
    background-color: #00040b;
    z-index: 3;
}

.topnav img {
    width: 70px;
    height: 70px;
}

div#menu button{
    float: right;
    background:none;
    border:none;
    font-size: 1.1rem;
    color: #fcfdff;
    text-align: center;
    padding: 11px 16px;
    text-decoration: none;
    height: 45px;
    width: auto;
}

div#menu button:hover{
    background-color: #080f23;
    text-decoration: none;
}

.topnav a {
    color: #fcfdff;
    text-align: center;
    padding: 11px 16px;
    text-decoration: none;
    margin-right: 1rem;
}

.topnav a:hover {
    background-color: #080f23;
}



.mobilemenu {
    padding:10px;
    color:#fcfdff;
    text-transform:uppercase;
    z-index: 100;
    position: fixed;
    display: none;
    align-content: center;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

#mainmenu {
    position:fixed;
    display: inline;
    align-content: center;
    
    bottom:0px;
    left:0px;
    width:100%;

    background:#00040b;
}

.mobilemenu ul {
    margin:0px;
    padding:0px;

}

.mobilemenu li {
    list-style-type:none;
    float:left;
    text-align:center;
    
}

.mobilemenu span {
    display:block;
    font-size: 2vw;
    letter-spacing: .1vw;
}

ul {
    align-content: center;
    margin: auto;
}

#mainmenu li {
    padding: 3vw 0%;
    background:#00040b;
    height: 10vw;
    max-height: 100px;
    color:#fcfdff;
    cursor:pointer;
    margin-left: auto;
    margin-right: auto;
    width: calc(100%/3);
}

@media screen and (max-width: 500px) {
#mainmenu li {
    padding: 2.2vw 0%;
}
}

#mainmenu li:nth-child(2) {
    background:#040a19; 
    text-shadow:0px 0px 10px #fcfdff;
    margin-left: auto;
    margin-right: auto;
}


#submenu {
    position: fixed;
    bottom: 9vw;
    left:0px;
    width:100%;

}

#submenu li:hover i,#mainmenu li:hover i {
    text-shadow:0px 0px 10px #fcfdff;
    -webkit-transition:0.3s;
    -moz-transition:0.3s;
    -o-transition:0.3s;
    -ms-transition:0.3s;
    transition:0.3s;
}

#submenu li:hover span, #mainmenu li:hover span {
    text-shadow:0px 0px 10px #fcfdff;
    -webkit-transition:0.3s;
    -moz-transition:0.3s;
    -o-transition:0.3s;
    -ms-transition:0.3s;
    transition:0.3s;
}

#submenu li {
    padding: 0;
    background:transparent;
    font-size:4vw;
    color:#fcfdff;
    cursor:pointer;
    position: relative;
    height:.1vw;
    width:20%;
    will-change: transform;
    -webkit-transform-origin: 0 0;
    -webkit-transform: perspective(800px) rotateX(270deg);
    -moz-transform-origin: 0 0;
    -moz-transform: perspective(800px) rotateX(270deg);
    -ms-transform-origin: 0 0;
    -ms-transform: perspective(800px) rotateX(270deg);
    -o-transform-origin: 0 0;
    -o-transform: perspective(800px) rotateX(270deg);
    transform-origin: 0 0;
    transform: perspective(800px) rotateX(270deg);
}

#submenu div {
    background: #00040b;
    padding: 3vw 0px;
    width: 100%;
    -webkit-transform:rotateX(-180deg);
    -moz-transform:rotateX(-180deg);
    -o-transform:rotateX(-180deg);
    -ms-transform:rotateX(-180deg);
    transform:rotateX(-180deg);
}

.activeli {
    will-change: transform;
    -webkit-transform: perspective(800px) rotateX(180deg)!important;
    -moz-transform: perspective(800px) rotateX(180deg)!important;
    -ms-transform: perspective(800px) rotateX(180deg)!important;
    -o-transform: perspective(800px) rotateX(180deg)!important;
    transform: perspective(800px) rotateX(180deg)!important;
}

#mainmenu li.noactive {
    background:#00040b; 
    text-shadow:0px 0px 0px;
}

#submenu li div:hover{
    background:#040a19;
    -webkit-transition:1s;
    -ms-transition:1s;
    -moz-transition:1s;
    -o-transition:1s;
    transition:1s;
}

#submenu li:nth-child(1) {
    -webkit-transition:1s;
    -moz-transition:1s;
    -ms-transition:1s;
    -o-transition:1s;
    transition:1s;
}

#submenu li:nth-child(2){
    -webkit-transition:1.2s;
    -moz-transition:1.2s;
    -ms-transition:1.2s;
    -o-transition:1.2s;
    transition:1.2s;
}

#submenu li:nth-child(3){
    -webkit-transition:1.4s;
    -moz-transition:1.4s;
    -ms-transition:1.4s;
    -o-transition:1.4s;
    transition:1.4s;
}

#submenu li:nth-child(4){
    -webkit-transition:1.6s;
    -moz-transition:1.6s;
    -ms-transition:1.6s;
    -o-transition:1.6s;
    transition:1.6s;
}

#submenu li:nth-child(5){
    -webkit-transition:1.8s;
    -moz-transition:1.8s;
    -ms-transition:1.8s;
    -o-transition:1.8s;
    transition:1.8s;
}

#submenu li.activeli:nth-child(1){
    -webkit-transition:1s;
    -moz-transition:1s;
    -ms-transition:1s;
    -o-transition:1s;
    transition:1s;
}

#submenu li.activeli:nth-child(2){
    -webkit-transition:1.2s;
    -moz-transition:1.2s;
    -ms-transition:1.2s;
    -o-transition:1.2s;
    transition:1.2s;
}

#submenu li.activeli:nth-child(3){
    -webkit-transition:1.4s;
    -moz-transition:1.4s;
    -ms-transition:1.4s;
    -o-transition:1.4s;
    transition:1.4s;
}

#submenu li.activeli:nth-child(4){
    -webkit-transition:1.6s;
    -moz-transition:1.6s;
    -ms-transition:1.6s;
    -o-transition:1.6s;
    transition:1.6s;
}

#submenu li.activeli:nth-child(5){
    -webkit-transition:1.8s;
    -moz-transition:1.8s;
    -ms-transition:1.8s;
    -o-transition:1.8s;
    transition:1.8s;
}




.main {
    -webkit-flex: 1;
    -moz-flex: 1;
    -ms-flex: 1;
    flex: 1;
    flex: 1 1 auto;
    overflow: auto;
}

.sidenav {
    -webkit-flex: 1;
    -moz-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: fixed;
    left: 0;
    top: 69px;
    bottom: 0px;
    height: calc(100% - 70px);
    width: 11.5%;
    font-size: 0.7rem;
    background-color: white;
    z-index: 1;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    -webkit-box-shadow: 0 0px 8px 0 rgba(14, 22, 38, .3);
    -moz-box-shadow: 0 0px 8px 0 rgba(14, 22, 38,.3);
    box-shadow: 0 0px 8px 0 rgba(14, 22, 38,.5);
    -webkit-transition: height 0.3s;
    transition: height 0.3s;
    will-change: transform;
}

.catbar h1 {
    font-size: 1.5rem;
    letter-spacing: 0.8px;
    font-weight: normal;
    line-height: 20px;
}

.sidenav div {
    padding-bottom: 0.5rem;
    line-height: 0px;
    position: static;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
}

article#home {
    -webkit-flex: 7;
    -moz-flex: 7;
    -ms-flex: 7;
    flex: 7;
    margin-top: 70px;
    left: 11.5%;
    position: absolute;
    width: 80.4%;
    padding: .7rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

article#profile {
    -webkit-flex: 7;
    -moz-flex: 7;
    -ms-flex: 7;
    flex: 7;
    margin-top: 70px;
    left: 30%;
    position: absolute;
    width: 70%;
    padding: .7rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

nav {
    -webkit-flex: 7;
    -moz-flex: 7;
    -ms-flex: 7;
    flex: 3;
}

nav div {
    position: fixed
}

aside {
    -webkit-flex: 0.7;
    -moz-flex: 0.7;
    -ms-flex: 0.7;
    flex: 0.7;
    position: fixed;
    right: 0;
    padding-top: auto;
    width: 8.05%;
    background-color: white;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-box-shadow: 0 0px 8px 0 rgba(14, 22, 38, .3);
    -moz-box-shadow: 0 0px 8px 0 rgba(14, 22, 38,.3);
    box-shadow: 0 0px 8px 0 rgba(14, 22, 38,.5);
    -webkit-transition: height 0.3s;
    transition: height 0.3s;
    top: 69px;
    bottom: 0px;
    height: calc(100% - 70px);
    font-size: 80%;
    will-change: transform;
}

aside div {
    padding-bottom: 0.5rem;
    position: static;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
}

.profile {
    -webkit-flex: 1;
    -moz-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0px;
    height: calc(100% - 70px);
    width: 30%;
    background-color: white;
    z-index: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 1vw;
}

.profile h1 {
    margin-top: 0px;
    padding-bottom: 25px;
    letter-spacing: 0.4px;
    font-family: "Open Sans Condensed", sans-serif;
    font-weight: normal;
    line-height: 20px;
    font-size: 2.5vw;
}

.profile h2 {
    padding: .8rem;
    padding-bottom: 20px;
    font-weight: normal;
    line-height: normal;
    font-size: .8rem;
}

.propic {
    display: block;
    border-radius: 50%;
    width: 29.67vw;
    height: 29.67vw;
    object-fit: cover;
    object-position: 50% 20%;
    padding: 10%;
}

.profcontainer{
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
}

.workside {
    -webkit-flex: 1;
    -moz-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0px;
    height: calc(100% - 70px);
    width: 30%;
    background-color: white;
    z-index: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 1vw;
}

.workside h1 {
    margin-top: -5px;
    padding-bottom: 5px;
    font-family: "Open Sans Condensed", sans-serif;
    font-weight: normal;
    line-height: 10px;
    font-size: 2.5vw;
}

.workside h2 {
    padding: 0.1rem 1rem;
    padding-bottom: 5px;
    font-weight: normal;
    line-height: normal;
    font-size: .8rem;
}

.workpic {
    display: block;
    border-radius: 50%;
    width: 29.67vw;
    height: 29.67vw;
    object-fit: cover;
    object-position: 50% 20%;
    padding: 10% ;
}

.workcontainer{
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
}

.description {

}

@media screen and (max-width: 500px) {
    .profile{
        margin-top: 2vw;
    }
}

@media screen and (max-width: 991px){
        .topnav li:nth-child(3) {
        display: none;
    }
    
    .topnav li:nth-child(4) {
        display: none;
    }

    .topnav li:nth-child(5) {
        display: none;
    }

    .topnav {
        position: static;
    }

    li {
        padding: 0.2rem;
    }

    .topnav a, .menu, div#menu button, .topnav input[type=text] {
        float: none;
        display: flex;
        position: static;
        width: 100%;
        margin: 0;
        height: auto;
        padding: 7px;
    }

    .search {
    margin-left: 1vw;
    margin-right: 0;
        width: 100%;
}
    .topnav input[type=text] {
        border: 1px solid #ccc;
        width: 100%;
        margin: 0;
    }

    .mobilemenu{
        display: block;
    }

    .main {
        flex: 1 1 55%; /* Grow, Shrink, 55% width */
        padding: 0rem; /* Increase padding now we have more space to play with */
        margin: 0;
    }

    .sidenav {
        display: none;
    }

    .catbar h1 {
        font-size: 150%;
        letter-spacing: 0.8px;
        font-weight: normal;
        line-height: 12px;
    }

    .sidenav div {
        right: 0;
        left: 0;
        margin-left: auto;
        margin-right: auto;
        padding: .1rem;
        line-height: 8px;
        align-items: center;
    }

    article#home {
        position: static;
        right: 0;
        left: 0;
        width: 100%;
        margin-top: 0px;
    }

    aside#home {
        display: none;
    }
}