﻿@font-face {
    font-display: swap;
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/ubuntu-v20-latin-regular.eot');
    src: url('../fonts/ubuntu-v20-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/ubuntu-v20-latin-regular.woff2') format('woff2'), url('../fonts/ubuntu-v20-latin-regular.woff') format('woff'), url('../fonts/ubuntu-v20-latin-regular.ttf') format('truetype'), url('../fonts/ubuntu-v20-latin-regular.svg#Ubuntu') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/ubuntu-v20-latin-500.eot');
    src: url('../fonts/ubuntu-v20-latin-500.eot?#iefix') format('embedded-opentype'), url('../fonts/ubuntu-v20-latin-500.woff2') format('woff2'), url('../fonts/ubuntu-v20-latin-500.woff') format('woff'), url('../fonts/ubuntu-v20-latin-500.ttf') format('truetype'), url('../fonts/ubuntu-v20-latin-500.svg#Ubuntu') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/ubuntu-v20-latin-700.eot');
    src: url('../fonts/ubuntu-v20-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/ubuntu-v20-latin-700.woff2') format('woff2'), url('../fonts/ubuntu-v20-latin-700.woff') format('woff'), url('../fonts/ubuntu-v20-latin-700.ttf') format('truetype'), url('../fonts/ubuntu-v20-latin-700.svg#Ubuntu') format('svg');
}

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-size: 1rem;
    line-height: 1.2em;
    font-family: 'Ubuntu', Arial, sans-serif;
    color: #231f20;
    font-weight: 400;
}

#wrapper {
    position: relative;
    max-width: 900px;
    margin: 1rem auto;
    border: 2px solid #d7d7d7;
    overflow: hidden;
    background: #fff;
}

h1 {
    margin: 0 0 0.375rem;
    font-size: 2.625rem;
    line-height: 1.2;
    font-weight: 700;
    color: #4BA8A8;
}

h1 span {
    font-size: 1.375rem;
    line-height: 1.625rem;
    display: block;
    font-weight: 400;
    color: #231f20;
    margin: 0 0 0.375rem;
}

h1 small {
    font-size: 2.0625rem;
    line-height: 2.375rem;
    display: block;
    color: #00817D;
}

h2 {
    font-size: 1.8125rem;
    line-height: 1.3;
    font-weight: 700;
    color: #00817D;
    position: absolute;
    top: 47%;
    left: 12%;
    transform: rotate(-2deg);
}

h2 span {
    display: block;
    font-weight: 400;
}

h3 {
    font-size: 1.0625rem;
    margin: -0.25rem 0 0.875rem;
    font-weight: 700;
    line-height: 1.125rem;
    color: #fff;
}

header {
    position: relative;
}

header p:nth-of-type(1) {
    top: 6.5%;
    left: 3%;
    color: #fff;
    transform: rotate(-2deg);
    font-size: 1.375rem;
    line-height: 1.4;
    width: 53%;
}

header p:nth-of-type(2) {
    top: 25.5%;
    left: 6.5%;
    transform: rotate(-2deg);
    font-size: 1.4375rem;
    line-height: 1;
    color: #00817D;
}

header p:nth-of-type(3) {
    top: 34.6%;
    left: 12.5%;
    transform: rotate(-2deg);
    font-size: 1.4375rem;
    line-height: 1;
    color: #fff;
}

header p:nth-of-type(1) span {
    display: block;
    padding-left: 18%;
}

header p {
    margin-bottom: 0;
    position: absolute;
}

header strong {
    font-weight: 500;
}

.content {
    padding: 0.625rem;
    background: #fff;
    margin: -3rem 0 4rem 20.375rem;
    position: relative;
}

.background {
    width: 326px;
    height: 349px;
    position: absolute;
    top: -4.1875rem;
    left: -20.375rem;
    padding: 3.125rem 1rem 1rem 1.625rem;
    clip-path: polygon(0 8%, 100% 0, 94% 85%, 6% 100%, 0 58%);
    background: #00817D;
}

.background strong {
    color: #fff;
}

.background p {
    color: #fff;
    margin-bottom: 0.375rem;
}

.qrcode {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.qrcode p {
    width: calc(100% - 104px);
    text-align: justify;
    hyphens: auto;
}

footer p img {
    margin-left: 0.125rem;
    position: relative;
    top: -0.125rem;
}

footer p {
    background: #CCC;
    padding: 0.625rem 1rem 0.375rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    text-align: center;
    word-spacing: 1px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #231f20;
    text-decoration: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

strong {
    font-weight: 700;
}

@media (max-width: 900px) {
    #wrapper {
        margin: 0;
        border: none;
    }

    :is(header, figure) img {
        width: 100%;
    }

    header :is(p:nth-of-type(1), p:nth-of-type(2)) {
        font-size: 2.5vw;
    }

    header p:nth-of-type(3) {
        font-size: 2.6vw;
    }

    .content {
        padding: 1rem;
        margin: -4% 0 0 20.375rem;
    }

    .background {
        padding: 3rem 1rem 1rem;
    }

    .qrcode p {
        text-align: left;
    }

    :is(p, h1) {
        hyphens: auto;
        text-wrap: pretty;
    }

    h1 {
        text-align: center;
    }

    h2 {
        font-size: 3.2vw;
    }

    :is(a, span) {
        white-space: nowrap;
    }

    br:not(.background br) {
        display: none;
    }
}

@media (max-width: 767px) {
    .content {
        margin: 0;
    }

    .background {
        position: static;
        clip-path: none;
        width: auto;
        height: auto;
        padding: 1rem;
        margin: 1rem 0;
    }

    .background :is(h3, p, strong) {
        display: block;
        text-align: center;
    }

    .qrcode {
        align-items: center;
    }
}