:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.4375rem;
    color: #231f20;
}

#wrapper {
    margin: 1rem auto;
    max-width: 560px;
    background: #fff;
    border: 1px solid #777;
}

header {
    padding: 1rem 1.25rem;
    flex-direction: row-reverse;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

article {
    padding: 0.625rem 1.25rem 15px;
    background: #e1ebf7;
}

.qrcode {
    position: relative;
    top: 56px;
}

article p {
    font-size: 19px;
}

.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

article p:nth-of-type(1) {
    margin-bottom: 6px;
}

article p:nth-of-type(3) {
    color: #007ac3;
    margin-top: 5px;
}

footer {
    background: url('./background.png') no-repeat;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    padding: 0 67px 0 22px;
}

footer p {
    font-size: 20px;
}

footer span {
    font-size: 12px;
}

footer :is(p, a) {
    color: #fff !important;
}

:is(h1, h2, strong) {
    font-weight: 700;
}

:is(h1, h2) {
    line-height: 1.2;
}

h1 {
    font-size: 22px;
    line-height: 1.125;
    margin: 0.75rem 0 15px;
    color: #007ac3;
    flex: 1 1 0;
    gap: 12px;
}

h1 strong {
    font-size: 39px;
}

h1 small {
    margin-top: 0.3125rem;
    font-weight: 400;
    font-size: 36px;
}

h2 {
    font-size: 0.8125rem;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    color: #818285;
    font-weight: 400;
    margin-top: 10px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #231f20;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

@media screen and (max-width: 560px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    article {
        padding: 1rem;
        background: #e1ebf7;
    }

    .qrcode {
        position: static;
    }

    :is(h1, h2, p) {
        hyphens: auto;
        text-wrap: pretty;
    }

    h1 {
        font-size: 24px;
        line-height: 1;
    }

    h1 strong {
        font-size: 1.25em;
    }

    h1 br {
        display: none;
    }

    h2 {
        position: static;
        text-align: center;
    }
}

@media screen and (max-width: 460px) {
    .title {
        margin: 12px 0;
    }

    article br {
        display: none;
    }

    h1 small{
        font-size: 18px;
    }

    footer {
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px 0;
    }

    footer p {
        text-align: center;
    }
}

@media screen and (max-width: 410px) {
    .title{
        flex-direction: column;
        align-items: center;
    }
    h1 {
        font-size: 20px;
        line-height: 1.25;
        text-align: center;
    }
}