/**
 * webtrees: online genealogy
 * Copyright (C) 2016 webtrees development team
 * Copyright (C) 2016 JustCarmen
 * 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/>.
 */

/* general */
.label {
	color: #333;
}

blockquote {
	background: #fff;
}

/* bootstrap navbar */
.navbar-default {
	border-top: 5px solid #377BB5;
}

.navbar-default .navbar-brand {
	color: #428bca;
}

/* bootstrap submenu */
.dropdown-submenu>a:after {
    border-color: transparent;
    border-left-color: #ccc;
}

@media (max-width: 767px) {
	.nav-pills > li.active > a {
		background:none;
		color: #428bca;
	}

	.nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus {
		background:#eee;
		color: #428bca;
	}
}

/* footer */
footer {
	background-color: #e5e5e5;
	color: #999999;
}

/* titles */
#my-page h1 {
	border-bottom: 1px solid #eee;
}

/* sidebar (index) */
#index_small_blocks {
	border-left: 1px solid #eee;
}

#index_small_blocks .block:not(:last-child) {
	border-bottom: 1px solid #428bca;
}

/* Favorites block */
.gedcom_favorites_block .person_box,
.user_favorites_block .person_box,
.gedcom_favorites_block .person_boxF,
.user_favorites_block .person_boxF,
.gedcom_favorites_block .person_boxNN,
.user_favorites_block .person_boxNN {
	background: transparent;
}

.gedcom_favorites_block .person_boxNN,
.user_favorites_block .person_boxNN {
	border: none;
}

#index_main_blocks .gedcom_favorites_block > .person_box:nth-child(odd),
#index_main_blocks .user_favorites_block > .person_box:nth-child(odd) {
	background-color: #eee;
}

/* Statistics block */
.stat-table2 {
	border: 1px solid #b2c7d7;
}

.stat-table2 .stat-row:nth-child(odd) {
	background-color: #f5f5f5;
}

/* Personboxes */
.person_box {
	background-color: #D7EAF9;
}

.person_boxF {
	background-color: #FFF0F5;
}

.person_boxNN {
	background: #f5f5f5;
}

/* Popovers */
.popover-content .person_box {
	background: #fff;
}

.popover-content.childbox a.name1:before {
	color: #000;
}

/* Familylinks in popover */
.family-links > a {
	color: #000;
}

.family-links > a:hover {
	color: #337ab7;
}

/* jQuery.datatable list styles */
.table {
	border: 1px solid #b2c7d7;
}

.table tr.odd {
	background-color: #f5f5f5;
}

.dataTable a {
	color: #428bca;
}

.source-list .ui-widget-header,
.note-list .ui-widget-header,
.repo-list .ui-widget-header,
.media-list .ui-widget-header,
.indi-list .ui-widget-header,
.fam-list .ui-widget-header,
#story_table_wrapper .ui-widget-header {
	background: #f8f8f8;
	border: 1px solid #b2c7d7;
}

#medialist-page div .list_table > tbody > tr {
	border-bottom: 1px solid #eee;
}

#statistics_chart .ui-tabs-nav {
	border-bottom: 1px solid #b2c7d7;
}

.table-census-assistant,
.markdown table,
#accordion .facts_table .optionbox .table-census-assistant {
	background: #fff;
}

/* Advanced search page table */
#field_table .list_label {
	background-color: #e5e5e5;
	border-top: 1px solid #ccc;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
}

#field_table .list_value {
	background-color: #f9f9f9;
	border-top: 1px solid #ccc;
	border-right: 1px solid #ccc;
}

#field_table .facts_label03 {
	border-top: 1px solid #ccc;
}

#field_table tr:last-child td {
	border-bottom: 1px solid #ccc;
}

/* jQuery headers */
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
.header_accordion1 .name_one.person_box,
.header_accordion1 .name_one.person_boxF,
.header_accordion1 .name_one.person_boxNN {
	background-image: -webkit-linear-gradient(top, #428bca 0%, #2d6ca2 100%);
	background-image: -o-linear-gradient(top, #428bca 0%, #2d6ca2 100%);
	background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#2d6ca2));
	background-image: linear-gradient(to bottom, #428bca 0%, #2d6ca2 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff2d6ca2', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
	background-repeat: repeat-x;
	border-color: #2b669a;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 1px 1px rgba(0, 0, 0, 0.075);
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
	color: #fff;
}

#indi_header h3,
#indi_header h3 .label {
	color: #0b5b98;
}

#indi_header h3.ui-state-active,
#indi_header h3.ui-state-active .label {
	color: #fff;
}

.indi_name_details {
	border-left: 1px solid #b2c7d7;
	border-right: 1px solid #b2c7d7;
	border-bottom: 1px solid #b2c7d7;	
}

.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
	color: #fff;
}

/* Tab Panels */
.ui-tabs-panel .facts_table {
	border: 1px solid #ccc;
}

.ui-tabs-panel .facts_table tr:not([class="old"]):not([class="new"]) {
	border-bottom: 1px solid #ccc;
}

.ui-tabs-panel .facts_table .descriptionbox,
.ui-tabs-panel .facts_table .facts_label {
	background-color: #E5E5E5;
}

.ui-tabs-panel .facts_table .optionbox,
.ui-tabs-panel .facts_table .facts_value {
	background-color: #f9f9f9;
}

/* Individual page */
.panel-primary {
	border-color: #ccc;
}

.panel-default > .panel-heading {
	background: #f5f5f5;
}

.panel-default > .panel-heading a:after {
    color: gray;
}

.panel-primary > .panel-heading a,
.panel-primary > .panel-heading a:after {
    color: #fff;
}

.panel a {
	color: #362b36;
}

.panel .blockquote a,
.panel .story_body a,
.panel .fact_NOTE a,
.panel .fact_SHARED_NOTE a,
.panel .markdown a {
	color: #428bca;
}

#accordion .facts_table .descriptionbox,
#accordion .facts_table .facts_label {
	background-color: #E5E5E5;
}

#accordion .facts_table .optionbox,
#accordion .facts_table .facts_value,
#relatives_content .facts_table .facts_label {
	background-color: #f9f9f9;
}

#accordion table.table-census-assistant tbody > tr:first-child td,
#accordion .markdown .table tbody > tr:first-child td,
.table-census-assistant tbody > tr:first-child td,
.markdown .table tbody > tr:first-child td {
	text-shadow: 0 1px 0 #fff;
	background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%);
	background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%);
	background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0));
	background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
	background-repeat: repeat-x;
}

#personal_facts_content table:first-child tr:first-child td,
#relatives_content table:first-child tr:first-child td,
#sources_tab_content table:first-child tr:first-child td,
#notes_content table:first-child tr:first-child td {
	background: transparent;
}

#stories {
	border: 1px solid #ccc;
}

#accordion .facts_table tr:not([class="old"]):not([class="new"]),
#stories .news_title {
	border-bottom: 1px solid #ccc;
}

#relatives_content .facts_table:not(:first-child):not(:nth-child(2)) {
	border-top: 1px solid #ccc;
}

#separator {
	background-color: transparent;
}

.separator-hidden:after,
[dir=rtl] .separator-visible:after {
	background: #e5e5e5 url(images/indi_sprite.png) no-repeat -22px 100px;
}

.separator-visible:after,
[dir=rtl] .separator-hidden:after {
	background: #e5e5e5 url(images/indi_sprite.png) no-repeat -1px 100px;
}

/* family page */
#family-page .facts_table {
	border: 1px solid #ccc;
}

#family-page .facts_table tr {
	border-bottom: 1px solid #ccc;
}

#family-page .facts_table .descriptionbox {
	background-color: #E5E5E5;
}

#family-page .facts_table .optionbox {
	background-color: #f9f9f9;
}

/* icon colors */
[class^="icon-"],
[class*=" icon-"],
.copyicon,
.deleteicon,
.editicon,
.help.icon-wiki,
.lb-image_edit a,
.lb-image_link a,
.lb-image_view a,
a[class^="icon-"]:hover,
a[class^="icon-"]:focus,
a[class^=" icon-"]:hover,
a[class^=" icon-"]:focus,
.copyicon:focus,
.copyicon:hover,
.deleteicon:focus,
.deleteicon:hover,
.editicon:focus,
.editicon:hover,
.help.icon-wiki,
.lb-image_edit a:focus,
.lb-image_edit a:hover,
.lb-image_link a:focus,
.lb-image_link a:hover,
.lb-image_view a:focus,
.lb-image_view a:hover {
	color: #333;
}

.icon-place:before,
.icon-button_place:before,
.icon-help:before,
.icon-wiki:before {
	color: #428bca;
}

.deleteicon:before,
.icon-remove:before,
.icon-rings:before, 
.icon-target:before {
	color: #B80000;
}

.icon-warning:before {
	color: #f0ad4e;
}

.icon-selected:before,
.icon-button_addsource:before,
.icon-button_addmedia:before,
.icon-button_addnote:before,
.icon-button_addrepository:before {
	color: #70D62C;
}

.icon-button_head:before {
	color: #999;
}

/* pedigree chart */
#pedigree_canvas {
	color: #428BCA;
}

/* Non clickable arrows */
i.icon-darrow:before,
i.icon-larrow:before,
i.icon-rarrow:before,
i.icon-uarrow:before {	
	color: #aaa;
}

/* familybook_chart horizontal lines */
#familybook_chart hr {
	border: 1px solid #ccc;
}

/* submenu */
.submenu {
    background-color: #fff;
    border: 2px solid #428bca;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* media links submenu */
#flyoutPar,
#flyoutFam,
#flyoutStep {
	background-color: #fff;
    border: 2px solid #428bca;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

#media-links #flyoutPar.table,
#media-links #flyoutFam.table,
#media-links #flyoutStep.table {
	background-color: #fff;
}

/* popup forms. */
.container-popup table {
	background: #f9f9f9;
}

/* census assistant module */
.census-assistant-search .table {
	background: none;
	border: none;
}

.census-assistant-search .optionbox,
.census-assistant-search .facts_value {
	background: #f9f9f9 ;
	border: 1px solid #b2c7d7;
}

.census-assistant .table-census-inputs th,
.census-assistant .table-census-inputs td {
	border: 1px solid #b2c7d7;
}

/* Fancy Imagebar module */
#fancy-imagebar img {
	border-top: 5px solid #428bca;
	border-bottom: 5px solid #428bca;
}

/* errors - use same template as ui-state-error */
.error {
	background: url("../jquery-ui-1.11.4/images/ui-bg_glass_95_fef1ec_1x400.png");   
    color: #cd0a0a;
}

div.error {
	border: 1px solid #cd0a0a;
}

/* Colorbox */
#cboxTitle {
	color: #333;
}

#cboxTitle a {
	color: #428bca;
}

#cboxTitle a:hover {
	color: #2a6496;
}
