
/* -------------------------------- */
/* ---------- PROMENNE ------------ */
:root {
	/* layout s 5 sloupci */ 
	--layout5_one_col_min_height: 350px; /* ridi veskere centrovani na vysku*/
	
	/* layout s 3 sloupci */ 
	--layout3_one_col_min_height: 300px; /* ridi veskere centrovani na vysku*/
	
	/* layout s 2 sloupci */ 
	--layout2_one_col_min_height: 250px; /* ridi veskere centrovani na vysku*/
	
	/* barvy */
	--light_color_DR: #D0D0D0;
	/* tmava cervena = DR */
	--dark_color_DR: #8E0000;
	--dark_background_image_DR: url("img/pozadi-cervena.jpg"); 
	/* tmava modra = DB */
	--dark_color_DB: #0014AF;
	--dark_background_image_DB: url("img/pozadi-modra.jpg");
}


body {
	font-size: 32px; /* 2em */
	margin: 0 auto;
	font-family: Calibri, sans-serif;
	background-color: var(--light_color_DR);
}

/* -------------------------------- */
/* -------------------------------- */
/* ------ VELKE OBRAZOVKY --------- */
/* ------ sirka nad 1270px -------- */
/* ------ layout s 5 sloupci ------ */
/* -------------------------------- */

/* -------------------------------- */
/* ----- MANSORY GRID LAYOUT ------ */

.grid-item, 
.hybrid-item-L5_1x1-L3_2x1 {
	float: left;
	width: 20%;
	min-width: 250px;
	text-align: left;
}

.grid-item-2x1, .grid-item-2x2 { 
	width: 40%; 
	min-width: 500px;
}

.grid-item-3x1, .grid-item-3x2{ 
	width: 60%; 
	min-width: 750px;
}

.grid-inner{
	box-sizing: border-box;
	position: relative;
	min-height: var(--layout5_one_col_min_height);
	margin: 8px;
	padding: 16px;
	/*border: 2px solid hsla(0, 0%, 0%, 0.5); /* pujde pryc */
}

.centeralign {
	text-align: center;
}

.layout5_newline {
	clear: both;
}




/* -------------------------------- */
/* ----------- OBRAZKY ------------ */

.img_icon{
	max-width: 200px;
	max-height: calc(var(--layout5_one_col_min_height) * 0.57);
}

.img_icon_wide{
	max-width: var(--layout5_one_col_min_height);
}

.img_bigtile {
	width: 100%;
	/* predpoklada se velikost obrazku 
		3x2: 1200x800px
		2x2: 800x800px
	*/
}

/* obrazek centrovan horizontalne i vertikalne na stred dlazdice */
.img_center{
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

/* obrazek centrovan horizontalne vlevo, vertikalne na stred dlazdice */
.img_leftcenter{
    position: absolute;
    margin: auto;
    left: 16px;
    top: 0;
    bottom: 0;
}

.icon_1x1_alone_big{
    max-width: 100%;
    max-height: calc(var(--layout5_one_col_min_height) * 0.8);
}






/* -------------------------------- */
/* --------- HLAVICKA ------------- */

.header2{
	font-family: Arial, sans-serif;
	height: calc(var(--layout5_one_col_min_height) * 1.045);
	color: var(--light_color_DR);
}

.header-red{
	background-image: var(--dark_background_image_DR);
}

.header-blue{
	background-image: var(--dark_background_image_DB);
}

.last-header-item,
.grid-item-header {
	float: left;
	width: 20%;
}

.grid-item-header-2x1 { 
	width: 40%;
}

.icon_1x1_alone_header{
    max-width: 120px;
    max-height: 120px;
}

h1 {
	text-align: left;
	font-size: 48px; /* 3 em */
	transition: 0.7s;
	margin-top: calc(var(--layout5_one_col_min_height) * 0.18);
	margin-bottom: 0px;
	text-transform: uppercase;
}

.h1second {
	font-family: "Arial Narrow";
	font-weight: 100;
}






/* -------------------------------- */
/* -------- JINY OBSAH------------- */
.contact > h2 {
	display: block;
}

.contact img {
	float: left;
	padding-top: 16px;
}

.contact > ul {
	margin: 20px 0 0 0;
}

.contact > ul > li {
	padding-left: 170px;
	list-style-type: none;
}






/* -------------------------------- */
/* ------------ TEXTY ------------- */

p {
	font-size: 28px; /* 1.8em */
	max-height: 1000000px; /* prevent font boosting in mobile chrome  */
}

.bigtext {
	font-size: 32px; /* 2.0em */
}

.bigtextmotto {
	font-size: 32px; /* 2.0em */
	font-family: Times New Roman;
	font-style: italic;
}

h2 {
	font-size: 40px; /* 2.5em */
	margin: 8px 0em 8px 0; /* 0.5em*/
	font-weight: normal;
	vertical-align: middle;
	line-height: normal;
	display: inline-block;
}

h2.red{
	color: var(--dark_color_DR);
}

h2.blue{
	color: var(--dark_color_DB);
}

.middle{
	font-size: 40px; /* 2.5em */
	display: inline-block;
	vertical-align: middle;
	line-height: normal;
}

.middletext {
	line-height: calc(var(--layout5_one_col_min_height) * 0.85);
}

h3 {
	font-size: 24px; /* 1.5em */
	margin: 1em 0em 1em 0;
	clear: both; /* no float */
}

.signature {
	font-size: 24px; /* 1.5em */
	font-family: Times New Roman;
}





/* -------------------------------- */
/* ----------- PATICKA ------------ */

.paticka {
	clear: both; /* no float */
	margin-top: 48px; /* 3em */
	text-align: center;
}

.paticka p {
	font-size: 20px;
    padding-top: calc(var(--layout5_one_col_min_height) * 0.2);
    padding-bottom: calc(var(--layout5_one_col_min_height) * 0.2);
	color: var(--light_color_DR);
	margin-bottom: 0;
}

.paticka-red p {
	background-image: var(--dark_background_image_DR);
}

.paticka-blue p {
	background-image: var(--dark_background_image_DB);
}

















/* -------------------------------- */
/* --------- SEZNAMY -------------- */

ul {
	margin: 16px 0 0 0;
}

.nav li {
	list-style-type: none;
}

.nav li a {
	font-size: 18px;
	line-height: 24px; /* 1.5em */
	color: black;
	text-decoration: none;
	transition: 0.5s;
}

.nav li a:hover{
	color: red;
}

.nav-bar {
	float:left;
	margin-right: 8px;
	background-color: DarkGray;
	width: 10px;
	height: 24px; /* 1.5em */
}

/* ODKAZY */
a {
	color: purple;
	text-decoration: none;
	transition: 0.7s;
}

a:visited{
	color: blue;
}

a:hover{
	color: red;
}



/* -------------------------------- */
/* -------------------------------- */
/* ------ MENSI OBRAZOVKY --------- */
/* ------ sirka 900px - 1270px ---- */
/* ------ layout s 3 sloupci ------ */
/* -------------------------------- */
/* -------------------------------- */

@media only screen and (max-width: 1270px) {
	/* --- LAYOUT --- */
	.grid-item {
		width: 33%;
	}
	.grid-item-2x1, .hybrid-item-L5_1x1-L3_2x1 { 
		width: 67%; 
	}
	.grid-item-3x1 { 
		width: 100%; 
	}
	.grid-item-3x2 { 
		width: 60%; 
		min-width: 300px;
	}
	.grid-item-2x2 { 
		width: 40%; 
		min-width: 200px;
	}
	.grid-inner{
		min-height: var(--layout3_one_col_min_height);
	}
	.layout3_newline {
		clear: both;
	}
	
	/* --- HEADER --- */
	h1 {
		font-size: 35px; /* 2.2em */
		margin-top: calc(var(--layout3_one_col_min_height) * 0.16);
	}
	.header2{
		height: calc(var(--layout3_one_col_min_height) * 1.045);
	}
	.grid-item-header-2x1 { 
		width: 40%;
	}
	.icon_1x1_alone_header{
		max-width: 90px;
		max-height: 90px;
	}
	
	.hiddenL3 {
		display: none;
	}
}

/* -------------------------------- */
/* -------------------------------- */
/* ------ MALE OBRAZOVKY ---------- */
/* ------ sirka pod 800px --------- */
/* ------ layout se 2 sloupci ----- */
/* -------------------------------- */
/* -------------------------------- */

@media only screen and (max-width: 800px) {
	/* --- LAYOUT --- */
	.grid-item, .hybrid-item-L5_1x1-L3_2x1 {
		width: 50%;
	}
	.grid-item-2x1 { 
		width: 100%; 
		min-width: 300px;
	}
	.grid-item-3x1 { 
		width: 100%; 
		min-width: 300px;
	}
	.grid-item-3x2 { 
		width: 100%; 
	}
	.grid-item-2x2 { 
		width: 100%; 
	}
	.grid-inner{
		min-height: var(--layout2_one_col_min_height);
	}
	.layout2_newline {
		clear: both;
	}
	
	/* --- HEADER --- */
	h1 {
		font-size: 32px; /* 2 em */
		margin-top: calc(var(--layout2_one_col_min_height) * 0.13);
	}
	.header2{
		height: calc(var(--layout2_one_col_min_height) * 1.045);
	}
	.icon_1x1_alone_header{
		max-width: 60px;
		max-height: 60px;
	}
	.grid-item-header {
		float: left;
		width: 25%;
	}
	.grid-item-header-2x1 { 
		width: 57%;
	}
	.last-header-item{
		width: 18%;
		height: calc(var(--layout2_one_col_min_height) * 0.5);
	}
	.last-header-item .grid-inner{
		min-height: calc(var(--layout2_one_col_min_height)/2);
	}
	
	/* -- OBRAZKY -- */
	.icon_1x1_alone_big{
		max-width: 100%;
		max-height: calc(var(--layout2_one_col_min_height) * 0.8);
	}

	.hiddenL2 {
		display: none;
	}
}

