/* --- template ----------------------------------------------------------- */

* {
	margin: 0;
	padding: 0;
}

html, body {
	margin: 0;
	padding: 0;
	color: black;
	background: white;
	height: 100%;
	text-align: center;
	font-size: 14px;
	font-family: "Century Gothic", Verdana, Geneva, sans-serif;
}

#sudobody {
	width: 700px; /* 128*5 + 15*4 = 640 + 60 = 700 */
	margin: 0 auto;
	padding: 0 15px;
	border-left: solid #CCC 1px;
	border-right: solid #CCC 1px;
	text-align: left;
	min-height: 100%;
}

* html #sudobody {
	height: 100%;
}

#main {
	padding-bottom: 55px;
}

h1#header {
	margin: 0 -16px 15px;
	padding: 15px;
	color: white;
	background: #8A8;
	border-left: 1px solid #696;
	border-right: 1px solid #696;
	border-bottom: 1px solid #696;
	text-align: left;
	font-size: 20px;
	line-height: 20px;
	font-weight: normal;
}

h2#subheader {
    margin: -15px -15px 15px;
    padding: 10px 15px;
    background: #EEE;
    border-bottom: solid 1px #CCC;
    font-size: 16px;
    line-height: 16px;
	font-weight: normal;
}

h2#subheader .lifespan {
	font-size: 14px;
	line-height: 1em;
}

#mainmenu {
	float: right;
	margin: -41px 0 0;
	padding: 0;
}

#mainmenu a,
#mainmenu a:link,
#mainmenu a:active,
#mainmenu a:visited
{
	color: #CFC;
	margin: 0 0 0 5px;
	padding: 5px 5px 0;
	font-size: 12px;
	line-height: 15px;
	height: 20px;
	text-decoration: none;
	float: right;
	overflow: hidden;
}

#mainmenu a:hover {
	color: #696;
	background: #CFC;
}

.clearer {
	clear: both;
	height: 1px;
	margin-top: -1px;
}

#footer {
	margin: -41px auto 0;
	padding: 0;
	width: 732px;
	height: 40px;
	text-align: center;
	border-top: 1px solid #CCC;
	color: #666;
	background: white;
	font-size: 10px;
	line-height: 20px;
}

#footer a,
#footer a:link,
#footer a:active,
#footer a:visited
{
	color: #666;
	font-weight: bold;
	text-decoration: none;
}

#footer a:hover {
	color: black;
}

#copyright {
	text-align: right;
	padding: 2px 20px;
	line-height: 16px;
	float: left;
}

#about {
	text-align: left;
	padding: 2px 20px;
	line-height: 16px;
	float: right;
}

.error {
	padding: 5px 5px 5px 26px;
	color: white;
	background: #A88 url(/genealogy/icons/error.png) 5px 5px no-repeat;
	border-top: solid 1px #966;
}

.update {
	padding: 5px 5px 5px 26px;
	color: white;
	background: #888 url(/genealogy/icons/page_refresh.png) 5px 5px no-repeat;
	border-top: solid 1px #666;
}

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

a {
	color: #363;
}

a:hover {
	color: #040;
}

.clickable {
	cursor: pointer;
}

h1#header a {
	color: white;
	text-decoration: none;
}

h1#header a:hover {
	color: #CFC;
	text-decoration: none;
}

h2 {
	font-weight: bold;
	font-size: 20px;
	margin: 1em 0 0.5em;
}

h3 {
	font-weight: normal;
	font-variant: small-caps;
	font-size: 20px;
	margin: 0.5em 0 0;
}

form {
	border: solid 1px #CCC;
	background: #EEE;
	padding: 0 15px;
}

label input {
	display: block;
	margin-left: 15px;
}

p {
	margin: 15px 0;
}

/* ------------------------------------------------------------------------ */
/* --- common to families and individuals --------------------------------- */

.family-male,
.family-female,
.family-events,
.family-children,
.family-parents-male,
.family-parents-female,
.individual-male,
.individual-female,
.individual-unknown,
.individual-parents,
.individual-family {
	padding: 5px 5px 0;
	width: 332px;
	float: left;
	margin-right: 15px;
	margin-bottom: 15px;
}

.family-parents-male,
.family-parents-female,
.individual-parents {
	margin-bottom: 0;
}

.family-parents-male .parents,
.family-parents-female .parents,
.individual-parents .parents {
	display: block;
	margin: -5px -5px 15px;
	font-size: 12px;
	padding: 5px 5px 5px 26px;
	min-height: 16px;
	line-height: 16px;
	border-top: solid 1px #CCC;
	background: #EEE url(/genealogy/icons/group.png) 5px 50% no-repeat;
}

.family-male .name,
.family-female .name,
.individual-male .name,
.individual-female .name,
.individual-unknown .name {
	margin: -5px -5px 5px;
	padding: 5px 5px 5px 26px;
	color: white;
	background: #8A8 url(/genealogy/icons/male.png) 5px 5px no-repeat;
	border-top: solid 1px #696;
}

.family-female .name,
.individual-female .name {
	background: #8A8 url(/genealogy/icons/female.png) 5px 5px no-repeat;
}

.family-male .name a,
.family-female .name a,
.individual-male .name a,
.individual-female .name a,
.individual-unknown .name a {
	color: white;
	text-decoration: none;
}

.family-male .name a:hover,
.family-female .name a:hover,
.individual-male .name a:hover,
.individual-female .name a:hover,
.individual-unknown .name a:hover {
	color: #CFC;
	text-decoration: none;
}

.event {
	margin: 5px 0;
	font-size: 12px;
}

.event .type {
	border-bottom: 1px solid #CCC;
	font-size: 10px;
	color: #999;
}

.event .date,
.event .loc {
	padding: 5px 0 0 21px;
	min-height: 16px;
	line-height: 16px;
	background: url(/genealogy/icons/date.png) 0 5px no-repeat;
}

.marriage .date {
	padding: 5px 0 0 21px;
	min-height: 16px;
	line-height: 16px;
	background: url(/genealogy/icons/heart.png) 0 5px no-repeat;
}

.event .loc {
	background: url(/genealogy/icons/world.png) 0 5px no-repeat;
}

.lifespan {
	font-size: 10px;
	line-height: 1em;
}

.sources
{
	margin-top: 30px;
}

.sources .title
{
	margin: -5px -5px 5px;
	padding: 5px 5px 5px 26px;
	background: #EEE url(/genealogy/icons/book_open.png) 5px 5px no-repeat;
	border-top: solid 1px #CCC;
}

.sources .clickable
{
	background: #EEE url(/genealogy/icons/book.png) 5px 5px no-repeat;
}

.sources .clicked
{
	background: #EEE url(/genealogy/icons/book_open.png) 5px 5px no-repeat;
}

.sources .source
{
	margin: 5px 5px 5px 3px;
	font-size: 12px;
}

.sources .source sup
{
	float: left;
	width: 16px;
	margin-right: 2px;
	text-align: right;
	color: #666;
}

a.source-ref {
	font-size: 0.75em;
	vertical-align: text-top;
	text-decoration: inherit;
	position: relative;
	top: -0.3em;
	padding: 0 1px;
}

.alt-families {
	margin: -5px 0 5px 0;
	font-size: 12px;
	padding: 5px 5px 0;
	background: #EEE;
	border-bottom: solid 1px #CCC;
}

.alt-families .spouse {
	display: block;
	padding-left: 21px;
	padding-bottom: 5px;
	min-height: 16px;
	line-height: 16px;
	background: url(/genealogy/icons/group.png) 0 0 no-repeat;
}

.family-children .child-male,
.family-children .child-female,
.family-children .child-unknown {
	display: block;
	font-size: 12px;
	padding: 5px 0 0 21px;
	min-height: 16px;
	line-height: 16px;
	background: url(/genealogy/icons/male.png) 0 5px no-repeat;
}

.family-children .child-female {
	background: url(/genealogy/icons/female.png) 0 5px no-repeat;
}

.family-children .child-unknown {
	/* background: inherit; */
	background: url(/genealogy/icons/asterisk_orange.png) 0 5px no-repeat;
}

/* ------------------------------------------------------------------------ */
/* --- family ------------------------------------------------------------- */

.family-female,
.family-children,
.family-parents-female {
	float: right;
	margin-right: 0;
}

.show-families {
	float: right;
	height: 16px;
	width: 16px;
	background: url(/genealogy/icons/group_add.png);
}

.clicked .show-families {
	background: url(/genealogy/icons/group_delete.png);
}

.family-events .title {
	margin: -5px -5px 5px;
	padding: 5px 5px 5px 26px;
	background: #EEE url(/genealogy/icons/asterisk_yellow.png) 5px 5px no-repeat;
	border-top: solid 1px #CCC;
}

.family-children .title {
	margin: -5px -5px 5px;
	padding: 5px 5px 5px 26px;
	background: #EEE url(/genealogy/icons/chart_organisation.png) 5px 5px no-repeat;
	border-top: solid 1px #CCC;
}

/* ------------------------------------------------------------------------ */
/* --- individual --------------------------------------------------------- */

.individual-unknown .name {
	background: #8A8 url(/genealogy/icons/asterisk_yellow.png) 5px 5px no-repeat;
}

.individual-family {
	float: right;
	clear: right;
	margin-right: 0;
}

.individual-family .name {
	margin: -5px -5px 5px;
	padding: 5px 5px 5px 26px;
	background: #EEE url(/genealogy/icons/group.png) 5px 5px no-repeat;
	border-top: solid 1px #CCC;
}

.individual-family .family-children {
	padding: 0;
	width: auto;
	float: none;
	margin: 0;
}

/* ------------------------------------------------------------------------ */
/* --- index -------------------------------------------------------------- */

#index h3 {
	display: inline;
	margin: 0;
}

#index div.surname {
	margin: 0.5em 0 0;
	font-size: 10px;
}

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

/*

#gbookmarks {
	border-bottom: solid 1px #CCC;
	background: #EEE;
	height: 26px;
	padding: 0;
	margin: -15px -15px 7px;
	font-size: 10px;
	line-height: 12px;
	text-wrap: none;
}

#gbookmarks a:link
{
	color: #666;
}

#gbookmarks .mark {
	width: 128px;
	height: 12px;
	float: right;
	padding: 7px;
	border-left: 1px solid #CCC;
	margin: 0;
	overflow: hidden;
}

#gbookmarks .first {
	padding: 7px 0 7px 15px;
	margin: 0;
	border: none;
	color: #999;
	float: left;
	max-width: 128px;
	overflow: hidden;
}

#gbookmarks .last {
	padding: 7px 7px 7px;
	width: 136px;
}

#gbookmarks .empty {
	text-align: center;
	text-decoration: none;
}

#gbookmarks .person {
	display: block;
	height: 26px;
	width: 128px;
	text-decoration: none;
	margin: -7px;
	padding: 7px;
}

#gbookmarks .last .person {
	margin: -7px -15px -7px -7px;
	padding: 7px 15px 7px 7px;
}

#gbookmarks .delete {
	float: right;
	padding: 0 3px;
	background: #EEE;
	text-decoration: none;
}

#gbookmarks .empty:hover,
#gbookmarks .person:hover,
#gbookmarks .delete:hover {
	color: #EEE;
	background: #CCC;
}

*/
