:root{
    --main-color: #000000;
    --secondary-color: #ffffff;
}

@font-face {
    font-family: 'VG5000';
    src:    url('./src/font/VG5000-Regular_web.eot');
    src:    url('./src/font/VG5000-Regular_web.eot?#iefix') format('embedded-opentype'),
            url('./src/font/VG5000-Regular_web.woff') format('woff'),
            url('./src/font/VG5000-Regular_web.woff2') format('woff2'),
            url('./src/font/VG5000-Regular_web.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body{
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 1em;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    background: var(--main-color);
    color: var(--secondary-color);
    font-family: 'VG5000', sans-serif;
    font-size: 1.5vw;
    letter-spacing: 1px;
}

a{
    text-decoration: none;
    font-style: italic;
    color: var(--secondary-color);
}

h1{
    font-size: 1.5em;
}

h2{
    font-size: 1.5em;
    margin-top: 0;
}

/*Navigation*/

header{
    width: 20%;
    height: 100%;
    position: fixed;
}

header .brand{
    height: 20vh;
    margin: 0;
}

header nav{
    display: flex;
    flex-wrap: wrap;
}

header nav a{
    font-style: normal;
}

header nav > *{
    width: 100%;
}

/*Body*/

main{
    width: 80%;
    height: 100%;
    margin-left: 20%;
    padding-top: 20vh;
}

main section{
    width: 100%;
    min-height: 80vh;
}

/*Services*/
#services ol{
    padding-left: 0;
}
#services ol > li{
    display: flex;
    line-height: 2em;
    counter-increment: step-counter;
}

#services ol li::before{
    content: counter(step-counter) ".";
}

#services ol li span{
    min-width: max(12rem, 12vw);
    padding-left: 1vw;
}

/*About*/
.education{
    margin-top: 0;
    padding: 0;
}
.education > li{
    display: flex;
    list-style: none;
}
.year{
    min-width: max(12rem, 12vw);
}

/*Work*/
table{
    width: 100%;
}
table td{
    padding: 1vh 0;
    border-bottom: 1px solid;
    cursor: pointer;
}
tr{
    position: relative;
}
tr:hover > td, tr:focus > td{
    mix-blend-mode: difference;
}
td.img {
    position: absolute;
    width: 40%;
    height: auto;
    z-index: -1;
    border-bottom: none;
    left: 30%;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}
tr:hover td.img, tr:focus td.img{
    display: flex;
    mix-blend-mode: normal;
}
td.img img{
    width: 100%;
    height: auto;
}

.ongoing{
    margin-top: 7.5vh;
}

/*Footer*/

footer{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

@media only screen and (max-width: 1200px) {
    body{
        font-size: 2.5vw;
    }
}

@media only screen and (max-width: 768px) {
    /* For mobile phones: */
    body{
        font-size: 3.25vw;
    }
    header{
        width: calc(100% - 2em);
        height: auto;
        position: fixed;
    }
    header .brand{
        height: auto;
        float: left;
    }
    header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        flex-direction: column;
        align-content: flex-end;
        align-items: flex-end;
        line-height: 1.5em;
    }
    header nav > *{
        width: auto;
        padding-left: 0.75em;
    }
    main{
        width: 100%;
        height: 100%;
        margin-left: 0;
        padding-top: 0;
    }
    main section{
        min-height: 100vh;
        display: flex;
        flex-wrap: wrap;
        align-content: center;
    }

    /*Services*/
    #services ol li span{
        min-width: max(8rem, 8vw);
        padding-left: 1vw;
    }
    
    /*Education*/
    .year{
        min-width: max(8rem, 8vw);
    }
}