/**
 * webtrees: online genealogy
 * Copyright (C) 2016 webtrees development team
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

/* ======== Globals ========== */

/* Add a permanent scrollbar, to prevent "flickering" when hover effects lengthen page */
html {
	overflow-y: scroll;
}

body {
	color: #006;
	background-color: #fff;
	font: 12px tahoma, arial, helvetica, sans-serif;
	margin: 1px;
}

main {
	display: block;
	clear: both;
}

#content #home-page {
    margin-left: 5px;
}

#content h2 {
	margin-left: 10px;
}

[dir=rtl] #content #home-page {
    margin-right: 5px;
}

[dir=rtl] #content h2 {
	margin-right: 10px;
}

/* ====== Round Corners ======== */

/* ios on click workaround */
.iconz {
	cursor: pointer;
}

input:required:valid,
textarea:required:valid {
	background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAONJREFUeNpi/P//PwMlgImBQjDwBrCgCzDOF2Zg+Adk/AOGDRvQfHZGoDWMxgyMDMb/Q1/NIt0F/xk8gIbNZPj7P41YL4AUGsM1//rfkuyeYMzw8z9xXgBqgNm0nuHnv0D/IH/juavmngV6oYY4F3z7y2DqY2oMpANB9MYl684yfP9Xw3Dzzw7sXgQmJGTM0MbjwdDKc0b2vt5/EM2QwunBoMyCVS1YPYYAMOwZ7FmiGLLYzjBYsSQD+QpALAjErNgMYERPyoyMjMxAih+IOYD4LxD/hOJfQLV/MaJ9NC8wAAQYAPbPfH2KJKx/AAAAAElFTkSuQmCC) no-repeat right top;
}

input:required:invalid,
textarea:required:invalid {
	background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMpJREFUeNpi/P//PwMlgImBQjAMDGBBF1jFyOgBpFqAuOYPA8MOoAI4P+z//x0YJoBiARkvYWA486+k5D+IBuJqZD66WnAMogvMA9o4F6j4R3Lyf2R6IQODMVEGTAW6CoirgfjMB2/v/yB6CgNDYQ8W14IwRiB+A7rgOwNDYLChofGcrVvPgugfDAzR/yFhwUAwDJqBNj6Ulf0PooEhV4jMx+YCRvSknAeMBWDotwgwMKRzMTCcfQW0GcQHxkbNJCyxwDiaFxgAAgwAYy67YIOQ//cAAAAASUVORK5CYII=) no-repeat right top;
}

[dir=rtl] input:required:valid,
[dir=rtl] textarea:required:valid,
[dir=rtl] input:required:invalid,
[dir=rtl] textarea:required:invalid {
	background-position: left top;
}

a {
	color: #00f;
	text-decoration: none;
}

a:hover {
	color: #f00;
	text-decoration: none;
}

:focus {
	outline-style: none;
}

.flash-messages {
	clear: both;
	text-align: center;
}

dl {
	margin: 0;
}

dt {
	float: left;
	font-weight: bold;
	margin-right: 10px;
}

[dir=rtl] dt {
	float: right;
	margin-right: auto;
	margin-left: 10px;
}

h2 {
	color: #006;
	font-size: 18px;
	font-weight: bold;
}

h4 {
	color: #006;
	font-size: 12px;
	font-weight: bold;
}

th {
	font-weight: 100;
}

ul {
	padding-left: 15px;
	padding-right: 15px;
	margin: 8px;
}

img {
	border: 0;
}

legend img {
	height: 20px;
	vertical-align: middle;
	width: 20px;
}

/* Some styles from bootstrap */
.text-muted {
	color: #777;
}

.small {
	font-size: 12px;
}

img.block,
#mycart img {
	border: 0;
	height: 25px;
	vertical-align: middle;
}

input,
button,
textarea {
	border-width: 1px;
	border-color: #fff #555 #555 #fff;
	font-size: 12px;
}

input,
textarea {
	padding: 0 3px;
}

textarea {
	border-style: inset;
}

.topbottombar {
	background-color: #c3dfff;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	padding: 4px;
	text-align: center;
}

fieldset {
	margin: 8px 8px 4px;
	text-align: left;
}

[dir=rtl] fieldset {
	text-align: right;
}

legend {
	font-weight: bold;
}

select {
	border: 1px solid #555;
	font-size: 12px;
	margin: 0 7px;
	padding: 1px;
}

header form {
	font-size: 12px;
}

#mycart a img {
	height: 15px;
}

.button {
	width: 60px;
}

.alpha_index {
	color: #999;
}

.person_box, .action_header {
	background: #f0f9ff;
	border: solid #84beff 1px;
	padding: 3px;
}

.person_boxF, .action_headerF {
	background: #fff0f0;
	border: 1px solid #ff2080;
	padding: 3px;
}

.person_boxNN {
	background: #fff;
	border: dashed #008080 1px;
	padding: 3px;
}

.person_box:target,
.news_box:target,
#gedcom_stats:target {
	background-color: #ffc;
}

/* families tab person box */
#relatives_content .person_box > .person_box,
#relatives_content .person_boxF > .person_boxF,
#relatives_content .person_boxNN > .person_boxNN {
	border: 0;
	min-height: 50px;
}

.center {
	text-align: center;
}

table.center {
	margin-left: auto;
	margin-right: auto;
}

.list_table {
	margin: 0 auto;
}

.list_label,
.list_label_wrap {
	color: #fff;
	font-size: 12px;
	background-color: #81a9cb;
	font-weight: bold;
	text-align: center;
}

.list_value,
.list_value_wrap {
	background-color: #edf7f9;
	font-size: 12px;
	border: solid #81a9cb 1px;
	vertical-align: top;
}

.list_label,
.list_value {
	white-space: nowrap;
}

.list_label_wrap,
.list_value_wrap {
	white-space: normal;
}

.list_item {
	font-size: 12px;
}

.facts_table {
	width: 100%;
}

.facts_table .optionbox {
	white-space: normal;
}

div.fact_SHARED_NOTE {
	clear: both;
}

.facts_label {
	background-color: #c3dfff;
	color: #006;
	font-size: 12px;
	padding: 4px;
	width: 20%;
	text-align: center;
}

.facts_label03 {
	color: #fff;
	background-color: #81a9cb;
	font-size: 12px;
	padding: 4px;
	text-align: center;
	font-weight: bold;
}

.facts_value {
	background-color: #ecf5ff;
	font-size: 12px;
	border: solid #c3dfff 1px;
	padding: 4px;
}

.quickfacts a {
	padding: 0 3px;
	font-size: 9px;
}

.tabs_table {
	width: 99%;
}

.name1, .name2 {
	font-weight: bold;
	font-size: 12px;
}

a:hover .name1, a:hover .name2 {
	color: #f00;
	font-weight: bold;
	font-size: 12px;
}

a:hover .nameZoom {
	color: #f00;
	font-size: 14px;
	font-weight: bold;
}

.details0,
.details1 {
	font-size: 11px;
}

.details2 {
	font-size: 12px;
}

.nameZoom {
	color: #555;
	font-size: 14px;
	font-weight: bold;
}

.details_label {
	font-weight: bold;
}

.name_head {
	color: #555;
	font-size: 16px;
	font-weight: bold;
	line-height: 2;
	padding: 0 5px;
}

.date {
	color: #337;
}

.label {
	font-weight: bold;
}

.error {
	color: #d00;
	font-weight: bold;
}

.largeError {
	color: #d00;
	font-size: large;
	font-weight: bold;
}

.warning {
	color: #f00;
	font-weight: bold;
}

.indent {
	padding-left: 20px;
}

.image {
	height: 150px;
	padding: 5px;
	margin: 2px;
}

.gender_image {
	margin: 0 3px;
	border: 0;
	vertical-align: middle;
}

.thumbnail {
	height: auto;
	padding: 3px;
}

.icon {
	border: 0;
	padding: 0 5px;
}

.sublinks_cell {
	background-color: #edf7fd;
	font-size: 12px;
}

.submenu .icon {
	vertical-align: middle;
	width: 20px;
	height: 20px;
}

.subheaders {
	font-weight: bold;
	font-size: 15px;
	margin-top: 15px;
	vertical-align: bottom;
}

#family-table .subheaders:first-child {
	width: 285px;
}

.age {
	font-size: 9px;
}

.parentdeath {
	border: thin solid #888;
	padding: 1px;
}

.source_citations {
	display: none;
}

.selected-option {
	background-color: #edf7fd;
}

.border1 {
	border: solid #000 1px;
}

.menuitem {
	text-decoration: none;
	font-size: 11px;
	padding: 1px;
}

.menuitem_hover {
	text-decoration: none;
	font-size: 11px;
	padding: 1px;
}

.menuitem .icon, .menuitem_hover .icon {
	width: 50px;
	height: 50px;
}

.submenu {
	text-decoration: none;
	font-size: 11px;
	background-color: #edf7fd;
	border: solid #81a9cb 1px;
	visibility: hidden;
	position: absolute;
	padding: 5px;
}

.submenuitem  {
	vertical-align: middle;
	font-size: 11px;
	height: 20px;
	text-decoration: none;
	background-color: #edf7fd;
	padding: 1px;
	white-space: nowrap;
}

.submenuitem_hover {
	vertical-align: middle;
	height: 20px;
	font-size: 11px;
	background-color: #e6f0fa;
	white-space: nowrap;
	padding: 1px;
}

.submenuitem a,
.submenuitem_hover a {
	display: inline-block;
	vertical-align: middle;
}

.journal_box {
	padding: 3pt;
	border: thin solid #aaa;
	overflow: visible;
}

.news_box {
	background-color: #edf7fd;
	border-top: solid #81a9cb 1px;
}

.news_title {
	font-weight: bold;
	font-size: 14px;
}

.news_date {
	margin-bottom: 12px;
}

.current_day {
	font-weight: bold;
	font-size: 16px;
}

.cal_day {
	float: left;
	font-weight: bold;
}

.rtl_cal_day {
	direction: rtl;
	float: right;
	color: #00f;
	font-weight: bold;
}

.helpcontent {
	margin-left: 10px;
	margin-right: 10px;
}

.helpcontent dt {
	clear: both;
}

#my-page h1 {
	margin: 0.25em auto 0.6em;
}

.tdtop {
	vertical-align: top;
}

.tdmid {
	vertical-align: middle;
}

.tdbot,
.tvertline {
	vertical-align: bottom;
}

.line1,
.line2,
.line3 {
	vertical-align: middle;
}

.line5 {
	vertical-align: top;
}

#childbox {
	padding: 5px;
	position: absolute;
	display: none;
	text-align: start;
	white-space: nowrap;
	top: 20px;
	left: 0;
}

[dir=rtl] #childbox {
	left: auto;
	right: 0;
}

.layout3 #childbox {
	top: auto;
	bottom: 20px;
}

#childbox a.name1 {
	display: block;
	margin-left: 5px;
}

.person0 {
	background-color: #aaf;
	border: outset #aaf 1px;
	vertical-align: top;
}

.person1 {
	background-color: #afa;
	border: outset #afa 1px;
	vertical-align: top;
}

.person2 {
	background-color: #faa;
	border: outset #faa 1px;
	vertical-align: top;
}

.person3 {
	background-color: #55f;
	border: outset #55f 1px;
	vertical-align: top;
}

.person4 {
	background-color: #f55;
	border: outset #f55 1px;
	vertical-align: top;
}

.person5 {
	background-color: #5f5;
	border: outset #5f5 1px;
	vertical-align: top;
}

.listlog {
	line-height: 20pt;
}

.formField {
	font-size: 12px;
}

.starredname {
	text-decoration: underline;
}

.search_hit {
	background-color: #ff0;
}

.search_item {
	font-weight: 600;
}

.descriptionbox {
	color: #006;
	font-size: 12px;
	background-color: #c3dfff;
	vertical-align: top;
	padding: 3px;
}

.optionbox {
	background-color: #ecf5ff;
	font-size: 12px;
	border: solid #c3dfff 1px;
	vertical-align: top;
	white-space: nowrap;
	padding: 3px;
}

.vmiddle {
	vertical-align: middle;
}

.red {
	color: #f00;
}

.rela,
.histo {
	opacity: 0.8;
}

.width10 {
	width: 10%;
}

.width20 {
	width: 20%;
}

.width25 {
	width: 25%;
}

.width30 {
	width: 30%;
}

.width33 {
	width: 33%;
}

.width40 {
	width: 40%;
}

.width50 {
	width: 50%;
}

.width60 {
	width: 60%;
}

.width66 {
	width: 66%;
}

.width70 {
	width: 70%;
}

.width75 {
	width: 75%;
}

.width80 {
	width: 80%;
}

.width90 {
	width: 90%;
}

.width100 {
	width: 100%;
}

.font9 {
	font-size: 9px;
}

.font11 {
	font-size: 11px;
}

.messagebox {
	background-color: #c2ceef;
	border: solid #81a9cb 1px;
}

/* ---Pending edits--- */
.new {
	border: solid blue 1px;
	overflow: hidden;
}

.old {
	border: solid red 1px;
	overflow: hidden;
}

.tag_cloud {
	text-align: center;
}

.tag_cloud a {
	white-space: nowrap;
}

/* ---Autocomplete styles--- */
.ui-autocomplete-input {
	background-color: #eee8aa;
}

.ui-autocomplete {
	padding: 0;
	border: 1px solid #000;
	background-color: #fff;
	z-index: 99999;
	list-style: none outside none;
	margin: 0;
	max-height: 200px;
	overflow-x: hidden;
	overflow-y: scroll;
}

.ui-autocomplete li {
	margin: 0;
	padding: 2px 5px;
	font-size: 12px;
	cursor: default;
	display: block;
	/* if width will be 100% horizontal scrollbar will apear when scroll mode will be used */
	/* width: 100%; */
	font: menu;
	/* it is very important, if line-height not setted or setted in relative units scroll will be broken in firefox */
	line-height: 14px;
	overflow: hidden;
}

.ui-autocomplete-loading {
	background: #fff url(images/indicator.gif) right center no-repeat;
}

.ui-autocomplete li:nth-child(odd) {
	background-color: #eee;
}

.ui-autocomplete a.ui-state-focus {
	color: #f00;
}

.ui-sortable li {
	list-style-type: none;
}

.ui-sortable .noprint {
	display: none;
}

/* ---End of Autocomplete styles--- */

.nowrap {
	white-space: nowrap;
}

.wrap {
	white-space: normal;
}

.statistics-page {
	text-align: center;
}

.center2 {
	text-align: center;
}

.gchart {
	border: solid #81a9cb 1px;
}

/* ---Find special characters--- */
.largechars {
	font-family: monospace;
	font-size: 200%;
}

#facts_content dd {
	float: left;
	width: 70%;
}

.clearfloat {
	clear: both;
}

/* this keeps the tag color the same when it is a link as when not */

.place {
	padding-top: 5px;
}

#pending h2 {
	text-align: center;
	margin-bottom: 20px;
}

#pending h3 {
	text-align: center;
	margin-top: 20px;
}

#pending .list_value {
	padding: 3px;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
}

#pending .indent {
	padding: 0px;
}

/* ======== Person box ======= */
.gedcom_favorites_block,
.user_favorites_block,
.person_box_template {
	overflow: visible !important;
}

/* Box styles are
	0 compact view
	1 normal view - small box
	2 normal view - large box
*/
.box-style0 {
	cursor: url(images/zoomin.png), n-resize;
}

.box-style0-expanded {
	cursor: url(images/zoomout.png), n-resize;
}

.box-style0-expanded,
.box-style1-expanded {
	width: 300px !important;
}

.person_box_template {
	height: auto;
	white-space: normal;
}

.person_box_template .namedef i[class^="icon-sex"] {
	margin-left: 3px;
}

[dir=rtl] .person_box_template .namedef i[class^="icon-sex"] {
	margin-right: 3px;
}

.person_box_template .icons {
	float: right;
}

[dir=rtl] .person_box_template .icons {
	float: left;
}

.person_box_template .inout {
	clear: both;
	display: none;
}

.person_box_template .noprint {
	width: 25px;
	height: 50px;
	position: relative;
}

.person_box_template .chart_textbox {
	overflow: hidden;
}

.person_box_template img,
.person_box_template a.gallery {
	float: left;
	height: 50px;
	margin: 0 2px 0 0;
	max-width: 80px;
	width: auto;
}

[dir=rtl] .person_box_template img,
[dir=rtl] .person_box_template a.gallery {
	float: right;
	margin: 0 0 0 2px;
}

.person_box_template i[class^="icon-silhouette"] {
	float: left;
}

[dir=rtl] .person_box_template i[class^="icon-silhouette"] {
	float: right;
}

#branches-page table,
#medialist-page .list_table,
#medialist-page .list_table_controls {
	margin: 0 auto;
}

#medialist-page form .list_table {
	width: 75%;
}

#medialist-page div .list_table,
#medialist-page .media-col,
#medialist-page .media-col1,
#medialist-page .list_value_wrap,
#medialist-page div .list_table_controls {
	width: 100%;
}

#medialist-page .optionbox,
#medialist-page .descriptionbox {
	width: 25%;
}

#medialist-page .media-col2 {
	width: 50%;
}

#medialist-page .media-col {
	padding-left: 5px;
	border: none;
}

[dir=rtl] #medialist-page .media-col {
	padding-left: 0;
	padding-right: 5px;
}

#medialist-page .media-image {
	vertical-align:top;
	white-space:normal;
}

#medialist-page p {
	text-align: center;
}

.list_table_controls td {
	min-width: 40px;
	text-align: center;
}
/* ======== medialist.php ==== */
.makeMenu li ul {
	border: thin solid #AAA;
	position: absolute;
	margin:0;
}

.makeMenu, .makeMenu li ul {
	padding: 1px;
}

.makeMenu li {
	display: inline;
	position: relative;
	white-space: nowrap;
}

.lb-menu {
	display: inline-block;
	margin: 0;
}

.lb-menu ul {
	display: block;
	list-style-type: none;
	margin: 0;
}

.lb-menu > li {
	font-weight: normal;
	float: left;
	top: 0;
}

.lb-menu li:first-child {
	padding-left: 0;
}

.lb-menu > li ul {
	display: none;
}

.lb-menu > li:hover ul {
	display: block;
	top: 36px;
}

.lb-menu a {
	display: block;
}

.lb-menu li a {
	padding: 24px 10px 1px 5px;
}

.lb-menu li li a {
	background-color: #fff;
	padding: 5px 10px 5px 5px;
}

.lb-menu li {
	border: 0;
}

[dir=rtl] .lb-menu > li {
	float: right;
}

.lb-image_edit {
	background: url(images/image_edit.png) no-repeat 50% 20%;
}

.lb-image_link {
	background: url(images/image_link.png) no-repeat 50% 20%;
}

.lb-image_view {
	background: url(images/image_view.png) no-repeat 50% 20%;
}

/* login.php */
#login-register-page h2,
#login-page .confirm {
	text-align: center;
}

#login-register-page .warning {
	margin: 20px auto;
	text-align: center;
}

#login-register-page .back {
	font-weight: bold;
	font-size: 14px;
	text-align: center;
}

#login-register-page .confirm {
	margin: 20px auto;
	width: 500px;
}

#login-register-page .confirm p {
	font-weight: bold;
	font-size: 14px;
}

#login-register-page .confirm p + p {
	font-size: 12px;
	font-weight: normal;
}

#login-text,
#register-text,
#user-verify {
	margin: 0 auto;
	width: 40%;
	min-width: 450px;
}

#login-box,
#register-box {
	text-align: center;
}

#login-form,
#new_passwd_form,
#register-form,
#verify-form {
	background-color: #edf7fd;
	border: 1px outset #81a9cb;
	display: inline-block;
	margin: 10px auto 0;
	padding: 5px;
}

#login-form div label {
	text-align: right;
}

#register-form,
#verify-form {
	width: 440px;
}

#login-form div,
#login-form div a,
#new_passwd_form div,
#register-form div,
#verify-form div {
	margin: auto;
	padding: 5px;
	text-align: center;
}

#login-form label,
#new_passwd_form label,
#verify-form label {
	display: block;
}

#login-form label input,
#new_passwd_form label input,
#verify-form input {
	width: 140px;
	margin: 0 10px;
}

#register-form p,
#verify-form p {
	text-align: left;
}

#new_passwd_form h4,
#register-form h4 {
	font-weight: normal;
	text-align: center;
}

#register-form div,
#verify-form div {
	text-align: right;
}

#register-form label input,
#register-form label select,
#register-form textarea {
	width: 220px;
	margin: 0 10px;
	padding: 3px;
}

#register-form label select {
	margin: 0 10px;
	width: 228px;
}

#register-form textarea {
	vertical-align: top;
}

#register-form div#registration-submit {
	text-align: center;
}

.login_block_block #login-form,
.login_block_block #new_passwd_form {
	border: 0;
	background: none;
}

[dir=rtl] #login-form label,
[dir=rtl] #new_passwd_form label,
[dir=rtl] #register-form label,
[dir=rtl] #verify-form label {
	text-align: left;
}

[dir=rtl] #register-form div,
[dir=rtl] #verify-form div {
	text-align: left;
}

[dir=rtl] #register-form p,
[dir=rtl] #verify-form p {
	text-align: right;
}

/* --- reportengine.php --- */
#reportengine-page table {
	margin: 20px auto;
}

#reportengine-page .report-type {
	overflow: hidden;
	margin: auto;
	width: 180px;
}

#reportengine-page .report-type div {
	float: left;
	margin: 0 20px;
}

#reportengine-page .report-type p {
	margin: 0;
	text-align: center;
}

/* styles for popup menus */
.itr {
	position: relative;
	line-height: 1.5;
}

.popup {
	position: absolute;
	top: 20px;
	right: 0;
	left: auto;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0s ease .25s,opacity .25s ease;
	z-index: 9999;
	-webkit-box-shadow: 5px 5px 5px 0 rgba(0,0,0,.4);
	-moz-box-shadow: 5px 5px 5px 0 rgba(0,0,0,.4);
	box-shadow: 5px 5px 5px 0 rgba(0,0,0,.4);
}

[dir=rtl] .popup {
	left: 0;
	right: auto;
}

.popup ul {
	white-space: nowrap;
	list-style: none;
	margin: 0;
	padding: 0 10px;
	font-size: smaller;
}

.popup > ul {
	padding: 2px 10px;
}

.popup li .NAME {
	padding: 0 5px;
}

.itr:hover .popup {
	visibility: visible;
	opacity: 1;
	transition-delay: 0s;
}

/* styles for FindFacts pop-up */
#layDefinedTags,
#tabDefinedTagsShow {
	width: 450px;
}

#tabDefinedTags {
	width: 430px;
}

#layDefinedTags {
	margin-left: auto;
	margin-right: auto;
	height: 285px;
	overflow: auto;
}

#tabDefinedTags {
	border-collapse: collapse;
}

#tabDefinedTags th,
#tabDefinedTags td {
	border: solid 1px #000;
	margin: 0;
	padding: 3px;
}

#tabDefinedTags tbody th {
	text-align: left;
	font-weight: bold;
}

#tabDefinedTags tr.sel {
	background-color: #d1d9ef;
	color: #888;
}

#tabDefinedTags tr.unsel {
	background-color: #fff;
	color: #888;
}

#tabDefinedTagsShow {
	margin-left: auto;
	margin-right: auto;
}

#tabDefinedTagsShow td {
	width: 50%;
	text-align: center;
}

#tabFilterAndCustom {
	margin-left: auto;
	margin-right: auto;
}

#tabAction {
	margin-left: auto;
	margin-right: auto;
}

#tabAction td {
	width: 50%;
	text-align: center;
}

/* ======== List styles ====== */
.source-list,
.note-list,
.repo-list,
.media-list,
.indi-list,
.fam-list {
	margin: 5px auto;
	visibility: hidden;
}

.recent_changes_block,
.upcoming_events_block,
.todays_events_block,
.todo_block {
	width: 98%;
}

.surname-list,
.givn-list {
	margin: 5px auto;
}

.source-list table,
.note-list table,
.repo-list table,
.media-list table,
.indi-list table,
.fam-list table {
	width: 100%;
}

.source-list td,
.note-list td,
.repo-list td,
.media-list td,
.indi-list td,
.fam-list td,
.recent_changes_block td,
.upcoming_events_block td,
.surname-list td,
.givn-list td {
	padding: 2px 5px;
}

.surname-list td {
	vertical-align: top;
}

.indi-list .stats,
.fam-list .stats {
	margin: 0 auto;
	width: auto;
}

.source-list th,
.note-list th,
.repo-list th,
.media-list th,
.indi-list th,
.fam-list th,
.recent_changes_block th,
.upcoming_events_block th,
.todays_events_block th,
.todo_block th,
.yahrzeit_block th,
.surname-list th,
.givn-list th {
	cursor: pointer;
	font-weight: 600;
	padding: 2px 4px;
	white-space: nowrap;
}

.source-list th:last-child,
.note-list th:last-child,
.repo-list th:last-child {
	margin: 0 -2px 1px 1px;
	padding: 3px 0 4px;
	width: 24px;
}

.givn-list th {
	cursor: pointer;
	white-space: nowrap;
	padding: 2px;
	text-align: center;
}

#source-details h2,
#sourcelist-page h2,
#note-details h2,
#notelist-page h2,
#repo-details h2,
#repolist-page h2,
#media-details h2,
#medialist-page h2,
#statistics-page h2 {
	margin-bottom: 20px;
	text-align: center;
}

#source-tabs,
#note-tabs,
#repo-tabs,
#media-tabs {
	visibility: hidden;
}

#statistics_chart {
	visibility: hidden;
}

#source-edit,
#note-edit,
#repo-edit,
#media-edit {
	overflow-x: auto;
}

.media-list td img {
	display: block;
	height: 40px;
	width: auto;
	margin: 3px auto;
}

.filtersH,
.filtersF {
	margin: 4px;
}

.filtersH img {
	margin-bottom: 2px;
}

.loading-image {
	background: transparent url(images/loading.gif) 50% 50% no-repeat;
	height: 50px;
	margin: 50px;
}

.list-charts {
	text-align: center;
}

#search-result-tabs,
#places-tabs {
	margin: auto;
	width: 98%;
	visibility: hidden;
}

#search-result-tabs h3 {
	text-align: center;
}

#searchAccordion-indi,
#searchAccordion-fam,
#searchAccordion-source,
#searchAccordion-note {
	margin: auto;
	width: 99%;
}

#place-hierarchy h2,
#place-hierarchy h4 {
	text-align: center;
}

[dir=rtl] .source-list th:last-child,
[dir=rtl] .note-list th:last-child,
[dir=rtl] .repo-list th:last-child {
	margin: 0 1px 1px -2px;
}

/* ======== Block styles ===== */
#index_main_blocks {
	clear: none;
	width: 66%;
	float: left;
}

#index_small_blocks {
	clear: none;
	width: 33%;
	float: right;
}

#index_full_blocks {
	clear: none;
	width: 100%;
}

[dir=rtl] #index_main_blocks {
	float: right;
}

[dir=rtl] #index_small_blocks {
	float: left;
}

.small_inner_block {
	max-height: 200px;
	overflow: auto;
}

.normal_inner_block {
	overflow: auto;
}

.block {
	background-color: #edf7fd;
	border: solid #81a9cb 1px;
	margin-top: 10px;
	padding: 3px;
	vertical-align: top;
}

.blockcontent {
	margin: 5px;
	overflow: auto;
}

.blockcontent .list_table {
	border-spacing: 1px;
	border: solid #81a9cb 1px;
	border-right: 0;
}

.blockcontent .list_value,
.blockcontent .list_value_wrap {
	border: 0;
	border-top: solid #81a9cb 1px;
	border-right: solid #81a9cb 1px;
}

.blockheader {
	font-weight: bold;
}

/* end Block styles */

#main_select,
#available_select,
#right_select {
	min-width: 150px;
}

.user_welcome_block table,
.gedcom_block_block table {
	margin: auto;
}

.user_welcome_block td,
.gedcom_block_block td {
	width: 33%;
	text-align: center;
	vertical-align: top;
}

/* Random picture block */
#random_picture {
	text-align: center;
}

#random_picture_box {
	width: 100%;
}

/* ==== Favourites block ===== */
.blockcontent .person_box_template .details2 {
	min-height: 40px;
}

.blockcontent [class*='box-style2'] {
	margin: 5px 0;
}

.add_fav_head {
	font-weight: 900;
	margin: 5px 0;
}

.add_fav_head i {
	margin: 0 5px 1px;
}

.add_fav_ref label {
	display: inline-block;
	min-width: 100px;
}

.add_fav_ref input {
	margin: 0 5px;
}

/* === Who is online block === */
.logged_in_list {
	margin: 5px 0 0;
	padding: 0;
	line-height: 20px;
}

/* Statistics block */
.stat-table1 {
	display: table;
	float: left;
	width:15%;
	border-collapse:separate;
	border-spacing:2px;
	vertical-align: middle;
	margin-bottom: 5px;
}

[dir=rtl] .stat-table1 {
float: right;
}

.stat-table2 {
	display: table;
	float: left;
	width:60%;
	border-collapse:separate;
	border-spacing:2px;
	margin-bottom: 5px;
}

[dir=rtl] .stat-table2 {
float: right;
}

.stat-row {
	display: table-row;
}
.stat-cell {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	white-space: pre-wrap;
}
.left {text-align: left;}
[dir=rtl] .left {text-align: right;}

/* ==== Theme select block === */
.theme_form ul {
	margin: -10px auto;
}

.theme_form li {
	visibility: hidden;
}

.theme_form li ul li {
	display: inline-block;
	padding: 10px;
	visibility: visible;
}

/* ==== FAQ table styles ===== */
table.faq {
	background-color: #e0e0e0;
	margin: 5px 0 50px 5px;
	width: 98%;
}

table.faq tr.odd td {
	background-color: #e7eef3;
}

div.faq_title {
	background-color: #e0e0e0;
	margin: 1em 0;
	padding: .25em;
	font-weight: bold;
	width: 98%;
}

div.faq_body {
	clear: both;
	padding: 0 1em;
}

.faq_top {
	float: right;
}

[dir=rtl] .faq_top {
	float: left;
}

/* === Positioning edit, copy, delete links === */
/* General use */
.editfacts {
	clear: left;
	padding-top: 15px;
}

/* a container for the following three links */

.editlink,
.copylink,
.deletelink {
	float: left;
}

[dir=rtl] .editlink,
[dir=rtl] .copylink,
[dir=rtl] .deletelink {
	float: right;
}

span.link_text {
	display: none;
}

/* ======== Indi header ====== */
.field .editlink,
.field .deletelink,
.field .copylink {
	float: right;
}

[dir=rtl].field .editlink,
[dir=rtl].field .deletelink {
	float: left;
}

#indi_header {
	overflow: hidden;
	border-radius: 3px;
	border: 1px solid #b2c7d7;
	margin: 0 0 5px 10px;
	padding: 10px 0;
}

[dir='rtl'] #indi_header {
	margin: 0 10px 5px 0;
}

#indi_header h3 {
	font-size: 90%;
	font-weight: bold;
	margin: 0;
	padding: 0 10px 0 30px;
	text-align: left;
	overflow: hidden;
	position: relative;
}

#indi_header .name_one {
	font-size: 1.5em;
}

#indi_header h3 .details1 {
	font-size: 1.0em;
}

#indi_header h3 .header_age {
	padding: 5px 0 5px 5px;
	float: right;
	font-weight: normal;
	font-size: 65%;
}

#indi_header h3 a {
	display: inline;
}

#indi_header a {
	color: #337;
	font-size: 0.75em;
	font-weight: normal;
}

#indi_header a:hover {
	color: #f00;
}

#indi_mainimage {
	float: left;
	padding: 0 10px;
}

#header_accordion1 {
	padding: 0 10px 0 0;
	overflow: hidden;
}

[dir='rtl'] #header_accordion1 {
	padding: 0 0 0 10px;
}

#header_accordion1 .indi_name_details {
	margin: 0;
	overflow: hidden;
	padding: 5px;
}

.indi_name_details .name1 {
	font-weight: normal;
	padding-top: 5px;
	font-size: inherit;
}

#indi_header a.warning {
	color: #f00;
	font-size: 1em;
}

#indi_note {
	margin: 0 0 5px;
}

.indi_table {
	clear: left;
}

#sex {
	float: right;
}

#dates {
	float: right;
}

dd .editlink,
dd .deletelink {
	float: right;
}

#indi_note .fact_NOTE {
	float: left;
	margin: 0 5px 0 0;
}

#indi_note .fact_SOUR {
	margin: 3px 0;
}

#indi_note .fact_SOUR a {
	font-size: 100%;
}

#indi_note .fact_NOTE,
#indi_note .fact_SOUR {
	clear: both;
}

/* ===== markdown formatting ===== */

.markdown {
	/* Tables and pre-formatted text can break the layout. */
	overflow-x: auto;
}

.markdown p {
	margin: 0 0 0.5em;
	white-space: pre-wrap;
}

.markdown table {
	border-collapse: collapse;
	margin-bottom: 5px;
}

.markdown th {
	font-weight: bold;
}

.markdown td,
.markdown th {
	border: solid thin #000;
	padding: 3px;
}

[dir=rtl] #indi_header h3 {
	padding: 0 30px 0 10px;
	text-align: right;
}

[dir=rtl] #indi_header h3 .header_age {
	padding: 5px 5px 5px 0;
	float: left;
}

[dir=rtl] #indi_mainimage {
	float: right;
}

[dir=rtl] #indi_note .fact_NOTE {
	float: right;
	margin: 0 0 0 10px;
}

[dir=rtl] .indi_table {
	clear: right;
}

[dir=rtl] #sex {
	float: left;
}

[dir=rtl] #dates {
	float: left;
}

[dir=rtl] dd .editlink,
[dir=rtl] dd .deletelink {
	float: left;
}

.odometer {
	font-family: courier, mono-space;
	font-weight: bold;
	background: #000;
	color: #fff;
}

/* ======= General sprite ==== */
.male_gender,
.female_gender,
.unknown_gender,
.editicon,
.copyicon,
.deleteicon {
	display: block;
	background: url(images/indi_sprite.png) no-repeat;
}

.female_gender {
	background-position: -45px 3px;
	width: 24px;
	height: 30px;
}

.male_gender {
	background-position: -72px 3px;
	width: 24px;
	height: 30px;
}

.unknown_gender {
	background-position: -100px 4px;
	width: 24px;
	height: 30px;
}

.editicon {
	background-position: -40px -32px;
	width: 24px;
	height: 16px;
}

.copyicon {
	background-position: -70px -32px;
	width: 24px;
	height: 16px;
}

.deleteicon {
	background-position: -100px -32px;
	width: 24px;
	height: 16px;
}

/* ======== Indi tabs ======== */
/* Facts & Events tab */
#personal_facts_content .fact_NOTE,
#personal_facts_content .fact_SOUR,
#family-table .fact_NOTE,
#family-table .fact_SOUR {
	margin: 5px 3px 5px 0;
	clear: both;
}

#note-edit .facts_table,
#notes_content .facts_table,
#personal_facts_content .facts_table {
	table-layout: fixed;
}

.facts_table .field em {
	margin-top: 0;
	padding-left: 5px;
}

.facts_table .field img {
	vertical-align: middle;
}

.media-display-image {
	float: left;
}

.media-display-title {
	float: left;
	font-style: italic;
	margin: 10px;
}

[dir=rtl] .media-display-image {
	float: right;
}

[dir=rtl] .media-display-title {
	float: right;
}

[dir=rtl] .facts_table .field em {
	padding-right: 5px;
}

/* ======== Album tab =========*/
.album-list {
	list-style-type: none;
}

.album-list-item {
	display: inline-block;
	text-align: center;
	padding: 0 12px;
	height: 112px;
	width: 120px;
}

.album-list-item a img {
	max-height: 78px;
	max-width: 100px;
	height: auto;
	width: auto;
}

.album-list-item a:hover div {
	outline: thin solid #bdb071;
}

.album-image {
	margin: auto;
}

.album-title {
	padding-top: 4px;
	width: 100%;
}

/* === jquery-ui.css changes === */
.ui-state-highlight a {
	font-weight: bold;
}

.ui-accordion .ui-accordion-content {
	border: 0;
	position: relative;
	padding: 0 5px;
	overflow: visible;
}

.ui-widget-content a {
    color: #00f;
}

#sidebarAccordion .ui-accordion-header {
	text-align: center;
}

.ui-widget-header {
	padding: 3px;
}

[dir=rtl] .ui-tabs .ui-tabs-nav li {
	float: right;
}

[dir=rtl] .ui-accordion .ui-accordion-header .ui-icon {
	right: 0.5em;
}

[dir=rtl] .ui-dialog-title {
	float: right;
}

[dir=rtl] .ui-dialog-titlebar-close {
	left: .3em;
	right: auto;
}

/* === jQuery.datatable styling general over-rides === */
.odd {
	background-color: #e7eef3;
}

.even {
	background-color: #e6e6e6;
}

.css_right {
	float: left;
}

.fg-button {
	padding: 2px 6px;
}

.dataTables_paginate {
	float: left;
	margin-bottom: 3px;
}

.dataTables_processing {
	float: left;
}

.dataTables_filter {
	float: right;
	font-weight: normal;
}

.dataTables_info {
	float: left;
	font-weight: normal;
	padding: 4px;
}

.recent_changes_block .dataTables_info,
.upcoming_events_block .dataTables_info,
.todays_events_block .dataTables_info,
.todo_block .dataTables_info,
.yahrzeit_block .dataTables_info {
	padding: 0;
}

.upcoming_events_block .dataTables_info,
.todays_events_block .dataTables_info {
	padding: 2px 0 0;
}

.upcoming_events_block button,
.todays_events_block button {
	margin: 0 20px;
}

.dataTables_length {
	float: right;
	font-weight: normal;
}

.dataTables_length select,
.dataTables_filter input {
	font-size: 11px;
	padding: 1px;
}

.dt-clear {
	clear: both;
}

#loading {
	text-align: center;
}

.DataTables_sort_wrapper {
	position: relative;
	margin: 0 20px;
}

.DataTables_sort_wrapper span {
	left: 0;
	margin-left: -20px;
	margin-top: -8px;
	position: absolute;
	top: 50%;
}

.dataTables_wrapper {
	margin-bottom: 10px;
}

[dir=rtl] .css_right {
	float: right;
}

[dir=rtl] .dataTables_paginate {
	float: right;
}

[dir=rtl] .dataTables_processing {
	float: right;
}

[dir=rtl] .dataTables_filter {
	float: left;
}

[dir=rtl] .dataTables_info {
	float: right;
}

[dir=rtl] .dataTables_length {
	float: left;
}

[dir=rtl] .DataTables_sort_wrapper {
	margin-right: 20px;
}

[dir=rtl] .DataTables_sort_wrapper span {
	left: auto;
	right: 0;
	margin-right: -20px;
}

/* ======= Sidebar setup ===== */
#main {
	min-width: 600px;
	width: 100%;
	display: table;
	table-layout: fixed;
}

#indi_left {
	display: table-cell;
}

#indi_left .ui-tabs-panel {
	padding: 0;
}

#indi_left .ui-tabs-nav {
	margin: 0 2px;
}

#tabs {
	background-color: #fff;
	border-color: #ddd;
	margin-left: 10px;
	overflow: visible;
}

[dir=rtl] #tabs {
	float: right;
	width: 99%;
	margin-right: 10px;
}

/* sidebar */
#sidebar {
	width: 20%;
	display: table-cell;
	vertical-align: top;
}

#separator {
	display: table-cell;
	width: 2.5em;
	position: relative;
	background-color: transparent;
	overflow: hidden;
}

#separator:after {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	width: 10px;
	height: 99999px;
	content: "";
	border: 1px solid #81a9cb;
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
}

[dir=rtl] #separator:after {
	right: auto;
	left: 0;
}

.separator-hidden:after,
[dir=rtl] .separator-visible:after {
	background: #c3dfff url(images/indi_sprite.png) no-repeat -26px 100px;
}

.separator-visible:after,
[dir=rtl] .separator-hidden:after {
	background: #c3dfff url(images/indi_sprite.png) no-repeat -1px 100px;
}

/* Sidebar content items */
/* Family navigator */
#sb_content_family_nav {
	padding: 0;
}

#sb_family_nav_content {
	margin-top: 8px;
}

.nam a:hover {
	color: #f00;
}

.nav_content {
	width: 100%;
	padding: 0;
}

.nav_content .facts_label {
	width: 75px;
}

#sb_family_nav_content .clist {
	margin: 0;
}

.famnav_title {
	font-weight: bold;
	display: block;
	padding: 5px 0;
}

.flyout {
	left: 40px;
}

[dir=rtl] .flyout {
	left: auto;
	right: 40px;
}

.flyout a, .flyout a:hover {
	color: #000;
	cursor: default;
	text-decoration: none;
}

.flyout2 {
	font-weight: bold;
}

.flyout3 {
	color: #362b36;
}

.flyout3:hover {
	cursor: pointer;
	color: #f00;
}

/* Sidebar*/
#sb_content_descendancy {
	margin-top: 5px;
}

#sb_desc_content {
	margin-left: 3px;
	font-size: 0.8em;
}

#sb_desc_content ul {
	padding: 0;
	margin: 0;
}

.sb_desc_indi_li {
	list-style-type: none;
}

.desc_tree_div {
	display: none;
}

.desc_tree_div ul {
	padding: 0;
	margin-left: 10px;
	margin-top: 0;
	margin-right: 0;
}

[dir=rtl] #sb_desc_content {
	margin-right: 3px;
}

[dir=rtl] .desc_tree_div ul {
	margin-right: 10px;
	margin-left: 0;
}

/* Individuals and Families */
#sb_content_individuals,
#sb_content_families {
	margin-top: 5px;
}

.sb_indi_surname_li,
.sb_fam_surname_li {
	list-style-image: url(images/plus.png);
}

.name_tree_div ul {
	padding: 0;
	margin: 0;
}

.name_tree_div li {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Clippings */
#sb_content_clippings {
	margin-top: 5px;
}

#sb_clippings_content ul {
	padding: 0;
	margin: 0;
}

#sb_clippings_content li {
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

/* Extra info */
#sb_content_extra_info {
	font-size: 80%;
	font-weight: bold;
	margin-top: 1px;
	overflow: hidden;
	padding: 5px;
}

#sb_content_extra_info .editfacts {
	float: right;
	margin-top: -30px;
}

#sb_content_extra_info a {
	display: block;
}

#sb_content_extra_info span {
	font-weight: normal;
}

#sb_content_extra_info span a {
	display: inline;
}

#sb_content_extra_info #hitcounter {
	border-top: 1px solid #b2c7d7;
	font-weight: bold;
	padding-top: 5px;
}

[dir=rtl] #sb_content_extra_info .editfacts {
	float: left;
}

/* ===== find.php =====  */
#find-page h3,
#find-page h4 {
	margin: 10px;
	text-align: center;
}

#find-header {
	background-color: #81a9cb;
	border: 1px outset #81a9cb;
	margin: 10px auto;
	padding: 5px 20px;
	width: 50%;
}

#find-header p {
	margin: 5px;
	text-align: center;
}

#find-header span {
	color: #fff;
	font-weight: bold;
}

#find-output,
#find-output-special {
	background-color: #edf7f9;
	border: 1px outset #81a9cb;
	margin: 20px 5px;
	padding: 10px;
}

#find-output p {
	border-top: 1px solid #81a9cb;
	font-weight: bold;
	margin: 0;
	padding-top: 10px;
	text-align: center;
}

#find-media {
	background-color: #81a9cb;
	border: 1px outset #81a9cb;
	color: #fff;
	padding: 5px;
	text-align: center;
}

#find-media span {
	border: 0;
	font-weight: bold;
	margin: auto;
	padding: 5px;
}

#find-output .find-media-dirs {
	border-bottom: 1px solid #81a9cb;
	padding: 3px;
}

#find-output .find-media-media {
	border: 1px solid #81a9cb;
	overflow: hidden;
	margin: 1px;
	padding: 2px;
}

#find-output .find-media-thumb {
	clear: left;
	float: left;
}

#find-output .find-media-details {
	float: left;
}

#find-output .find-media-details p {
	border: 0;
	padding: 0 5px 2px;
	font-weight: normal;
	text-align: left;
}

#find-output .find-media-details div span {
	font-weight: normal;
	padding: 0 5px 2px;
}

#find-output p.find-media-title {
	font-weight: bold;
}

#find-output .find-media-details ul {
	padding: 0;
	margin: 0 20px 10px;
	list-style-type: none;
}

#find-facts-header .list_label {
	text-align: inherit;
}

/* ===== search.php ===== */
#search-page h2 {
	margin: 20px;
	text-align: center;
}

#search-page-table {
	background-color: #81a9cb;
	border: 1px outset #ccc;
	border-top: 0;
	margin: 20px auto 0;
	width: 580px;
}

#search-page-table .label {
	border-top: 1px solid #ccc;
	color: #fff;
	float: left;
	font-weight: bold;
	padding: 5px 10px 0;
	width: 150px;
}

#search-page-table .value {
	background-color: #edf7f9;
	border-top: 1px solid #ccc;
	margin: 0 0 0 170px;
	padding: 5px;
	white-space: nowrap;
}

#search-page-table p {
	margin: 0;
}

[dir=rtl] #search-page-table .label {
	float: right;
}

[dir=rtl] #search-page-table .value {
	margin: 0 170px 0 0;
}

/*  edituser.php  */
#edituser-page h2,
#edituser_submit {
	margin: 20px;
	text-align: center;
}

#edituser-table {
	background-color: #81a9cb;
	border: 1px outset #ccc;
	border-top: 0;
	margin: 20px auto 0;
	width: 800px;
}

#edituser-table .label {
	border-top: 1px solid #ccc;
	color: #fff;
	float: left;
	font-weight: bold;
	padding: 5px 10px 0;
	width: 240px;
}

#edituser-table .value {
	background-color: #edf7f9;
	border-top: 1px solid #ccc;
	margin: 0 0 0 260px;
	padding: 5px;
}

#edituser-table .label span {
	margin: 0 10px;
}

#edituser-table select {
	margin: 0;
}

[dir=rtl] #edituser-table .label {
	float: right;
}

[dir=rtl] #edituser-table .value {
	margin: 0 260px 0 0;
}

/* ===== Edit interface pop-ups ===== */
#edit_interface-page h4 {
	color: #555;
	margin: 5px;
}

#edit_interface-page .optionbox span {
	margin: 0 5px;
}

#edit_interface-page #LATI,
#edit_interface-page #LONG,
#edit_interface-page #SPFX,
#edit_interface-page #NSFX,
#edit_interface-page #NPFX {
	line-height: 18px;
	margin: 0 5px;
	width: 88px;
}

#edit_interface-page #GIVN,
#edit_interface-page #SURN,
#edit_interface-page #_MARNM {
	line-height: 18px;
	margin: 0 5px;
	width: 180px;
}

#edit_interface-page input[type="text"],
#edit_interface-page #NAME_display {
	line-height: 18px;
	margin: 0 5px;
	vertical-align: top;
	width: 240px;
}

#edit_interface-page input[type="text"][id*="PAGE"],
#edit_interface-page input[type="text"][id*="_UID"] {
	width: 350px;
}

#edit_interface-page input[type="text"][id*="SOUR"],
#edit_interface-page input[type="text"][id*="REPO"],
#edit_interface-page input[type="text"][id*="OBJE"],
#edit_interface-page input[type="text"][id*="FAMC"],
#edit_interface-page input[type="text"][id*="ASSO"],
#edit_interface-page input[type="text"][id^="AGE"],
#edit_interface-page input[type="text"][id*="SHARED_NOTE"] {
	width: 250px;
}

#edit_interface-page input[type="text"][id$="DATE"] {
	width: 160px;
}

#edit_interface-page input[type="text"][id*="OBJE_FILE"] {
	width: 200px;
}

#edit_interface-page input[type="text"][id*="SOUR_TITL"] {
	width: 250px;
}

#edit_interface-page input[id*="TEXT"] {
	height: 140px;
	width: 440px;
}

#edit_interface-page textarea {
	margin: 0 5px;
	width: 440px;
}

#edit_interface-page textarea[id*="NOTE"] {
	height: 240px;
}

#edit_interface-page textarea[id*="TEXT"],
#edit_interface-page textarea[id*="PUBL"] {
	height: 140px;
}

#edit_interface-page textarea[id^="newgedrec"] {
	line-height: 18px;
	width: 605px;
}

#edit_interface-page textarea#gedcom {
	height: 364px;
}

#edit_interface-page textarea[id*="ADDR"],
#edit_interface-page input[id*="ADDR"] {
	height: 80px;
	width: 300px;
}

#edit_interface-page #changefam {
	padding: 5px;
}

#edit_interface-page #changefam table {
	margin: 10px auto;
	min-width: 400px;
	max-width: 650px;
}

#edit_interface-page #changefam span {
	margin: 0;
}

#edit_interface-page #changefam td {
	padding: 5px;
	white-space: normal;
}

#edit_interface-page #changefam td.child {
	text-align: center;
}

#save-cancel {
	position: fixed;
	bottom: 0;
	background-color: #d1d9ef;
	width: 98%;
	border: solid #81a9cb 1px;
	margin: 0;
}

#save-cancel input {
	padding: 2px 8px;
}

#save-cancel .save {
	float: left;
	margin: 5px;
}

#save-cancel .cancel {
	float: right;
	margin: 5px;
}

[dir=rtl] #save-cancel .save {
	float: right;
}

[dir=rtl] #save-cancel .cancel {
	float: left;
}

#edit_interface-page,
#addmedia-page {
	margin-bottom: 50px;
}

/* ===== Addmedia pop-ups ===== */
#addmedia-page input[type="text"] {
	line-height: 18px;
	margin: 0 5px;
	width: 300px;
}

#addmedia-page .optionbox select {
	margin: 0 5px;
}

#addmedia-page .optionbox p.sub{
	margin: 0 5px;
	font-size: 11px;
}

#addmedia-page input[type="text"][id*="PAGE"],
#addmedia-page input[type="text"][id*="_UID"] {
	width: 350px;
}

#addmedia-page input[type="text"][id*="SOUR"],
#addmedia-page input[type="text"][id*="REPO"],
#addmedia-page input[type="text"][id*="OBJE"],
#addmedia-page input[type="text"][id*="FAMC"],
#addmedia-page input[type="text"][id*="ASSO"],
#addmedia-page input[type="text"][id^="AGE"],
#addmedia-page input[type="text"][id*="SHARED_NOTE"] {
	width: 70px;
}

#addmedia-page input[id*="TEXT"] {
	height: 140px;
	width: 440px;
}

#addmedia-page textarea {
	margin: 0 5px;
	width: 440px;
}

#addmedia-page textarea[id*="NOTE"] {
	height: 240px;
}

#addmedia-page textarea[id*="TEXT"],
#addmedia-page textarea[id*="PUBL"] {
	height: 140px;
}

/* ===== Styling for the jquery.colorbox gallery ===== */
#colorbox,
#cboxOverlay,
#cboxWrapper {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 9999;
	overflow: hidden;
}

#colorbox {
	border: 2px solid #ccc;
}

#cboxOverlay {
	position: fixed;
	width: 100%;
	height: 100%;
	background: #ccc;
}

#cboxContent {
	background: #fff;
	border: 5px solid #888;
}

#cboxLoadedContent {
	overflow: auto;
	background: #fff;
	margin-bottom: 30px;
	margin-top: 35px;
}

#cboxTitle {
	position: absolute;
	left: 0;
	top: 10px;
	font-size: 14px;
	color: #949494;
	text-align: center;
	width: 100%;
	font-weight: 800;
}

.cboxPhoto {
	float: left;
	margin: auto;
	border: 0;
	display: block;
	max-width: none;
}

.cboxIframe {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}

#cboxPrevious {
	position: absolute;
	bottom: 0;
	left: 0;
	background: url(images/controls.png) no-repeat -75px 0;
	width: 25px;
	height: 25px;
	text-indent: -9999px;
	margin: 10px;
	border: 0;
}

#cboxPrevious:hover {
	background-position: -75px -25px;
}

#cboxNext {
	position: absolute;
	bottom: 0;
	left: 27px;
	background: url(images/controls.png) no-repeat -50px 0;
	width: 25px;
	height: 25px;
	text-indent: -9999px;
	margin: 10px;
	border: 0;
}

#cboxNext:hover {
	background-position: -50px -25px;
}

#cboxSlideshow {
	position: absolute;
	bottom: 5px;
	font-size: 14px;
	left: 57px;
	margin: 10px;
	border: 0;
	background: none;
}

#cboxSlideshow:hover {
	color: #f00;
	background: #fff;
}

#cboxClose {
	position: absolute;
	bottom: 0;
	right: 0;
	background: url(images/controls.png) no-repeat -25px 0;
	width: 25px;
	height: 25px;
	text-indent: -9999px;
	margin: 10px;
	border: 0;
}

#cboxClose:hover {
	background-position: -25px -25px;
}

#cboxCurrent {
	bottom: 4px;
	color: #949494;
	left: 58px;
	position: absolute;
}

[dir=rtl] #cboxPrevious {
	right: 27px;
	left: auto;
}

[dir=rtl] #cboxNext {
	right: 0;
	left: auto;
}

[dir=rtl] #cboxCurrent {
	right: auto;
	left: 0;
}

[dir=rtl] #cboxClose {
	right: auto;
	left: 0;
}

[dir=rtl] #cboxSlideshow {
	right: 57px;
	left: auto;
}

/* Stories module */
.story_title {
	padding-top: 12px;
	font-size: 13px;
	height: 32px;
	font-weight: bold;
}

.story_body {
	padding: 20px;
	white-space: normal;
}

.story_edit {
	padding: 12px;
}

.btn-group {
	display: inline-block;
	margin: 0 4px;
}

.btn-group button:first-child,
[dir=rtl] .btn-group button:last-child {
	border-radius: 3px 0 0 3px;
}

.btn-group button:last-child,
[dir=rtl] .btn-group button:first-child {
	border-radius: 0 3px 3px 0;
}

/* ====== Charts Styles ======== */
#people label {
	display:block;
}

#compact_chart,
#fan_chart,
.chart_common,
#ancestry_booklet,
#descendancy_booklet,
#familybook_chart,
#hourglass_chart {
	margin: 20px;
}

/* styles for vertical lines in ancestry and descendancy charts */
.chart_common li {
	list-style: none;
}

.chart_common li > span.details1 {
	white-space: nowrap;
}

.chart_common .generation {
	background: transparent url(images/vline.png) left top repeat-y;
	margin: 0 0 0 15px;
	padding: 0;
	display: block;
}

[dir=rtl] .chart_common .generation {
	margin: 0 15px 0 0;
	background-position: right top
;
}

.chart_common .generation > li {
	margin: 5px 0;
}

.chart_common table {
	padding: 0;
	border-spacing: 0;
	border-collapse: collapse;
	margin: 5px 0;
}

.chart_common td {
	border: 0;
	padding: 0;
}

.chart_common span.details1 div[class^=fact_] {
	display: inline-block;
}

.chart_common span.details1 .date {
	color: inherit;
}

/*-- Family book  --*/
#familybook_chart {
	margin-left: 10px;
}

#familybook_chart table {
	border-collapse: collapse;
	empty-cells: show;
}

#familybook_chart td {
	margin: 0;
	padding: 0;
}

#familybook_chart h2 {
	text-align: center;
}

#familybook_chart .line3,
#familybook_chart .pvline,
#familybook_chart .spacer {
	width: 3px;
}

#familybook_chart .line4 {
	width: 7px;
	vertical-align: middle;
}

[ID^="vline"] {
	width: 3px;
}

#familybook_chart h3 {
	color: #006;
	font-size: 16px;
	text-align: center;
}

[dir=rtl] #familybook_chart {
	margin-right: 10px;
}

/*-- Fan chart ---- */
.fan_chart_menu {
	position: absolute;
	display: none;
	z-index: 100;
}

#fan_chart ul {
	list-style-type: none;
	margin: 0;
}

#fan_chart_img {
	text-align: center;
}

/*-- Hourglass ---- */
#hourglass_chart img.line4 {
	vertical-align: middle;
}

#hourglass_chart table,
.charts_block table {
	border-collapse: collapse;
}

#hourglass_chart td,
.charts_block td {
	padding: 0;
	empty-cells: show;
}

/*-- Lifespan ---- */
#lifespan-chart {
	padding:    0 10px 10px;
	margin:     0 auto;
	min-height: 500px;
}

#lifespan-scale {
	background: transparent url(images/lifespan-chunk.png) repeat-x left bottom;
	display: inline-block;
	padding-bottom: 37px;
}

#lifespan-scale .date {
	display: inline-block;
	width:   70px;
}

[dir='rtl'] #lifespan-scale .date {
	text-align: right;
}

#lifespan-people {
	position: relative;
}

#lifespan-people > div {
	position: absolute;
	padding:  0;
}

#lifespan-people .itr {
	display: inline;
	white-space: nowrap;
}

#lifespan-people .popup div:first-of-type {
	font-weight: 900;
}

#lifespan-people .popup {
	left:        0;
	right:       auto;
	white-space: nowrap;
}

[dir='rtl'] #lifespan-people .popup {
	left:  auto;
	right: 0;
}

/*-- Pedigree ---- */
#pedigree_chart {
	position: relative;
	margin: 20px auto;
}

#pedigree_canvas {
	color:   #81a9cb;
	z-index: -1000;
}

#pedigree-page .shadow {
	position: absolute;
	white-space: nowrap;
}

#pedigree-page .layout0 .shadow > div,
#pedigree-page .layout1 .shadow > div {
	display: inline-block;
	vertical-align: middle;
}

#pedigree-page .spacer {
	background-image: url(images/spacer.png);
	height:           20px;
	width:            1px;
}

#childarrow,
.ancestorarrow {
	text-align: center;
}

#pedigree-page #childarrow {
	position: relative;
}

#pedigree-page #childbox {
	border:           1px solid;
	background-color: #fff;
}

.pedigree_form {
	width: 45px;
}

#pedigree-page table.list_table {
	margin: 0 auto;
	width:  500px;
}

.pedigree_chart_table {
	border:          0;
	border-collapse: collapse;
	padding:         0;
	width:           100%;
}

/*-- timeline  --*/
#timeline_chart {
	position: relative;
	top: 0;
	left: 0;
}

#field_table {
	width: 30%;
	min-width: 500px;
}

/* ====== Common Icons ========= */
[class^="icon-"],
[class*=" icon-"] {
	display: inline-block;
	vertical-align: text-bottom;
	background-repeat: no-repeat;
}

.icon-add {
	width: 14px;
	height: 15px;
	background-image: url(images/add.png);
}

.icon-admin {
	width: 25px;
	height: 25px;
	background-image: url(images/admin.png);
	margin: 0 5px;
}

.icon-bing {
	width: 16px;
	height: 16px;
	background-image: url(images/bing.png);
}

.icon-button_addmedia {
	width: 18px;
	height: 16px;
	background-image: url(images/buttons/addmedia.png);
	vertical-align: middle;
}

.icon-button_addnote {
	width: 17px;
	height: 15px;
	background-image: url(images/buttons/addnote.png);
}

.icon-button_addrepository {
	width: 15px;
	height: 15px;
	background-image: url(images/buttons/addrepository.png);
}

.icon-button_addsource {
	width: 18px;
	height: 16px;
	background-image: url(images/buttons/addsource.png);
}

.icon-button_calendar {
	width: 19px;
	height: 15px;
	background-image: url(images/buttons/calendar.png);
	vertical-align: middle;
}

.icon-button_family {
	width: 14px;
	height: 15px;
	background-image: url(images/buttons/family.png);
}

.icon-button_find {
	width: 17px;
	height: 15px;
	background-image: url(images/buttons/find.png);
}

.icon-button_find {
	width: 17px;
	height: 15px;
	background-image: url(images/buttons/find.png);
}

.icon-button_find_facts {
	width: 20px;
	height: 20px;
	background-image: url(images/buttons/find_facts.png);
}

.icon-button_head {
	width: 12px;
	height: 18px;
	background-image: url(images/buttons/head.png);
}

.icon-button_indi {
	width: 11px;
	height: 15px;
	background-image: url(images/buttons/indi.png);
}

.icon-button_keyboard {
	width: 30px;
	height: 15px;
	background-image: url(images/buttons/keyboard.png);
	vertical-align: middle;
}

.icon-button_media {
	width: 18px;
	height: 16px;
	background-image: url(images/buttons/media.png);
	vertical-align: middle;
}

.icon-button_note {
	width: 17px;
	height: 15px;
	background-image: url(images/buttons/note.png);
}

.icon-button_place {
	width: 15px;
	height: 15px;
	background-image: url(images/buttons/place.png);
	vertical-align: middle;
}

.icon-button_repository {
	width: 15px;
	height: 15px;
	background-image: url(images/buttons/repository.png);
}

.icon-button_source {
	width: 18px;
	height: 16px;
	background-image: url(images/buttons/source.png);
}

.icon-cfamily {
	width: 25px;
	height: 25px;
	background-image: url(images/cfamily.png);
}

.icon-childless {
	width: 25px;
	height: 25px;
	background-image: url(images/childless.png);
}

.icon-children {
	width: 16px;
	height: 16px;
	background-image: url(images/children.png);
}

.icon-clippings {
	width: 22px;
	height: 22px;
	background-image: url(images/clippings.png);
}

.icon-darrow {
	width: 20px;
	height: 20px;
	background-image: url(images/darrow.png);
}

a.icon-darrow:hover {
	width: 20px;
	height: 20px;
	background-image: url(images/darrow2.png);
}

.icon-ddarrow {
	width: 20px;
	height: 20px;
	background-image: url(images/ddarrow.png);
}

a.icon-ddarrow:hover {
	width: 20px;
	height: 20px;
	background-image: url(images/ddarrow2.png);
}

.icon-edit_indi {
	width: 25px;
	height: 25px;
	background-image: url(images/edit_indi.png);
}

.icon-email {
	width: 16px;
	height: 16px;
	background-image: url(images/email.png);
}

.icon-fam-list {
	width: 25px;
	height: 25px;
	background-image: url(images/cfamily.png);
}

.icon-googlemaps {
	width: 16px;
	height: 16px;
	background-image: url(images/googlemaps.png);
}

.icon-help {
	cursor: help;
	margin: 0 5px;
	width: 15px;
	height: 15px;
	background-image: url(images/help.png);
}

.icon-indi-list {
	width: 20px;
	height: 20px;
	background-image: url(images/indis.png);
}

.icon-larrow {
	width: 20px;
	height: 20px;
	background-image: url(images/larrow.png);
}

a.icon-larrow:hover {
	width: 20px;
	height: 20px;
	background-image: url(images/larrow2.png);
}

.icon-ldarrow {
	width: 20px;
	height: 20px;
	background-image: url(images/ldarrow.png);
}

a.icon-ldarrow:hover {
	width: 20px;
	height: 20px;
	background-image: url(images/ldarrow2.png);
}

.icon-loading-small {
	width: 16px;
	height: 16px;
	background-image: url(images/indicator.gif);
}

.icon-loading-large {
	width: 32px;
	height: 32px;
	background-image: url(images/loading.gif);
}

.icon-media {
	width: 20px;
	height: 20px;
	background-image: url(images/media.png);
}

.icon-media-list {
	width: 20px;
	height: 20px;
	background-image: url(images/media.png);
}

.icon-media-next {
	width: 20px;
	height: 20px;
	background-image: url(images/rdarrow.png);
}

.icon-media-play {
	width: 20px;
	height: 20px;
	background-image: url(images/rarrow.png);
}

.icon-media-prev {
	width: 20px;
	height: 20px;
	background-image: url(images/ldarrow.png);
}

.icon-media-shuffle {
	width: 10px;
	height: 10px;
	background-image: url(images/reorder.png);
}

.icon-media-stop {
	width: 20px;
	height: 20px;
	background-image: url(images/stop.png);
}

.icon-minus {
	width: 11px;
	height: 11px;
	background-image: url(images/minus.png);
}

.icon-mypage {
	width: 24px;
	height: 24px;
	background-image: url(images/mypage.png);
}

.icon-note {
	width: 22px;
	height: 22px;
	background-image: url(images/notes.png);
}

.icon-note-list {
	width: 20px;
	height: 20px;
	background-image: url(images/notes.png);
}

.icon-osm {
	width: 16px;
	height: 16px;
	background-image: url(images/osm.png);
}

.icon-plus {
	width: 11px;
	height: 11px;
	background-image: url(images/plus.png);
}

.icon-rarrow {
	width: 20px;
	height: 20px;
	background-image: url(images/rarrow.png);
}

a.icon-rarrow:hover {
	width: 20px;
	height: 20px;
	background-image: url(images/rarrow2.png);
}

.icon-rdarrow {
	width: 20px;
	height: 20px;
	background-image: url(images/rdarrow.png);
}

a.icon-rdarrow:hover {
	width: 20px;
	height: 20px;
	background-image: url(images/rdarrow2.png);
}

.icon-reminder {
	width: 15px;
	height: 12px;
	background-image: url(images/reminder.png);
}

.icon-remove {
	width: 20px;
	height: 20px;
	background-image: url(images/remove.png);
}

.icon-resn-confidential {
	width: 16px;
	height: 16px;
	background-image: url(images/resn_confidential.png);
}

.icon-resn-locked {
	width: 16px;
	height: 16px;
	background-image: url(images/resn_locked.png);
}

.icon-resn-none {
	width: 16px;
	height: 16px;
	background-image: url(images/resn_none.png);
}

.icon-resn-privacy {
	width: 16px;
	height: 16px;
	background-image: url(images/resn_privacy.png);
}

.icon-rings {
	width: 9px;
	height: 9px;
	background-image: url(images/rings.png);
}

.icon-selected {
	width: 12px;
	height: 12px;
	background-image: url(images/selected.png);
}

.icon-sex_f_15x15 {
	width: 15px;
	height: 15px;
	background-image: url(images/sex_f_15x15.png);
}

.icon-sex_f_9x9 {
	width: 9px;
	height: 9px;
	background-image: url(images/sex_f_9x9.png);
}

.icon-sex_m_15x15 {
	width: 15px;
	height: 15px;
	background-image: url(images/sex_m_15x15.png);
}

.icon-sex_m_9x9 {
	width: 9px;
	height: 9px;
	background-image: url(images/sex_m_9x9.png);
}

.icon-sex_u_15x15 {
	width: 15px;
	height: 15px;
	background-image: url(images/sex_u_15x15.png);
}

.icon-sex_u_9x9 {
	width: 9px;
	height: 9px;
	background-image: url(images/sex_u_9x9.png);
}

.icon-source {
	width: 20px;
	height: 20px;
	background-image: url(images/source.png);
}

.icon-target {
	width: 15px;
	height: 15px;
	background-image: url(images/buttons/target.png);
	vertical-align: middle;
}

.icon-uarrow {
	width: 20px;
	height: 20px;
	background-image: url(images/uarrow.png);
}

a.icon-uarrow:hover {
	width: 20px;
	height: 20px;
	background-image: url(images/uarrow2.png);
}

.icon-udarrow {
	width: 20px;
	height: 20px;
	background-image: url(images/udarrow.png);
}

a.icon-udarrow:hover {
	width: 20px;
	height: 20px;
	background-image: url(images/udarrow2.png);
}

.icon-warning {
	width: 17px;
	height: 17px;
	background-image: url(images/warning.png);
}

.icon-wiki {
	width: 16px;
	height: 16px;
	background-image: url(images/w_button.png);
}

.icon-zoomin {
	width: 25px;
	height: 25px;
	background-image: url(images/zoomin.png);
}

.icon-zoomout {
	width: 25px;
	height: 25px;
	background-image: url(images/zoomout.png);
}

/* Silhouettes on charts */
.icon-silhouette-F {
	width: 37px;
	height: 50px;
	background-image: url(images/silhouette_female_small.png);
}

.icon-silhouette-M {
	width: 37px;
	height: 50px;
	background-image: url(images/silhouette_male_small.png);
}

.icon-silhouette-U {
	width: 37px;
	height: 50px;
	background-image: url(images/silhouette_unknown_small.png);
}

#indi_mainimage .icon-silhouette-F {
	width: 99px;
	height: 106px;
	background-image: url(images/silhouette_female.png);
}

#indi_mainimage .icon-silhouette-M {
	width: 99px;
	height: 99px;
	background-image: url(images/silhouette_male.png);
}

#indi_mainimage .icon-silhouette-U {
	width: 100px;
	height: 97px;
	background-image: url(images/silhouette_unknown.png);
}

[class^="icon-mime-"],
[class*=" icon-mime-"] {
	display: inline-block;
	background: transparent url(images/icon-mime-sprite.png) no-repeat;
	width: 48px;
	height: 48px;
}

/* ===== Generic MIME types ===== */
[class^="icon-mime-"],
[class*=" icon-mime-"] {
	background-position: -99px -49px;
}

[class^="icon-mime-application-"],
[class*=" icon-mime-application-"] {
	background-position: -99px -196px;
}

[class^="icon-mime-audio-"],
[class*=" icon-mime-audio-"] {
	background-position: -197px -98px;
}

[class^="icon-mime-image-"],
[class*=" icon-mime-image-"] {
	background-position: -148px -245px;
}

[class^="icon-mime-text-"],
[class*=" icon-mime-text-"] {
	background-position: -197px -147px;
}

[class^="icon-mime-video-"],
[class*=" icon-mime-video-"] {
	background-position: -148px -147px;
}

/* ===== Specific MIME types ===== */
.icon-mime-application-pdf {
	background-position: -1px -49px;
}

.icon-mime-application-msword {
	background-position: -148px -49px;
}

.icon-mime-application-vnd-ms-excel {
	background-position: -148px -196px;
}

.icon-mime-application-x-rar-compressed {
	background-position: -50px -98px;
}

.icon-mime-application-zip {
	background-position: -50px -147px;
}

.icon-mime-application-x-shockwave-flash {
	background-position: -148px 0;
}

.icon-mime-audio-mp3 {
	background-position: -50px -245px;
}

.icon-mime-audio-mpeg {
	background-position: -50px 0;
}

.icon-mime-audio-x-ms-wma {
	background-position: -1px -245px;
}

.icon-mime-audio-wav {
	background-position: -1px -98px;
}

.icon-mime-text-html {
	background-position: -99px -245px;
}

.icon-mime-text-x-gedcom {
	background-position: -50px -49px;
}

.icon-mime-image-bmp {
	background-position: 197px 0;
}

.icon-mime-image-gif {
	background-position: -197px -49px;
}

.icon-mime-image-jpeg {
	background-position: -1px -147px;
}

.icon-mime-image-png {
	background-position: -99px -98px;
}

.icon-mime-image-svg {
	background-position: -197px -196px;
}

.icon-mime-image-tiff {
	background-position: -148px -98px;
}

.icon-mime-video-quicktime {
	background-position: -99px -147px;
}

.icon-mime-video-avi {
	background-position: -99px 0;
}

.icon-mime-video-x-ms-wmv {
	background-position: -50px -196px;
}
/* ====== End Icon styles ====== */

/* ====== Theme Header ========= */
header h1 {
	clear: left;
	float: left;
	font-size: 24px;
	font-weight: normal;
	height: 20px;
	margin: 10px 12px;
}

[dir=rtl] header h1 {
	float: right;
}

.header-upper {
	height: 40px;
	color: #fff;
	background: #039 url(images/cabeza.png) left top;
}

[dir=rtl] .header-upper {
	background: url(images/cabeza_rtl.png) right top;
}

.header-search {
	display: block;
	float: right;
	margin-top: 10px;
	margin-right: 5px;
}

[dir=rtl] .header-search {
	float: left;
	padding-left: 10px;
}

/* Set stack level for top two header menu rows */
.secondary-menu ul,
.primary-menu ul {
	z-index: 210;
	max-height: 400px;
	min-width: 140px;
	overflow-y: auto;
	overflow-x: hidden;
}

/* ====== Secondary menu ======= */
.header-lower {
	background: #84beff url(images/barra.png);
	width: 100%;
	color: #fff;
	height: 40px;
	position: relative;
}

.menu-theme,
.menu-favorites {
	float: left;
}

[dir=rtl] .menu-theme,
[dir=rtl] .menu-favorites {
	float: right;
}

.menu-language {
	float: right;
}

[dir=rtl] .menu-language {
	float: left;
}

.secondary-menu {
	clear: both;
	text-align: center;
	margin: 0;
	list-style: none;
}

.secondary-menu li {
	display: inline-block;
	position: relative;
	white-space: nowrap;
	padding: 12px 10px 0 5px;
}

.secondary-menu a {
	color: #fff;
	font-weight: bold;
}

.secondary-menu a:hover {
	color: #f00;
}

.secondary-menu ul {
	list-style: none;
	display: none;
	position: absolute;
	top: 18px;
	background-color: #fff;
	border: thin solid #c3dfff;
	padding: 1px;
}

.menu-language ul {
	left: auto;
	right: 0;
}

[dir=rtl] .menu-language ul {
	left: 0;
	right: auto;
}

.secondary-menu li li {
	padding: 2px;
	display: block;
	text-align: left;
}

[dir=rtl] .secondary-menu li li {
	text-align: right;
}

[dir=rtl] li li {
	text-align: right;
}

.secondary-menu li li a {
	color: #000;
	font-weight: normal;
	display: block;
	padding: 3px;
}

.secondary-menu li li a:hover {
	color: #f00;
}

.secondary-menu li:hover ul {
	display: block;
}

.secondary-menu .active a {
	color: #006;
	font-weight: 900;
}

/* ====== Primary menu ========= */
header nav {
	border-bottom: 2px solid #0073cf;
	float: left;
	height: 40px;
	margin-bottom: 14px;
	padding: 10px 0;
	position: relative;
	width: 100%;
	clear: both;
}

.primary-menu,
.primary-menu ul {
	margin: 0;
	list-style-type: none;
}

.primary-menu {
	margin: 0 auto;
	display: table;
}

.primary-menu li {
	float: left;
	position: relative;
}

.primary-menu li li {
	clear: both;
}

.primary-menu li:hover > ul {
	display: block;
	position: absolute;
	top: 0;
	left: 100%;
	right: auto;
	margin-top: 0;
}

.primary-menu > li:hover > ul {
	left: 0;
	right: auto;
	top: 42px;
}

.primary-menu a {
	display: block;
	white-space: nowrap;
	overflow: hidden;
}

.primary-menu ul {
	position: absolute;
	display: none;
	background: #fff;
	border: thin solid #aaa;
	padding: 0;
}

.primary-menu li a {
	margin: auto;
	padding-top: 22px;
	width: 100%;
}

.primary-menu li li a {
	display: block;
	position: relative;
	float: left;
	font-size: 11px;
	line-height: 1.5;
	padding: 0 10px 1px 5px;
}

.primary-menu > li {
	background-image: url(images/sprites-top-menu.png);
	background-repeat: no-repeat;
	min-width: 80px;
	width: auto;
	text-align: center;
	height: 28px;
	line-height: 28px;
	text-indent: 0;
}

.primary-menu li li {
	background-image: url(images/sprites-sub-menu.png);
	background-repeat: no-repeat;
	height: 23px;
	left: auto;
	line-height: 23px;
	text-align: left;
	text-indent: 26px;
	margin-top:  2px;
	width: 100%;
}

/* Reverse left and right on RTL pages */
[dir=rtl] .primary-menu li {
	float: right;
}

[dir=rtl] .primary-menu li:hover > ul {
	right: 100%;
	left: auto;
}

[dir=rtl] .primary-menu > li:hover > ul {
	left: auto;
	right: 0;
}

[dir=rtl] .primary-menu li li {
	text-align: right;
}

[dir=rtl] .primary-menu li li a {
	float: right;
	padding: 1px 5px 1px 10px;
}

/* ====== End Theme Header ===== */

/* ====== Theme Footer ========= */

footer {
	clear: both;
	font-size: 12px;
	padding-top: 10px;
	text-align: center;
}

.contact-links {
	margin-top: 15px;
}

.powered-by-webtrees {
	display: inline-block;
	margin-top: 10px;
	width: 100px;
	height: 21px;
}

.powered-by-webtrees:after {
	content: url(images/powered-by-webtrees.png);
}

/* ====== End Theme Footer ===== */

/* ====== Theme Icons ========== */
/* ***** Header icons **** */
.menu-tree {
	background-position:center -0px;
}

.menu-mymenu {
	background-position:center -203px;
}

.menu-chart {
	background-position:center -29px;
}

.menu-list {
	background-position:center -58px;
}

.menu-report {
	background-position:center -116px;
}

.menu-calendar {
	background-position:center -87px;
}

.menu-search {
	background-position:center -145px;
}

.menu-help {
	background-position:center -174px;
}

.menu-clippings {
	background-position:center -232px;
}

.menu-indi,
.menu-record {
	background-position:center -261px;
}

.menu-indi-orderfam {
	background-position: left 0;
}

[dir=rtl] .menu-indi-orderfam {
	background-position: right 0;
}

.menu-sour {
	background-position:center -319px;
}

.menu-fam {
	background-position:center -290px;
}

.menu-obje {
	background-position: center -377px;
}

.menu-note {
	background-position:center -348px;
}

.menu-repo {
	background-position: center -406px;
}

.menu-story {
	background-position: center -435px;
}

/* Header Sub-menu icons */
.menu-admin {
	background-position: left -644px;
}

[dir=rtl] .menu-admin {
	background-position: right -644px;
}

.menu-branches {
	background-position: left -414px;
}

[dir=rtl] .menu-branches {
	background-position: right -414px;
}

.menu-calendar-day {
	background-position: left -506px;
}

[dir=rtl] .menu-calendar-day {
	background-position: right -506px;
}

.menu-calendar-month {
	background-position: left -506px;
}

[dir=rtl] .menu-calendar-month {
	background-position: right -506px;
}

.menu-calendar-year {
	background-position: left -506px;
}

[dir=rtl] .menu-calendar-year {
	background-position: right -506px;
}

.menu-chart-ancestry {
	background-position: left -0px;
}

[dir=rtl] .menu-chart-ancestry {
	background-position: right -0px;
}

.menu-chart-compact {
	background-position: left -46px;
}

[dir=rtl] .menu-chart-compact {
	background-position: right -46px;
}

.menu-chart-descendants {
	background-position: left -69px;
}

[dir=rtl] .menu-chart-descendants {
	background-position: right -69px;
}

.menu-chart-familybook {
	background-position: left -92px;
}

[dir=rtl] .menu-chart-familybook {
	background-position: right -92px;
}

.menu-chart-fanchart {
	background-position: left -23px;
}

[dir=rtl] .menu-chart-fanchart {
	background-position: right -23px;
}

.menu-chart-hourglass {
	background-position: left -115px;
}

[dir=rtl] .menu-chart-hourglass {
	background-position: right -115px;
}

.menu-chart-lifespan {
	background-position: left -161px;
}

[dir=rtl] .menu-chart-lifespan {
	background-position: right -161px;
}

.menu-chart-pedigree {
	background-position: left -184px;
}

[dir=rtl] .menu-chart-pedigree {
	background-position: right -184px;
}

.menu-chart-pedigree_map {
	background-position: left -207px;
}

[dir=rtl] .menu-chart-pedigree_map {
	background-position: right -207px;
}

.menu-chart-relationship {
	background-position: left -230px;
}

[dir=rtl] .menu-chart-relationship {
	background-position: right -230px;
}

.menu-chart-statistics {
	background-position: left -253px;
}

[dir=rtl] .menu-chart-statistics {
	background-position: right -253px;
}

.menu-chart-timeline {
	background-position: left -276px;
}

[dir=rtl] .menu-chart-timeline {
	background-position: right -276px;
}

.menu-chart-tree {
	background-position: left -138px;
}

[dir=rtl] .menu-chart-tree {
	background-position: right -138px;
}

.menu-clippingsadd {
	background-position: left -621px;
}

[dir=rtl] .menu-clippingsadd {
	background-position: right -621px;
}

.menu-clippingscart {
	background-position: left -621px;
}

[dir=rtl] .menu-clippingscart {
	background-position: right -621px;
}

.menu-fam-addchil {
	background-position: left -759px;
}

[dir=rtl] .menu-fam-addchil {
	background-position: right -759px;
}

.menu-fam-addfav {
	background-position: left -736px;
}

[dir=rtl] .menu-fam-addfav {
	background-position: right -736px;
}

.menu-fam-change {
	background-position: left -759px;
}

[dir=rtl] .menu-fam-change {
	background-position: right -759px;
}

.menu-fam-del {
	background-position: left -713px;
}

[dir=rtl] .menu-fam-del {
	background-position: right -713px;
}

.menu-fam-editraw {
	background-position: left -667px;
}

[dir=rtl] .menu-fam-editraw {
	background-position: right -667px;
}

.menu-fam-orderchil {
	background-position: left -759px;
}

[dir=rtl] .menu-fam-orderchil {
	background-position: right -759px;
}

.menu-help-contents {
	background-position: left -552px;
}

[dir=rtl] .menu-help-contents {
	background-position: right -552px;
}

.menu-help-faq {
	background-position: left -552px;
}

[dir=rtl] .menu-help-faq {
	background-position: right -552px;
}

.menu-help-genealogy {
	background-position: left -552px;
}

[dir=rtl] .menu-help-genealogy {
	background-position: right -552px;
}

.menu-help-hide {
	background-position: left -552px;
}

[dir=rtl] .menu-help-hide {
	background-position: right -552px;
}

.menu-help-show {
	background-position: left -552px;
}

[dir=rtl] .menu-help-show {
	background-position: right -552px;
}

.menu-help-technical {
	background-position: left -598px;
}

[dir=rtl] .menu-help-technical {
	background-position: right -598px;
}

.menu-help-wiki {
	background-position: left -575px;
}

[dir=rtl] .menu-help-wiki {
	background-position: right -575px;
}

.menu-indi-addfav,
.menu-record-addfav {
	background-position: left -736px;
}

[dir=rtl] .menu-indi-addfav,
[dir=rtl] .menu-record-addfav {
	background-position: right -736px;
}

.menu-indi-editname {
	background-position: left -690px;
}

[dir=rtl] .menu-indi-editname {
	background-position: right -690px;
}

.menu-indi-addname {
	background-position: left -690px;
}

[dir=rtl] .menu-indi-addname {
	background-position: right -690px;
}

.menu-indi-del,
.menu-record-del {
	background-position: left -713px;
}

[dir=rtl] .menu-indi-del,
[dir=rtl] .record-indi-del {
	background-position: right -713px;
}

.menu-indi-editraw,
.menu-record-editraw {
	background-position: left -667px;
}

[dir=rtl] .menu-indi-editraw {
	background-position: right -667px;
}

.menu-indi-editsex {
	background-position: left -690px;
}

[dir=rtl] .menu-indi-editsex {
	background-position: right -690px;
}

.menu-list-fam {
	background-position: left -437px;
}

[dir=rtl] .menu-list-fam {
	background-position: right -437px;
}

.menu-list-indi {
	background-position: left -460px;
}

[dir=rtl] .menu-list-indi {
	background-position: right -460px;
}

.menu-list-note {
	background-position: left -368px;
}

[dir=rtl] .menu-list-note {
	background-position: right -368px;
}

.menu-list-obje {
	background-position: left -299px;
}

[dir=rtl] .menu-list-obje {
	background-position: right -299px;
}

.menu-list-plac {
	background-position: left -322px;
}

[dir=rtl] .menu-list-plac {
	background-position: right -322px;
}

.menu-list-repo {
	background-position: left -345px;
}

[dir=rtl] .menu-list-repo {
	background-position: right -345px;
}

.menu-list-sour {
	background-position: left -391px;
}

[dir=rtl] .menu-list-sour {
	background-position: right -391px;
}

.menu-myaccount {
	background-position: left -598px;
}

[dir=rtl] .menu-myaccount {
	background-position: right -598px;
}

.menu-mypage {
	background-position: left -598px;
}

[dir=rtl] .menu-mypage {
	background-position: right -598px;
}

.menu-mypedigree {
	background-position: left -828px;
}

[dir=rtl] .menu-mypedigree {
	background-position: right -828px;
}

.menu-myrecord {
	background-position: left -460px;
}

[dir=rtl] .menu-myrecord {
	background-position: right -460px;
}

.menu-note-addfav {
	background-position: left -736px;
}

[dir=rtl] .menu-note-addfav {
	background-position: right -736px;
}

.menu-note-del {
	background-position: left -713px;
}

[dir=rtl] .menu-note-del {
	background-position: right -713px;
}

.menu-note-edit {
	background-position: left -805px;
}

[dir=rtl] .menu-note-edit {
	background-position: right -805px;
}

.menu-note-editraw {
	background-position: left -667px;
}

[dir=rtl] .menu-note-editraw {
	background-position: right -667px;
}

.menu-obje-addfav {
	background-position: left -736px;
}

[dir=rtl] .menu-obje-addfav {
	background-position: right -736px;
}

.menu-obje-del {
	background-position: left -713px;
}

[dir=rtl] .menu-obje-del {
	background-position: right -713px;
}

.menu-obje-edit {
	background-position: left -852px;
}

[dir=rtl] .menu-obje-edit {
	background-position: right -852px;
}

.menu-obje-editraw {
	background-position: left -667px;
}

[dir=rtl] .menu-obje-editraw {
	background-position: right -667px;
}

.menu-obje-link {
	background-position: left -875px;
}

[dir=rtl] .menu-obje-link {
	background-position: right -875px;
}

.menu-obje-link-fam {
	background-position: left -437px;
}

[dir=rtl] .menu-obje-link-fam {
	background-position: right -437px;
}

.menu-obje-link-indi {
	background-position: left -460px;
}

[dir=rtl] .menu-obje-link-indi {
	background-position: right -460px;
}

.menu-obje-link-sour {
	background-position: left -391px;
}

[dir=rtl] .menu-obje-link-sour {
	background-position: right -391px;
}

.menu-repo-addfav {
	background-position: left -736px;
}

[dir=rtl] .menu-repo-addfav {
	background-position: right -736px;
}

.menu-repo-del {
	background-position: left -713px;
}

[dir=rtl] .menu-repo-del {
	background-position: right -713px;
}

.menu-repo-edit {
	background-position: left -897px;
}

[dir=rtl] .menu-repo-edit {
	background-position: right -897px;
}

.menu-repo-editraw {
	background-position: left -667px;
}

[dir=rtl] .menu-repo-editraw {
	background-position: right -667px;
}

.menu-report li {
	background-position: left -483px;
}

[dir=rtl] .menu-report li {
	background-position: right -483px;
}

.menu-search-advanced {
	background-position: left -529px;
}

[dir=rtl] .menu-search-advanced {
	background-position: right -529px;
}

.menu-search-general {
	background-position: left -529px;
}

[dir=rtl] .menu-search-general {
	background-position: right -529px;
}

.menu-search-replace {
	background-position: left -529px;
}

[dir=rtl] .menu-search-replace {
	background-position: right -529px;
}

.menu-search-soundex {
	background-position: left -529px;
}

[dir=rtl] .menu-search-soundex {
	background-position: right -529px;
}

.menu-sour-addfav {
	background-position: left -736px;
}

[dir=rtl] .menu-sour-addfav {
	background-position: right -736px;
}

.menu-sour-del {
	background-position: left -713px;
}

[dir=rtl] .menu-sour-del {
	background-position: right -713px;
}

.menu-sour-edit {
	background-position: left -782px;
}

[dir=rtl] .menu-sour-edit {
	background-position: right -782px;
}

.menu-sour-editraw {
	background-position: left -667px;
}

[dir=rtl] .menu-sour-editraw {
	background-position: right -667px;
}

.menu-tree li {
	background-position: left -667px;
}

[dir=rtl] .menu-tree li {
	background-position: right -667px;
}

.icon-indis {
	width: 25px;
	height: 25px;
	background-image: url(images/indis.png);
}

.icon-patriarch {
	width: 25px;
	height: 25px;
	background-image: url(images/patriarch.png);
}

.icon-pedigree {
	width: 25px;
	height: 25px;
	background-image: url(images/pedigree.png);
}

.icon-place {
	width: 25px;
	height: 25px;
	background-image: url(images/place.png);
}

.icon-repo-list {
	width: 25px;
	height: 25px;
	background-image: url(images/repository.png);
}

.icon-repository {
	width: 25px;
	height: 25px;
	background-image: url(images/repository.png);
}

.icon-search {
	width: 25px;
	height: 25px;
	background-image: url(images/search.png);
}

.icon-sfamily {
	width: 25px;
	height: 25px;
	background-image: url(images/sfamily.png);
}

.icon-source-list {
	width: 25px;
	height: 25px;
	background-image: url(images/source.png);
}

.icon-tree {
	width: 25px;
	height: 25px;
	background-image: url(images/tree.png);
}

.icon-user_add {
	width: 25px;
	height: 25px;
	background-image: url(images/user_add.png);
}

.cookie-warning {
	background: #aaa;
	color: #fff;
	height: 3em;
	line-height: 2.5em;
	transition: height 0.5s;
}
.cookie-warning.hidden {
	height: 0;
	overflow: hidden;
}

@media print {
	header,
	footer,
	form,
	#sidebar,
	#separator,
	.editfacts,
	.noprint {
		display: none;
	}

	#header_accordion1 {
		width: 500px;
	}

	#pedigree-page h2 {
		margin: 0;
	}

	#pedigree_chart {
		margin: 0 auto;
	}

	#familybook_chart h3 {
		margin-bottom: 10px;
	}

	#lifespan-chart {
		margin: 0;
		border: 0;
		padding: 0;
	}
}

/* Mobile low and high resolution viewports */
@media (max-width: 600px) {
	.primary-menu {
		display: block;
		margin: 0 5px
	}
	.primary-menu > li {
		width: 50px;
		min-width: 40px;
	}
	/* Search */
	#search-page-table {
		width: auto;
	}
	#search-page-table .value {
		margin: 0 0 0 30%;
	}
	[dir=rtl] #search-page-table .value {
		margin: 0 30% 0 0;
		float: right;
	}
	#search-page-table div #query {
		width: 150px;
	}
	#search-page-table .value {
		white-space: normal;
    }
	#search-page-table > input {
		width: 20px;
	}
	#field_table {
		width: 80%;
		min-width: 380px;
	}
	.list_label, .list_value {
		white-space: normal;
	}
	/* Phonetic Search */
	#search-page-table .label {
		width: 25%;
	}
	/* Login */
	#register-form div, #verify-form div {
		text-align: left;
	}
	#register-form, #verify-form {
		width: 95%;
	}
	#login-text, #user-verify, #register-text, #user-verify {
		min-width: auto;
		width: 100%;
	}
}
@media (max-width: 400px) {
	/* Header */
	.header-search {
		display: none;
	}
	nav ul {
		margin: 0;
		padding: 0;
	}
	header h1 {
		margin: 10px 12px 0 10px;
	}
	header nav {
		height: 40px;
    }
	/* Front Page */
	#index_main_blocks {
		float: left;
		width: 100%;
	}
	#index_small_blocks {
		float: left;
		width: 100%;
	}
	.stat-table1, .stat-table2{
		width: 100%;
	}
	/* Indi Page */
	#indi_left {
		float: left;
		width: 100%;
		font-size: 10px;
	}
	#header_accordion1 {
		font-size: 10px;
	}
	#main {
		display: inline;
	}
	#separator {
		display: none;
	}
	#sidebar {
		float: left;
		width: 100%;
		display: inline;
	}
	/* Advanced Search */
	#field_table {
		min-width: 100%;
	}
}
