@font-face {
	font-family: DIN;
	font-weight: 600;
	src: url('fonts/DINMedium.ttf');
}
@font-face {
	font-family: DIN;
	font-weight: 700;
	src: url('fonts/DINBold.ttf');
}

body.blapp {
	margin: 0;
	--bg: #888;
	background: var(--bg);
	color: #fff;
	font-family: Fira Sans, sans-serif;
}

a {
	color: #334db5;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

body.full {
	--gap: 60px;
}

body.full .logo {
	display: table;
	float: left;
}
body.full .logo div {
	display: table;
	padding: 0 20px 20px 0;
}
body.full .logo .level-1 {background: #6e78a2}
body.full .logo .level-2 {background: #4657a8}
body.full .logo .level-3 {background: #2d37bc}
body.full .logo .inmost  {background: #001dd6; padding: 20px;}

body.compact .logo {
	position: fixed;
	left: 6px;
	bottom: 6px;
	z-index: -1;
}


.logo h1 {
	position: absolute;
	text-align: right;
	font-weight: 400;
	color: #fff;
	/*background: #155;*/
	margin-top: -3px;
	margin-left: 113px;
	width: 80px;
	font-size: 15.5px;

	line-height: 18px;
}

body.full main {
	float: left;
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap);
	width: calc( 2*504px + var(--gap) ); /* 2 oszlop */
	margin: var(--gap);
	margin-left: calc( 293px + var(--gap) ) 
}
@media (min-width: 1481px) {
	.logo {
		position: fixed;
	}
}

body.compact main {
	width: 100%;
	max-width: 100%;
	justify-content: space-evenly;
	padding-bottom: 45px; /* row: padding-top */
}
@media (max-width: 1480px) {
	body.full main {
		width: 504px; /* 1 oszlop */
	}
}
@media (max-width: 931px) {
	body.full main {
		max-width: 100%;
		width: auto;
		justify-content: center;
	}
}
@media (max-width: 640px) {
	body.full {
		--gap: 30px;
	}
}
@media (max-width: 611px) {
	body.full main {
		margin-left: 0;
		margin-right: 0;
	}
	section, section > a {
		max-width: calc( 100% - 2*30px );
		width: auto;
	}
}
@media (max-width: 578px) {
	body h2 small {
		display: block;
		font-size: 48%;
	}
}
@media (max-width: 564px) {
	section, section > a {
		width: auto;
	}
}

section {
	display: block;
	text-decoration: none;
	width: 504px;
	box-sizing: border-box;
	padding: 16px;
	background: #7e8fc2;
	overflow: hidden;
}

section.allow:hover {
	background: #986b68;
}

section > a {
	display: block;
	width: 504px;
	height: 200px;
	position: absolute;
	margin: -16px;
	z-index: 1;
	opacity: .01	
}
body.compact .row {
	display: flex;
	justify-content: space-evenly;
	padding-top: 45px; /* main: padding-bottom */
}
body.compact main a {
	--border: 5px;
	position: relative;
	z-index: 0;
	text-decoration: none;
}

h2 {
	color: #fff;
	text-transform: uppercase;
	font-family: DIN;
	font-weight: 700;
}
body.full h2 {
	margin: -3px 0 17px;
	font-size: 27px;
}
body.compact main a > * {
	border: solid var(--border) var(--bg);
	margin: calc(-1 * var(--border));
}
body.compact main a img {
	display: block;
	margin-bottom: calc(35px - var(--border));
}
body.compact main a h2 {
	position: absolute;
	max-width: 140px;
	white-space: nowrap;
	margin-top: calc(-27px - var(--border));
	font-size: 22px;
	line-height: 1em;
	background: #7e8fc2;
	padding: 2px 4px 4px;
}
body.compact a:hover h2 {
	background: #986b68;
}


h2 small {
	font-size: 20px;
	font-weight: 600;
}
h2 lower {
	text-transform: none;
}

section.allow:hover p {
	color: #6c3f42;
}

section img {
	float: left;
	margin-right: 15px;
}
img.default {
	background: #00000040;
}
@media (max-width: 611px) {
	section img {
		margin-right: 6px;
	}
}

@media (min-width: 579px) {
	h3, p {
		font-size: 14.9px;
		line-height: 21px;
		font-weight: 400;
	}
}	
@media (max-width: 578px) {
	h3, p {
		font-size: 12.3px;
		line-height: 17px;
		font-weight: 400;
	}
}
h3 {
	margin: -4px 0 0;
	color: #000;
}
@media (max-width: 480px) {
	h3 {
		margin-top: -3px;
	}
}

p {
	margin: 0;
	color: #3f5a8b;
}

.updated {
	color: #f3a284;
	padding: 3px 4px;
	float: right;
	position: relative;
	z-index: 2;
	left: 16px;
	top: -16px;
	font-size: 14px;
	font-weight: 500;
	text-align: right;
}
.updated .new {
	background: #f3a284;
	display: inline-block;
	color: #7e8fc2;
	padding: 1px 2px 0 1px;
	margin-top: 1px;
	font-family: DIN;
	font-weight: 700;
}
section.allow:hover .updated .new {
	color: #986b68;
}

.updated small {
	font-size: 11px;
}

p a {
	position: relative;
	z-index: 2;
}
p a.go:before {
	content: '\203A\203A';
	display: inline-block;
	margin-right: 3px;
	font-size: 111%;
	line-height: .8em;
}

section.reject {background: #999}
section.reject h2 {color: #ddd}
section.reject h3 {color: #444}
section.reject p {color: #666}
section.reject img {filter: grayscale(.25)}

a.disabled {
	cursor: not-allowed;
}


.container {
	min-height: calc(100% - 37px);
}

.container::after {
	clear: left;
	content: '';
	display: block;
}
footer {
	height: 41px;
	text-align: center;
}
footer .image {
	margin: 0 auto;
	background: url(image/33n3.png) top no-repeat;
	width: 85px;
	height: 31px;
}
footer .image:hover {
	background-position: bottom;
}


/* MOBILE ONLY */

@media (max-width: 400px) {
	header {
		display: table;
		width: 100%;
	}
	body.full header .logo,
	body.full header .mode-cell {
		display: table-cell;
	}
	body.full header .logo {
		float: none;
		min-width: 1px;
	}
}

.mode-cell {
	width: 100%;
	vertical-align: top;
}

#mode-icon {
	--icon-width: 39px;
	width: var(--icon-width);
	text-align: center;
	display: inline-block;
	height: 56px;
	/*background: #531;*/
}
#mode-icon div {
	border: solid #f3a284;
	border-width: 0 7px 7px 0;
	display: inline-block;
	padding: 10px;
}
#mode-icon:hover div {
	border-color: #fff;
}
#mode-icon.collapse div:first-child {
	transform: rotate(45deg);
	margin-top: -8px;
}

#mode-icon.expand {
	position: fixed;
	right: 15px;
	bottom: 15px;
}
#mode-icon.collapse div:last-child {
	transform: rotate(-135deg);
	margin-top: 18px;
}
#mode-icon.expand div:first-child {
	transform: rotate(-135deg);
	margin-top: 6px;
}

#mode-icon.expand div:last-child {
	transform: rotate(45deg);
	margin-top: -10px;
}
