@height:130px;

@female_color: red;
@female_box_color: transparent;
@male_box_color: transparent;
@male_color: blue;
@box_color: transparent;
@border_color: black;
@body_color: #E6E798;

.rounded_corners (@radius: 5px) {
  -moz-border-radius: @radius;
  -webkit-border-radius: @radius;
  border-radius: @radius;
}

.rounded_left_corners (@radius: 5px) {
	-webkit-border-top-left-radius: @radius;
	-webkit-border-bottom-left-radius: @radius;
	-moz-border-radius-topleft: @radius;
	-moz-border-radius-bottomleft: @radius;
	border-top-left-radius: @radius;
	border-bottom-left-radius: @radius;
}


.clear {
	clear: both;
}

html, body, div, form, fieldset, legend, label {
	margin: 0;
	padding: 0; 
}

img {
	border: none;
}

body {
	font-family: Georgia, Cambria, "Times New Roman", Times, serif;
	font-size: 12px;
	padding: 20px;
	padding-top: 50px;
	background: @body_color;
}

#main {
	padding-left: 30px;
}

#top-panel {
	position: fixed;
	_position: absolute;
	z-index: 20;
	background: #595959;
	background: rgba(89,89,89,.96);
	width: 100%;
	height: 29px;
	line-height: 29px;
	top: 0;
	left: 0;
	padding: 3px;
	border-bottom: 1px solid #303030;
	color: white;
	font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
}

a.back {
	float:left;
	color:white;
	margin: 0 10px;
}

a.back:hover {
	text-decoration:none;
}

a.blue-button, a.red-button, a.yellow-button {
	display: block;
	position: relative;
	height: 29px;
	overflow: hidden;
	float: left;
	margin-left: 5px;
}

a.blue-button span, a.red-button span, a.yellow-button span {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
}

a.blue-button:active span, a.red-button:active span, a.yellow-button:active span {
	top: 1px;
}

a.blue-button:hover, a.red-button:hover, a.yellow-button:hover {
	cursor: pointer;
}

a.blue-button {
	width: 134px;
}

a.blue-button span {
	background: transparent url('/predci/images/tlacitka.png') no-repeat 0 0;
}

a.blue-button:hover span, a.blue-button span.active {
	background-position: 0 -29px;
}

a.red-button {
	width: 100px;
}

a.red-button span {
	background: transparent url('/predci/images/tlacitka.png') no-repeat -134px 0;
}

a.red-button:hover span, a.red-button span.active {
	background-position: -134px -29px;
}

a.yellow-button {
	width: 97px;
}

a.yellow-button span {
	background: transparent url('/predci/images/tlacitka.png') no-repeat -234px 0;
}

a.yellow-button:hover span, a.yellow-button span.active {
	background-position: -234px -29px;
}


form#frm-generationForm {
	font-size: 12px;
	position: absolute;
	right: 15px;
}

form#frm-generationForm label {
	padding: 5px;
}

form#frm-uploadForm, form#frm-loginForm {
	font-size: 14px;
}

div.column {
	float:left;
	width:320px;	
	
}

div.column-part {
	width:100%;
	position:relative;
}

div.box {
	border: 1px solid @border_color;
	line-height: 20px;
	position:absolute;
	top:50%;
	height:60px;
	margin-top:-45px;
	background: @box_color;
	width:278px;
	.rounded_corners(10px);
	padding: 10px;
}

div.box .header img {
	vertical-align: middle;
	position: relative;
	top: -1px;
	left: 2px;
}

div.box.spouse {
	margin-top: 90px;
}

div.marriage {
	position: absolute;
	left: 10px;
	bottom: -3px;
	width: 300px;
	color: black;
}

div.marriage.spouse {
	margin-top: 57px;
	top: 50%;
}

div.marriage img {
	vertical-align: middle;
	position: relative;
	top: -1px;
	margin-right: 4px;
}

div.M, div.M a {
	color: @male_color;
	background: @male_box_color;
}

div.F, div.F a {
	color: @female_color;
	background: @female_box_color;
}

div.right-arrow {
	width:32px;
	height:32px;
	position:absolute;
	top:50%;
	right:-20px;
	margin-top:-20px;
}

div.left-arrow {
	width:32px;
	height:32px;
	position:absolute;
	z-index: 10;
	top:50%;
	left:-40px;
	margin-top:-20px;
}

div.line {
	width:10px;
	border: 1px solid @border_color;
	border-right: none;
	.rounded_left_corners(5px);
	position: absolute;
	right: 0;
	top: 50%;
}

div.line span {
	display: block;
	width:10px;
	height:1px;
	background: @border_color;
	position: absolute;
	top: 50%;
	left: -10px;
	overflow: hidden;
}

.hide {
	display: none;
}

.ancestors h3, .ancestors a {
	margin: 0;
	color: white;
	font-family: Arial, Tahoma, Verdana, Segoe, sans-serif;
	font-weight: normal;
	white-space: nowrap;
}

.ancestors h3 {
	margin-bottom: 5px;
}

.ancestors a {
	text-decoration: none;
	display: block;
	padding-top: 4px;
}

.ancestors a span.grayed {
	color: #B8B8B8;
	font-size: 11px;
}

.ancestors a:hover {
	text-decoration: underline;
}


div.index {
	border-bottom: 1px solid @border_color;
}

div.index ul {
	list-style: none;
	margin-bottom: 4px;
}

div.index ul li {
	margin-right: 4px;
	display: inline;
}

div.index ul li a {
	font-size: 14px;
	padding:4px;
	border: 1px solid @border_color;
	border-bottom: none;
	text-decoration: none;
	background: @box_color;
	color:black;
}

div.index ul li a:hover, div.index ul li.active a {
	background: black;
	color: white;
	border-color: black;
}

ul.list {
	list-style: none;
	font-size: 14px;
	line-height: 20px;
}

table.list {
	font-size: 14px;
	border-collapse: collapse;
	margin-top: 20px;
}

table.list td {
	padding: 7px;
	border: 1px solid black;
}












div#g1 div.column-part {
	height:@height;
}

div#g2 div.column-part {
	height:2*@height;
}

div#g3 div.column-part {
	height:4*@height;
}

div#g4 div.column-part {
	height:8*@height;
}

div#g5 div.column-part {
	height:16*@height;
}

div#g6 div.column-part {
	height:32*@height;
}

div#g7 div.column-part {
	height:64*@height;
}

div#g8 div.column-part {
	height:128*@height;
}

div#g9 div.column-part {
	height:256*@height;
}

div#g10 div.column-part {
	height:512*@height;
}




div#g2 div.column-part div.line {
	height:@height;
	margin-top: 0 - @height/2 - 5;
}

div#g3 div.column-part div.line {
	height:2*@height;
	margin-top: 0 - @height - 5;
}

div#g4 div.column-part div.line {
	height:4*@height;
	margin-top: 0 - 2*@height - 5;
}

div#g5 div.column-part div.line {
	height:8*@height;
	margin-top: 0 - 4*@height - 5;
}

div#g6 div.column-part div.line {
	height:16*@height;
	margin-top: 0 - 8*@height - 5;
}

div#g7 div.column-part div.line {
	height:32*@height;
	margin-top: 0 - 16*@height - 5;
}

div#g8 div.column-part div.line {
	height:64*@height;
	margin-top: 0 - 32*@height - 5;
}

div#g9 div.column-part div.line {
	height:128*@height;
	margin-top: 0 - 64*@height - 5;
}

div#g10 div.column-part div.line {
	height:256*@height;
	margin-top: 0 - 128*@height - 5;
}

div.flash {
	color: black;
	background: #FFF9D7;
	border: 1px solid #E2C822;
	padding: 1em;
	margin: 1em 0;
}

a[href^="error:"] {
	background: red;
	color: white;
}
