:root {
	--head-color: #7A93AC;
	--nav-hover-color: #dddddd;
	/*--head-background: #E31E24;*/
	--head-background: #171A21;
	--main-background-color: white;
	--main-background-url: url('img_int/background2.jpeg');
	--main-background: #617073;
	--h1-color: #92BCEA;
	--anchor-color:  #92BCEA;
}

* {	
	font-family: "Open Sans", sans-serif;	
}

.center {
	text-align: center;
}
.right {
	text-align: right;
}
.bold {
	font-weight: bold;
}

.small {
	font-size: 90%;
}

.italic {
	font-style: italic;
}

.black {
	color: black;
}

body {
	/*background: var(--main-background-color) var(--main-background-url) no-repeat fixed center;*/
	background: var(--main-background);
	background-size: 100% auto;
	padding: 0;
	margin: 0;
}


header {
	background: var(--head-background);
	color: var(--head-color);
	padding: 0.25rem 0.5rem 0.5rem 0.5rem;
	text-align: center;
	position: sticky;
	top: 0;
	margin: 0;
	height: 55px;
	z-index: 100;
}
header img {
	width: auto;
	height: 50px;
	margin: 0.25rem 1rem 0.5rem 1rem;
}
header img.floatLeft {
	float: left;
}

.logoTopoz {
	max-height: 50px;
	max-width: 200px;
}


#menu-icon {
  display: none;
  float: right;
  font-size: 15px;
  color: white;
  cursor: pointer;
  padding: 5px;
}

nav ul {
	list-style: none;
	padding: 0;
}
nav ul li {
	display: inline;
	margin: 0 0.5rem;	
	padding: 0.25rem 0.5rem;
	color: var(--head-color);
}
header a,
footer a {
  color: var(--anchor-color);
  text-decoration: none;
  cursor: pointer;  
}

nav ul li a {
	text-transform: uppercase;
}

header a:hover,
footer a:hover,
main a:hover {
  color: var(--nav-hover-color);/* !important;*/
  text-decoration: underline;
}
header a:visited,
footer a:visited {
  color: var(--anchor-color);
  text-decoration: none;
}

footer {
  font-size: 100%;
	background-color: var(--head-background);
	color: var(--head-color);
	text-align: left;
	padding: 0.25rem 1rem;
	position: fixed;
	width: calc(100% - 2em);
	bottom: 0;
	text-align: center;
	z-index: 100;
}

main {
  max-width: 90%;	
	width: 1200px;
	min-height: 100vh;
  overflow: auto;
	background: rgba(0,0,0,0.35);
	color: white;	
	padding-left: 2em;
	padding-right: 2em;
	padding-bottom: 5em;	
	margin: 0 auto;
	text-align: justify;
}

main h1,
main h2 {
	text-transform: uppercase;	
}

main h1 {
	color: var(--h1-color);
	text-align: left;
}

main a,
main a:visited {
  color: #ddd;
  text-decoration: none;
  cursor: pointer;  
}

section {	
	padding: 1em;	
	min-height: 5em;
}

section.floatLeft {
	display: block;
	width: auto;
	min-width: 300px;
	min-height: 8rem;
	float: left;
	margin: 1rem;
	border: solid 1px #666;
	border-radius: 1rem;
}

header div.logos {
	position: absolute;
	right: 5px;
	top: 5px;
}
header div.logos img {
	width: 25px;
	height: 25px;
	margin: 2px;
}

img.productImage,
iframe.mapa {
	float: right;
	max-width: calc(30% - 3em);
	max-height: calc(30% - 3em);
	margin: 1.5em;
}

iframe.mapa {
	border: solid 2px white;	
	border-radius: 1em;	
	max-width: 50%;
}

#slideshow {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
  float: right; 
  width: calc(30vw - 1em);
  height: calc(30vw - 1em);
  margin: 0 1em 1em 1em; /* mezery kolem obrázku */
  position: relative;
	overflow: hidden;
}

#slideshow div {
	max-width: calc(100% - 2em);
  height: auto;  
	text-align: center;	
	position: absolute;	 
	color: var(--head-color);
	font-size: 80%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
#slideshow div a {
	color: #999;/*var(--head-color);*/
}
#slideshow img {
	max-width: 100%;
  height: auto;
	display: block;
}
#slideshow div.active {
  opacity: 1;
	z-index: 10;
}


div.clearBoth {
	clear: both;
}

div.gallery {
	min-width: 90%;
	/*height: 110px;*/
	overflow-x: auto;
	overflow-y: hidden;
	margin-top: 2em;	
}

div.gallery div img {
	max-width: 100%;
	max-height: 100%;
	margin: auto;	
	object-fit: cover;	
}

div.gallery div {
	width: 100px;
	height: 100px;
	border: solid 2px var(--head-background);
	background-color: white;
	cursor: pointer;
	margin: 0.5em;
	float: left;
	justify-content: center;
	align-items: center;
	text-align: center;
	display: flex;
	border-radius: 1em;
	overflow: hidden;
}
div.gallery div:hover {	
	border-color: red;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);

}

.lightbox img {
    margin: 2% auto;
    display: block;
    width: auto;
    height: auto;
    max-height: 90%;
    max-width: 90%;
		object-fit: cover;
		border: solid 2px white;
		background: white;		
}

#lightbox-text {
	width: 100%;
	position: absolute;
	bottom: 20px;	
	color: white;	
	text-align: center;	
}

.close {
    color: white;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
		background: rgba(0,0,0,0.5);
		width: 60px;
		height: 60px;		
		overflow: hidden;
		text-align: center;		
}

div.rozcestnik div {
	border: solid 1px white;
	box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
	width: calc(50% - 5px - 1em);
	height: 350px;
	cursor: pointer;
	margin: 0.5em;
	float: left;
	justify-content: center;
	align-items: center;
	text-align: center;
	display: flex;
	border-radius: 1em;
	overflow: hidden;
	font-size: 120%;
}
div.rozcestnik div:hover {
	border-color: var(--h1-color);
	background-color: rgba(255,255,255,0.3);
}
div.rozcestnik div div {
	border: none;
	box-shadow: none;
	float: none;
	display: initial;
	height: calc(100% - 2em);
	width: calc(100% - 2em);
}
div.rozcestnik div:hover div:hover,
div.rozcestnik div:hover div,
div.rozcestnik div div:hover {
	background: none;
}

div.rozcestnik div div img {	
	max-height: calc(100% - 2em);
	float: none;
}

img.floatRight {
	float: right;
	margin: 0.5em 0.5em 0.5em 1em;
	max-width: 150px;
}

img.floatLeft {
	float: left;
	margin: 0.5em 1em 0.5em 0.5em;
	max-width: 150px;
}

table.prehled {
	width: 100%;
}
table.prehled thead {
	/*position: sticky; 	*/
}
table.prehled thead th {
	text-align: center;
	background-color: silver;
	font-weight: normal;	
	font-size: 80%;	
}
table.prehled tbody:hover tr td {
	background-color: rgba(0,0,0,0.2);
}
table.prehled th,
table.prehled td {
	border: solid 1px silver;	
	color: black;
}

table.prehled tbody:nth-child(even) {
	background-color: rgb(240,240,240);
}

img.img50 {
	max-width: 50px;
	max-height: 50px;
}


div.motory {
	min-height: 130px;
}

div.ikonaProduktu {
	width: 110px; 
	height: 110px; 
	padding: 0.5em; 
	float: left; 
	margin: 0.5em;
	justify-content: center;
	align-items: center;
	text-align: center;
	display: flex;			
	cursor: pointer;
}
div.ikonaProduktu {
	border-radius: 1em; 
	border: solid 1px #999999;
}
div.ikonaProduktu:hover {
	border-color: var(--h1-color);
	background-color: rgba(255,255,255,0.3);
}
div.motory div {
	width: 110px; 
	height: 110px; 
	padding: 0.5em; 	
	margin: 0.5em;
	justify-content: center;
	align-items: center;
	text-align: center;
	display: flex;			
	cursor: pointer;	
	float: left;	
}

div.motory div div.motor {
	display: initial;
	float: none;
	font-size: 70%;
}

div.motory div img {
	float: none; 
	max-width: calc(100% - 5px); 
	max-height: calc(100% - 5px);
	display: block;
}

.galerie {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 150px;
  cursor: pointer;
  transition: transform 0.2s;
}

.thumbnail:hover {
  transform: scale(1.05);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s forwards;
}

#overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px #fff;
  transform: scale(0.8);
  opacity: 0;
  animation: zoomIn 0.3s forwards;
}

#imageTitle {
	color: yellow;
	text-align: center;
	font-size: 1.5rem;
	width: 100%;
	bottom: 2rem;
	z-index: 1001;
	left: 0;
	right: 0;
	border: solid 1px gray;
	height: auto;
	position: absolute;
	padding: 5px;
	background-color: rgba(0,0,0,0.5);
}

#close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

ul.drobecky {
  list-style: none;
  padding: 0.5em 0.25rem;
  background-color: rgba(138,138,138,0.75);	
}

ul.drobecky li {
  display: inline;  
	font-size: 80%;
	text-transform: uppercase;
	color: #ccc;
	padding-right: 0.25rem;
	margin: 0.25rem;
}

ul.drobecky li + li:before {
  content: "/ ";
  color: #ccc;
	padding-right: 0.25rem;
}

ul.drobecky li a {
  color: #ccc;
  text-decoration: none;
}

ul.drobecky li a:hover {
	/*color: var(--nav-hover-color);*/
  text-decoration: underline;
}

/* Animace */
@keyframes fadeIn {
  to {
    background: rgba(0,0,0,0.8);
  }
}

@keyframes zoomIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}




@media (max-width: 800px) {	

	iframe,
	iframe.mapa {
		width: calc(100% - 2rem);
		margin: 1rem;
		float: none;
		max-width: 100%;		
	}	
	
	section.floatLeft {
		float: none;
		width: calc(100% - 4rem);
		padding: 1rem;
		min-width: 50%;
		max-width: 100%;
	}

	main h1 {		
		font-size: 110%;
		text-align: center;
	}
	
	#menu-icon {
    display: block;
		font-size: 30px;
  }

  #menu-list {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 40px;
    right: 0;
    background-color: #555555;
    width: 50%;
  }
	
	nav {
		padding: 0;
	}
	nav ul {
		margin-top: 0.25px;
	}
	nav ul li {
  	display: block;
		margin: 0;
		padding: 0.5em;
		font-size: 100%;		
  }
	nav a {
		color: #ccc !important;		
	}	
	
	main {
		padding: 1em;
		padding-bottom: 7em;
		width: calc(100% - 2em);
	}
	
	header {	
		padding: 0 0 0.5rem 0;
	}
	
	header div.logos {
		display: none;
	}
	
	section {	
		padding: 0.25em;	
		min-height: 3em;
	}
	
	td[data-column='urceni'] {
		font-size: 50%;
	}
	
	img.productImage {
		float: none;
		left: 50%;
		right: 50%;
		/*margin-left: 10%;
		margin-right: 10%;*/
		max-width: 80%;		
	}
	
	#slideshow {
		margin: 0;
		padding: 0;
		float: none;
		width: calc(100vw - 2em);
		height: calc(100vw - 2em);
	}
	
	#slideshow div {
		max-width: 90%;
		margin: 0;
		padding: 0;
	}
	
	#slideshow div img.productImage {
		float: left;
		max-width: 100%;	
		margin: 0;		
	}
	
	#imageTitle {
		font-size: 1rem;
	}
	
	div.rozcestnik div {
		padding: 0;
		margin: 1em;
		width: calc(100% - 2em);		
		max-height: 40%;
	}
	div.rozcestnik div div {		
		height: calc(100% - 0.5em);
		width: calc(100% - 0.5em);
		padding: 0;
		margin: auto;
		font-size: 80%;
	}
	
	div.rozcestnik div div img {	
		max-height: auto;		
		max-width: calc(100% - 1em);
		margin: 0;
	}
	
	section.prehled_parametru {
		display: none;
	}
	
	canvas.rozmery {
		max-width: calc(100% - 10px);
	}

}