@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");

@media print {
    @page :first {
        margin-top: 1em;
        margin-right: 1em;
        margin-bottom: 2em;
        margin-left: 1em;

        @top-center {
            content: "";
        }
    }

    @page {
        margin-top: 2em;
        margin-right: 1em;
        margin-bottom: 2em;
        margin-left: 1em;

        @top-center {
            font-size: 12px;
            font-weight: bold;
            content: "Jurie-Jan Botha - Resume";
        }

        @bottom-right {
            font-size: 12px;
            content: "Page " counter(page) " of " counter(pages);
        }
    }

    body {
        font-size: 12px;
    }
}

html {
    --font: 24px "Noto Sans", sans-serif;
    font: var(--font);
    height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: var(--on-surface);
    background-color: var(--surface);
    margin: 2em;
}

@media screen and (max-width: 1024px) {
    html {
        --font: 20px "Noto Sans", sans-serif;
    }
}

@media screen and (max-width: 512px) {
    html {
        --font: 16px "Noto Sans", sans-serif;
    }
}

body[x-theme-mode="dark"] {
    --surface: #000000;
    --on-surface: #ffffff;
    --secondary-surface: #333333;
}

body[x-theme-mode="light"] {
    --surface: #ffffff;
    --on-surface: #000000;
    --secondary-surface: #dddddd;
}