/*Vychozi barvy*/
:root {
	--barva: rgb(0, 108, 225);/*#1a73e8;*/
	--barva-text: white;
	--barva-prechod: rgb(0, 81, 168);/*#104fa2;*/
	--menu-pozadi: rgb(57, 59, 60);/*rgb(20 67 129);/*rgb(110 172 255);*/
	--menu-text: white;
	--menu-prechod: rgb(134, 134, 134);/*rgb(60 145 221);*/
	--pozadi: rgb(236,244,255);/*white;/*rgb(47, 49, 54);*/
	--pozadi-text: black;
	--cervena: rgb(228, 62, 64);
	
	/*--obrazek: url("../ikony/pozadi.jpg");*/
}

* {
	font-family: "Verdana", "Arial";
	/*Firefox scrollbar*/
	scrollbar-color: var(--barva) transparent;
	scrollbar-width: thin;
}

/*Posuvnik Chrome*/
*::-webkit-scrollbar {
	width: 10px;
}

/* Pozadi */
*::-webkit-scrollbar-track {
	background: transparent;/*var(--pozadi)*/
}
 
/* Handle */
*::-webkit-scrollbar-thumb {
	background: var(--barva);/*var(--prechod);*/
}

/* Handle on hover */
*::-webkit-scrollbar-thumb:hover {
	background: rgb(118,145,90);
}

/*progress[value] {
	-webkit-appearance: none;
	appearance: none;
}*/

/*Chrome*/
progress[value]::-webkit-progress-value {
	background-color: var(--barva);
}

/*Chrome a Firefox*/
progress[value]::-webkit-progress-bar, progress {
	background-color: white;
}

/*Firefox*/
progress::-moz-progress-bar {
	background-color: var(--barva);
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background-color: var(--pozadi);
}

img {
	display: flex;
	width: 100%;
}

a {
	color: var(--pozadi-text);
	text-decoration: none;
}

.odkaz-domu {
	display: flex;
	align-items: center;
	color: var(--barva-text);
}

.video-box {
	display: flex;
	align-items: center;
	height: 200px;
}

video {
	/*max-width: 100%;*/
	width: 200px;
	max-height: 100%;
}

h1 {
	margin: 0 10px;
}

h3 {
	margin: 7px;
}

.nadpis-ikona {
	width: 35px;
}

header, footer, .prohlizec-nadpis {
	display: flex;
	align-items: center;
	padding: 5px;
	background-color: var(--barva);
	color: var(--barva-text);
}

.flex-leva {
	margin-left: auto;
}

.profil-box {
	display: flex;
	align-items: center;
	padding: 5px;
}

.profil-foto {
	width: 50px;
}

.profil-popis {
	margin-left: 10px;
	color: var(--barva-text);
}

.profil-jmeno {
	margin-bottom: 5px;
	font-weight: bold;
}

.navigace-box {
	display: flex;
	padding: 12px 10px 11px;
}

.navigace-delic {
	font-weight: bold;
	color: var(--pozadi-text);
}

.navigace-odkaz, .navigace-delic {
	padding: 5px;
}

.navigace-odkaz:hover {
	color: var(--barva-prechod);
}

section, .editor-form, #editor-text, #js-upravy {
	flex: 1;
}

#editor-text {
	resize: none;
	border: none;
	outline: none;
	padding: 5px;
	background-color: var(--form);
	color: var(--form-text);
}

form {
	display: flex;
	flex-direction: column;
	padding: 10px;
}

label {
	margin: 10px 0 3px;
}

input {
	box-sizing: border-box;
	padding: 5px;
	width: 100%;
	border: none;
	font-size: 18px;
	background-color: var(--form);
	color: var(--form-text);
}

input[type="submit"], input[type="button"] {
	margin: 10px;
	padding: 10px;
	font-weight: bold;
	background-color: var(--barva);
	color: var(--barva-text);
}

input[type="submit"]:hover, input[type="button"]:hover, .profil-box:hover, .ovladani:hover {
	background-color: var(--barva-prechod);
	cursor: pointer;
}

input:not([type="button"],[type="submit"]):focus {
	outline: 2px solid var(--menu-prechod);
	outline-offset: -1px;
}

::placeholder {
	font-style: italic;
	font-size: 14px;
}

progress {
	border: none;
	width: 100%;
	height: 30px;
}

.form-obsah {
	margin: 0 10px 10px;
	display: flex;
	flex-direction: column;
}

.form-tlacitka {
	display: flex;
}

.soubor-box {
	display: grid;
	grid-template-columns: repeat(auto-fill, 220px);
	/*display: flex;*/
	/*flex-wrap: wrap;*/
	/*flex-direction: row;*/
	justify-content: space-around;
	gap: 10px;
	padding: 10px 10px 20px;
}

.soubor {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	/*border: 1px solid black;*/
	/*width: 200px;*/
	/*margin: 5px;*/
	padding: 10px;
	gap: 10px;
}

.soubor > *, .js-obrazek {
	pointer-events: none;
}

.soubor-ikona-box, .soubor-ikona-ram {
	display: flex;
	align-items: center;
	justify-content: center;
}

.soubor-ikona-ram {
	height: 200px;
}

.soubor-ikona {
	max-height: 100%;
}

.soubor-nazev, .soubor-velikost {
	color: var(--pozadi-text);
	text-align: center;
	line-height: 1.5em;
}

.soubor-nazev {
	/*white-space: nowrap;*/
	word-break: break-word;
	height: 4.5em;
	text-overflow: ellipsis;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.frame-youtube {
	width: 200px;
	top: 30px;
}

.seznam-schovat {
	position: absolute;
}

/*Rozbalovací menu*/
.rozbalovaci {
	position: absolute;
	top: 0;
	background-color: var(--menu-pozadi);
	z-index: 2;
}

/*Prohlizec souboru*/
.prohlizec-box {
	display: flex;
	position: fixed;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	height: 100vh;
	top: 0;
	left: 0;
	z-index: 2;
}

.prohlizec-ram {
	display: flex;
	flex-direction: column;
	flex: 1;
	margin: 20px;
	background-color: var(--pozadi);
	color: var(--pozadi-text);
}

.prohlizec-okraje {
	margin: auto 20%;
}

.prohlizec-nadpis {
	padding: 0px;
}

.prohlizec-nazev {
	max-width: calc(100vw - 92px);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.prohlizec {
	display: flex;
	flex: 1;
	justify-content: center;
	overflow: hidden;
}

.js-obrazek-ram {
	display: flex;
	flex: 1;
	justify-content: center;
	align-items: center;
}

.prohlizec-obsah {
	max-width: 100%;
	max-height: calc(100vh - 113px);
	width: inherit;
}

.obrazek-sirka {
	max-width: calc(100vh - 113px);
}

.prohlizec-dalsi, .prohlizec-predchozi {
	position: fixed;
	right: 20px;
	top: 50%;
	width: 50px;
	padding: 10px;
	/*background-color: rgba(0,0,0,0.3);*/
	z-index: 1;
	cursor: pointer;
}

.prohlizec-predchozi {
	left: 20px;
}

.prohlizec-frame {
	width: 100%;
	border: none;
}

.js-zvuk {
	margin: auto;
}

.prohlizec-zavrit {
	padding: 9px;
	margin-left: auto;
	width: 20px;
}

.prohlizec-zavrit:hover {
	cursor: pointer;
	background-color: var(--cervena);
}

/*Menu*/
.nabidka {
	display: flex;
	flex-wrap: wrap;
	background-color: var(--menu-pozadi);
}

.nabidka-hlavni, .vyhledat-box {
	position: sticky;
	top: -1px;
	z-index: 1;
}

.vyhledat-box {
	top: 34px;
	background-color: var(--pozadi);
}

.vyhledat-neni {
	padding: 20px;
	text-align: center;
	font-weight: bold;
}

.nabidka-ikona {
	width: 25px;
}

.nabidka-text {
	padding-left: 5px;
}

.nabidka-akce {
	display: flex;
	align-items: center;
	padding: 5px 10px;
	color: var(--menu-text);
}

.nabidka-akce:hover, .soubor:hover, .oznacen {
	background-color: var(--menu-prechod);
	cursor: pointer;
}

/*Prehravac*/
.prehravac {
	position: absolute;
	width: 190px;
}

.ovladani {
	width: 20px;
	padding: 5px;
	background-color: var(--barva);
}

.ovladani-radek {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.cas-aktualni {
	padding: 0 7px;
}

.delka {
	-webkit-appearance: none;
	padding: 0;
	margin: 0;
	height: 5px;
	background: #d3d3d3;
	overflow: hidden;
	cursor: pointer;
  /*outline: none;
  /*opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;*/
}

.delka:hover {
	height: 10px;
}

.delka::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 10px;
	height: 10px;
	background: var(--barva-prechod);
	box-shadow: -407px 0 0 400px var(--barva);
}

.delka::-moz-range-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 10px;
	height: 10px;
	background: var(--barva-prechod);
	box-shadow: -407px 0 0 400px var(--barva);
	border-radius: 0;
	border: 0;
}

.schovat {
	display: none;
}

.posuvnik {
	overflow-Y: hidden;
}

@media only screen and (max-width: 940px)
{
	nav .nabidka-text {
		display: none;
	}
}

@media only screen and (max-width: 600px)
{
	h1 {
		font-size: 24px;
	}
	
	.profil-box {
		padding: 0;
	}
	
	.profil-popis, .prehravac {
		display: none;
	}
	
	.soubor-box {
		padding: 5px;
		grid-template-columns: repeat(auto-fill, 140px);
	}
	
	.frame-youtube, video/*, .prehravac*/ {
		width: 120px;
	}
	
	.soubor-ikona-ram, .video-box {
		height: 120px;
	}
	
	.prohlizec-ram {
		margin: 10px;
	}
	
	.prohlizec-obsah {
		max-height: calc(100vh - 93px);
	}
	
	#js-form-dialog {
		margin: 0;
	}
	
	.prohlizec-okraje {
		margin: auto 10px;
	}
}
