* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #7e7e7e;
    font-family: monospace;
}

.page {
    width: 210mm;
    height: 297mm;
    padding: 5mm;
    margin: 20px auto;
    background: white;
    color: black;
}

@media (prefers-color-scheme: dark) {
    .page {
        width: 210mm;
        height: 297mm;
        padding: 5mm;
        margin: 20px auto;
        background: black;
        color: white;
    }
    a {
        color: chartreuse;
    }
}


@media (max-width: 210mm) {
    html, body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    .page {
        width: 100%;
        height: 100%;
        margin: 0;
        overflow: auto;
    }
}

fieldset {
    padding: 2mm 3mm;
    margin-bottom: 5mm;
}

p {
    margin-bottom: 5px;
    line-height: 160%
}

li {
    list-style-type: none;
    line-height: 200%;
}

legend {
    margin-left: 10px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 120%;
    font-weight: bold;
}

.header {
    margin-bottom: 2mm;
    line-height: 200%;
    font-size: 110%;
    text-align: center;
    position: relative;
}

.qr {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background-color: white;
    width: auto;
    aspect-ratio: 1;
}

.qr img {
    width: 90%;
    height: 90%;
    margin: 5%;
}

@page {
    size: A4;
    margin: 0;
}

@media print {
    html, body {
        background: none;
        margin: 0;
    }

    .page {
        margin: 0;
        background-color: white;
        color: black;
        overflow: hidden;
    }

    .qr {
        display: block;
    }
}
