* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

#wrapper {
    max-width: 510px;
    background: #fff url(background.jpg) no-repeat left bottom;
    border: 2px solid #5a6269;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 21px;
    margin: 16px auto;
    overflow: hidden;
    position: relative;
    color: #555555;
}

h1 {
    font-size: 31px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 5px;
}

h1 small {
    font-weight: 400;
}

h1+p {
    margin-bottom: 40px;
}

h2 {
    background: #1FA84B;
    display: inline-block;
    color: #fff;
    text-align: right;
    font-size: 22px;
    padding: 8px 16px 6px 20px;
    line-height: 1.25;
    border-radius: 0 0 16px 0;
}

h2 span {
    font-weight: 400;
    display: block;
}

a {
    color: #1FA84B;
    text-decoration: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

footer {
    padding: 3px 13px 11px 0;
    display: flex;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
    justify-content: flex-end;
    gap: 16px;
    align-items: flex-end;
    color: #61696e;
    flex-direction: row-reverse;
}

header {
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-direction: row-reverse;
    padding: 16px 16px 16px 0;
    gap: 16px;
}

article {
    padding: 15px 15px 1px;
}

@media screen and (max-width: 509px) {
    #wrapper {
        border: none;
        margin: 0;
        font-size: 16px;
        line-height: 22px;
    }

    footer {
        padding: 10px 16px 12px;
    }

    h1 {
        font-size: 30px;
    }

    br {
        display: none;
    }
}

@media screen and (max-width: 450px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    h1,
    p {
        text-align: center;
    }

    h2 {
        font-size: 18px;
        line-height: 1.5;
    }
}

@media screen and (max-width: 374px) {
    h2 {
        font-size: 16px;
        padding: 8px 16px;
    }
}