@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.eot');
    src: local(''), url('../fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v30-latin-regular.woff') format('woff'), url('../fonts/roboto-v30-latin-regular.ttf') format('truetype'), url('../fonts/roboto-v30-latin-regular.svg#Roboto') format('svg');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v30-latin-700.eot');
    src: local(''), url('../fonts/roboto-v30-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-700.woff2') format('woff2'), url('../fonts/roboto-v30-latin-700.woff') format('woff'), url('../fonts/roboto-v30-latin-700.ttf') format('truetype'), url('../fonts/roboto-v30-latin-700.svg#Roboto') format('svg');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    color: #000;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

#wrapper {
    max-width: 540px;
    margin: 1rem auto;
    border: 1px solid #000;
    background-color: #fff;
    padding: 20px 20px 12px;
    position: relative;
}

header {
    display: flex;
    gap: 31px;
    align-items: flex-start;
}

header p {
    width: calc(100% - 100px);
}

article {
    padding: 20px 0 0;
}

.content {
    padding-right: 160px;
    margin-top: 20px;
}

footer {
    position: absolute;
    bottom: 14px;
    right: 20px;
}

p:not(:first-of-type) {
    margin-top: 10px;
}

h1 {
    font-size: 24px;
    line-height: 27px;
    margin: 0;
    color: #0066b3;
}

:is(h1, h1+p) {
    text-align: left;
}

img {
    max-width: 100%;
    display: block;
}

:is(h1, h2, strong) {
    font-weight: 700;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.link {
    text-decoration: underline !important;
    color: #00F !important
}

@media only screen and (max-width:539px) {
    #wrapper {
        border: none;
        margin: 0;
        padding: 16px;
    }

    p {
        hyphens: auto;
        text-wrap: pretty
    }

    p span {
        white-space: nowrap;
    }

    footer {
        bottom: 16px;
        right: 16px
    }
}

@media only screen and (max-width:500px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 16px
    }

    header p {
        text-align: center;
        width: 100%;
    }

    .content {
        padding-right: 0
    }

    footer {
        display: flex;
        position: static;
        justify-content: center;
        padding-top: 20px
    } }