* {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

@font-face {
    font-family: Proxima Nova Alt Light;
    src: url(proxima-nova-alt-light.otf);
}

@font-face {
    font-family: Proxima Nova Bold;
    src: url(proxima-nova-bold.otf);
}

body {
    font-family: Proxima Nova Alt Light, sans-serif;
    text-align: center;
    margin-bottom: 15vh;
}

header {
    background-image: url(img/eindhoven.jpg);
    height: 40vh;
    background-position: center;
    background-size: cover;
    border-bottom: 1px solid #c6c6c6;
    position: relative;
    margin-bottom: 10vw;
}

header img {
    position: absolute;
    bottom: -8vw;
    left: 50%;
    margin-left: -8vw;
    width: 16vw;
}

.print-only {
    display: none;
}

h1 {
    margin: 12pt 0;
}

h1 strong {
    font-family: Proxima Nova Bold, sans-serif;
}

p.intro {
    margin-top: 3em;
}

.hr {
    border: 0;
    border-bottom: 1px solid #f1f1f1;
    width: 85%;
    margin: 8vw auto 5vw;

    height: 0;
    position: relative;
}

.hr img {
    position: absolute;
    bottom: -4vw;
    margin-left: -4vw;
    left: 50%;
    width: 8vw;
    height: 8vw;
}

ul.experience {
    width: 80%;
    margin: 1.5em auto;
    font-size: 1.3em;

}

.experience li {
    height: 3em;
    display: flex;
    margin-bottom: 0.5em;
}

.experience .time {
    flex: 1;
    line-height: 3em;
    text-align: right;
    margin-right: 1em;
}

.experience .location {
    flex: 1.2;
    text-align: left;
}

.experience img {
    height: 2em;
    margin: 0.5em;

    float: left;
}

.experience .company {
    font-weight: bold;
    margin-top: 0.5em;
}

.project {
    padding: 1em;
    margin: 3em auto auto;
    width: 80%;

}

h3 {
    font-family: Proxima Nova Bold, sans-serif;
    font-size: 2em;
    margin: 0.5em;
}

h4 {
    font-family: Proxima Nova Bold, sans-serif;
    font-size: 1.3em;
    margin: 3em 1em 1em;
}

ul.skills {
    margin: 0 auto;
    width: 40%;
    display: flex;
    justify-content: center;

    flex-wrap: wrap;
}

ul.skills li {
    width: 100px;
    padding: 3px;
}

ul.skills li img {
    width: 100%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.project .video {
    float: right;
    width: 50%;
    margin-left: 10%;
    position: relative;
}

.project .video video {
    box-shadow: 0 0 30px #888;
    border: 1px solid #aaa;
    border-radius: 7px;
    max-width: 100%;
    cursor: pointer;
    max-height: 70vh;
}

/* Play button */
.project .video:after {
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    content: " ";
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('img/play.png');
    background-position: center;
    background-size: 20%;
    background-repeat: no-repeat;
    opacity: 1;
    transition: 0.4s all;
}

.project .video.playing:after {
    opacity: 0;
}

.project p {
    text-align: left;
    margin: 0.8em;
}

ul.details {
    width: 40%;
    font-style: italic;
}

ul.project_skills {
    display: flex;
    justify-content: center;
}

ul.project_skills li {
    width: 50px;
    margin: 3px;
}

ul.project_skills li img {
    width: 100%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}


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

@media print {
    .print-only {
        display: inherit;
    }
    header {
        height: auto;
        margin-bottom: 20px;
        background-image: none;
        border-width: 0;
        padding: 20px;
    }
    header img {
        position: static;
        margin: 0 auto;
    }

    body {
        font-size: 8pt;
    }

    section {
        padding-top: 10px;
        page-break-inside: avoid;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    ul.skills {
        width: 70%;
    }

    ul.skills li {
        width: 2cm;
    }

    .project .video:after {
        display: none;
    }

    .project {
        page-break-inside: avoid;
    }

    .project .video video {
        box-shadow: none;
        border: none;
    }

    @page {
        margin: 0;
    }
}