* {
    margin: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

#wrapper {
    margin: 1rem auto;
    border: 1px #231F20 solid;
    max-width: 520px;
    color: #fff;
    position: relative;
    background-color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    line-height: 30px;
    font-size: 20px;
    overflow: hidden;
}

h1 {
    margin: 0 0 12px;
    padding: 0 0 14px;
    font-size: 42px;
    line-height: 46px;
    font-weight: 400;
    position: relative;
}

h1:before {
    content: '';
    background: #fff;
    height: 3px;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
}

h1:nth-of-type(2):before {
    display: none;
}

h1:last-of-type {
    margin: 0;
    padding: 0;
}

h1 span {
    display: block;
    font-size: 19px;
    line-height: 24px;
    margin: 8px 0 0;
}

h1 small {
    font-size: 19px;
    line-height: 24px;
}

h2 {
    font-size: 13px;
    line-height: 18px;
    margin: 0;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

header {
    padding: 10px;
    display: flex;
    justify-content: flex-end;
}

article {
    background: #DCE3F0;
    text-align: right;
    position: relative;
}

section:nth-of-type(1) {
    margin: 0 0 0 172px;
    background: #5075B6;
    padding: 9px 12px;
}

section:nth-of-type(2) {
    background: #16479E;
    padding: 18px 12px;
}

section:nth-of-type(3) {
    margin: 0 0 0 172px;
    background: #5075B6;
    padding: 12px;
}

article img {
    position: absolute;
    bottom: 12px;
    left: 38px;
}

footer {
    padding: 16px 5px 8px;
    text-align: center;
}

@media only screen and (max-width:519px) {
    #wrapper {
        border: none;
        font-size: 16px;
        line-height: 22px;
    }

    h1 {
        font-size: 31px;
        line-height: 40px;
    }

    h1 span,
    h1 small {
        font-size: 16px;
        line-height: 22px;
    }

    br {
        display: none;
    }

    article img {
        position: static;
        float: left;
        margin: 10px;
    }

    section:nth-of-type(1) {
        margin: 0 0 0 100px;
    }

    section:nth-of-type(3) {
        margin: 0 0 0 112px;
        padding: 10px;
        min-height: 110px;
    }
}