@charset "utf-8";

:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
}

html {
    min-height: 100%;
}

body {
    font: 1em/1.3em "Segoe UI", Calibri, sans-serif;
    color: #fff;
}

#wrapper {
    position: relative;
    margin: 1rem auto;
    overflow: hidden;
    max-width: 620px;
    border: solid 1px #000;
    background: #57585A url('../images/bg.jpg') no-repeat bottom;
}

p {
    padding-bottom: 1rem;
}

h1 {
    margin: 0 0 1rem;
    font-size: 1em;
    line-height: 1.3em;
}

h1 span {
    font-weight: 400;
}


h2 {
    font-size: 1.313em;
    line-height: 1.3;
    text-transform: uppercase;
    padding-bottom: 0.7rem;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
}

header {
    padding: 1.5rem 2rem 1rem 1rem;
    background: #DF2D3A;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

figcaption {
    text-transform: uppercase;
    padding: 0.3rem 0 0;
    font-size: 1.25em;
    line-height: 1.3;
}

.flexbox {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 2rem 1rem;
}

section:last-of-type :is(p, h2) {
    text-align: right;
}

footer p {
    padding: 0 1rem 1.5rem;
}

footer span {
    padding: 0 5px;
}

img {
    max-width: 100%;
    height: auto;
}

@media only screen and (max-width:619px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        background-image: none;
    }

    br {
        display: none;
    }

    p :is(a, span) {
        display: inline-block;
    }

    section:last-of-type :is(p, h2) {
        text-align: left;
    }

}
@media only screen and (max-width:500px){
	header{
		display: flex;
		justify-content: center;
	}
	figcaption{
		padding-bottom: 0.7rem;
	}
}