@font-face {
    font-family: "Fira Mono";
    src: url(../fonts/firamono-regular.ttf) format("truetype"),
    url(../fonts/firamono-regular.svg) format("svg"),
    url(../fonts/firamono-regular.woff) format("woff"),
    url(../fonts/firamono-regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fira Mono";
    src: url(../fonts/firamono-medium.ttf) format("truetype"),
    url(../fonts/firamono-medium.svg) format("svg"),
    url(../fonts/firamono-medium.woff) format("woff"),
    url(../fonts/firamono-medium.woff2) format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fira Mono";
    src: url(../fonts/firamono-bold.ttf) format("truetype"),
    url(../fonts/firamono-bold.svg) format("svg"),
    url(../fonts/firamono-bold.woff) format("woff"),
    url(../fonts/firamono-bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* dark colors */
    --background-dark: #191919;
    --text-color-dark: white;
    --secondary-text-color-dark: #bbbbbb;

    --background-light: #f2f2f2;
    --text-color-light: #3b3b3b;

    --background: var(--background-dark);
    --text-color: var(--text-color-dark);
    --secondary-text-color: var(--secondary-text-color-dark)
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0 auto;
    font-family: "Fira Mono", monospace !important;
    background-color: var(--background);
    color: var(--text-color);
    text-align: center;
    width: min(90%, 700px);
    line-height: 1.3em;
}

header img {
    width: 200px;
    border-radius: 50%;
    margin-top: 48px;
    margin-bottom: 12px;
    box-shadow: 0px 2px 8px black;
}

header h1, h3 {
    padding: 0;
    margin: 6px;
}

header h1 {
    color: #f1d98b;
    margin-bottom: 12px;
}

header span {
    font-weight: 700;
    color: var(--secondary-text-color);
}

h2 {
    margin-top: 64px;
    margin-bottom: 1.2em;
    color: dodgerblue;
}

a {
    color: var(--text-color);
}

footer {
    font-size: 0.7em;
    padding: 24px 0px;
    margin-top: 70px;
    color: #6e6e6e;
}

#projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
}

.project-cell h3 {
    margin: 0;
}

.platforms {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
    font-size: 0.9em;
    margin-top: 6px;
    margin-bottom: 16px;
    font-weight: 500;
}

.ios a {
    color: #f05137;
    text-decoration: none;
}

.android a {
    color: #3ddc84;
    text-decoration: none;
}

.web a {
    color: #00b3ff;
    text-decoration: none;
}

@media only screen and (max-width: 500px) {
    header img {
        width: 150px;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --background: var(--background-light);
        --text-color: var(--text-color-light);
    }

    header img {
        box-shadow: 0px 2px 8px gray;
    }
}