/* GlobÃ¡lne CSS - nevztahujÃº sa len na jednu podstrÃ¡nku */
@font-face {
	font-family: "Bree Serif";
	src: url(BreeSerif.woff);
}
@font-face {
	font-family: Indira;
	src: url(Indira.woff);
}

/* Telo stranky */
body{
	text-align: center;
	min-width: 400px;
	margin: 0px;
	background: #EEE;
	font-family: "Bree Serif";
}
header{
	position: sticky;
	position: -webkit-sticky;
	top: 0px;
	width: 100%;
	background: #EEE;
	border-bottom: #CCC 1px solid;
}
main{
	border-top: #CCC 1px solid;
	border-bottom: #CCC 1px solid;
	background: white;
	padding: 20px 20px;
}
pre{
	margin: 0;
	font-family: "Bree Serif";
	white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
	overflow-wrap: break-word;
	word-break:break-word;
}
#main-container{
	max-width: 1920px;
	margin: auto;
}

#logo{
	display: inline-block;
	background: #EEE;
	font-size: 48px;
	font-variant: small-caps;
	font-weight: bold;
	margin-top: 10px;
	width: 100%;
	font-family: Indira;
}
#info-holder{
	max-width:1000px;
	margin: auto;
	text-align: left;
}

/* Ovladacie prvky */
input[type="checkbox"], input[type="checkbox"]:focus{
	color:black;
	background:gray;
	display:inline-block;
	width:16px;
	height:16px;
	margin-right:5px;
	vertical-align: middle;
}
input[type="text"],input[type="password"], input[type="email"], input[type="number"], input[type="date"], select, button, textarea{
	display: inline-block;
	border: 1px solid #DDD;
	background: #F9F9F9;
	border-radius: 3px;
	outline: none;
	width: 170px;
	height: 25px;
	margin: 5px;
	box-sizing: border-box;
	font-family: "Bree Serif";
}
input[type="button"], input[type="submit"]{
	display: inline-block;
	border: 1px solid #DDD;
	background: #F9F9F9;
	border-radius: 3px;
	outline: none;
	height: 25px;
	margin: 5px;
	box-sizing: border-box;
	font-family: "Bree Serif";
}
input[type="file"]{
	display: inline-block;
	border: 1px solid #DDD;
	background: #F9F9F9;
	border-radius: 3px;
	margin: 5px;
	font-family: "Bree Serif";
}
input[type="password"],input[type="text"], input[type="button"], input[type="submit"]{
	-webkit-appearance: none;
}
input[type="image"]{
	vertical-align: middle;
	display: inline-block;
	border: 1px solid #DDD;
	background: #DDD;
	border-radius: 3px;
	outline: none;
	height: 25px;
	padding: 5px;
	margin: 5px;
	box-sizing: border-box;
}
button, input[type="button"], input[type="submit"]{
	margin: 10px auto;
	background: #DDD;
	border: none;
}
button:hover{
	background: #EEE;
}
button:active{
	background: #E9E9E9;
}
button img{
	width: 12px;
	height: 12px;
}
.input-compact{
	width: max-content !important;
}

input:focus, textarea:focus, select:focus{
	background-color: #FFF;
}
select{
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	padding-right:22px;
	background-image: url("drop-arrow.svg");
	background-repeat: no-repeat;
	background-size: 15px;
	background-position-x: calc(100% - 6px );
	background-position-y: 50%;
	white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holder-block-double{
	flex-grow: 2.1 !important;
}

/* Linky a podobne */
a{
	text-decoration: none;
	color: #000;
}
.non-editable{
	color: #595959;
	font-style: oblique;
}
.underlined{
	text-decoration: underline;
}
.clickable{
	/* text-decoration:none #888; */
}
.clickable:hover{
	text-decoration: underline;
	cursor: pointer;
}
.selected{
	text-decoration: underline;
	font-weight: bold;
}
/* Oddelovac */
.separator{
	width: 100%;
	margin: 20px auto;
	height: 1px;
	background: #BBB;
}

/* Formatovanie textu a nadpisy */
h2{
	margin-bottom: 5px;
}
p{
	margin: 0;
}
.text-center{
	text-align: center;
}
.text-normal{
	text-align: justify;
}
.text-nomargintop{
	margin-top: 0;
}
.invisible-heading{
	font-size: 4px !important;
	margin: 0;
	padding: 0;
	color: white !important;
	-webkit-user-select: none; /* Safari */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* IE10+/Edge */
	user-select: none; /* Standard */
}
.alert{
	color: #CC0000;
}
.success-alert{
	color:#008800;
}

/* Flex boxy */
.flex-breaker{
	flex-basis: 100%;
}

/* Tabulky */
table{
	border-collapse: collapse;
}
.table-small{
    max-width:1000px;
    margin:auto;
}
td, th{
	padding: 5px;
}
tr.clickable:hover{
	background:	#f1f1f1 !important;
}

/* Bunky detailov knih */
.book-language, .book-format, .book-status, .book-size, .book-points{
	margin: 5px;
}
.book-description{
	//white-space:pre-wrap;
	padding: 0 5px;
}

noscript{
	display: inline-block;
	width:100%;
}

@media screen and (min-width: 601px){
	
	.input-adaptive{
		width: max-content !important;
	}
	/* Nadpisy */
	h1{
		font-size: 28px;
	}
	h2{
		font-size: 20px;
	}

	.big-button{
		width: 300px;
	}
	
	/* Menu, submenu a podstranky */
	#toggle-menu{
		display: none;
	}
	#menu{
		display: block;
		margin: 5px;
	}
	.menu-item{
		margin: 10px;
		white-space: nowrap;
		cursor: pointer;
		color: black;
	}
	#submenu{
		max-width: 900px;
		margin: 0px auto 20px auto;
	}
	.submenu-item{
		margin: 10px;
		white-space: nowrap;
		cursor: pointer;
		color: black;
	}
	#subpage-container{
		width: 100%;
		max-width: -moz-max-content;
		margin: auto;
		max-width: 1200px;
	}

	/* Bunky detailov knih */
	.book-name, .book-author, .book-genre{
		display: table-cell;
		padding: 8px 3px;
	}
	.book-format, .book-size, .book-points, .book-status, .book-language{
		display: table-cell;
		padding: 8px 3px;
		text-align: right;
	}
	.book-place{
		display: table-cell;
		padding-left: 8px;
		width: 60px;
	}
	.book-file{
		display: table-cell;
		white-space: nowrap;
		text-align: right;
		padding-left: 8px;
	}
	.book-orig-title{
		text-align: right;
	}
	.book-orig-year{
		text-align: right;
	}

	/* Tabulky */
	table{
		display: table;
		width: 100%;
		border-radius: 5px;
		overflow: hidden;
		text-align: left;
	}
	th{
		background: #DDD;
		font-weight: bold;
	}
	tr{
		display: table-row;
		background: #EEE;
	}
	tr:nth-child(2n+2){
		background: #E5E5E5;
	}
	tr.subpart{
		display: table-row;
		background: #f4f4f4;
		color: #595959 !important;
		font-size: 14px;
		font-style: oblique;
	}
	tr.subpart:nth-child(2n+2){
		background: #f2f2f2;
	}
	td.col-smallest{
		width:0;
		white-space: nowrap;
	}

	input.input-smallest{
		width: 50px;
	}
	button.input-smallest{
		width: 30px;
	}

	.input-double{
		width: 395px !important;
	}

	/* Formulare, ovladacie prvky a podobne */
	form{
		display: flex;
		flex-basis: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		margin: auto;
		//vertical-align:text-top !important;
	}
	.settings-form{
		flex-direction: column;
		width: max-content;
		margin: auto;
	}
	label{
		width: max-content;
	}

	.page-number{
		display: inline-block;
		margin: 0 5px;
	}
	.paging-separator{
		margin-top: 100px;
	}
	#pages{
		margin-top: 20px;
	}
	.narrow-input{
		width:82px !important;
		margin: 5px 2px !important;
	}
}
@media screen and (max-width:1100px){
	/* Flex box breaker */
	.flex-breaker{
		display:none;
	}
	.flex-small-breaker{
		display: block;
	}
	.flex-small-breaker{
		flex-basis: 100%;
	}
}
@media screen and (max-width: 600px){
	main{
		margin-top: 20px;
	}
	
	/* Nadpisy */
	h1{
		font-size: 38px;
	}
	h2{
		font-size: 28px;
	}

	/* Strankovanie */
	#first-page, #previous-page, #next-page, #last-page{
		display: block;
		font-size: 24px;
	}
	.page-number{
		display: inline-block;
		font-size: 32px;
		margin: 0 10px;
	}
	.paging-separator{
		display: none;
	}

	/* Tabulky */
	table{
		display: block;
		font-size: 22px;
		text-align: center;
	}
	tbody{
		display:block;
		width:100%;
		overflow: hidden;
	}
	tr{
		display: block;
		border: 2px solid #DDD;
		border-radius: 5px;
	}
	tr:not(.first-row, .second-row){
		margin: 30px 0;
	}
	th{
		display: none;
	}
	td:not(.td-inline){
		display: block;
	}
	td.td-inline{
		display: inline-block;
	}
	.first-row{
		margin: 30px 0 0 0;
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}
	.second-row{
		margin: 0 0 30px 0;
		border-top-left-radius: 0;
		border-top-right-radius: 0;
		border-top: none;
	}

	/* Ovladacie prvky a podobne */
	input[type="password"],input[type="text"], input[type="button"], input[type="submit"], input[type="number"], input[type="email"], input[type="date"], select, button, textarea, #posts-search-input{
		display: inline-block;
		//width: calc(100% - 20px);
		width: 100%;
		min-height: 40px;
		height: max-content;
		margin: 5px 0px;
		box-sizing: border-box;
		font-size: 18px;
	}
	input[type="checkbox"], input[type="checkbox"]:focus{
		width:24px;
		height:24px;
	}
	input[type="radio"]{
		width:24px;
		height:24px;
		margin: 5px 5px 5px 0;
		vertical-align: middle;
	}
	input[type="file"]{
		display: inline-block;
		width: calc(100% - 20px);
		box-sizing: border-box;
		font-size: 18px;
	}
	textarea{
		height: 400px;
		resize: none;
	}
	.label{
		display: block;
		margin: 5px 0px 0 0;
	}

	/* Bunky detailov knih */
	.book-name, .book-author, .book-genre{
		background: #EEE;
	}
	.book-name{
		background: #DDD;
		font-weight: bold;
	}
	.book-details{
		background: #E9E9E9;
	}
	.book-format, .book-language, .book-points, .book-size, .book-status{
		//display: inline-block;
	}

	/* Menu a submenu */
	#menu{
		position: absolute;
		width: 100%;
		background: #EEE;
		border-bottom: #CCC 1px solid;
	}
	#toggle-menu{
		display: block;
		font-size: 24px;
		font-weight: bold;
		-webkit-touch-callout: none; /* iOS Safari */
	    -webkit-user-select: none; /* Safari */
	    -khtml-user-select: none; /* Konqueror HTML */
	    -moz-user-select: none; /* Old versions of Firefox */
	    -ms-user-select: none; /* Internet Explorer/Edge */
        user-select: none;
		cursor: pointer;
	}
	#menu-items-holder{
		display: block;
	}
	.menu-opened{
	}
	.menu-item{
		display: block;
		font-size: 24px;
		margin: 6px 0;
		color: black;
		cursor: pointer;
	}
	.submenu-item{
		display: block;
		margin: 10px;
		font-size: 24px;
		white-space: nowrap;
		cursor: pointer;
	}
	#menu-items-holder{
		display: none;
	}
	.input-compact{
		padding: 0 15px;
	}
}

/* In development */
.in-progress{
	color: red;
}
