* { margin: 0; padding: 0; font-size: 100%; list-style: none; }

/*
html, body { height: 100%; }
*/


html {
  position: relative;
	/*
	height: 100%;
	width: 100%;
	overflow: hidden;
	*/
}
  
body {
  position: relative;
  font-family: 'Georgia', 'Comic Sans MS', serif;
  font-size: 76%;
  line-height: 1.2;
  background: #FFFFCC;
	color: #800A10;
	/*
	height: 100%;
	overflow: auto;
	*/
}

a:link    { color: #B16741; text-decoration: underline; }
a:visited { color: #CA967D; text-decoration: underline; }
a:focus   { color: #983806; text-decoration: none; }
a:hover   { color: #983806; text-decoration: none; }
a:active  { color: #983806; text-decoration: underline; }

p {
	margin-bottom: 10px;
}

#em {
  font-size: 100%;
  width: 1em;
  height: 1em;
  position: absolute;
  display: block;
  overflow: hidden;
}

#tree {
  /*
  position: absolute;
  left: 0; width:100%;
  bottom: 0px; top: auto; height: auto;
  overflow: scroll;
  */
  background: #FFFFCC url(../img/bg.jpg);
  position: relative;
  
  width: 100%;
	/*
  overflow: auto;
  */
}

/*
#tree.scrollable {
  cursor: url(../img/openhand.cur), default;
}

#tree.scrolling {
  cursor: url(../img/closedhand.cur), move;
}
*/

#header {
/*
  width: 100%;
*/  
  background: #FFFFCC;
  border-bottom: 2px solid #B18827;
}

#header .inner {
  padding: 5px;
  border-bottom: 4px solid #DAB359;
  position: relative;
  padding: 0px 280px 0px 5px;
	min-height: 64px;
}

#main {
  background: #FFFFCC;
  border-bottom: 2px solid #B18827;
}

#main .inner {
  padding: 5px;
  border-bottom: 4px solid #DAB359;
  position: relative;
  padding: 5px 16px;
}

#main ul, #main p, #main h2 {
	margin-bottom: 15px;
}

#main h1 {
	font-style: italic;
	font-size: 150%;
	color: #4C4C4C;
	margin-bottom: 15px;
}

#main h2 {
	margin-bottom: 5px;
	padding-left: 24px;
	background: url(../img/squiggle-rust.gif) no-repeat 0 50%;
}

#main ul {
	padding-left: 48px;
}

#main li {
	margin-bottom: 5px;
	padding-left: 24px;
	background: url(../img/squiggle-rust.gif) no-repeat 0 4px;
}

#header #logo {
  position: absolute;
  right: 0; top: 0;
}

#timeline {
/*
  width: 100%;
*/  
  position: relative;
  background: #FFFFCC;
  border-bottom: 2px solid #B18827;
}

#timeline .inner {
  padding: 5px;
  padding-bottom: 3.5em;
  border-bottom: 4px solid #DAB359;
}

#tree .inner {
  /*min-height: 600px;
  position: relative;*/
  padding-bottom: 2em;
}

#timeline ol {
  margin: 0 1.5em;
  background: #EEDB96;
  position: relative;
  height: 1em;
  border-top: 1px solid #B18827;
	border-bottom: 1px solid #B18827;
  top: 1em;
  margin-top: 1em;
}

#timeline li {
	width: 1em;
  height: 1em;
  position: absolute;
  top: 0em;
  border-left: 1px solid #B18827;
  /*padding-bottom: 0.5em;*/
  text-align: left;
}

#timeline li span {
	visibility: hidden;
  position: relative;
	top: 1.75em;
	/*
	width: 30em;
	left: -15em;
	*/
	text-align: center;
	display: block;
  border: 1px solid #800B10;
  background: #EDDA94;
	padding: 2px;
	left: -1em;
	white-space: nowrap;
	z-index: 99;
}

#timeline li:hover {
	width: auto;
	border-left-color: #800B10;
  padding-bottom: 0.75em;
}

#timeline li:hover span {
	visibility: visible;
}

#timeline li.mark {
  width: 4em;
  height: 1em;
  position: absolute;
  top: -0.5em;
  border-left: 1px solid #800B10;
  padding-top: 0.5em;
	padding-bottom: 1px;
  text-align: center;
}

#timeline li.mark span {
	visibility: visible;
  width: 4em;
  height: 1em;
  position: relative;
  left: -2em;
  top: -2em;
  display: block;
  padding: 0;
	border: none;
	background: transparent;
  color: #800B10;
}

#timeline li.here {
  border: none;
  width: 29px; height: 23px;
  top: 0.5em;
  padding: 0;
}

#timeline li.here span {
  width: 29px; height: 23px;
  background: url(../img/arrow.gif) no-repeat 0 0;
  text-indent: -9999px;
  top: -11.5px;
  left: -29px;
}

/* ------------------------- */

ul#menu {
  overflow: visible;
  padding-left: 16px;
  font-size: 70%;
  text-transform: uppercase;
  font-family: Verdana;
  padding-top: 8px;
	position: absolute;
	left: 16px; bottom: 0;
}

ul#menu li {
  display: block;
  float: left;
}

ul#menu li a, ul#menu li b {
  position: relative;
  display: block;
  float: left;
  background: url(../img/tab-left.png) no-repeat 0 0;
  padding-left: 16px;
  margin-left: -16px;
  color: white;
  font-weight: bold;
	outline: none;
}

ul#menu li a span, ul#menu li b span {
  display: block;
  float: left;
  background: url(../img/tab-right.png) no-repeat 100% 0;
  padding-left: 16px;
  padding-right: 32px;
  padding-top: 8px;
  padding-bottom: 8px;
}

ul#menu li a:link    { color: #ffffff; text-decoration: none; }
ul#menu li a:visited { color: #ffffff; text-decoration: none; }
ul#menu li a:focus   { color: #ffffff; text-decoration: underline; }
ul#menu li a:hover   { color: #ffffff; text-decoration: underline; }
ul#menu li a:active  { color: #ffffff; text-decoration: underline; }

ul#menu li.item0 a { z-index: 9; }
ul#menu li.item1 a { z-index: 8; }
ul#menu li.item2 a { z-index: 7; }
ul#menu li.item3 a { z-index: 6; }
ul#menu li.item4 a { z-index: 5; }

body ul#menu li a:focus, body ul#menu li a:hover, body ul#menu li a:active, body ul#menu li a.selected, body ul#menu li b {
  margin-top: -8px;
  z-index: 10;
	/*margin-bottom: -2px;*/
}

body ul#menu li a.selected, body ul#menu li b {
	z-index: 11;
	background-image: url(../img/tab-sel-left.png);
	color: #800B10;
}

body ul#menu li a:focus span, body ul#menu li a:hover span, body ul#menu li a:active span, body ul#menu li a.selected span, ul#menu li b span {
  padding-bottom: 16px;
	/*padding-bottom: 18px;*/
	padding-top: 14px;
	padding-bottom: 10px;
}

body ul#menu li a.selected span, body ul#menu li b span {
	background-image: url(../img/tab-sel-right.png);
}

/* ------------------------- */

#tree h3 {
  display: none;
}

.node {
  width: 12em;
  height: 6em;
  border: 1px solid #800B10;
  background: #DAB359;
  position: absolute;
  text-align: center;
  z-index: 13;
}

.node-placeholder {
	border-style: dashed;
  background: #FFFCD4;
}

.node a.tree {
  display: block;
  position: absolute;
  left: 0px; top: 0px; width: 100%; height: 100%;
  background: url(../img/pixel.gif) repeat 0 0;
  overflow: hidden;
  text-indent: -9999px;
  z-index: 14;
}

.node a.add {
  display: block;
  position: absolute;
  left: 0px; top: 0px; width: 100%; height: 100%;
  background: url(../img/add.png) no-repeat 2px 2px;
  overflow: hidden;
	line-height: 6em;
  z-index: 14;
	opacity: 0.6;
}

.node a.bio, .node a.edit {
  display: block;
  position: absolute;
  width: 16px; height: 16px;
  overflow: hidden;
  text-indent: -9999px;
  z-index: 15;
	opacity: 0.6;
}

.node a.bio:focus, .node a.bio:hover, .node a.bio:active,
.node a.edit:focus, .node a.edit:hover, .node a.edit:active,
.node a.add:focus, .node a.add:hover, .node a.add:active {
	opacity: 1.0;
}

.node a.bio {
  left: 2px; bottom: 2px;
  background: url(../img/info.png) no-repeat 0 0;
}

.node a.edit {
  right: 2px; bottom: 2px;
  background: url(../img/pencil.png) no-repeat 0 0;
}

.node a.bio:hover, .node a.bio:active {
	opacity: 1.0;
}

.node .tail {
  position: absolute;
  left: 6em;
  border-left: 1px solid #800B10;
  height: 1em;
  /*
	width: 1em;
  background: red;
  */
  top: -1em;
  margin-top: -2px;
  padding-bottom: 1px;
	
  overflow: hidden;
	
}

.node-placeholder .tail {
  border-left: 1px dashed #800B10;
}

/*
.primary .tail {
  margin-left: -1px;
}
*/

ol.children .node .tail {
  margin-top: 0px;
  padding-bottom: 0;
}

ol.grandchildren .node .tail {
  width: 1em;
  left: -1em;
  top: 3em;
  border-top: 1px solid #800B10;
  border-left: none;
  margin: 0; padding: 0;
}

* .primary {
  border: 2px solid #800B10;
  font-weight: bold;
  margin-left: -1px;
	margin-top: -1px;
}

* .spouse {
  background: #EDDA94;
}

.node .name {
  display: block;
  color: #800B10;
  margin-top: 0.5em;
  height: 2.5em;
	letter-spacing: -0.01em;
}

.node .lifespan {
  display: block;
  font-style: italic;
  font-size: 80%;
  color: #9B3E30;
  /*margin-top: 0.5em;*/
	position: absolute;
	width: 100%;
	bottom: 0.5em;
	z-index: 13;
	left: 0;
}

.node .name b, .node .lifespan b {
  display: none;
}

.spouseswitcher {
  position: absolute;
  width: 12em;
  margin-top: -1.2em;
  text-align: center;
  overflow: visible;
  height: 1.2em;
}

.spouseswitcher span {
  font-size: 80%;
  display: block;
  font-style: normal;
  color: #800B10;
}

.spouseswitcher a, .spouseswitcher a abbr {
  outline: none;
  border: none;
  text-decoration: none;
}

.spouseswitcher a {
  display: block;
	/*
  width: 1.2em;
  height: 1.2em;
  border: 1px solid #800B10;
  background: #EDDA94;
	*/
  position: absolute;
  bottom: 2px;
	text-indent: -9999px;
	width: 16px; height: 16px; overflow: hidden;
	line-height: 1.2em;
	opacity: 0.6;
}

.spouseswitcher a:hover {
  opacity: 1.0;
}

.spouseswitcher a.prev {
  left: 0;
	background: url(../img/arrow-left.png) no-repeat 0 0;
}

.spouseswitcher a.next {
  right: -2px;
	background: url(../img/arrow-right.png) no-repeat 0 0;
}

.spouseswitcher a.add {
  right: -2px;
	background: url(../img/add.png) no-repeat 0 0;
}

/* note: spacing is 4em/2em */
/* left: parent.left + (4+12) */

/*
.c1 { left: 2em; }
.c2 { left: 18em; }
.c3 { left: 34em; }
.c4 { left: 50em; }
.c5 { left: 66em; }
.c6 { left: 82em; }

.c1a { left: 10em; }
.c2a { left: 26em; }
.c3a { left: 52em; }
.c4a { left: 58em; }
.c5a { left: 74em; }
.c6a { left: 90em; }

.r1 { top: 2em; }
.r2 { top: 10em; }
.r3 { top: 18em; }
.r4 { top: 26em; }
.r5 { top: 34em; }
.r6 { top: 42em; }
*/

div.marriage {
  z-index: 2;
  position: absolute;
  width: 4em;
  margin-left: 12em;
  margin-top: 3em;
  text-align: center;
  border-top: 1px solid #800B10;
}

div.marriage-placeholder {
  border-top: 1px dashed #800B10;
}

div.marriage span {
  display: none;
}

div.marriage .date {
  position: relative;
  top: -1.5em; /* (1.0/0.8=)1.25 * 1.2 */
  font-size: 80%;
  color: #800B10;
}

div.marriage .children {
  position: absolute;
  left: 2em;
  width: 2em;
  top: 0em;
  height: 4em;
  margin-left: 1px;
  display: block;
  text-indent: -9999px;
  border-left: 1px solid #800B10;
  overflow: hidden;
}

div.marriage .child-count {
  position: absolute;
  top: 5em;
  color: #800B10;
	display: block;
	width: 12em;
	left: -4em;
	height: 1.2em;
	padding-top: 2px;
	/*
	background: red; color: white;
	*/
}

#tree h3.children {
  display: block; position: absolute; text-indent: -9999px;
  margin: 0; padding: 0;
  margin-left: 6em;
  margin-top: 7em;
  z-index: 4;
}

#tree h3.children span {
  display: block; width: 100%;
  border-top: 1px solid #800B10;
  margin-left: 1px;
  margin-top: 1px;
}

#tree h3.grandchildren {
  display: block; position: absolute; text-indent: -9999px;
  margin: 0; padding: 0;
  margin-left: -1em;
  margin-top: 7em;
  z-index: 4;
}

#tree h3.grandchildren span {
  display: block; width: 15em; height: 100%;
  border-top: 1px solid #800B10;
  border-left: 1px solid #800B10;
  margin-left: 1px;
  margin-top: 0px;
  padding-bottom: 4em;
  padding-top: 1px;
}

.w1 { width: 0; }
.w2 { width: 16em; }
.w3 { width: 32em; }
.w4 { width: 48em; }
.w5 { width: 64em; }

.h1 { height: 0; }
.h2 { height: 8em; }
.h3 { height: 16em; }
.h4 { height: 24em; }
.h5 { height: 32em; }
.h6 { height: 40em; }

/* ------------------------------- */

#minimap {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 300px;
  height: 200px;
  border: 3px solid rgb(152,56,6);
  background: #FFFCD4;
  color: white;
	overflow: hidden;
  z-index: 97;
	cursor: url('../img/openhand.cur'), move;
}

#minimap.moving {
	cursor: url('../img/closedhand.cur'), move;
}

#minimap #viewport {
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border: 2px solid rgb(152,56,6);
  z-index: 99;
}

#minimap .node {
  overflow: hidden;
}

#minimap .fader {
	opacity: 0.2;
	background: black;
	position: absolute;
	z-index: 98;
	overflow: hidden;
}

/* ------------------------------------- */

#main ul.scope-letter {
	display: block;
	overflow: hidden;
	padding: 1em 1em 1em 0;
	margin-left: 5px;
}

#main ul.scope-letter li {
	display: inline;
	text-transform: uppercase;
	border-left: 1px solid black;
	padding-left: 1em;
	margin-left: 1em;
	background-image: none;
}

#main ul.scope-letter li:first-child {
	border-left: none;
	margin-left: 0;
}

div.paging {
	display: block;
	overflow: hidden;
	padding: 1em;
	clear: both;
}

#main ul.people {
	padding: 1em;
	width: 30%;
	float: left;
}

/* ----------------- */

#person-overview {
	position: relative;
	overflow: hidden;
	padding: 1em;
}

#person-overview .image-holder {
	float: left;
	padding: 5px;
	margin-right: 15px;
}

#person-overview .image-holder img {
	height: 120px;
	border: 1px solid #E3C9A3;
}

#person-overview h1 {
	font-style: italic;
	font-size: 150%;
	color: #4C4C4C;
	margin-bottom: 15px;
	margin-top: 5px;
	letter-spacing: .02em;
	position: relative;
	overflow: hidden;
}

#person-overview h1 span {
	float: left;
}

#person-overview table {
	/*float: left;*/
}

#person-overview td, #person-overview th {
	padding-bottom: 5px;
}

#person-overview th {
	text-align: left;
	font-weight: bold;
	padding-right: 1em;
}

#person-overview a.edit {
  display: block;
	/*
  position: absolute;
	right: 0; top: 50%;
	margin-top: -8px;
	*/
	float: left;
  width: 16px; height: 16px;
	margin-top: 3px;
	margin-left: 8px;
  overflow: hidden;
  text-indent: -9999px;
	opacity: 0.6;
  background: url(../img/pencil.png) no-repeat 0 0;
}

#person-overview a.edit:focus, #person-overview a.edit:hover, #person-overview a.edit:active {
	opacity: 1.0;
}

#person-info {
	overflow: hidden;
	position: relative;
	/*
	background: #FFFCD4 url(../img/bio-divider.png) repeat-y 50% 0;
	border: 1px solid #E3C9A3;
	margin: 1em;
	*/
}

#person-info h2 {
	font-style: italic;
	font-size: 150%;
	color: #4C4C4C;
	margin-bottom: 15px;
	letter-spacing: .02em;
}

#person-bio {
	float: left;
	width: 50%;
}

#person-events {
	float: left;
	width: 50%;
}

#person-bio .inner {
	margin: 1em 7px 1em 16px;
	padding: 5px;
	border: 1px solid #E3C9A3;
	background: #FFFCD4;
}

#person-events .inner {
	margin: 1em 16px 1em 7px;
	border: 1px solid #E3C9A3;
	padding: 5px;
	background: #FFFCD4;
}

#person-events td, th {
	min-height: 10px;
}

#person-events th {
	padding-right: 1em;
}

/*
#person-events td {
	padding-left: 20px;
	background: url(../img/squiggle-rust.gif) no-repeat 0 50%;
}
*/

/* ----------------------- */

form#SearchAddForm {
	padding-top: 10px;
	margin-bottom: 10px;
	overflow: hidden;
	font-size: 120%;
}

form#SearchAddForm label {
	margin-right: 1em;
	font-weight: bold;
	display: inline;
}

form#SearchAddForm .text input {
	width: 20em;
}

form#SearchAddForm input {
	font-size: 120%;
}

form#SearchAddForm div {
	float: left;
}

/* ----------------- General forms ----------------- */

form {
	font-size: 120%;
}

.input {
	margin-bottom: 5px;
}

.text input, .textarea textarea {
	font-family: "frutiger linotype", "lucida grande", "verdana", sans-serif;
	padding: 2px 1px;
	
	border-top:1px solid #7c7c7c;
	border-left:1px solid #c3c3c3;
	border-right:1px solid #c3c3c3;
	border-bottom:1px solid #ddd;
	background:#fff url(../img/fieldbg.gif) repeat-x top;
	
	width: 27em;
}

label {
	display: block;
	padding-bottom: 5px;
	font-weight: bold;
}

.year-and-place .year {
	clear: left;
	float: left;
	width: 6em;
}

* html .year-and-place .year {
	margin-right: -5px;
}

.year-and-place .year input {
	width: 6em;
}

.year-and-place .place {
	float: left;
	width: 20em;
	margin-left: 1em;
}

.year-and-place .place input {
	width: 20em;
}

/* --- */

form .full-name .prefix-title {
	float: left;
	clear: left;
	width: 13em;
}

form .full-name .prefix-title input {
	width: 13em;
}

* html .full-name .prefix-title {
	margin-right: -5px;
}

form .full-name .suffix-title {
	float: left;
	width: 13em;
	margin-left: 1em;
}

form .full-name .suffix-title input {
	width: 13em;
}

form fieldset {
	border: none;
	overflow: auto;
	clear: left;
	padding-top: 5px;
	color: #800A10;
}

form fieldset legend {
	font-weight: bold;
	color: #800A10;
	margin: 0; padding: 0; text-indent: 0; position: static;
}

form fieldset input {
	float: left;
	margin-right: 0.5em;
}

form fieldset label {
	float: left;
	margin-right: 1em;
	font-weight: normal;
}

/* -------------------------------- */

form .group {
	overflow: hidden;
	clear: left;
	padding-bottom: 10px;
}

form .group .error-message {
	width: 27em;
	background: #800A10;
	color: white;
	padding: 4px 2px;
	font-weight: bold;
}

/*
form .group label {
	font-weight: bold;
}
*/

form .group * label {
	font-size: 75%;
	font-weight: normal;
	margin-top: 2px;
}

.image-edit-holder {
}

.image-edit-holder h2 {
	padding-left: 0!important;
	background-image: none!important;
}

.image-edit-holder-inner {
	overflow: hidden;
}

.image-edit-holder-inner .current-image {
	float: left;
	width: 10em;
}

.image-edit-holder-inner .image-options {
	float: left;
	width: 16em;
	margin-left: 1em;
}

.image-edit-holder-inner .image-options .radio input {
	float: left;
	clear: left;
	margin-top: 0.1em;
}

.image-edit-holder-inner .image-options .radio label {
	font-weight: normal;
	float: left;
	margin-left: 0.5em;
}

.image-edit-holder-inner .image-options .file {
	clear: both;
}

/* ------------------------------- */

#modal-screen {
	position: absolute;
	background: black;
	z-index: 9998;
	left: 0; top: 0; width: 100%; height: 100%;
	visibility: hidden;
	opacity: 0.5;
}

#modal-frame {
	position: absolute;
	z-index: 9999;
	left: 25%; top: 10%;
	width: 50%; height: 80%;
	/*margin-left: -200px;*/
	background: white url(../img/loading.gif) no-repeat 50% 50%;
	border: 1px solid red;
	visibility: hidden;
}

body.modal-mode #modal-screen {
	visibility: visible;
}

body.modal-mode #modal-frame {
	visibility: visible;
}

/* ----------------------------- */

/* Tables */
table.cake-sql-log {
	background: #fff;
	border:1px solid #ccc;
	border-right:0;
	clear: both;
	color: #333;
	margin-bottom: 10px;
	width: 100%;
	font-family: monospace;
	font-size: 12px;
}
table.cake-sql-log th {
	background: #f2f2f2;
	border:1px solid #bbb;
	border-top: 1px solid #fff;
	border-left: 1px solid #fff;
	text-align: center;
}
table.cake-sql-log th a {
	background:#f2f2f2;
	display: block;
	padding: 2px 4px;
	text-decoration: none;
}
table.cake-sql-log th a:hover {
	background: #ccc;
	color: #333;
	text-decoration: none;
}
table.cake-sql-log tr td {
	background: #fff;
	border-right: 1px solid #ccc;
	padding: 4px;
	text-align: left;
	vertical-align: top;
}
table.cake-sql-log tr.altrow td {
	background: #f4f4f4;
}
table.cake-sql-log td.actions {
	text-align: center;
	white-space: nowrap;
}
table.cake-sql-log td.actions a {
	margin: 0px 6px;
}
table.cake-sql-log {
	background: #f4f4f4;
}
table.cake-sql-log td {
	padding: 4px 8px;
	text-align: left;
}