@charset "utf-8";
:root {
    font-size: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
}
html {
    min-height: 100%;
}
body {
    color: #3F3E3C;
    font: 400 1em/1.5em Arial, sans-serif;
}
#wrapper {
    position: relative;
    max-width: 600px;
    margin: 1rem auto;
    border: solid 1px #000;
    background: url('../images/bg2.jpg') bottom left no-repeat, url('../images/bg1.jpg') top left no-repeat;
    overflow: hidden;
    padding: 2rem;
}
p {
    padding-bottom: 0.5rem;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
h1 {
    margin: 0 0 0.25rem;
    font-size: 1.0625em;
    line-height: 1.1em;
}
h2 {
    font-size: 1.125em;
    line-height: 1.3em;
    text-align: center;
    margin-top: 1rem;
}
.yellow {
    color: #EEBE2B;
}
.red {
    color: #F61855;
}
.blue {
    color: #0B7DB7;
}
.banner {
    opacity: 0;
}
header p {
    color: #fff;
    transform: rotate(-3deg);
    font-size: 1.0625em;
    line-height: 1.3;
    padding: 0 0.75rem;
}
figcaption {
    text-transform: uppercase;
    font-family: cursive;
    line-height: 1;
    text-align: center;
    transform: skew(-3deg, -9deg);
    margin-top: 0.75rem;
}

.big {
    font-size: 1.5em;
    letter-spacing: 4px;
    margin-left: 1.5rem;
}
.flex {
    display: flex;
    gap: 1rem 1rem;
    align-items: flex-end;
    margin: 1rem 0;
}

.flex > p {
    padding: 0;
    font-size: 1.125em;
    line-height: 1.36;
}
.flex div {
    flex: 1;
}
figure {
    display: flex;
    gap: 3.25rem;
    position: absolute;
    bottom: 2.75rem;
    right: 2.375rem;
}
.bg {
    color: #fff;
    font-size: 1.125em;
    line-height: 1.3;
    padding: 0.125rem 0 0.9375rem 0.75rem;
}

.bg img {
    vertical-align: -12px;
    margin-right: 0.5rem;
}
@media only screen and (max-width:799px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        background: url('../images/bgres.jpg') top left;
        padding: 1rem;
    }
    p {
        -moz-hyphens: auto;
        -o-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
    p :is(span, a) {
        display: inline-block;
    }
    .banner {
        opacity: 1;
        margin: 1rem -1rem;
    }
    header p {
        transform: none;
    }
    header p, .bg {
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
        background: #39393B;
    }
    .flex {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    figure {
        position: static;
        align-items: center;
        margin-bottom: 1rem;
        gap: 1rem;
        justify-content: center;
    }
    figcaption {
        padding: 0.5rem;
        background: #FFC012;
        transform: none;
        margin: 0;
    }
    .logo {
        display: flex;
        justify-content: center;
    }
}
@media only screen and (max-width:480px) {
    body {
        font-size: 1em;
        line-height: 1.3;
    }
}