*{
    font-family: 'Lato', sans-serif;  /* weights light-300 normal-400 bold-700 */
    box-sizing: border-box;
    line-height: 1.414em;
    text-rendering: optimizeLegibility;
}

*::selection {
    color: #fff;
    background: #CC5232; /* WebKit/Blink Browsers */
}

*::-moz-selection {
    color: #fff;
    background: #CC5232; /* Gecko Browsers */
}

body{
    margin: 0;
    display: flex;
    flex-direction: column;
}

#nav-button{
    position: fixed;
    top: 1em;
    right: 1em;
    height: 2.5em;
    width: 2.5em;
    padding: .5em;
    background: #fff;
    z-index: 5;
    border-radius: .5em;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, .5);
}

#arrow-span{
    height: auto;
    width: auto;
    margin: 0 auto;
}

.arrow{
    width: 75%;
    height: .2em;
    border-radius: 1em;
    background: #424242;
}

.arrow.upper{
    transform: rotate(-45deg);
    margin: 0 auto;
    margin-top: .3em;
    transition: .6s cubic-bezier(.47,-0.34,.51,1.32);
}

#arrow-span.active > .arrow.upper{
    transform: rotate(45deg);
    transition: .6s cubic-bezier(.47,-0.34,.51,1.32);
}

.arrow.lower{
    transform: rotate(45deg);
    margin: 0 auto;
    margin-top: .6em;
    margin-left: .5em;
    width: 50%;
    transition: .6s cubic-bezier(.47,-0.34,.51,1.32);
}

#arrow-span.active > .arrow.lower{
    transform: rotate(-45deg);
    margin-left: .3em;
    transition: .6s cubic-bezier(.47,-0.34,.51,1.32);
}

nav{
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    margin-left: 100vw;
    z-index: 3;
    background: #fff;
    transition: .6s ;
}

nav.visible{
    margin-left: 0;
}

#menu-logo{
    display: flex;
    flex-direction: row;
    align-content: space-around;
    height: 25%;
    padding: 1em;
    background: #f76133;
}

#menu-logo > img{
    max-height: 3.5em;
    margin: auto;
    margin-right: 0;
    -webkit-filter: invert(1);
    filter: invert(1);
}

#menu-logo > a{
    color: #fff;
    text-decoration: none;
    margin: auto;
    margin-left: .5em;
}

#menu-logo > a > h1{
    margin: 0;
}

nav > ul{
    list-style: none;
    margin: 0;
    padding: 0;
    height: 75%;
}

nav > ul > li{
    height:33.33%;
    display: flex;
    flex-direction: row;
    align-content: space-around;
    padding: 1em;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.25);
}

nav > ul > li:first-child{
    background: #f4402e;
}

nav > ul > li:nth-child(2){
    background: #d11f2d;
}

nav > ul > li:last-child{
    background: #9a1a22;
}

nav > ul >li > a{
    display: flex;
    flex-direction: row;
    align-content: space-around;
    width: 100%;
    color: #fff;
    text-decoration: none;
}

nav > ul > li > a > :first-child, nav > ul > li > a > :nth-child(2), nav > ul > li > a > :last-child{
    margin: auto;
}

nav > ul > li > a > :first-child{
    margin-left: 1em;
    margin-right: 1.5em;
}

nav > ul > li > a > :nth-child(2){
    margin-left: 0;
    text-transform: uppercase;
}

nav > ul > li > a > :last-child{
    margin-right: 1em;
    text-align: right;
}

h1{
    margin-top: 0;
}

.header{
    height: 100vh;
    overflow: hidden;
}

#skew{
    height: 45%;
    width: 120%;
    transform-origin: left center;
    transform: rotate(15deg);
    background: #fff;
    position: relative;
    z-index: 1;
}

#tagline{
    margin: 0 auto;
    padding: 1em;
    transform: rotate(-15deg);
    color: #424242;
}

#logo{
    width: 6em;
    height: 6em;
    margin: 0 auto;
    padding: .5em;
    border-radius: 999em;
    background: #fff;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

#logo > img{
    width: 100%;
    margin: .8em 0;
}

.header > #header-img{
    height: 55%;
    position: relative;
    z-index: -1;
    top: -6em;
    background-image: url('../img/overlay.png'), url('../img/header.jpg');
    background-repeat: no-repeat;
    background-position: center center, center center;
    background-size: cover;
}

#subtagline{
    position: relative;
    top: 35%;
    margin: 0 auto;
    padding: 1.5em;
    color: #fff;
}

#wordSlide.element{
    display: inline-block;
    margin: 0;
}

.typed-cursor{
    opacity: 1;
    -webkit-animation: blink 0.7s infinite;
    -moz-animation: blink 0.7s infinite;
    animation: blink 0.7s infinite;
    display: inline-block;
    position: relative;
    top: .5em;
}
@keyframes blink{
    0% { opacity:1; }
    50% { opacity:0; }
    100% { opacity:1; }
}
@-webkit-keyframes blink{
    0% { opacity:1; }
    50% { opacity:0; }
    100% { opacity:1; }
}
@-moz-keyframes blink{
    0% { opacity:1; }
    50% { opacity:0; }
    100% { opacity:1; }
}

h1.middle{
    text-transform: uppercase;
    text-align: center;
}

main h1:not(main > section:nth-of-type(2) h1){
    text-transform: uppercase;
    text-align: center;
}

.icon-line{
    display: flex;
    flex-direction: row;
    max-width: 75%;
    margin: 0 auto;
    margin-bottom: .5em;
    justify-content: space-between;
}

hr{
    flex: 1;
    border-color: #424242;
    max-width: 6em;
    border: 0;
    border-top: solid .2em;
}

hr + i{
    position: relative;
    top: -.25em;
    padding: 0 .3em;
    color: #424242;
}

main > section:first-of-type{
    background: #F7F7F7;
}

main > section:first-of-type > article{
    color: #424242;
    padding:  2em 1em;
}

.portfolio-block{
    width:80%;
    height: 8em;
    margin: .5em auto;
    overflow: hidden;
}

.portfolio-block:nth-of-type(1){
    background-image: url('../img/blok-fotos/nodeJs.png');
    background-size: cover;
    background-position: center center;
}

.portfolio-block:nth-of-type(2){
    background-image: url('../img/blok-fotos/front-end.png');
    background-size: cover;
    background-position: center center;
}

.portfolio-block:nth-of-type(3){
    background-image: url('../img/blok-fotos/programmeren.png');
    background-size: cover;
    background-position: center center;
}

.portfolio-block:nth-of-type(4){
    background-image: url('../img/blok-fotos/vormg.png');
    background-size: cover;
    background-position: center center;
}

.portfolio-block:nth-of-type(5){
    background-image: url('../img/blok-fotos/pnp.png');
    background-size: cover;
    background-position: center center;
    display: none;
}

.portfolio-block:nth-of-type(6){
    background-image: url('../img/blok-fotos/nfc-project.png');
    background-size: cover;
    background-position: center center;
    display: none;
}

.portfolio-block:nth-of-type(7){
    background-image: url('../img/blok-fotos/oztv.png');
    background-size: cover;
    background-position: center center;
}

.portfolio-block:nth-of-type(8){
    background-image: url('../img/blok-fotos/portfolio.png');
    background-size: cover;
    background-position: center center;
}

.portfolio-block img{
    width: 100%;
    height: 100%;
    transform: scale(0);
    opacity: 0;
    transition: transform .3s,  opacity .6s;
}

.portfolio-block:hover img, .portfolio-block:active img{
    opacity: 1;
    transform: scale(1);
}

.block-title{
    position: relative;
    top: -6.5em;
    margin: 0;
    opacity: 0;
    text-align: center;
    color: #fff;
    transition-delay: .6s;
    transition: .6s;
}

.portfolio-block:hover > .block-title{
    top: -5em;
    opacity: 1;
}

.further{
    text-align: center;
}

.further a{
    color: #424242;
    text-decoration: none;
    transition: .6s;
    position: relative;
    left: .5em;
}

.further a:hover, .further a:active{
    color: #CC5232;
}

.further i{
    position: relative;
    left: -6em;
    transition: .6s, color 0s;
}

.further a:hover i{
    left: .3em;
}

#banner{
    width: 100%;
    text-align: center;
    overflow: hidden;
}

#banner > img {
    max-width: 100%;
}

article#work-tekst{
    max-width: 40em;
    margin: 0 auto;
    padding-bottom: 2em;
}

article#work-tekst > img{
    width: 100%;
}

article#work-tekst > video{
    width: 100%;
}

article#work-tekst a{
    text-decoration: none;
    color: #CC5232;
}

#used-skills{
    display: flex;
    width: 80%;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
}

#used-skills > .skills{
    padding: .5em;
    position: relative;
}

#used-skills img{
    height: 10em;
}

.skills > span{
    display: inline-block;
    position: absolute;
    bottom: -.5rem;
    left: -1rem;
    text-align: center;
    width: 100%;
    opacity: 0;
    transition: .3s ease-in-out;
}

.skills:hover > span{
    left: 0;
    opacity: .75;
}

.skills > span > a{
    text-decoration: none;
    color: inherit;
}

main > section:nth-of-type(2){
    background: rgba(204, 82, 50, .8);
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}

main > section:nth-of-type(2) > article{
    color: #fff;
    padding:  2em 1em;
}

#about-img{
    width: 250%;
    height: 100%;
    overflow: hidden;
}

#about-img > img{
    height: 18.9em;
    position: relative;
    left: -12em;
}

@-moz-document url-prefix() {
    #about-img > img{
        height: 31.3em;
        left: -18em;
    }
}

main > section:nth-of-type(2) h1{
    margin-bottom: 0;
}

main > section:nth-of-type(2) p{
    margin-bottom: 0;
}

h1 + h1{
    margin-top: .1em;
    margin-bottom: .83em;
}

#contact{
    background: #F7F7F7;
    padding: 2em 1em;
}

#contact > article > form > label{
    display: flex;
    flex-flow: column;
    padding: .5em;
    border-top: .1em solid #424242;
}

#contact > article > form > label:last-of-type{
    border-bottom: .1em solid #424242;
}

.field-tekst{
    order: 1;
    position: relative;
    opacity: 0;
    top: 1.5em;
    color: #CC5232;
    padding-left: .2em;
    transition: .6s;
}

input.input{
    -webkit-appearance: none;
    appearance: none;
    order: 2;
    height: 3em;
    background: #f7f7f7;
    font-size: 1em;
    border: none;
    position: relative;
    top: -.8em;
    transition: .6s;
}

#contact > article > form input:not(form > input){
    -webkit-appearance: none;
    appearance: none;
    order: 2;
    height: 3em;
    background: #f7f7f7;
    font-size: 1em;
    border: none;
    position: relative;
    top: -.8em;
    transition: .6s;
}

#contact > article > form input:focus{
    outline-style: none;
    top: 0;
}

#contact > article > form textarea{
    -webkit-appearance: none;
    appearance: none;
    order: 2;
    height: 10em;
    background: #f7f7f7;
    font-size: 1em;
    border: none;
    position: relative;
    top: -.8em;
    transition: .6s;
}

#contact > article > form textarea:focus{
    outline-style: none;
    top: 0;
}

.active-field{
    opacity: 1;
    top: 0;
    height: auto;
}

.btn-lg, .btn-group-lg>.btn{
    padding: 18px 27px;
    font-size: 19px;
    line-height: 1.3333333;
    border-radius: 6px;
}

.btn-success{
    color: #ffffff;
    background-color: rgba(204, 82, 50, .8);
    border-color: #CC5232;
    transition: .6s;
}

.btn{
    display: inline-block;
    margin-top: .5em;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 10px 15px;
    font-size: 15px;
    line-height: 1.42857143;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn-success:hover, .btn-success:focus, .btn-success.focus, .btn-success:active, .btn-success.active, .open>.dropdown-toggle.btn-success{
    color: #CC5232;
    background-color: #F7F7F7;
    border-color: #CC5232;
}

.btn:hover, .btn:focus, .btn.focus{
    color: #CC5232;
    text-decoration: none;
}

footer{
    background: #424242;
    color: #fff;
    text-align: center;
    padding: 1em;
}

footer > h1{
    text-transform: uppercase;
    font-size: 1em;
}

footer > ul{
    list-style: none;
    padding: .5em;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    max-width: 10em;
    margin: 0 auto;
}

footer > ul > li > a{
    color: #fff;
    transition: .6s;
}

footer > ul > li > a:hover{
    color: #CC5232;
}

footer > p{
    margin: 0;
    padding: .5em;
    color: rgba(255, 255, 255, .6);
}

#buddy{
    color: rgba(255, 255, 255, .3);
    font-size: 1rem;
}

#buddy > a{
    text-decoration: none;
    color: inherit;
}

@media(max-width: 50em) and (orientation: landscape){
    #skew{
        transform: rotate(6deg);
    }

    #tagline{
        transform: rotate(-6deg);
        position: relative;
        top: -2em;
    }

    #logo{
        top: -6%;
        transform: scale(.75)
    }

    #subtagline{
        top: 2em;
    }

    .portfolio-block{
        width: 65%;
        height: 12.2em;
    }

     .block-title{
        top: -8.5em;
    }

    .portfolio-block:hover > .block-title{
        top: -7em;
    }

    #about-img > img{
        height: 19em;
        left: -7.5em;
    }

    main > section:nth-of-type(2) > article{
        padding: 1.5em;
    }

    main > section:nth-of-type(2) > article > h1{
        font-size: 1.5em;
    }

    main > section:nth-of-type(2) > article > h1:last-of-type{
        margin-bottom: .5em;
    }

    main > section:nth-of-type(2) > article > p{
        font-size: 1.1em;
    }
}

@media(min-width: 40em) and (orientation: portrait){
    #logo{
        top: 6.5%;
    }

    .portfolio-block{
        width: 65%;
        height: 17em;
    }

     .block-title{
        top: -10.5em;
    }

    .portfolio-block:hover > .block-title{
        top: -9em;
    }

    #about-img{
        width: 150%;
    }

    #about-img > img{
        left: -5.5em;
    }

    main > section:nth-of-type(2) > article{
        padding: 1.5em;
    }

    main > section:nth-of-type(2) > article > h1{
        font-size: 1.5em;
    }

    main > section:nth-of-type(2) > article > h1:last-of-type{
        margin-bottom: .5em;
    }

    main > section:nth-of-type(2) > article > p{
        font-size: 1.1em;
    }
}

@media(min-width: 60em) and (orientation: landscape){
    #skew{
        width: 60%;
        height: 120%;
        top: -11em;
        left: -5em;
        float: left;
    }

    #tagline{
        transform: rotate(-15deg);
        position: relative;
        top: 42%;
        left: 25%;
    }

    #logo{
        float: left;
        top: 47%;
        left: -13.5%;
    }

    .header > #header-img{
        height: 100%;
        top: 0;
    }

    #subtagline{
        text-align: left;
        top: 42%;
    }

    .icon-line{
        max-width: 50%;
    }

    hr{
        max-width: 10em;
    }

    #portfolio-container{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 75%;
        margin: 0 auto;
    }

    .portfolio-block{
        width: 40%;
        height: 10em;
    }

    .portfolio-block:nth-of-type(4){
        display: block;
    }

    .portfolio-block:nth-of-type(5){
        display: block;
    }

    .portfolio-block:nth-of-type(6){
        display: block;
    }

    .block-title{
        top: -7.5em;
    }

    .portfolio-block:hover > .block-title{
        top: -6em;
    }

    #about-img{
        width: 100%;
    }

    #about-img > img{
        left: 0;
    }

    main > section:nth-of-type(2) > article{
        padding: 2em;
    }

    main > section:nth-of-type(2) > article > h1{
        font-size: 2em;
    }

    main > section:nth-of-type(2) > article > h1:last-of-type{
        margin-bottom: 1em;
    }

    main > section:nth-of-type(2) > article > p{
        font-size: 1.2em;
    }

    form{
        width: 75%;
        margin: 0 auto;
    }

    nav > ul > li > a > :first-child{
        margin-right: 4em;
    }

    nav > ul > li > a > :nth-child(2){
        font-size: 1.5em;
        font-weight: 300;
    }

    nav > ul > li > a > :last-child{
        transform: scale(2);
        margin-right: 2em;
    }
}

@media(min-width: 70em){
    #skew{
        top: -15em;
        height: 130%;
        left: -7em;
    }

    #tagline{
        left: 30%;
        top: 42%;
    }

    #logo{
        transform: scale(1.5);
        top: 45%;
    }

    hr+i{
        transform: scale(1.2);
    }

    .portfolio-block{
        width: 30%;
    }

    main > section:nth-of-type(2) > article > h1{
        font-size: 2.8em;
        font-weight: 300;
    }

    main > section:nth-of-type(2) > article > p{
        font-size: 1.6em;
        font-weight: 300;
    }

    #about-img > img{
        height: 22em;
    }

    form{
        width: 60%;
    }

    @-moz-document url-prefix() {
        #about-img > img{
            height: 24.1em;
        }
    }

}

@media(min-width: 85em){
    #tagline{
        top: 40%;
    }

    #logo{
        left: -12.5%;
    }
}

@media(min-width: 120em){
    #skew{
        top: -21em;
        height: 130%;
        width: 57%;
        left: -7em;
    }

    #tagline{
        left: 40%;
        top: 39%;
    }

    #logo{
        left: -9%;
    }

    .portfolio-block{
        height: 15em;
    }

    .block-title{
        top: -9.5em;
    }

    .portfolio-block:hover > .block-title{
        top: -8em;
    }

    #about-img{
        width: 50%;
    }

    main > section:nth-of-type(2) > article{
        padding-right: 5em;
    }

    main > section:nth-of-type(2) > article > h1{
        font-size: 3em;
    }

    main > section:nth-of-type(2) > article > p{
        font-size: 1.8em;
    }

    #contact > article > form input:not(form > input){
        font-size: 1.5em;
        top: -.5em;
    }

    #contact > article > form textarea{
        font-size: 1.5em;
        top: -.5em;
    }
}
