* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.125rem;
    line-height: 1.3;
    color: #231f20;
}

#wrapper {
    margin: 1rem auto;
    border: 0.25rem #8ac34c solid;
    max-width: 516px;
    position: relative;
    padding: 1rem 0.625rem 10px;
    background: #FFF;
    overflow: hidden;
}

header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0 0 0.625rem 0.625rem;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -1.25rem;
}

h1 {
    margin: 0 0 0.625rem;
    font-size: 23px;
    text-align: center;
}

h2 {
    font-size: 1.6875rem;
    line-height: 1.2;
    text-align: center;
}

p:not(footer p) {
    margin-bottom: 8px;
    text-align: justify;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #231f20;
    text-decoration: none;
    white-space: nowrap;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

@media only screen and (max-width:514px) {
    body {
        font-size: 16px;
    }

    #wrapper {
        border: none;
        margin: 0;
        padding: 1rem;
    }

    :is(header, footer) {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    footer {
        margin-top: 0;
    }

    footer p {
        text-align: center;
    }

    p:not(footer p) {
        text-align: left;
    }

    .hide {
        display: none;
    }

    p span {
        white-space: nowrap;
    }
}