/* elementy */
* {
  margin: 0;
  padding: 0;
}

body {
  font: 1em/1.4em "Times New Roman CE", "Times New Roman", serif;
  text-align: center;
  background: #53598d;
}

h1 { display: none; }
h2, h3, h4 {
  color: #53598d;
  font: italic normal 2em/.7em Garamond, "Times New Roman CE", "Times New Roman", serif;
  text-align: center;
  margin: .8em 20px .33em;
}
h2 { margin: 0 20px .33em; }
h3 { font-size: 1.6em; }
h4 {
  font-size: 1.2em;
  text-align: left;
  font-style: normal;
}

p {
  text-indent: 1em;
  text-align: left;
  margin: 0 20px .66em;
}

ul {
  text-align: left;
  list-style-type: square;
  margin: 0 20px .66em;
}
li { margin-left: 1em; }

dl {
  text-align: left;
  margin: 0 20px .66em;
}
dt {
  font-weight: bold;
  color: #53598d;
  width: 8em;
  text-align: right;
}
dd {
  margin: -1.4em 0 .2em 9em;
}

img { border: 0; }

hr {
  color: #53598d;
  width: 97%;
  height: 0;
  border-color: #53598d;
  background-color: #53598d;
  margin: .66em auto;
}

/* Formuláře */
fieldset {
  margin: 1em 20px;
  padding: 0;
  border: 0;
  line-height: 35px;
  text-align: left;
}
fieldset p { margin: 0 0 1em; line-height: 1.4; }
fieldset hr { margin: 0 0 1em; }

legend {
  padding: 0;
  font-weight: bold;
  color: #53598d;
}

/**
 * Vertikální centrování textu v input.text, select
 *   FF      padding, height musí být rovno font-size*1,25, dorovnat paddingem
 *           na požadovanou výšku
 *   IE      line-height nastavit stejně jako height
 *   Opera   jestli nesedí, hodit si tak akorát mašli :)
 *
 * Bez nastavování paddingu/borderu spolehlivé všude...
 */
input, select, textarea {
  font: 15px/19px "Times New Roman CE", "Times New Roman", serif;
  height: 19px;
  padding: 4px;
  border: 2px solid #dadae6;
  vertical-align: middle;
}
input.text, textarea, select {
  margin: 2px 0;
  width: 300px;
}
select { width: 312px; height: 31px; }
textarea { height: auto; }

/**
 * Vertikální centrování textu v input.button
 *   vše       do výšky se nepočítá padding, ani border (stejně u selectu)
 *   FF+Opera  vyrovnat text (+-1px vzájemně) pomocí padding
 *   IE        dorovnat pomocí line-height (ovlivní vše, ale IE nejvíc)
 *
 * Bez nastavování paddingu/borderu spolehlivé všude...
 */
input.button {
  width: 0; /* pouze pro IE */
  height: 31px;
  overflow: visible;
  padding: 0 .5em;
  margin: 1em auto 0;
  border: 0;
  cursor: pointer;
  background: #717696;
  color: white;
  font-weight: bold;
  line-height: 31px;
}
input.button:hover {
  background: #dadae6;
  color: black;
}
input.button[class] { /* IE ignoruje [class] */
  width: auto;
}

label {
  display: block;
  float: left;
  clear: left;
  width: 175px;
  overflow: hidden;
  margin-right: 10px;
  text-align: right;
  vertical-align: middle;
}

.buttons {
  text-align: center;
  margin: 1em 0;
}

/* # id */
#page {
  position: relative;
  width: 770px;
  overflow: auto;
  margin: 10px auto;
  padding-bottom: 8px;
  text-align: left;
  background: #dadae6;
}

#head {
  position: relative;
  width: 100%;
  height: 301px;
  margin-bottom: 3px;
  background: url("../images/back-head.jpg") 0 0 no-repeat;
}

#logo {
  position: absolute;
  top: 87px;
  left: 0;
  display: block;
  width: 157px;
  height: 157px;
  text-align: center;
}

#lang {
  position: absolute;
  top: 270px; left: 45px;
}
#czech, #deutsch, #english {
  position: relative;
  display: block;
  float: left;
  margin-right: 10px;
  width: 30px;
  height: 20px;
  overflow: hidden;
}
#czech span, #deutsch span, #english span {
  position: absolute;
  top: 0; left: 0;
  display: block;
  cursor: pointer;
  width: 30px; height: 20px;
  background: url("../images/deutsch.gif") 0 100%;
}
#english span { background-image: url("../images/english.gif"); }
#czech span   { background-image: url("../images/czech.gif"); }

a#czech:hover span,   a#czech.active span,
a#english:hover span, a#english.active span,
a#deutsch:hover span, a#deutsch.active span {
  background-position: 0 0;
}

#head-right {
  position: absolute;
  top: 87px;
  right: 8px;
  width: 156px;
  height: 214px;
  overflow: hidden;
  font: 15px/22px Times New Roman, serif;
  text-align: center;
  color: #53598d;
}
#head-right table {
  border-top: 1px solid #53598d;
  margin-top: 5px;
  padding-top: 5px;
  font: 13px/14px Times New Roman, serif;
}

#leftCol {
  float: right;
  padding: 0 3px 0 0;
  width: 166px;
}
#menu {
  width: 100%;
  padding: 1px 0;
  margin: 0;
  background: white;
  list-style-type: none;
}
#menu li { margin: 1px 2px; }

#sidePic {
  width: 100%;
  margin: 1em 0;
  text-align: center;
}

#text {
  float: left;
  width: 590px; height: 500px;
  min-height: 500px;
  overflow: visible;
  padding: 1em 0 .5em 0;
  margin-left: 4px;
  text-align: center;
  background: white;
}
#text[id] {
  margin-left: 8px;
  height: auto;
}

#footer {
  clear: both;
  text-align: center;
  color: white;
  padding: .5em 0;
}

/* tabulky */
table { text-align: left; }
#text table {
  width: 555px;
  margin: 0 20px .66em;
  border-spacing: 0px;
  border-collapse: collapse;
  vertical-align: top;
}

#text th, #text td { padding: 0 3px; }
#text th { background: #dadae6; }

#text table.vyroba {
  border: 1px solid #53598d;
  width: auto;
  margin: auto;
}
#text table.vyroba th, #text table.vyroba td {
  padding: 1px 2px 0 2px;
  font: 12px/1.4em Verdana, sans-serif;
  text-align: center;
}
#text table.vyroba th {
  font-weight: bold;
  font-style: italic;
}

/* . class */
.no-show { display: none; }
.no-indent { text-indent: 0; }
.clear { clear: both; }
.no-clear, .no-clear * { clear: none; }

.left { float: left; }
.right { float: right !important; }

img.left { margin: .5em .5em .5em 0; }
img.right { margin: .5em 0 .5em .5em; }

.center {
  text-indent: 0;
  text-align: center;
}

.cleaner {
  clear: both;
  visibility: hidden;
}

/* odkazy */
a:link, a:hover, a:visited { color: #53598d; }
a:hover { color: black; }

#footer a:link, #footer a:hover, #footer a:visited { color: white; }
#footer a:hover { background: white; color: #53598d; }

#text a:link img, #text a:hover img, #text a:visited img {
  padding: 2px;
  border: 1px solid #53598d;
}
#text a:hover img { border: 1px solid black; }

#menu a:link, #menu a:hover, #menu a:visited {
  display: block;
  width: 156px;
  overflow: hidden;
  padding: .25em 3px;
  background: #dadae6;
  font-weight: bold;
  color: black;
  text-align: center;
  text-decoration: none;
}
#menu a:hover {
  background: white;
  color: #53598d;
}
#menu a.active {
  background: #717696;
  color: white;
}
