: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: 16px;
    line-height: 1.4375rem;
    color: #231f20;
}

#wrapper {
    margin: 1rem auto;
    max-width: 558px;
    background: #fff;
    border: 2px solid #231f20;
}

header {
    padding: 1rem 25px;
    flex-direction: row-reverse;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

article {
    padding: 1rem 25px 10px;
    background: #e1ebf7;
}

footer {
    background: url(background.png) no-repeat;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.font {
    font-size: 18px;
    line-height: 1.5;
}

footer p {
    font-size: 17px;
}

footer span {
    font-size: 12px;
}

footer :is(p, a) {
    color: #fff !important;
}

:is(h1, h2, strong) {
    font-weight: 700;
}

h1 {
    font-size: 20px;
    margin: 0 0 12px;
    color: #007ac3;
    line-height: 1.4;
}

h2 {
    font-size: 0.8125rem;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    color: #818285;
    font-weight: 400;
    margin-top: 10px;
    line-height: 1.2;
}

h3 {
    font-size: 26px;
    line-height: 1.4;
    margin: 8px 0 1px;
    color: #007ac3;
}

: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: 556px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    :is(h1, h2, p) {
        hyphens: auto;
        text-wrap: pretty;
    }

    article br {
        display: none;
    }

    h2 {
        position: static;
        text-align: center;
    }
}

@media screen and (max-width: 545px) {
    header {
        padding: 16px;
        flex-direction: column;
    }

    article {
        padding: 16px;
    }

    footer {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }

    footer p {
        text-align: center;
    }
}