﻿@font-face {
	font-display: swap;
	font-family: 'Roboto Condensed';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/roboto-condensed-v25-latin-regular.eot');
	src: url('../fonts/roboto-condensed-v25-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-condensed-v25-latin-regular.woff2') format('woff2'), url('../fonts/roboto-condensed-v25-latin-regular.woff') format('woff'), url('../fonts/roboto-condensed-v25-latin-regular.ttf') format('truetype'), url('../fonts/roboto-condensed-v25-latin-regular.svg#RobotoCondensed') format('svg');
}

@font-face {
	font-display: swap;
	font-family: 'Roboto Condensed';
	font-style: normal;
	font-weight: 700;
	src: url('../fonts/roboto-condensed-v25-latin-700.eot');
	src: url('../fonts/roboto-condensed-v25-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-condensed-v25-latin-700.woff2') format('woff2'), url('../fonts/roboto-condensed-v25-latin-700.woff') format('woff'), url('../fonts/roboto-condensed-v25-latin-700.ttf') format('truetype'), url('../fonts/roboto-condensed-v25-latin-700.svg#RobotoCondensed') format('svg');
}

:root {
	font-size: 16px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	min-height: 100%;
}

body {
	font-family: 'Roboto Condensed', Arial, sans-serif;
	font-size: 15px;
	line-height: 19px;
	color: #242021;
	font-weight: 400;
}

#wrapper {
	max-width: 990px;
	margin: 1rem auto;
	border: solid thin #242021;
	overflow: hidden;
	position: relative;
}

strong {
	font-weight: 700;
}

header {
	display: flex;
	justify-content: space-between;
	background: #dcddde;
}

header div {
	flex: 1 1 0;
	padding: 16px 20px;
}

header div p {
	text-align: justify;
	hyphens: auto;
}

@-webkit-keyframes slidy {
	0% {
		left: 0%;
	}

	20% {
		left: 0%;
	}

	25% {
		left: -100%;
	}

	45% {
		left: -100%;
	}

	50% {
		left: -200%;
	}

	70% {
		left: -200%;
	}

	75% {
		left: -300%;
	}

	95% {
		left: -300%;
	}

	100% {
		left: -400%;
	}

}

@keyframes slidy {
	0% {
		left: 0%;
	}

	20% {
		left: 0%;
	}

	25% {
		left: -100%;
	}

	45% {
		left: -100%;
	}

	50% {
		left: -200%;
	}

	70% {
		left: -200%;
	}

	75% {
		left: -300%;
	}

	95% {
		left: -300%;
	}

	100% {
		left: -400%;
	}

}

header section {
	overflow: hidden;
	width: 660px;
}

header section figure img {
	width: 20%;
	float: left;
}

header section figure {
	position: relative;
	width: 500%;
	-webkit-animation-duration: 14s;
	-webkit-animation-name: slidy;
	-webkit-animation-delay: 5s;
	-webkit-animation-iteration-count: infinite;
	animation: 14s slidy infinite;
}

article {
	padding: 0 20px;
}

.flexbox {
	display: flex;
	grid-gap: 20px;
}

footer {
	padding: 0 16px 16px;
}

footer p {
	text-align: center;
}

h1 {
	font-size: 39px;
	margin: -83px 0 16px;
	line-height: 1.2;
	font-weight: 700;
	position: relative;
}

h1 span {
	font-size: 84px;
	display: block;
	color: #F39E1C;
	text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 1px 1px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

h2 {
	font-size: 24px;
	margin: 16px 0;
	line-height: 28px;
	font-weight: 700;
	position: relative;
	padding-left: 44px;
}

h2 img {
	position: absolute;
	top: -10px;
	left: 0;
}

h3 {
	font-size: 22px;
	margin: 25px 0 2px;
	line-height: 26px;
	font-weight: 700;
	text-align: center;
}

img {
	max-width: 100%;
	vertical-align: bottom;
}

p:not(:last-child) {
	margin-bottom: 16px;
}

:is(a:link, a:visited, a:hover, a:active) {
	color: #242021;
	text-decoration: none;
	white-space: nowrap;
}

ul {
	margin: 0 0 20px 43px;
	list-style: none;
}

ul li {
	padding-left: 25px;
	background: url(../images/iconlist.jpg) left 2px no-repeat;
}

@media screen and (max-width:989px) {
	#wrapper {
		border: none;
		margin: 0;
	}

	header {
		flex-direction: column;
		align-items: center;
	}

	header section {
		width: 100%;
	}

	:is(p, ul) {
		hyphens: auto;
		text-wrap: pretty;
	}

	header div p {
		text-align: left;
	}

	header div {
		flex-direction: column;
		align-items: center;
		display: flex;
		gap: 10px;
	}

	h1 {
		margin-top: 16px;
		text-align: center;
	}

	p span {
		white-space: nowrap;
	}
}

@media screen and (max-width:685px) {
	.flexbox {
		flex-direction: column;
		gap:0;
	}

	h1 span {
		font-size: 65px;
	}
}