@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --white: white;
    --almost-white: #f3f3f3;
    --border-gray: #eee;
    --white-65: rgba(255, 255, 255, 0.65);
    --medium-gray: #ababab;
    --almost-black-65: rgba(34, 34, 34, 0.65);
    --almost-black: #222;
    --main-red: #F97146;

    --main-purple: #7763EF;
}




* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

    

.logo .black {
fill: var(--almost-black);
}

.logo .color {
fill: var(--main-purple);
}
img,
svg {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
}

#avatar {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
}

h1 {
    font-size: 60px;
}

h2 {
    text-align: center;
    font-weight: 400;
    font-size: 24px;
}

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    background: var(--almost-white);
    color: var(--almost-black);

    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;


}

.content>p {
    line-height: 1.5;
    padding: 40px;
}

.content {
    width: 926px;
    max-width: 100%;
    padding: 80px;
    margin-left: auto;
    margin-right: auto;
}

.photo_and_greetings {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.photo_and_greetings img {
    width: 140px;
    border-radius: 99px;
    margin-right: 30px;
}

#projects_gallery>a .logo {
    width: 290px;
    height: auto;
    margin-right: 30px;
}

#projects_gallery>* {

    display: flex;
    align-items: center;
    background: var(--white);
    padding: 40px;
    margin-top: 40px;
    align-items: stretch;
    text-decoration: none;
    color: inherit;

}

#projects_gallery>* h3 {
    margin-bottom: 12px;
}

#projects_gallery>* p {
    margin-bottom: 12px;
}

#projects_gallery .description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#projects_gallery .button {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid var(--almost-black);
    text-decoration: none;
    color: var(--almost-black);
    margin-top: 10px;
}

#projects_gallery .button:hover {
    cursor: pointer;
    background: var(--almost-black);
    color: var(--white);
}

#avatar {
    width: 114px;
    height: 114px;
    border-radius: 999px;

    margin-right: 30px;
    position: relative;
    overflow: hidden;


}

.photo {
    width: 570px;
    height: 114px;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url(/src/sam_bakker.png);
    background-position: 0 0;
    background-size: 570px 114px;
    transform: translateX(-456px);
}

#avatar:hover .photo {
    transform: translateX(0);
}

#avatar .photo {
    transition: transform .15s steps(4);
}

#avatar:hover {
    animation: .2s avatar_animation steps(4) forwards;

}

@keyframes avatar_animation {
    from {
        background-position: 114px 0;

    }

    to {
        background-position: 570px 0;
    }
}

#top_bar {
    top: 0;

    position: relative;
}

#top_bar a {
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px;
    color: var(--almost-black);
}

#top_bar a svg {
    fill: var(--almost-black);
}

#top_bar a:hover {
    color: var(--main-purple);
}

#top_bar a:hover svg {
    fill: var(--main-purple);
}

#top_bar .content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#top_bar a svg {
    margin-right: 8px;
}

body a {
    color: var(--main-purple);
}

body a:hover {
    color: var(--main-purple);
    text-decoration: none;
}

@media(max-width: 850px) {
    .photo_and_greetings {
        padding-left: 24px;
        padding-right: 24px;
    }

    .content {
        padding: 0;
    }

    #projects_gallery>* {
        flex-direction: column;
        padding: 24px;
        margin-top: 24px;
    }

    #projects_gallery>a img {
        margin-bottom: 24px;
        width: 100%;
        margin-right: 0;
    }

    .content>p {
        padding: 24px;
    }

    h2 {
        text-align: left;
        padding-left: 24px;
        padding-right: 24px;
    }

    h1 {
        font-size: 24px;
    }

    #top_bar {
        position: static;
    }

    body {
        display: block;
        font-size: 16px;
    }

    #top_bar {
        padding: 24px;
    }

    #top_bar a {
        padding-left: 0;
        padding-right: 0;
    }

    #top_bar .content {
        justify-content: space-between;
    }

}

@media(max-width: 400px) {
    #projects_gallery>a .logo {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 0;
    }
    #top_bar a span {
       display: none;
    }#top_bar .content {
        justify-content: center
    }
    #top_bar a {
        padding: 24px;
    }    #top_bar a svg {
        margin: 0;
    }#top_bar {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
    }
    #typed_h1 {
        width: 100%;
    }
    h2 {
        font-size: 18px;
    }

}

@media(max-width: 250px ) {
    .photo_and_greetings {
        flex-direction: column;
    }#avatar {
        margin-right: 0;
        margin-bottom: 24px;
    }
}


@media (prefers-color-scheme: dark) {
    :root {
        --white: #111;
        --almost-white: #202020;
        --border-gray: #2E2E2E;
        --white-65: rgba(255, 255, 255, 0.65);
        --medium-gray: #ababab;
        --almost-black-65: rgba(34, 34, 34, 0.65);
        --almost-black: white;

        --main-red: #F97146;

        --main-purple: #7763EF;
    }
    body {
        background: var(--white);
    }
    #projects_gallery > * {
        background: var(--almost-white);
    }
}