@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Emoji:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
    --white: #ffffff;
    --grey1: #E0E0E0;
    --grey2: #d8dee9;
    --grey3: #6D6E71;
    --black: #000000;
    --accent1: #1F4C4C;
    --accent2: #182C4B;
    --highlight: rgba(113, 159, 148, 0.35);
    --highlight-hover: rgba(113, 159, 148, 0.55);
    --palladian: #719F94;
}

html {
    background-color: var(--grey1);
    min-width: 330px;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.5;
    max-width: 750px;
    margin: 1.5em auto;
    padding: 1em 5em 1em 5em;
    border-radius: 4px;
    background-color: var(--white);
    color: var(--black);
    font-size: 12pt;
    box-shadow: 0 0 10px var(--grey2);
}

section {
    padding: 0em;
    margin: 1em 0em 2em 0em;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 14pt;
    margin: 0em;
    color: var(--black);
    font-weight: normal;
}

a {
    color: var(--black);
    text-decoration: none;
    background-color: var(--highlight);
    border-radius: 4px;
    padding: 0em 0.2em;
    font-size: 11.5pt;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

a:hover {
    color: var(--black);
    background-color: var(--highlight-hover);
}

code {
    font-family: "IBM Plex Mono", monospace;
    background-color: var(--grey2);
    padding: 0.1em 0.3em;
    border-radius: 4px;
}

.emoji {
    font-family: 'Noto Emoji';
}

#scroller {
    height: 0.6em;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--grey3);
    --scroller-width: 100%;
}

#scroller::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--scroller-width);
    background-color: var(--accent1);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    transition: width 0.1s ease-out;
}

.footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 8pt;
    color: var(--grey3);
    margin-top: 5em;
}

.email {
    grid-column: 1;
    text-wrap: nowrap;
}

.last-update {
    grid-column: 2;
    text-align: right;
    text-wrap: nowrap;
}

.design-credit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 0.8em;
}

.design-credit a {
    background-color: transparent;
    padding: 0;
    font-size: 8pt;
    text-decoration: underline;
}

.design-credit a:hover {
    color: var(--accent2);
    background-color: transparent;
}

/* Hack because Panddoc tries to calculate the size of tables columns */
col {
    width: 0% !important;
}

@media (max-width: 840px) {
    body {
        padding: 1em;
        margin: 0em;
        box-shadow: none;
    }

    html{
        background-color: transparent;
    }
}