﻿@font-face {
	font-display: swap;
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/open-sans-v36-latin-regular.eot');
	src: url('../fonts/open-sans-v36-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v36-latin-regular.woff2') format('woff2'), url('../fonts/open-sans-v36-latin-regular.woff') format('woff'), url('../fonts/open-sans-v36-latin-regular.ttf') format('truetype'), url('../fonts/open-sans-v36-latin-regular.svg#OpenSans') format('svg');
}

@font-face {
	font-display: swap;
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	src: url('../fonts/open-sans-v36-latin-700.eot');
	src: url('../fonts/open-sans-v36-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/open-sans-v36-latin-700.woff2') format('woff2'), url('../fonts/open-sans-v36-latin-700.woff') format('woff'), url('../fonts/open-sans-v36-latin-700.ttf') format('truetype'), url('../fonts/open-sans-v36-latin-700.svg#OpenSans') format('svg');
}

:root {
	font-size: 16px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	min-height: 100%;
}

body {
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 16px;
	line-height: 20px;
	color: #242021;
	font-weight: 400;
}

#wrapper {
	max-width: 510px;
	margin: 1rem auto;
	border: solid 2px #FCC92A;
	overflow: hidden;
	position: relative;
	background: url('../images/background.jpg') no-repeat;
	height: 739px;
}

:is(strong, h1) {
	font-weight: 700;
}

:is(header, footer img) {
	opacity: 0;
}

article {
	padding: 0 0 0 150px;
}

article figure {
	display: none;
}

article div {
	margin: 26px 0 59px -30px;
}

article div p {
	color: #fff;
	margin-left: 20px;
}

footer {
	padding: 268px 32px 0 180px;
	position: relative;
}

footer div {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

:is(.qrcode, .instagram) {
	position: absolute;
}

.qrcode {
	top: 131px;
	right: 35px;
}

.instagram {
	top: 200px;
	right: 150px;
	z-index: 1;
}

h1 {
	font-size: 19px;
	margin: 0 0 16px;
	line-height: 28px;
	color: #fff;
	background: url('../images/icon.png') left 7px no-repeat;
	padding-left: 20px;
}

h1 span {
	font-size: 13px;
	font-weight: 400;
}

img {
	max-width: 100%;
	vertical-align: bottom;
}

:is(a:link, a:visited, a:hover, a:active) {
	color: #242021;
	text-decoration: none;
	white-space: nowrap;
}

@media screen and (max-width:508px) {
	#wrapper {
		border: none;
		margin: 0;
	}

}

@media screen and (max-width:505px) {
	#wrapper {
		background: #FFCE33;
		height: auto;
	}

	:is(header, footer img) {
	    opacity: 1;
	}

	article div {
		background: url('../images/background-title.png') no-repeat;
		max-width: 290px;
		width: 100%;
		height: 165px;
		background-size: 100% 100%;
		margin: 0 auto 16px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	article div p {
		margin-left: 0;
	}
	
	article div + p {
		text-align: center;
	}

	:is(article, footer) {
		padding: 0;
	}

	article figure {
		display: block;
		margin: 16px 0 0;
	}

	footer {
		background: #FFFFFF;
		padding: 16px;
	}

	footer figure {
		display: flex;
		justify-content: center;
		align-items: flex-end;
		margin-bottom: 16px;
	}

	:is(.qrcode, .instagram) {
		position: static;
	}
}