﻿:root {
	font-size: 16px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	min-height: 100%;
}

body {
	font-family: "Roboto Condensed", sans-serif;
	font-size: 16px;
	line-height: 20px;
	color: #242021;
}

#wrapper {
	max-width: 580px;
	margin: 1rem auto;
	border: solid 2px #124AA0;
	overflow: hidden;
	position: relative;
}

header {
	padding: 16px 16px 0;
	border-top: #124AA0 35px solid;
	position: relative;
}

header img {
	position: absolute;
	top: 12px;
	right: 16px;
}

article {
	padding: 0 16px 14px;
}

article div {
	margin: 0 50px 20px 50px;
}

footer {
	padding: 8px 8px 8px 16px;
	background: #124AA0;
}

footer p {
	color: #fff;
}

h1 {
	font-size: 29px;
	margin: 16px 0;
	line-height: 32px;
	background: url('../images/icon.jpg') left 5px no-repeat;
	padding-left: 50px;
	color: #124AA0;
}

h2 {
	font-size: 16px;
	margin: 12px 0 5px;
	line-height: 20px;
}

img {
	max-width: 100%;
}

p:not(:last-child) {
	margin-bottom: 12px;
}

:is(a:link, a:visited, a:hover, a:active) {
	color: #242021;
	text-decoration: underline;
	white-space: nowrap;
}

@media screen and (max-width:578px) {
	#wrapper {
		border: none;
		margin: 0;
	}

	p {
		hyphens: auto;
		text-wrap: pretty;
	}

	span {
		white-space: nowrap;
	}

	article div {
		margin-right: 0;
	}
}

@media screen and (max-width:540px) {
	header img {
		position: static;
	}

	header {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}

	header br {
		display: none;
	}
}