/* General */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
}

header {
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0 15vw;
    width: 70%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    box-shadow: 0 0 1rem #00000022;
}

body.nl-page header nav>ul>li:last-of-type>a {
    color: #4099FF;
}

a {
    color: black;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    opacity: 70%;
}

h1 {
    font-weight: 300;
    font-size: 5.3vw;
    margin-bottom: 0;
}

h2 {
    font-weight: 500;
    font-size: 30px;
    margin-block-end: 0.5em;
}

h3 {
    font-weight: 500;
    font-size: 20px;
}

nav>ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav>ul>li {
    margin: 30px;
}

nav>ul>li:last-of-type {
    margin-right: 0;
}

main {
    min-height: 70vh;
}

main>section {
    width: 70%;
    padding: 5vh 15% 0;
}

footer {
    color: white;
    background-color: black;
    margin-top: 20vh;
    padding: 1vh 15%;
    display: flex;
    justify-content: space-between;
}

footer>p {
    margin: 0;
}

footer>a {
    color: #555555;
    text-decoration: underline;
}

figure {
    width: 100%;
    margin: 0;
}

/* Intro */

section#intro {
    padding-top: 15vh;
}

section#intro>div:first-of-type {
    display: flex;
    justify-content: space-between;
    position: relative;
}

div#intro-left {
    position: relative;
    max-width: 35vw;
}

div#intro-left>h1 {
    margin-top: 0;
}

main#home #intro-right {
    max-width: 30vw;
}

p#profession {
    font-weight: 300;
    font-size: 1.75vw;
    text-transform: uppercase;
    margin-top: 0;
    letter-spacing: 0.35em;
}

a#view-more:hover {
    opacity: 70%;
}

a#view-more div {
    margin: 5vh auto;
    text-align: center;
}

a#view-more svg {
    display: block;
    margin: 0 auto;
}

/* Projects */

section#projects>div {
    display: flex;
    justify-content: space-between;
}

section#projects section {
    color: white;
    width: 46%;
    padding: 30px 0 30px 30px;
    position: relative;
    margin-bottom: 2vw;
    transition: all .2s ease-in-out;
}

section#projects section:hover {
    transform: scale(1.02);
    box-shadow: 0 0.5rem 1rem #00000033;
}

section#projects section>a:first-of-type {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

section#asn-fable-finance {
    background-color: #FFAF4D;
}

section#hema-jupcakes {
    background-color: #4099FF;
}

section#youtube-rebuilt {
    background-color: #F95151;
}

section#design-guide {
    background-color: #333333;
}

section#keepers-health-assistance {
    background-color: #25B57C;
}

section#drawings {
    background-color: cornsilk;
}

section#drawings *, section#projects section#drawings>a:last-of-type {
    color: black;
}

section#projects section>img {
    margin-bottom: -30px;
    width: 100%;
    display: block;
}

section#projects section>h3 {
    font-size: 3em;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

section#projects section>p {
    font-size: 25px;
    margin: 1rem 0;
    text-transform: uppercase;
}

section#projects section>a:last-of-type {
    position: absolute;
}

section#projects section>a:last-of-type, main.project-page div#intro-left a {
    bottom: 30px;
    color: white;
    text-decoration: underline;
    font-size: 1.5vw;
    display: flex;
    align-items: center;
}

section#projects section>a:last-of-type>svg, main.project-page div#intro-left a svg {
    margin-left: 5px;
}

main.project-page div#intro-left h4 {
    margin: 3em 0 0.5em;
}

/* About me */
section#about-me>div {
    display: flex;
    justify-content: space-between;
}

section#skills>svg{
    padding-right: 5vw;
    margin-block-start: 0.83em;
    font-size: 80px;
}

section#story{
    max-width: 40vw;
}

/* Contact */

form fieldset {
    border: none;
    display: grid;
}

form input[type="text"], form textarea {
    border: none;
    border-bottom: 2px solid #4099FF;
}

div#contact-info {
    display: flex;
}

div#contact-info ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

div#contact-info ul>li>a {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

div#contact-info ul>li>a>svg {
    margin-right: 10px;
}

div#contact-info section:nth-of-type(1) {
    margin-right: 5vw;
}

div#contact-info section:nth-of-type(1)>ul>li:nth-of-type(1)>a {
    color: #F84B4B;
    text-decoration-color: #F84B4B;
}

div#contact-info section:nth-of-type(1)>ul>li:nth-of-type(2)>a {
    text-decoration-color: #7BC960;
}

div#contact-info section:nth-of-type(2)>ul>li:nth-of-type(1)>a {
    color: #4099FF;
    text-decoration-color: #4099FF;
}

div#contact-info section:nth-of-type(2)>ul>li:nth-of-type(2)>a {
    color: #4364FF;
    text-decoration-color: #4364FF;
}

div#contact-info section:nth-of-type(2)>ul>li:nth-of-type(3)>a {
    color: #FFC804;
    text-decoration-color: #FFC804;
}

/* project page */

main.project-page>section#intro, main.project-page>section#intro a, main.project-page>section#intro a#view-more {
    color: white;
}

main.project-page>section#intro>a {
    display: flex;
    align-items: center;
    margin-bottom: 2vh;
}

main.project-page #intro-left>a>svg {
    margin-right: 5px;
}

main.project-page>#intro #intro-left>h1 {
    line-height: 1;
}

main.project-page #intro-left>div:last-of-type {
    display: flex;
}

main.project-page #intro-left a {
    margin-bottom: 5vh;
}

main.project-page #intro-left span {
    display: block;
    text-align: center;
    margin-right: 20px;
}

main.project-page #intro-left span>svg {
    display: block;
    margin: 0 auto;
}

main.project-page #intro-right>img {
    width: 100%;
}

section#project-details {
    display: flex;
    justify-content: space-evenly;
}

section#project-details>div {
    width: 45%;
}

section#project-details img {
    width: 100%;
    box-shadow: 0 0.2rem 1rem #00000022;
}

section#project-details>div:last-of-type figure {
    margin: 20px 0;
}

section#project-details h2 {
    margin-top: 1em;
    margin-bottom: 0.2em;
}

section#project-details h2:first-of-type {
    margin-top: 0;
}

section#project-details p {
    margin-top: 0.5em;
    margin-bottom: 1em;
}

/*home */

main#home section#intro {
    padding-top: 20vh;
}

main#home div#intro-left>svg {
    background-color: white;
    position: absolute;
}

main#home div#intro-left>svg:first-of-type {
    top: -0.4vw;
    left: -0.1vw;
    height: 5.6vw;
    width: auto;
    padding-left: 0.1vw;
}

main#home div#intro-left>svg:last-of-type {
    left: 13.7vw;
    height: 5.2vw;
    width: 3vw;
    padding-left: 1.4vw;
}

main#home h2 {
    font-weight: 300;
    font-size: 80px;
}

main#home a#view-more {
    color: #4099FF;
}

/* ASN Fable Finance */

main#asn-fable-finance>section#intro {
    background-color: #FFAF4D;
}

main#asn-fable-finance .iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

main#asn-fable-finance .iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hema Jupcakes */

main#hema-jupcakes>section#intro {
    background-color: #4099FF;
}

/* YouTube Rebuilt */

main#youtube-rebuilt>section#intro {
    background-color: #F95151;
}

main#youtube-rebuilt section#project-details>div:first-of-type div, main#keepers-health-assistance section#project-details>div:first-of-type div, main#asn-fable-finance section#project-details>div:first-of-type div {
    display: flex;
    justify-content: space-between;
}

main#youtube-rebuilt section#project-details>div:first-of-type img, main#keepers-health-assistance section#project-details>div:first-of-type img, main#asn-fable-finance section#project-details>div:first-of-type img {
    width: 100%;
}

main#youtube-rebuilt section#project-details>div:first-of-type figure, main#keepers-health-assistance>section#project-details>div:first-of-type figure, main#asn-fable-finance section#project-details>div:first-of-type figure {
    margin-bottom: 5vh;
    width: 47%;
}

/* Design guide */

main#design-guide>section#intro {
    background-color: #333333;
}

main#design-guide p#profession {
    letter-spacing: 0.10em;
}

main#design-guide>section#project-details>div:first-of-type figure {
    margin-bottom: 5vh;
}

/* Keepers Health Assistance */

main#keepers-health-assistance>section#intro {
    background-color: #25B57C;
}

/* Drawings */

main#drawings * {
    color: black;
}

main#drawings>section#intro {
    background-color: cornsilk;
}

main#drawings>section#project-details {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-height: 2250px;
}

main#drawings>section#project-details>figure {
    width: 22%;
    padding: 0 1rem 1.5rem 0;
}

main#drawings>section#project-details>figure>img {
    max-width: 100%;
}

/*Bronnen */

#source-list {
    margin-top: 84px;
}

#source-list a {
    text-decoration: underline;
}

/* Laptop */

@media only screen and (max-width: 1024px) {
    header {
        width: 90%;
        padding-left: 5%;
    }
    main>section{
        width: 90%;
        padding: 5vh 5% 0;
    }
    main#home #intro-right{
        max-width: 40vw;
    }
    section#projects section>h3 {
        font-size: 6vw;
    }
    main#drawings>section#project-details {
        max-height: 7200px;
    }
    main#drawings>section#project-details>figure {
        width: 45%;
        padding: 0 1rem 1.5rem 0;
    }
}

/* Mobile */

@media only screen and (max-width: 768px) {
    body {
        font-size: 1rem;
    }
    header {
        font-size: 2.7vw;
    }
    body.en-page header {
        font-size: 4.2vw;
    }
    header a>svg {
        height: 2.5rem;
        width: 2rem;
    }
    nav>ul>li {
        margin: 2.8vw;
    }
    main>section {
        width: 90%;
        padding: 5vh 5% 0;
    }
    section#intro {
        padding-top: 10vh;
    }
    main#home section#intro {
        padding-top: 15vh;
    }
    main#home #intro-right{
        max-width: 80vw;
        padding-left: 5vw;
    }
    section#intro>div:first-of-type, section#projects>div, div#contact-info, footer, section#about-me>div {
        display: block;
    }
    div#intro-left, section#projects>div>section {
        max-width: unset;
        width: unset;
    }
    h1, main#home h2 {
        font-size: 12.8vw;
    }
    p#profession {
        font-size: 4.2vw;
    }
    section#projects section>h3 {
        font-size: 12vw;
    }
    section#projects section>p {
        font-size: 20px;
    }
    main#home div#intro-left>svg:first-of-type {
        top: -0.2vw;
        left: -0.1vw;
        height: 12.7vw;
        width: auto;
    }
    main#home div#intro-left>svg:last-of-type {
        left: 33vw;
        height: 12.7vw;
        width: auto;
        padding-left: 3vw;
    }
    section#projects section>img {
        width: 100%;
        margin-bottom: 3vh;
        margin-left: unset;
    }
    main.project-page div#intro-left {
        padding-bottom: 30px;
    }
    section#projects section>a:last-of-type, main.project-page div#intro-left a {
        font-size: 1.2em;
    }
    section#skills{
        display: flex;
        justify-content: center;
    }
    section#skills>svg{
        max-width: 80vw;
        padding-right: 0;
        margin-block-start: unset;
        font-size: unset;
    }
    section#story{
        max-width: unset;
    }
    main.project-page h2 {
        font-size: 1.3em;
    }
    section#project-details {
        order: -1;
        display: block;
    }
    section#project-details>div {
        width: 100%;
    }
    section#project-details>div:first-of-type img {
        width: 100%;
        margin: 0%;
    }
    section#project-details figure {
        margin: 0;
    }
    main#design-guide section#project-details figure {
        width: 100%;
    }
    main#drawings>section#project-details {
        max-height: unset;
    }
    main#drawings>section#project-details>figure {
        width: 100%;
        padding: 0 1rem 1.5rem 0;
    }
    main.project-page div#intro-left h4 {
        margin-top: 1.5em;
    }
    div#contact-info a{
        font-size: small;
    }
}