html,body,#main {
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0, 0, 0);
}

html,body{
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: black;
}

body p {
    color: black;
}

i {
    margin-right: 15px;
}

ul {
    list-style: none;
}

.background-image {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1;
    width: 100vmax;
    height: 100vh;
    background-image: url("../images/background.jpg");
    background-size:cover;
    -webkit-filter:blur(10px);
    -ms-filter:blur(10px);
    filter:blur(10px);
}

.container {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    height: 100vh;
}

#main, #nav {
    height: 100%;
}

/* Sidebar */
#nav {
    display: flex;
    flex-direction: column;
    background: #fff;
    z-index: 4;
    box-shadow: 0 5px 10px rgba(0,0,0,0.26);
    flex: 0 0 250px;
    overflow: hidden;
}

#nav > .header {
    display: flex;
    flex-direction: column;
    background: #FF5722;
    flex: 0 0 250px;
    justify-content: center;
}

#nav > .header h2 {
    color: #fff;
    text-align: right;
    margin: 0;
    padding-right: 15px;
}

#nav > .header p {
    color: #fff;
    text-align: right;
    margin: 0;
    padding-right: 15px;
}

#nav > .mobile-header {
    display: none;
}

#nav ul {
    margin: 0;
    padding: 0;
}

#nav ul li {
    border-bottom: 1px solid #eee;
}

#nav ul li a {
    display:block;
    padding:18px;
    font-weight:500;
    color: #333;
    text-decoration:none;
}

#nav ul li a .nav-text {
    display: inline;
}

#nav ul li a:hover {
    transition: all 0.5s ease;
    background: #FEFCFF;
}

/* Main */
#main {
    overflow-y: scroll;
    width: 100%;
}

.article {
    display: flex;
    flex-direction: column;
    align-content: center;
    min-height: 100vh;
    overflow: hidden;
}

.article > .header {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 250px;
    background: #FF5722;
    z-index: 1;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

.article > .header > h2 {
    text-align: left;
    margin: 40px;
    color: white;
    font-weight: 400;
    font-size: 3em;
}

/* Personal */
.personal {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 50px;
}

.personal h1 {
    text-shadow: 2px 2px #000;
    font-size: 3em;
    color: #fff;
}

.personal blockquote {
    border-left: 5px solid #fff;
    padding-left: 22px;
    margin: 0;
}

.personal p {
    text-shadow: 2px 2px #000;
    font-size: 1em;
    margin: 5px;
    color: #fff;
}

/* Projects */
.project-block {
    display:flex;
    flex-wrap: wrap;
    margin: 20px 20px 20px 40px;
}

.project-block p {
    margin-top: 5px;
}

.project-block > .header {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.project-block > .header > .title {
    flex: 0 0 75%;
    margin: 0;
}

.project-block > .header > .subtitle {
    flex: 0 0 100%;
    text-align: right;
    margin-top: 0;
}

.project-block > .header > .year {
    flex: 0 0 25%;
    text-align: right;
    margin: 0;
}

.project-block > .content {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.project-block > .content > .description > p {
    margin-right: 20px;
    width: 98%;
}

.project-block > .content > .img {
    flex: 0 0 400px;
    text-align: center;
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
}

.project-block > .content > .img > img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
}

/* Skills */
.skill-block {
    background: #FFF;
    margin: 20px 20px 20px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.skill-block h3 {
    width: 100%;
    margin: 0;
    padding: 10px 10px 10px 10px;
}

.skill-block > .title {
    border-bottom: 1px solid #eee;
}

.skill-block > .content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.skill-block .imgtag {
    width: 150px;
    height: 200px;
    margin: 20px;
    text-align: center;
}

.skill-block .img {
    height: 150px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.skill-block img {
    width: auto;
    height: auto;
    max-height: 150px;
    max-width: 150px;
}

.skill-block p {
    margin-bottom: 0px;
    font-weight: bolder;
}

.contact-block {
    margin-left: 30px;
}

.contact-block p {
    line-height: 200%;
}

.contact-block .mail-title {
    margin-left: -15px;
}

/* General */
.left {
    float: left;
}

.right {
    float: right;
}

.white {
    background-color: white;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.inline {
    display: inline;
}

.footer {
    position: absolute;
    width: 250px;
    bottom: 2px;
    left: 0;
    right: 0;
    color: #333333;
    border-top: 1px solid #eee;
}

.footer > small {
    padding-left: 10px;
}

.mobile-footer {
    display: none;
}

hr {
    border: none;
    height: 1px;
    background: #eee;
    margin: 25px 0 25px 0;
    flex: 0 0 100%;
}

@media screen and (max-width: 1400px) {
    .project-block > .content > .img {
        flex: 0 0 250px;
    }
}

@media screen and (max-width: 1200px) {
    .project-block > .content > .img {
        flex: 0 0 0;
        display: none;
    }
}

@media screen and (max-width: 850px) {
    #nav {
        flex: 1 0 50px;
    }

    #nav > .header {
        display:none;
    }

    #nav ul li a .nav-text {
        display: none;
    }

    #nav > .mobile-header {
        display: flex;
        flex-direction: column;
        background: #FF5722;
        flex: 0 0 250px;
        justify-content: center;
    }

    #nav > .mobile-header h2 {
        width: 250px;
        color: #fff;
        -webkit-transform: rotate(90deg);
        -moz-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        -o-transform: rotate(90deg);
        transform: rotate(90deg);
        -webkit-transform-origin: 58px -21px;
        -moz-transform-origin: 58px -21px;
        -ms-transform-origin: 58px -21px;
        -o-transform-origin: 58px -21px;
        transform-origin: 60px -18px;
    }

    .personal h1 {
        font-size: 2em;
    }

    /* Projects */
    .project-block {
        margin: 10px 10px 10px 20px;
    }

    .skill-block > .content > .imgtag {
        width: 100px;
        height: 150px;
        margin: 10px;
    }

    .skill-block > .content > .imgtag > .img {
        height: 100px;
    }

    .skill-block > .content > .imgtag img {
        max-height: 100px;
        max-width: 100px;
    }

    .project-block > .content > .description > ul {
        padding: 0;
    }

    .footer {
        display:none;
    }

    .mobile-footer {
        width: 100%;
        display: block;
        border-top: 1px solid #eee;
        min-height: 0;
        text-align: center;
    }

    .mobile-footer > small {
        padding-right: 10px;
    }

    /* Let's get this party started */
    ::-webkit-scrollbar {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    .personal h1 {
        font-size: 1.5em;
        color:white;
    }

    .personal p {
        font-size: 0.8em;
    }
}

@media screen and (max-height: 400px) and (max-width: 600px) {
    #nav > .mobile-header {
        display: none;
    }

    .article > .header {
        height: auto;
    }
}

/* Let's get this party started */
::-webkit-scrollbar {
    position:fixed;
    width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
    background-color: #eee;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgb(255,87,34);
}
::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(255,0,0,0.4);
}