@charset "utf-8";
:root {
    font-size: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
}
html {
    min-height: 100%;
}
body {
    color: #fff;
    font: 1.25em/1.2em Arial, sans-serif;
}
#wrapper {
    position: relative;
    max-width: 570px;
    margin: 1rem auto;
    border: solid 1px #000;
    background: url('../images/bg.jpg') no-repeat top center;
    height: 441px;
    overflow: hidden;
}
h1 {
    margin: 0;
    font-size: 2.3em;
    line-height: 0.9;
}
h2 {
    font-size: 1.7em;
    line-height: 1.2em;
}
h2 span {
    text-transform: initial;
    font-size: 0.8em;
}
h3 {
    font-size: 0.875em;
    line-height: 1.15em;
    transform: rotate(-48deg);
    position: absolute;
    right: 0px;
    bottom: -96px;
}
h1, h2, h3 {
    font-weight: normal;
}
h1, h2, h3, .upper {
    text-align: center;
}
h1, h2, .upper {
    text-transform: uppercase;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
img {
    max-width: 100%;
    height: auto;
    opacity: 0;
    display: block;
}
header {
    padding: 0.75rem 1rem;
}
article {
    position: relative;
}
article p {
    position: absolute;
    top: 4.25rem;
    right: -0.5rem;
    color: #fff;
    padding: 0.75rem 2rem 0.75rem 1rem;
    border: 2px solid #fff;
    background-color: #EE1D23;
    transform: rotate(-3deg);
    line-height: 1.2em;
}
footer {
    padding: 0 1.5rem 0 1.5rem;
}
.flex {
    display: flex;
    gap: 0.3rem;
}
.right {
    display: inline-block;
    width: 145px;
    text-align: right;
}
.upper {
    padding: 3px 100px 0 0;
}
@media only screen and (max-width: 819px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        background: #0085B3;
        height: auto;
    }
    img {
        opacity: 1;
    }
    article p, h3 {
        position: static;
        padding: 1rem;
        transform: none;
        text-align: center;
    }
    article br {
        display: none;
    }
    h3 {
        background-color: #EE1D23;
    }
    footer {
        padding: 0.5rem 1.5rem;
    }
    .flex {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }
}
@media only screen and (max-width: 569px) {
    body {
        font-size: 1.125em;
    }
    h1, h2 {
        font-size: 1.6em;
        line-height: 1.2;
    }
    .right {
        width: auto;
    }
    .upper {
        padding: 0.5rem 0;
        text-align: left;
    }
}
@media only screen and (max-width: 480px) {
    body {
        font-size: 1em;
    }
}