/* ----------------------------------------------------------------------	FORM STYLE	---------------------------------------------------------------------- */

input[type="text"], input[type="date"], input[type="email"], input[type="file"], input[type="password"], textarea {
	box-sizing: border-box;
	color: #000;
    border: 1px solid #FFF;
	padding: 8px;
	margin: 5px;
	border-radius: 5px;
    box-shadow: 0px 0px 3px #000;
	overflow: hidden;
}

textarea {
	width: 100%;
	min-height: 200px;
	white-space: pre-wrap;
}

input[type="range"], .rangelabel {
	box-sizing: border-box;
	display: inline-block;
	float: left;
	color: #000;
	width: 100px;
	font-weight: bold;
	margin: 10px;
	padding: 3px 5px;
	font-variant: small-caps;
}

output {
	display: inline-block;
	float: left;
	font-family: inherit; 
	font-size: inherit;
	color: #000;
    border: 1px solid #FFF;
	width: 70px;
    font-weight: bold;
	margin: 10px 50px 10px 10px;
	padding: 3px 5px;
	font-variant: small-caps;
	border-radius: 2px;
    box-shadow: 0px 0px 3px #000;
	overflow: hidden;
	white-space: pre-wrap;
}

input:focus, textarea:focus {
	box-shadow: 0px 0px 6px 1px #000;
}

.checkboxdiv {
	width: 28px;
	height: 28px;
	position: relative;
	background: linear-gradient(to bottom, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
	box-shadow: inset 0px 1px 1px white, 0px 1px 3px rgba(0,0,0,0.5);
}

.checkboxdiv input[type="checkbox"] {
	visibility: hidden;
	box-sizing: border-box;
}

.checkboxdiv label {
	width: 20px;
	height: 20px;
	position: absolute;
	top: 4px;
	left: 4px;
	cursor: pointer;
	background: linear-gradient(to bottom, #222222 0%, #45484d 100%);
	box-shadow: inset 0px 1px 1px rgba(0,0,0,0.5), 0px 1px 0px white;
	box-sizing: border-box;
}

.checkboxdiv input[type=checkbox]:checked + label::after {
	opacity: 1;
}

.checkboxdiv label:hover::after {
	opacity: 0.3;
}

.checkboxdiv label::after {
	content: "";
	width: 16px;
	height: 16px;
	position: absolute;
	top: 2px;
	left: 2px;
	background: #27ae60;
	background: linear-gradient(to bottom, #27ae60 0%, #145b32 100%);
	box-shadow: inset 0px 1px 1px white, 0px 1px 3px rgba(0,0,0,0.5);
	opacity: 0;
}

.checkboxdiv .text {
	width: auto;
	position: absolute;
	top: 0px;
	left: 40px;
	line-height: 28px;
	font-size: 16px;
}


/* ----------------------------------------------------------------------	BUTTON VELKÝ	---------------------------------------------------------------------- */

.textbutton {
	cursor: Pointer; 
	position: relative;
	display: flex;
	max-width: 250px;
	justify-content: center;
    padding: 0.6em;
	margin: 2em auto;
	color: #630;
	font-size: 1.25em;
	line-height: 1.25em;
	font-weight: bold;
	overflow: hidden;
    border-radius: 10px;
    background: #EA3;
	background-image: linear-gradient( /* chrome */
					hsla(0, 0%, 100%, 0.6), hsla(0, 0%, 100%, 0) 50%,
					hsla(0, 0%, 0%, 0.3) 50%, hsla(0, 0%, 100%, 0.2)  );
    text-shadow:
					0 0 15px hsla(0, 0%, 100%, 1), /* bloom */
					0 2px 4px hsla(0, 0%, 0%, 0.7); /* drop shadow */
  
	box-shadow:
					inset 0 -5px 20px hsla(0, 0%, 0%, 0.4), /* top light */
					inset 0 5px 20px hsla(0, 0%, 100%, 0.4), /* bottom shadow */
					/* multiple light sources yall */
					-8px 8px 5px hsla(0, 0%, 0%, 0.15), /* drop shadow 1 */
					5px 18px 10px hsla(0, 0%, 0%, 0.2); /* drop shadow 2 */
	transition: transform 0.1s, box-shadow 0.1s;

}

.textbutton:hover {
	transform: scale(1.05);
	box-shadow:
					inset 0 -5px 20px hsla(0, 0%, 0%, 0.4), /* top light */
					inset 0 5px 20px hsla(0, 0%, 100%, 0.4), /* bottom shadow */
					/* multiple light sources yall */
					-12px 12px 5px hsla(0, 0%, 0%, 0.15), /* drop shadow 1 */
					10px 25px 10px hsla(0, 0%, 0%, 0.2); /* drop shadow 2 */
}

.textbutton:before {
	content: '';
	display: block;
	position: absolute;
	left: 15px;
	right: 15px;
	top: 5px;
	height: 15px;
	border-radius: 15px;
	background: linear-gradient(
						hsla(0, 0%, 100%, 0.8), 
						hsla(0, 0%, 100%, 0) );
}

/* ---------------------------------------------------------------------- ARTICLE BOX 	---------------------------------------------------------------------- */

.articleBox {
	margin-bottom: 10px;
	padding: 5px 10px;
	border-bottom: 1px solid rgba(0,0,0,0.5);
	font-family: Arial;
	font-size: 1em;
	text-align: center;
	position: relative;
	box-sizing: border-box;
}

.articleBox .expandable {
	overflow: hidden;
}

.articleBox p  {
	text-align: justify;
	color: #000;
	padding: 10px 20px;
	margin: 0px;
}

.articleBox pre  {
	display: block;
	font-family: Arial;
	white-space: pre-line;
	text-align: justify;
	margin: 0px;
}

.articleBox .zahlavi {
	display: block;
	text-align: left;
	padding: 0px;
	margin: 0px;
	overflow: hidden;
}

.articleBox .datumX {
	display: inline-block;
	box-sizing: border-box;
	text-transform: uppercase;
	background: #446;
	color: #FFF;
	border-radius: 5px;
	padding: 1px;
	margin-right: 10px;
}

.articleBox .nadpis {
	display: inline-block;
	margin-left: 1em;
	font-variant: small-caps;
	font-size: 20px;
	color: #000;
	letter-spacing: 0.1em;
	text-decoration: none;
}

.imgs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	height: auto;
	margin: 10px;
}

.imgs a {
	position: relative;
}
.imgs a span {		/* Vysvětlivka */
    display: none
}

.imgs a:hover span {
	display: block;
	position: absolute;
	top: -30px;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	font-size: 14px;
	white-space: nowrap;
	padding: 3px;
	border-radius: 3px;
	background: #FFF;
	color: #000;
	border: 1px solid #000;
	box-shadow: 0px 0px 10px #000;
	text-shadow: none;
	z-index: 1000;
}

.imgs .articleimg {
	position: relative;
	border-radius: 5px;
	cursor: pointer;
	height: 100px;
	box-shadow: 0px 0px 5px 1px #000;
}

.imgs .articleimg:hover {
	padding: 0px;
	box-shadow: 0px 0px 3px 3px #00A;
}

.iconbutton {
	box-sizing: border-box;
	cursor: Pointer; 
	float: right;
	height: 2em;
	margin-left: 1em;
    padding: 0em 0.5em;
	line-height: 2em;
    text-align: center;
	color: #FFF;
	text-shadow: 1px 1px 1px #000;
	overflow: hidden;
    border-radius: 5px;
    background: #426;
	transition: transform 0.1s;
}

.iconbutton:hover{
	color: #FA0;
}

/* ----------------------------------------------------------------------	FORUM	---------------------------------------------------------------------- */

.prispevek {
	display: block;
	box-sizing: border-box;
	color: #000;
	font-family: Arial;
	border: 2px solid #000;
	border-radius: 5px;
	padding: 10px 10px 35px 10px;
	margin: 0px 0px 20px 0px;
	text-align: justify;
	font-size: 1.2m;
    width: 100%;
	position: relative;
	background: rgb(230,230,240);
	min-height: 80px;
}

.prispevek-hlavicka {
	float: left;
	position: relative;
	background: #BBD;
	color: #000;
	padding: 4px 20px;
	margin-right: 10px;
	margin-bottom: 5px;
	border-bottom: 1px solid #666;
	border-radius: 5px;
}

.prispevek_reakce {
	display: block;
	color: #000;
	margin: 10px 0px 0px 30px;
	text-align: justify;
	border-radius: 5px;
	position: relative;
	font-size: 90%;
	background: rgb(255,255,255);
	padding: 5px;
	clear: both;
}

.timestamp_day_sub {
	font-weight: bold;
}

.prispevek_reakce .timestamp_time {
	font-size: 90%;
	margin-left: 10px;
	font-weight: bold;
}

.prispevek_reakce .jmeno {
	display: inline-block;
	margin-left: 10px;
	padding: 2px 10px;
	background: #DDE;
	border-radius: 3px;
}

.prispevek .text {
	display: inline;
}

.timestamp_day_sub:before {
	content: '\25B6';
	position: absolute;
	display: block;
	top: 3px;
	left: -25px;
	z-index: 10;
	color: #000;
}

.calendar-icon {
	float: left;
	width: 50px;
	height: 50px;
	border: 1px solid #888;
	box-shadow: 0px 0px 10px 1px #000;
	font-size: 15px;
	line-height: 32px;
	font-weight: normal;
	font-family: Arial;
	margin: 0px 10px 10px 0px;
	text-align: center;
	background: #FFF;
	color: #000;
}

.calendar-icon > div {
	height: 16px;
	width: 100%;
	background: #336;
	color: #FFF;
	font-size: 14px;
	line-height: 16px;
	
}

img.smazat-prispevek,  img.smazat-reakce {
	position: absolute;
	display: block;
	top: -10px;
	height: 20px;
	width: 20px;
	z-index: 11;
}

img.smazat-prispevek {left: -10px;}
img.smazat-reakce {left: -10px;}

img.smazat-prispevek:hover,  img.smazat-reakce:hover {
	box-shadow: 0px 0px 3px 3px #000;
}


/* ----------------------------------------------------------------------	FORMULÁŘ	---------------------------------------------------------------------- */

/* -------------------------------	OKNO	------------------------------- */

#prispevek_form_div {
	display: none;
	box-sizing: border-box;
	position: fixed;
	min-width: 500px;
	font-family: Arial;
	background: #DDD url('icons/bgm.jpg') repeat;
	box-shadow: 0 0 10px 0px #000;
	border: 2px solid #FFF;
	border-radius: 10px;
	top: 15px;
	left: 15px;
	bottom: 15px;
	right: 15px;
	padding: 20px;
	z-index: 25;
	text-align: left;
	overflow: auto;
}

#prispevek_form_div #nadpis {
	text-align: center;
	font-size: 2em;
	font-weight: normal;
	letter-spacing: 2px;
	line-height: 2em;
	color: #FFF;
	text-shadow: 0 0 2px #000, 0 0 4px #000, 0 0 6px #000, 0 0 8px #000, 0 0 10px #000;
}

#prispevek_form_div img#closeicon {
	height: 40px;
	width: 40px;
	padding: 4px;
	position: absolute;
	top: 0px;
	right: 0px;
	z-index: 28;
	transition: 0.2s;
}

#prispevek_form_div img#closeicon:hover {
	height: 48px;
	width: 48px;
	padding: 0px;
}

#prispevek_form_div #reakce_orig_text {
	display: block;
	margin: 10px;
	background: rgba(0,0,150,0.7);
	color: #FFF;
	padding: 10px;
	border: 1px solid #696;
	border-radius: 10px;
	width: auto;
}

/* -------------------------------	FORM	------------------------------- */

#prispevek_form_div form {
	display: table;
	box-sizing: border-box;
	position: relative;
	width: 100%;
	color: #FFF;
	padding: 10px;
	background: #DDD;
	background: rgba(32,32,32, 0.5);
	border: 1px solid rgba(255,255,255,0.5);
    border-radius: 10px;
	border-collapse: separate;
	border-spacing: 5px;
	box-shadow: 0 0 3px 0px #000;
	-webkit-box-shadow: 0 0 3px 0px #000;
    -moz-box-shadow: 0 0 3px 0px #000;
}

#prispevek_form_div form > label {
	display: table-row;
}

#prispevek_form_div form > label > div {
	display: table-cell;
	white-space: nowrap;
	text-align: left;
	vertical-align: middle;
}

#prispevek_form_div form > label > div:first-child { 
	font-variant: small-caps;
	padding: 5px;
}

#prispevek_form_div form > label > div:nth-child(2) { 
	width: 100%;
}

/* --------------------------	DRAG DROP FIELD	-------------------------- */

#upload-field {
	box-sizing: border-box;
	background: rgba(255,255,255,0.2);
	display: flex;
	flex-wrap: wrap;
	padding: 10px;
	gap: 10px;
	position: relative;
	border: 1px dashed #000;
	border-radius: 10px;
	width: 100%;
	height: auto;
}

#upload-field #infoAllowedExt {
	position: absolute;
	top: 10px;
	left: 150px;
	color: #000;
	text-shadow: 0px 0px 3px #FFF, 0px 0px 5px #FFF;
	width: 400px;
	white-space: normal;
	font-size: 80%;
}

#upload-field #upload-area { 
	position: relative;
	height: 100px;
	width: 100px;
	border-radius: 10px;
	box-shadow: 0px 0px 3px 0px #000;
	z-index: 26;
	transition: 0.2s;
}

#upload-field #upload-area:hover, #upload-field #upload-area.hovered { 							/* .hovered - pro jquery - drag & drop -> trigger hover na tento element*/
	cursor: pointer;
	height: 80px;
	width: 80px;
	margin: 10px;
}

#upload-field.fieldbg {
	box-shadow: 0px 0px 3px 0px #000;
	background: #AFA;
}

/* ----------------------------	THUMBNAILY	---------------------------- */

.thumbnail_frame {
	position: relative;
	display: inline-block;
	box-shadow: 0px 0px 3px 0px #000;
	border-radius: 10px;
	height: 100px;
}

.thumbnail_frame .deleteicon {
	position: absolute;
	top: 0px;
	right: 0px;
	width: 32px;
	height: 32px;
	margin: 4px;
	z-index: 27;
	-webkit-filter: drop-shadow(0px 0px 5px #FFF);
    filter: drop-shadow(0px 0px 5px #FFF);
}

.thumbnail_frame .deleteicon:hover {
	width: 40px;
	height: 40px;
	margin: 0px;
	transition: 0.3s;
}

.thumbnail_frame img.thumbnail {
	height: 100px;
	border-radius: 10px;
}

.thumbnail_frame:before {		/* Vysvětlivka */
	content: attr(data-filename); 
	display: none;
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	font-size: 14px;
	white-space: nowrap;
	padding: 3px;
	border-radius: 3px;
	background: #FFF;
	color: #000;
	border: 1px solid #000;
	box-shadow: 0px 0px 10px #000;
	z-index: 1000;
}

.thumbnail_frame:hover:before {
	display:block;
}

/* -----------------------	BUTTONY	PRO FORMULÁŘ ---------------------- */

#prispevek-submit {
	position: absolute;
	top: 10px;
	right: 10px;
}

.formbutton {
	display: inline-block;
	position: relative;
	background-color: #AAA;
	background-image: linear-gradient( /* chrome */
				hsla(0, 0%, 100%, 0.6), hsla(0, 0%, 100%, 0) 50%,
				hsla(0, 0%, 0%, 0.3) 50%, hsla(0, 0%, 100%, 0.2) );
	font-weight: bold;
	color: #000;
	padding: 10px;
	text-shadow:
				0 0 10px hsla(0, 0%, 100%, 1), /* bloom */
				0 2px 3px hsla(0, 0%, 0%, 0.7); /* drop shadow */
	border-radius: 30px;
	border: none;
	margin: 3px;
	box-shadow:
				inset 0 -5px 20px hsla(0, 0%, 0%, 0.4), /* top light */
				inset 0 5px 20px hsla(0, 0%, 100%, 0.4), /* bottom shadow */
				/* multiple light sources yall */
				-8px 8px 5px hsla(0, 0%, 0%, 0.15), /* drop shadow 1 */
				5px 18px 10px hsla(0, 0%, 0%, 0.2); /* drop shadow 2 */
	cursor: pointer;
	transition: transform 0.1s, box-shadow 0.1s;
}

/* highlight */
.formbutton:before {
	content: '';
	display: block;
	position: absolute;
	left: 10px;
	right: 10px;
	top: 5px;
	height: 15px;
	border-radius: 10px;
	background: linear-gradient(
				hsla(0, 0%, 100%, 0.5), hsla(0, 0%, 100%, 0) );
}

.formbutton--blue { background-color: #19F; }
.formbutton--gold { background-color: #EA0; }
.formbutton--green { background-color: #6C6; }
.formbutton--red { background-color: #E21; }

.formbutton:hover {
	transform: scale(1.05);
	box-shadow:
				inset 0 -5px 20px hsla(0, 0%, 0%, 0.4), /* top light */
				inset 0 5px 20px hsla(0, 0%, 100%, 0.4), /* bottom shadow */
				/* multiple light sources yall */
				-12px 12px 5px hsla(0, 0%, 0%, 0.15), /* drop shadow 1 */
				10px 25px 10px hsla(0, 0%, 0%, 0.2); /* drop shadow 2 */
}

.formbutton--reagovat {
	position: absolute;
	bottom: 5px;
	right: 5px;
	padding: 5px 10px;
}

.formbutton--small {
	position: relative;
	margin: 5px;
	padding: 5px;
	border-radius: 5px;
	font-weight: normal;
	font-size: 90%;
}

/* -----------------------------	LOADING	---------------------------- */

#zbyva {
	color: Red;
	font-weight: bold;
}

#loading {
	border: 0px;
	padding: 0px;
	position: absolute;
	top: 0px;
	left: 0px;
	width: auto;
	height: auto;
	display: none;
	z-index: 98;
}

#progressbox {
	display: none;
	position: absolute;
    background-color: #1a1a1a;
    height: 45px;
    width: 450px;
    margin: 50px auto;
    border-radius: 5px;
    box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
    background-size: 30px 30px;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, .15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .15) 50%,
        rgba(255, 255, 255, .15) 75%,
        transparent 75%,
        transparent);
}

#progressbar {
	display: block;
	height: 45px;
	width: 0%;
	background-color: #34c2e3;
	border-radius: 3px;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
	position: relative;
	animation: auto-progress 10s infinite linear;
}

#statustxt {
	top: 0px;
	left: 45%;
	position: absolute;
	display: inline-block;
	color: #FFFFFF;
	font-size: 36px;
	line-height: 45px;
}