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

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

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

    @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);
    }
}

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 print {
    body {
        font-size: 16px;
        margin: 0;
    }
}

@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;
}
