@charset "utf-8";

:root {
    font-size: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
}
html {
    min-height: 100%;
}
body {
    font: 1.25em/1.2 Calibri, Arial, sans-serif;
    color: #fff;
}
#wrapper {
    position: relative;
    margin: 1rem auto;
    overflow: hidden;
    max-width: 540px;
    border: solid 1px #000;
    background: #304A7D url('../images/bg.jpg') no-repeat top left;
}
article {
    padding: 0 2.125rem 2.75rem;
}
.green {
    padding: 2.25rem 2.5rem 2rem 2rem;
    background: #00906D;
    margin-top: -4.2rem;
    width: 253px;
    position: relative;
}
.pink {
    padding: 1.75rem 1.625rem 1.5rem;
    background: #E10D5E;
    width: 247px;
    position: absolute;
    top: 158px;
    right: 14px;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
footer p {
    text-align: right;
    font-size: 0.7em;
    line-height: 1.2;
    padding: 0;
}
footer {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    position: absolute;
    right: 2.625rem;
    bottom: 2.5rem;
}
@media only screen and (max-width: 539px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        background: #304A7D;
    }
    p a {
        display: inline-block;
    }
    article {
        padding: 1rem;
    }
    .green {
        margin: 0 0 1rem;
    }
    .green, .pink {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    .pink, footer {
        position: static;
    }
    footer {
        justify-content: center;
        padding: 0 1rem 1rem;
    }
}
@media only screen and (max-width: 400px) {
    body {
        font-size: 1.1255em;
    }
    footer br {
        display: none;
    }
    footer {
        flex-direction: column;
        align-items: center;
    }
    footer p {
        font-size: 0.9em;
        line-height: 1.2;
    }
}