html {
  font-size: 100.01%;
}

body {
  font-family: "Century Schoolbook L","URW Bookman L","URW Palladio L","Bitstream Charter",Georgia,Palatino,"Palatino Linotype",Times,"Times New Roman",serif;
  font-size: 120%;
  line-height: 1.4;
  font-size-adjust: 0.47;
  background-color: #543;
}

header, footer, nav, hgroup, article, section {
  display: block;
  padding: 0;
  margin: 0;
}

q {
  quotes: none;
}
q:before, q:after {
  content: "";
  content: none;
  display: none;
}

/* cislovani odstavcu */
div.chapter h2 {
  counter-reset: par-num;
}
div.chapter p {
  counter-increment: par-num;
}
div.chapter p:before {
  content: counter(par-num, decimal) " ";
  vertical-align: top;
  display: inline;
  font-size: 90%;
  color: #aa9;
  margin-right: 0.2em;
}
div.chapter p.nocount:before {
  content: "";
  counter-increment: none;
}
div.chapter h2 + p:before, div.chapter h2 + h3 + p:before {
  content: none;
  display: none;
}
div.chapter p small:first-child {
  display: none;
}
/* /cislovani odstavcu */

h1 {
  font-size: 200%;
}
h1, h3#chapters {
  text-align: center;
}
h2 {
  font-size: 160%;
  text-transform: uppercase;
}
h2.sub {
  text-transform: none;
}
h3 {
  font-size: 120%;
}

/* velke pismeno v prvnim odstavci za nadpisem */
div.chapter h2 + p:first-letter, div.chapter h2 + h3 + p:first-letter {
  float: left;
  display: block;
  font-size: 2.8em;
  line-height: 80%;
  text-transform: uppercase;
  vertical-align: bottom;
  padding: 0.1em 0.05em;
  margin: 0 2px -0.2em 0;
  color: #542;
  background: #edb;
}
/* */

p small {
  font-size: 100%;
  line-height: 1.3;
  vertical-align: top;
  color: #666;
  margin-right: 0.2em;
}

ul.chapters, ol.chapters {
  list-style-position: outside;
  padding: 0;
  margin: 1em 1em 2em 6em;
  color: #777;
}
ol.chapters {
  list-style: upper-roman outside;
  padding: 0;
  margin: 1em 1em 2em 6em;
  color: #777;
}

dl {
  border-left: 5px double #cca;
  border-right: 5px double #cca;
  padding: 0 1em;
  margin: 1em;
  word-wrap: break-word;
}
dt {
  clear: left;
  float: left;
  display: block;
  overflow: visible;
  color: #540;
  margin-right: 0.5em;
}
dd {
  display: block;
  margin-left: 7em;
}
dt dfn {
  font-style: normal;
}

a:link {
  color: #558;
  text-decoration: underline;
}
a:visited {
  color: #855;
}
a:hover {
  color: #774;
}
a:active, a:focus {
  color: #777;
  background-color: #efa;
}
a img {
  border: 0 none;
  vertical-align: middle;
}
img {
  vertical-align: middle;
  -ms-interpolation-mode: bicubic;
  max-width: 100%;
  height: auto;
}

#header {
  background-color: #faf4e6;
  padding: 0.5em 1em 0 1em;
  margin: 1em auto 0 auto;
  border-bottom: 1px solid #ddc;
  background: #faf4e6 url("labyrint-header-bg.jpg") no-repeat 100% 0 / cover;
}
#header h1, #header h2 {
  font-family: "Nimbus Roman No9 L",FreeSerif,"URW Palladio L",Times,"Times New Roman",serif;
  font-weight: normal;
  text-transform: none;
  text-align: left;
  color: #531;
  margin: 0;
  text-shadow: -1px -1px 5px rgba(250, 250, 250, 0.8),
		-1px 1px 5px rgba(250, 250, 250, 0.8),
		1px 1px 5px rgba(250, 250, 250, 0.8),
		1px -1px 5px rgba(250, 250, 250, 0.8);
}
#header h1 a:link, #header h1 a:visited {
  color: #556;
  text-decoration: none;
}
#header h1 a:hover, #header h1 a:active, #header h1 a:focus {
  color: #996;
  text-decoration: underline;
}
#header h2 {
  font-size: 120%;
  margin-bottom: 0.5em;
}

#lang {
  font-family: Helvetica,Verdana,Arial,sans-serif;
  font-size: 80%;
  line-height: 1.2;
  float: right;
  color: #000;
  background-color: #ddb;
  padding: 1px;
  margin: 0;
}
#lang li {
  float: left;
  display: block;
  padding: 0;
  margin: 0;
}
#lang li a {
  display: block;
  padding: 0 0.5em;
  border-right: 1px solid #996;
}
#lang li:last-child a {
  border: 0 none;
}
#lang li a:hover {
  color: #666;
  background-color: #eec;
}
#lang li a:active, #lang li a:focus {
  background-color: #eee;
}
#lang li.active {
  font-weight: bold;
}
#lang li.active a {
  color: #000;
  background-color: #ddb;
}

#menu {
/*  font-family: "Nimbus Sans L",Geneva,Tahoma,Helvetica,Arial,sans-serif; */
  list-style-type: none;
  float: right;
  display: inline; /* IE double margin bug fix */
  position: relative;
  top: -2em;
  padding: 0;
  margin: 0 12% -2em 0;
}
 /* v2 */
nav {
	max-width: 600px;
	margin: 0 auto;
}
header nav:first-child {
	max-width: none;
}
#menu {
	top: 0;
	margin: -2em 0 0;
}
/* v3 */
#header h2 {
	float: left;
	margin-bottom: 0;
}
#menu {
	margin: 0.2em 0 0;
}

#menu li {
  background-color: #431;
  vertical-align: middle;
  float: left;
  display: inline; /* IE double margin bug fix */
  padding: 0;
  margin: 0 0.2em;
  background: -webkit-gradient(linear, 0 100%, 0 50%, from(#210), to(#431));
  background: -moz-linear-gradient(top, #431 67%, #210);
  background: linear-gradient(to bottom, #431 67%, #210);
}
#menu li a {
  text-decoration: none;
  display: block;
  padding: 0.5em 1em 0.2em 1em;
  margin-bottom: 5px;
}
#menu li a:link, #menu li a:visited {
  color: #cb8;
}
#menu li a:hover {
  color: #9e9;
  background-color: #752;
  border-bottom: 5px solid #f93;
  margin-bottom: 0;
}
#menu li a:focus, #menu li a:active {
  color: #333;
  background-color: #eee;
}
#menu li.active, #menu li.active a {
  font-weight: bold;
  color: #111;
  background-color: #7ba;
}
#menu li.active a:hover {
  border: 0 none;
  margin-bottom: 5px;
}

#page {
  margin: 0 auto;
  max-width: 50em;
}
#page1 {
  -moz-box-shadow: 0 0 10px 10px rgba(0,0,0,0.3);
  -khtml-box-shadow: 0 0 10px 10px rgba(0,0,0,0.3);
}
#main {
  color: #332;
  background: #f4f4f4;
  padding: 1px 2em 0.5em 2em;
  margin: 0 9em 0 0;
  min-width: 12em;
}
#main h2 {
  text-align: center;
  padding: 0.5em;
  margin: 0.5em 0 1em 0;
/*  margin-right: -7em; */
  color: #432;
  background: #eee;
}
#main.nochapter {
  margin-right: 0;
}
h2 span.chapter {
  display: block;
  font-size: 83%;
  line-height: 1.2;
  margin-bottom: 1em;
}
#main p+h3:not([class~=side]) {
	padding-top: 80px;
	background: url("./ornament1.svg") no-repeat 50% 10px;
}

.side {
   font-size: 100%;
   line-height: 1.2;
   font-variant: small-caps;
   float: right;
   margin: 0 -11em 0.7em 2em;
   width: 9em;
   clear: right;
   background: #ffd;
   word-wrap: break-word;
}
#main dl dt {
  background-color: #f4f4f4;
}
#main dl dd {
  margin-left: 20%;
}

#prevnext {
/*  font-family: "Nimbus Sans L",Geneva,Tahoma,Helvetica,Arial,sans-serif;*/
  font-size: 100%;
  list-style-type: none;
  float: left;
  position: relative;
  left: 50%;
  padding: 0;
  margin: 2em auto 1em auto;
}
#prevnext li {
  float: left;
  position: relative;
  right: 50%;
  margin: 0 0.5em;
}
#prevnext li a {
  width: auto;
  display: block;
  padding: 0.3em 1em;
  color: #eed;
  background: #530;
  border: 1px solid #fff;
  text-decoration: none;
}
#prevnext li a:hover {
  color: #000;
  background: #d4d4d4;
  text-decoration: underline;
}

#footer {
/*  font-family: "Nimbus Sans L",Geneva,Tahoma,Helvetica,Arial,sans-serif;*/
  font-size: 80%;
  background-color: #ded1b6;
  border-top: 1px solid #cba;
  padding: 1px 1em;
  margin: 0 auto 1em auto;
}
#footer p {
  text-align: center;
  margin: 0.5em 0;
}

/* cistic */
dl:after, #header:after, #menu:after, #main:after {
  display: block;
  clear: both;
  content: ".";
  font-size: 0;
  line-height: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

hr {
  color: #999;
  border: 0 none;
  border-bottom: 1px solid #999;
  height: 1px;
  margin: 0 auto;
}
hr.h50 {
  width: 50%;
}
.upper {
  text-transform: uppercase;
}
.author {
  text-align: right;
  margin-right: 5%;
}
.center {
  text-align: center;
}
.imgcenter {
  text-align: center;
  margin: 2em auto;
}
.imgcenter img {
  background-color: #000;
  padding: 10px;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  -moz-box-shadow: 1px 1px 15px 5px rgba(0,0,0,0.8);
  -khtml-box-shadow: 1px 1px 15px 5px rgba(0,0,0,0.8);
  box-shadow: 1px 1px 15px 5px rgba(0,0,0,0.8);
}
.imgright, .imgleft {
/*  font-family: "Nimbus Sans L",Geneva,Tahoma,Helvetica,Arial,sans-serif;
  font-size-adjust: 0.54;*/
  font-size: 120%;
  line-height: 1.4;
  padding: 0.5em;
  text-align: center;
  color: #620;
  background-color: #eee8d8;
  border: 1px solid #dcb;
  -moz-box-shadow: 1px 1px 15px -1px rgba(0,0,0,0.2);
  -khtml-box-shadow: 1px 1px 15px -1px rgba(0,0,0,0.2);
  box-shadow: 1px 1px 15px -1px rgba(0,0,0,0.2);
  max-width: 100%;
}
.imgright img, .imgright cite, .imgleft img, .imgleft cite {
  display: block;
}
.imgright img, .imgleft img {
  font-size: 80%;
  background-color: #ddd;
  padding: 0;
  border: 0 none;
  margin: 0 0 0.5em 0;
}
.imgright cite, .imgleft cite {
  font-size: 62%;
  font-style: normal;
  color: #999;
  text-align: right;
  margin: 0.5em 0 0 0;
}
.imgright {
  float: right;
  margin: 0 0 0.5em 1em;
}
.imgleft {
  float: left;
  margin: 0 1em 0.5em 0;
}
.w320 {
  width: 320px;
}
.kniha {
	font-size: 0.9em;
	overflow: hidden;
	border: 1px solid #543;
	margin: 4em 1em 2em 1em;
	padding: 0 1em 0.7em 1em;
}
.kniha a.left {
	float: left;
	display: inline;
	margin: 1em 1em 0.3em 0;
	vertical-align: middle;
}

.clear {
  clear: both;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}
.stat {
  display: none;
}

/* fixes for IE6 */
* html #page {
  margin: 0 1%;
}
* html .side {
  display: inline; /* IE6 double margin fix */
  overflow: visible;
}
/* fixes for IE6 & IE7 */
html #prevnext {
  *margin-left: -5em;
}

#header h2 a {
  color: #531;
  text-decoration: none;
}
#header h2 a:hover {
  color: #996;
  text-decoration: underline;
}

@media screen and (max-width: 500px) {
  #main {
	width: 96%;
	padding: 1px 2% 0.5em 2%;
  }
  #main nav {
	overflow: hidden; /* fix horizontal scrollbar */
  }
  .side {
	margin: -1.2em 0 0;
  }
}