/*
    Welcome to my online portfolio! If you're here and you're interested in working with me, hit me up:
    Jonathan Verbeek (hello@jverbeek.de)
*/

/* Basics */
:root {
    --yellow: #FFCC66;
    --gray: #B2B2B2;
    --gray-darker: #888888;
}

body {
    margin: 0;
    scroll-behavior: smooth;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    line-height: 1.4;
}

.bio>p>a {
    background-color: var(--yellow);
    color: black;
    padding: 4px;
    font-weight: bold;
}

/* Landing Page */
.landing-text-container {
    font-family: 'Playfair Display';
}

.landing-text-container>.rolling-word::-webkit-scrollbar {
    display: none;
}

.landing-text-container>h1, .landing-text-container>.rolling-word>h1 {
    font-size: 110pt;
    font-weight: 100;
    margin: 0;
    text-overflow: clip;
}

.landing-text-container>h2 {
    font-size: 64pt;
    font-weight: 100;
    margin: 0;
}

.landing-text-container>h2>span {
    background-color: var(--yellow);
    padding-left: 8px;
    padding-right: 8px;
}

.landing-text-container>.rolling-word {
    height: 196px; /* TODO */
    overflow-y: hidden;
    overflow-x: hidden;
    pointer-events: none;
    text-overflow: clip;
}

.scroll-indicator {
    background-image: url(../img/scroll.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 128px;
    height: 64px;
    position: absolute;
    bottom: 0;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: 20% 40% auto;
    column-gap: 16px;
    row-gap: 32px;
    width: 100%;
    height: 100%;
}

.grid-cell.two {
    height: 35vh;
}

.grid-cell.three {
    width: calc(100% - 32px);
}

.grid-cell.extended {
    grid-column: span 2;
}

.page-heading {
    font-family: 'Playfair Display';
    font-size: 32pt;
    font-weight: 100;
    text-align: right;
    margin-top: 0;
}

/* Work */
.work-page>.container>.row {
    margin-bottom: 45px;
}

.work-image {
    height: 100%;
    width: 100%;
    background-size: contain;
    background-image: url(https://via.placeholder.com/1280x720);
    background-repeat: no-repeat;
    background-position-x: right;
}

.work-text>h1 {
    font-family: 'Playfair Display';
    font-size: 32pt;
    font-weight: 100;
    padding-right: 8px;
    margin: 0;
    margin-bottom: 0.2em;
    width: fit-content;
}

.work-text>h1>span {
    padding-left: 8px;
    padding-right: 8px;
    background-color: var(--yellow);
}

.work-text>h2 {
    font-family: 'Roboto';
    font-weight: 800;
    color: var(--gray);
    margin: 0;
    margin-bottom: 0.2em;
    font-size: 16pt;
}

.work-text>p {
    font-family: 'Raleway';
    font-size: 14pt;
    margin: 0;
    margin-bottom: 0.2em;
    margin-right: 16px;
}

.work-links>a {
    color: var(--gray);
    font-size: 16pt;
    transition: 0.1s linear color;
}

.work-links>a:hover {
    color: var(--gray-darker);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    row-gap: 32px;
    width: 100%;
}

.skills-grid>div/*:not(:last-child)*/ {
    margin-right: 16px;
}

.skills-grid>div>h1 {
    font-family: 'Playfair Display';
    font-size: 32pt;
    font-weight: 100;
    background-color: var(--yellow);
    padding-left: 8px;
    padding-right: 8px;
    margin: 0;
    margin-bottom: 0.2em;
}

.skills-grid>div>p {
    font-family: 'Raleway';
    font-size: 14pt;
    margin: 0;
    margin-bottom: 0.2em;
}

/* Bio */
.bio {
    margin-right: 32px;
    font-family: 'raleway';
}

/* Interested */
.interested-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.yellow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 10;
    background-color: transparent;
    transition: 0.1s linear background-color;
    pointer-events: none;
}

.yellow-overlay.triggered {
    background-color: var(--yellow);
}

.paper-plane {
    background-image: url(../img/paper-plane.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
}

.interested-container>h1 {
    font-family: 'Playfair Display';
    font-size: 110pt;
    background-color: var(--yellow);
}

.interested-container>h2 {
    font-family: 'Playfair Display';
    font-size: 32pt;
    margin-top: 16px;
}

.mail {
    position: relative;
    margin-top: 16px;
}

.mail>a {
    font-family: 'Raleway';
    font-size: 24pt;
    font-weight: normal;
    color: black;
}

.mail>a:hover {
    text-decoration: none;
}

.mail>.under {
    width: 100%;
    height: 0px;
    z-index: -1;
    position: absolute;
    background-color: var(--yellow);
    top: 0;
    transition: 0.1s cubic-bezier(0.65, 0.05, 0.36, 1) height;
}

.mail:hover>.under {
    height: 100%;
}

/* Webkit Stuff */
::selection {
    background-color: var(--yellow);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #ccc;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--gray-darker);
}
