﻿:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-size: 17px;
    line-height: 23px;
    font-family: 'Roboto', Arial, sans-serif;
    color: #000;
    font-weight: 400;
}

#wrapper {
    position: relative;
    max-width: 590px;
    margin: 1rem auto;
    border: 2px #231f20 solid;
    overflow: hidden;
    background: #FFF url('background.jpg') right 0 bottom 55px no-repeat;
}

header {
    padding: 1.5rem 1rem 4px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.background {
    background: #0DB3AD;
    padding: 0.5rem 1rem;
}

.background p {
    color: #fff;
    font-size: 19px;
    line-height: 1.375;
    text-align: justify;
    hyphens: auto;
}

.content {
    padding: 15px 102px 0 0;
}

.content p {
    padding: 0 1rem;
    text-align: justify;
    hyphens: auto;
}

.title {
    margin: 8px 0 16px;
    background: #F0E9E2;
    padding: 6px 1rem 16px 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

footer {
    padding: 13px 1.25rem 8px 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

:is(strong, h1, h2) {
    font-weight: 700;
}

h1 {
    font-size: 23px;
    line-height: 1.2;
    margin: 6px 0 0;
}

h1:before {
    content: url('shield.jpg');
    float: left;
    text-indent: -2.125rem;
    position: relative;
    top: 1px;
}

h1 small {
    font-size: 20px;
}

h1 span {
    display: block;
}

h2 {
    margin: 16px 0;
    font-size: 16px;
    line-height: 20px;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
}

@media all and (max-width:588px) {
    #wrapper {
        margin: 0;
        border: none;
    }

    p {
        hyphens: auto;
        text-wrap: pretty;
        text-align: left !important;
    }

    br {
        display: none;
    }

    .word {
        white-space: nowrap;
    }

    .title {
        margin: 12px 0;
    }
}

@media all and (max-width:550px) {
    #wrapper {
        background: none;
    }

    .content {
        padding: 16px 0 0;
    }

    .title {
        padding: 16px 16px 16px 50px;
    }

    footer {
        padding: 1rem;
    }
}