@font-face {
    font-family: 'Delius';
    src: URL('../fonts/Delius/Delius-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Playwrite AU SA';
    src: URL('../fonts/Playwrite_AU_SA/PlaywriteAUSA-VariableFont_wght.ttf') format('truetype');
}

/* GENERAL */
html
,body {
    margin: 0;
    padding: 0;
    border: 0;
    
    font-family: "Delius", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;

    overflow-wrap: break-word;
    word-break: break-word;
    scroll-behavior: smooth;

    background-color: #F2F2F2;
    color: #212121;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
html:has(body.modal-open),
body.modal-open {
    touch-action: none;
    -webkit-overflow-scrolling: none;
    overflow-y: hidden;
    overscroll-behavior: none;
}

*, *::after, *::before {
    box-sizing: border-box;
}

h1 {
    font-size: 1.8em;
}
h1, h2, h3, h4, h5, h6 {
    color: #1B7979;
    
    font-family: "Playwrite AU SA", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

address {
    display: inline;
}

p,
.paragraph {
    display: block;
    margin: 1em 0;
}

ul
,ol {
    padding-left: 1.5em;
}
ul {
    list-style-type: square;
}

a[href] {
    color: #8F5C1E;
    text-decoration: underline;
}
a[href]:hover {
    cursor: pointer;
    color: #CF8F4F;
}
/*
a[target="_blank"]:hover {
    cursor: alias;
}
*/
a[target="_blank"]::after {    
    content: '';
    display: inline-block;
    height: 1em;
    width: 1em;
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: url(../icons/open-in-new.svg);
    mask-image: url(../icons/open-in-new.svg);
    background-color: currentColor;
}
a[href].button {
    background-color: #8F5C1E;
    color: #F2F2F2;
}
a[href].button:hover {
    background-color: #CF8F4F;
}

button,
.button {
    color: inherit;
    padding: 1em;
    border: none;
    background-color: transparent;
    font-family: "Delius", sans-serif;
    font-size: 1em;
    transition: background-color 0.2s;
}
button:hover, 
.button:hover {
    cursor: pointer;
    background-color: #c8c8c866;
}
button.submit {
    color: #F2F2F2;
    background-color: #1B7979;
}
button.submit:hover {
    cursor: pointer;
    background-color: #2a9b9d;
}

table {
    font-size: 1em;
    text-align: left;
    border-collapse: separate;
    border-spacing: 0 0.5em;
}
table tr th,
table tr td {
    padding: 0 0.5em;
}
table tr th:first-child,
table tr td:first-child {
    padding-left: 0;
}
table tr th:last-child,
table tr td:last-child {
    padding-right: 0;
}

form {
    width: 480px;
    max-width: 100%;
}
form label {
    font-size: 0.9em;
    padding: 0.25em 0;
    display: block;
    width: fit-content;
}
form .input-container,
form .checkbox-container,
form .button-container,
form .captcha-container {
    width: 100%;
    padding: 0.25em 0;
}
form .button-container {
    margin-top: 1em;
}
form .checkbox-container {
    display: flex;
    gap: 0.5em;
    align-items: center;
}
form .checkbox-container label {
    font-size: 1em;
}
form .captcha-container {
    display: flex;
    align-items: center;
    gap: 0.5em;
}
form .captcha-container img {    
    width: 160px;
    height: 80px;
    display: block;
}
form input,
form textarea {
    display: block;
    width: 100%;
}
form textarea {
    resize: none;
}
form input,
form textarea {
    font-size: 1em;
    padding: 0.5em;
    border: 2px solid #1B7979;
    background-color: #FFFFFF;
    color: #212121;
}
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="date"],
form textarea {
    -webkit-appearance: none;
    appearance: none;
    min-height: 42px;
}
form input[type="checkbox"] {
    padding: 0;
    margin: 0;
    width: 1.5em;
    height: 1.5em;
}
form button[type="submit"] {
    color: #F2F2F2;
    background-color: #1B7979;
}
form button[type="submit"]:hover {
    cursor: pointer;
    background-color: #2a9b9d;
}

/* EXTENSIONS */
.center-container {
    margin: auto;
    text-align: center;
    padding: 2em;
}

.qr-code {
    image-rendering: pixelated; 
}

.error-color {
    color: #DD3333;
}


/* MOBILE */
@media screen and (max-width: 768px) {
    html
    ,body {
        font-size: 1.1em;
    }

    table.table-vertical tr th,
    table.table-vertical tr td {
        display: block;
    }

    form input[type="text"],
    form input[type="email"],
    form input[type="tel"],
    form input[type="date"],
    form textarea {
        min-height: 48px;
    }
}