@charset "utf-8";

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
}

html {
    min-height: 100%;
}

body {
    color: #0166B3;
    font: 1em/1.3em "Segoe UI", Arial, sans-serif;
}

#wrapper {
    position: relative;
    max-width: 800px;
    margin: 1rem auto;
    border: solid 1.5rem #002D66;
    background-color: #fff;
    overflow: hidden;
    padding: 0;
}

p {
    padding-bottom: 1rem;
}

h1 {
    margin: 0 0 0.5rem;
    font-size: 1.292em;
    line-height: 1.1;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    position: relative;
}

article {
    padding: 0 2rem;
}

article figure:first-of-type {
    position: relative;
    z-index: 1;
    margin-top: -5.3rem;
    display: inline-block;
}

article>p:first-of-type {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

article section {
    position: absolute;
    top: 25rem;
    right: 2rem;
}

article section p {
    font-size: 1.1em;
    line-height: 1.3em;
}

footer {
    padding: 3.5rem 2rem 2rem;
    display: flex;
    justify-content: flex-end;
}

@media only screen and (max-width:799px) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }

    article >p:first-of-type {
        position: static;
    }

    article {
        padding: 0 1rem;
    }

    article section {
        position: static;
    }

    article section:is(h1, p) {
        text-align: center;
    }

    footer figure:last-of-type, footer {
        position: static;
        display: flex;
        justify-content: center;
    }

    footer {
        padding: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0 1rem;
    }

    br {
        display: none;
    }

}
