/* ===== FONTS ===== */
@font-face {
    font-family: "Roboto Local";
    src: url("../fonts/Roboto-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: block;
    unicode-range: U+0020-007F;
}

@font-face {
    font-family: "Roboto Local";
    src: url("../fonts/Roboto-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: block;
    unicode-range: U+0020-007F, U+00A9;
}

@font-face {
    font-family: "Roboto Local";
    src: url("../fonts/Roboto-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: block;
    unicode-range: U+0020-007F;
}

/* ===== CSS VARIABLES ===== */
:root {
    --dark-color: #111828;
    --light-color: #e2e8f0;
}

/* ===== HTML STYLING ===== */
::selection {
    background-color: var(--dark-color);
    color: var(--light-color);
}

html {
    min-height: fit-content;
    min-width: fit-content;
    background-color: var(--dark-color);
}

body,
body *,
nav,
nav * {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--dark-color);
    line-height: 1.25;
    font-family: "Roboto Local";
    font-feature-settings:
        "liga" 0,
        "clig" 0,
        "kern" 0;
    /*outline: 1px solid orangered;*/
}

body {
    height: fit-content;
    width: fit-content;
    margin: 0 auto;
    padding: 5mm;
    gap: 5mm;
}

main {
    height: fit-content;
    width: fit-content;
    justify-content: flex-start;
    overflow: visible;
    gap: 5mm;
}

nav {
    position: absolute;
    flex-direction: row;
    width: 21cm;
    max-width: none;
    min-width: 21cm;
    justify-content: space-between;
    padding: 2mm;
    border-radius: 16px;
    gap: 0;
    margin: 0 auto;
}

nav button {
    height: 30px;
    padding: 2mm;
    border: none;
    background-color: var(--dark-color);
    color: var(--light-color);
    border-radius: 10px;
    transition: 0.2s ease;
}

nav > a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    transition: 0.2s ease;
}

nav button:hover,
nav > a:hover {
    opacity: 0.8;
}

nav img {
    height: 30px;
    width: 40px;
    object-fit: cover;
    border-radius: 10px;
    border: solid 3px transparent;
}

#it {
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

#en {
    transform: translateX(40px);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

div {
    width: 21cm;
    max-width: none;
    min-width: 21cm;
    height: auto;
    max-height: none;
    min-height: 29.7cm;
    justify-content: flex-start;
    border-radius: 16px;
    padding: 10mm;
    background-color: var(--light-color);
    gap: 2mm;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

section {
    gap: 1mm;
}

header {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2mm;
}

article,
ul {
    gap: 0.5mm;
}

span {
    flex-direction: row;
    align-items: center;
    justify-content: left;
    gap: 2mm;
}

ul {
    padding-left: 3mm;
}

li {
    display: list-item;
}

a {
    width: fit-content;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    gap: 1mm;
    white-space: nowrap;
}

h1,
h2 {
    text-align: center;
}

h3 {
    align-items: flex-start;
    border-bottom: solid 1px var(--dark-color);
}

h4,
small,
strong,
label {
    width: fit-content;
}

p {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1mm;
}

h1 {
    font-size: 25pt;
}

h3 {
    font-size: 14pt;
}

h2,
h4 {
    font-size: 10pt;
}

p,
a,
li,
span,
strong,
label {
    font-size: 9pt;
}

small {
    font-size: 8pt;
}

p,
li {
    font-weight: 300;
}

h2 {
    font-weight: 400;
}

h1,
strong,
button {
    font-weight: 700;
}

img {
    width: 15px;
    height: 15px;
}

/* ===== PDF STYLING ===== */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    :root {
        --dark-color: #000000;
        --light-color: #ffffff;
    }

    body {
        margin: 0;
        padding: 0;
    }

    nav {
        display: none;
        box-shadow: none;
    }

    main {
        gap: 0;
    }

    div {
        border-radius: 0;
        box-shadow: none;
    }
}
