﻿@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v32-latin-regular.eot');
    src: url('../fonts/roboto-v32-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v32-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v32-latin-regular.woff') format('woff'), url('../fonts/roboto-v32-latin-regular.ttf') format('truetype'), url('../fonts/roboto-v32-latin-regular.svg#Roboto') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v32-latin-700.eot');
    src: url('../fonts/roboto-v32-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v32-latin-700.woff2') format('woff2'), url('../fonts/roboto-v32-latin-700.woff') format('woff'), url('../fonts/roboto-v32-latin-700.ttf') format('truetype'), url('../fonts/roboto-v32-latin-700.svg#Roboto') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #231f20;
    line-height: 1.4em;
    font-size: 18px;
    font-weight: 400;
}

#wrapper {
    position: relative;
    max-width: 526px;
    margin: 1rem auto;
    border: 3px solid #231f20;
    overflow: hidden;
    background-color: #fff;
    padding: 12px 16px 12px;
}

header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-end;
}

article p {
    margin: 0 0 12px;
}

footer p {
    font-weight: 700;
}

.qrcode {
    position: absolute;
    right: 0;
    bottom: 31px;
}

:is(strong, h1, h2) {
    font-weight: 700;
}

h1 {
    margin: -1px 0 12px;
    font-size: 38px;
    line-height: 1;
}

h1 small {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 400;
}

h2 {
    font-size: 18px;
    line-height: 1.4;
    flex: 1 1 0;
    font-weight: 400;
    margin-bottom: 12px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #231f20;
    white-space: nowrap;
    text-decoration: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

.right {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
}

footer {
    position: relative;
}

@media all and (max-width:526px) {
    #wrapper {
        margin: 0 auto;
        border: none;
        padding: 16px;
    }

    footer {
        padding: 60px 0 0;
    }

    :is(p, h1) {
        hyphens: auto;
        text-wrap: pretty;
    }

    span {
        white-space: nowrap;
    }

    br:not(footer br) {
        display: none;
    }
}

@media all and (max-width:480px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    footer {
        padding: 0;
    }

    footer p {
        display: block;
    }

    .qrcode {
        position: static;
        display: flex;
        justify-content: center;
        margin: 16px 0 0;
    }

    :is(h1, h2, p) {
        text-align: center;
    }

    .right {
        position: static;
    }
}