/**
 * webtrees: online genealogy
 * Copyright (C) 2020 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/>.
 */
 
 /* ---- custom.css -- */

@import url('https://fonts.cdnfonts.com/css/palatino-linotype');
@font-face {
	font-family: 'Helvetica Light';
        src: url('https://static.parastorage.com/services/third-party/fonts/user-site-fonts/fonts/03805817-4611-4dbc-8c65-0f73031c3973.woff') format('woff');
}

body {
	font-family: "Palatino Linotype";
	padding-top: 6px;
	font-size: 18px;
}
    
@media (min-width: 1200px) {
	.wt-header-container {
   		 max-width: 980px;
	}
}

[dir] .wt-main-container {
	padding-top: 2px;
}

h2 {
	padding-top: 24px; 
	font-size: 30px;
}

.wt-site-title {
	background-image: url('https://static.wixstatic.com/media/512a32_965b91fcc2444a7bb6cabfb53b0b27f9~mv2_d_2093_2107_s_2.jpg/v1/fill/w_71,h_71,al_c,q_80,usm_0.66_1.00_0.01,enc_auto/%C3%89cusson_Bovet.jpg');
	background-repeat: no-repeat;
	padding-top: 22px;
	text-indent: 73px;
	font-size: 40px;
	color: black;
	height: 72px;
	display: block;
	margin-left: 12px;
	background-position: top 3px left -1px;
	background-size: 68px 69px;
}

.wt-header-search, .wt-secondary-navigation {
	padding-top:16px;
}


figcaption {
	display: none;
}

[dir] .wt-header-container {
	background-color: white;
}

[dir] .wt-primary-navigation {
	background-color: white;
}


[dir] .card {
    border-radius: 2px;
}

[dir] .wt-facts-table th {
    border-radius: 0px;
}

[dir] .wt-facts-table td {
    border-radius: 0px;
}

[dir] .form-control {
    border-radius: 0; 
}


.wt-block-header {
	font-size: 24px;
	color: black;
	font-weight: normal;
}

[dir] .btn-primary {
	background-color: #555;
	font-family: "Helvetica Light", Helvetica, Arial, "Lucida Grande", sans-serif; 
	font-weight: 300;
	border-color: #555;
	font-size: 15px;
}

[dir] .btn-primary:hover {
        background-color: #666;
        border-color: #666;
}

.wt-user-menu .nav-item:after {
    content: " ";
}

.wt-genealogy-menu .nav-item+.nav-item:before {
    content: " ";
}

a {
	color: black;
}

a:hover, a:active {
	color: #333;
}

[dir] .wt-genealogy-menu .nav-link {
	margin-top: -3px;
	padding-right: 40px;
	padding-left: 40px;
}

.nav-link, [dir] .dropdown-menu {
        font-family: "Helvetica Light", Helvetica, Arial, "Lucida Grande", sans-serif;
	font-size: 15px;
	border-radius: 2px;
}

[dir] .wt-block-header {
    background-color: rgb(0,0,0,0);
} 

[dir] .wt-block {
    background-color: rgb(237, 233, 225, 0.7);
}

/* set check and radio boxes background for colors theme */

 [dir] .wt-theme-colors .form-check-input:checked {
	background-color: var(--color-1);
	border-color: var(--color-1);
}

[dir] .wt-theme-colors .form-control-check:checked[type=checkbox] {
	accent-color: var(--color-1);
}

[dir] .wt-theme-colors #HTML:checked[type=radio] {
	accent-color: var(--color-1);
}

.wt-theme-colors #PDF:checked[type=radio] {
	accent-color: var(--color-1);
}

[dir=ltr] .col, [dir=ltr] .col-1, [dir=ltr] .col-10, [dir=ltr] .col-11, [dir=ltr] .col-12, [dir=ltr] .col-2, [dir=ltr] .col-3, [dir=ltr] .col-4, [dir=ltr] .col-5, [dir=ltr] .col-6, [dir=ltr] .col-7, [dir=ltr] .col-8, [dir=ltr] .col-9, [dir=ltr] .col-auto, [dir=ltr] .col-lg, [dir=ltr] .col-lg-1, [dir=ltr] .col-lg-10, [dir=ltr] .col-lg-11, [dir=ltr] .col-lg-12, [dir=ltr] .col-lg-2, [dir=ltr] .col-lg-3, [dir=ltr] .col-lg-4, [dir=ltr] .col-lg-5, [dir=ltr] .col-lg-6, [dir=ltr] .col-lg-7, [dir=ltr] .col-lg-8, [dir=ltr] .col-lg-9, [dir=ltr] .col-lg-auto, [dir=ltr] .col-md, [dir=ltr] .col-md-1, [dir=ltr] .col-md-10, [dir=ltr] .col-md-11, [dir=ltr] .col-md-12, [dir=ltr] .col-md-2, [dir=ltr] .col-md-3, [dir=ltr] .col-md-4, [dir=ltr] .col-md-5, [dir=ltr] .col-md-6, [dir=ltr] .col-md-7, [dir=ltr] .col-md-8, [dir=ltr] .col-md-9, [dir=ltr] .col-md-auto, [dir=ltr] .col-sm, [dir=ltr] .col-sm-1, [dir=ltr] .col-sm-10, [dir=ltr] .col-sm-11, [dir=ltr] .col-sm-12, [dir=ltr] .col-sm-2, [dir=ltr] .col-sm-3, [dir=ltr] .col-sm-4, [dir=ltr] .col-sm-5, [dir=ltr] .col-sm-6, [dir=ltr] .col-sm-7, [dir=ltr] .col-sm-8, [dir=ltr] .col-sm-9, [dir=ltr] .col-sm-auto, [dir=ltr] .col-xl, [dir=ltr] .col-xl-1, [dir=ltr] .col-xl-10, [dir=ltr] .col-xl-11, [dir=ltr] .col-xl-12, [dir=ltr] .col-xl-2, [dir=ltr] .col-xl-3, [dir=ltr] .col-xl-4, [dir=ltr] .col-xl-5, [dir=ltr] .col-xl-6, [dir=ltr] .col-xl-7, [dir=ltr] .col-xl-8, [dir=ltr] .col-xl-9, [dir=ltr] .col-xl-auto, [dir=rtl] .col, [dir=rtl] .col-1, [dir=rtl] .col-10, [dir=rtl] .col-11, [dir=rtl] .col-12, [dir=rtl] .col-2, [dir=rtl] .col-3, [dir=rtl] .col-4, [dir=rtl] .col-5, [dir=rtl] .col-6, [dir=rtl] .col-7, [dir=rtl] .col-8, [dir=rtl] .col-9, [dir=rtl] .col-auto, [dir=rtl] .col-lg, [dir=rtl] .col-lg-1, [dir=rtl] .col-lg-10, [dir=rtl] .col-lg-11, [dir=rtl] .col-lg-12, [dir=rtl] .col-lg-2, [dir=rtl] .col-lg-3, [dir=rtl] .col-lg-4, [dir=rtl] .col-lg-5, [dir=rtl] .col-lg-6, [dir=rtl] .col-lg-7, [dir=rtl] .col-lg-8, [dir=rtl] .col-lg-9, [dir=rtl] .col-lg-auto, [dir=rtl] .col-md, [dir=rtl] .col-md-1, [dir=rtl] .col-md-10, [dir=rtl] .col-md-11, [dir=rtl] .col-md-12, [dir=rtl] .col-md-2, [dir=rtl] .col-md-3, [dir=rtl] .col-md-4, [dir=rtl] .col-md-5, [dir=rtl] .col-md-6, [dir=rtl] .col-md-7, [dir=rtl] .col-md-8, [dir=rtl] .col-md-9, [dir=rtl] .col-md-auto, [dir=rtl] .col-sm, [dir=rtl] .col-sm-1, [dir=rtl] .col-sm-10, [dir=rtl] .col-sm-11, [dir=rtl] .col-sm-12, [dir=rtl] .col-sm-2, [dir=rtl] .col-sm-3, [dir=rtl] .col-sm-4, [dir=rtl] .col-sm-5, [dir=rtl] .col-sm-6, [dir=rtl] .col-sm-7, [dir=rtl] .col-sm-8, [dir=rtl] .col-sm-9, [dir=rtl] .col-sm-auto, [dir=rtl] .col-xl, [dir=rtl] .col-xl-1, [dir=rtl] .col-xl-10, [dir=rtl] .col-xl-11, [dir=rtl] .col-xl-12, [dir=rtl] .col-xl-2, [dir=rtl] .col-xl-3, [dir=rtl] .col-xl-4, [dir=rtl] .col-xl-5, [dir=rtl] .col-xl-6, [dir=rtl] .col-xl-7, [dir=rtl] .col-xl-8, [dir=rtl] .col-xl-9, [dir=rtl] .col-xl-auto {
    padding-left: 8px;
    padding-right: 8px;
}

[dir] .mb-4, [dir] .my-4 {
    margin-bottom: 16px!important; 
}

/* Limit size of media object on Individual page for large monitors */
#individual-images .gallery img {
  max-width: 200px;
  margin-left: auto;
  display: flex;
  margin-right: auto;
}

/* Reduce spacing on Individual page */
[dir] .card-body {
	padding: .25rem .25rem .25rem 1.25rem;
	}
	
[dir] .card-body dd {
	margin-bottom: 0;
	}
	
/* Inline Individual data for FAB theme */
[dir] .card-body dt {
	clear: both;
	margin-right: 0;
}	

/* slid show controls */
.svg-inline--fa.fa-w-14, .svg-inline--fa {
	opacity: .7;
}

/* Adjust height for webtrees theme pirimay menu */
[dir] .dropdown-menu.show {
    max-height: 60rem;
}

/* move style from code to css for tables in Hourglass Chart */
.wt-chart-hourglass table {
	border-collapse: collapse;
	border: none;
}
.wt-chart-hourglass th, .wt-chart-hourglass td {
	padding: 0;
}

#childbox .person_box {
	border: thin solid #aaa!important;
}

/* Person box style changes before padding 2 and border 1 are added.
 * w-100 for Family and spouse and compact charts */

.wt-chart .wt-chart-box, .w-100 td .wt-chart-box, .d-flex .wt-chart-box {
	width: 16.25rem; /* 260px */
	height: 5rem; /* 80px */
	line-height: 1.05;
	border: thin solid #aaa;
}

.wt-chart .small, .wt-chart-box-facts .small {
	font-size: 11px;
}

.wt-icon-sex{
	height: 1em;
}

.svg-inline--fa.fa-fw {
    width: .75em;
}

.wt-icon-zoom-in {
    width: 25px;
    height: 25px;
}

[dir] [class^=fact_] {
    margin-bottom: 0;
}

#childbox .person_box {
    border: thin solid #aaa!important;
}

/* fix dropdowns on person box */

[dir] .wt-chart-box .dropdown-menu {
    max-height: 50rem; /* all charts */
}

.wt-chart-pedigree .wt-chart-box .wt-chart-box-zoom-dropdown {
    max-height: 20rem; /* only for zoom on pedigree */
}

.wt-chart-box .dropdown-menu {
    font-size: 12.8px;
    padding: 5px 0;
}

.wt-chart-box .dropdown-menu .NAME {
    padding-left: 20px;
    padding-top: 5px;
    line-height: 1.5;
}

[dir=rtl] .wt-chart-box .dropdown-menu .NAME {
    padding-right: 20px;
}

.wt-chart-box .wt-chart-box-name, .wt-chart-box .wt-chart-box-lifespan {
    font-size: 14px;
}

div [class^="menu-chart-"] {
    padding-top: 3px!important;
}

.wt-chart-box-zoom-dropdown div {
    padding: 3px 5px 0 5px!important;
}

div [class^="menu-chart-"] {
    padding-left: 10px!important;
}

[dir=rtl] div [class^="menu-chart-"] {
    padding-right: 10px!important;
}

div [class^="menu-chart-"] a {
    padding-left: 5px;
    vertical-align: top;
    font-size: .83rem!important;
}

[dir=rtl] div [class^="menu-chart-"] a {
    padding-right: 5px;
}

.wt-family-navigator-child  ul span {
    margin: 0 5px;
}

/* Center text on forms */

form .wt-page-options-label {
    text-align: center;
}

/* widen table for places */
.w-25.list_table {
    width: 35%!important;
}

/* Add horizontal scrolling to small block displays */
.hourglassChart .lineh1 {
    margin-bottom: 0px;
}

/* Add horizontal scrolling to small block displays 
.wt-block-content-todays_events,
.wt-block-content-todo,
.wt-block-content-top10_givnnames,
.wt-block-content-user_messages,
.wt-block-content-user_blog,
.wt-block-content-yahrzeit {
    overflow-y: hidden;
}
*/
/* Add vertical scrolling to small block displays 
.wt-block-content-todays_events,
.wt-block-content-todo,
.wt-block-content-top10_givnnames,
.wt-block-content-user_messages,
.wt-block-content-user_blog,
.wt-block-content-yahrzeit {
    max-height: 500px;
    overflow: scroll;
} 
*/
/* add horizontal scroll bars to Lists */

#place-hierarchy, .indi-list, .fam-list {
    overflow-x: auto;
}

/* touch devices - icons larger */

@media (any-hover: none) {

    .wt-icon-zoom-in, .icon-pedigree {
        width: 35px;
        height: 35px;
    }

    .wt-chart-box .wt-chart-box-name {
        font-size: 16px;
    }

    .icon-plus, .icon-minus {
        width: 18px;
        height: 18px;
    }
}

/* Adjust for various display sizes */

@media (max-width:500px) {
	.img-thumbnail {
		width: 35% !important;
		height: auto;
		display: block;
		margin: auto;
	}

	.col {
		min-width: auto;
	}

	#sidebar {
		width: auto!important;
	}
}
/*
@media (min-width:501px) and (max-width:1679px) {
	.container, .container-lg {
		max-width: 95%;
	}
}
*/
/* The following selector sets the webtrees screen utilization to 75% of the available screen size -- for large screen monitors.
 * If you wish webtrees to uitilize all the available screen then change the max-width: to 100%
 */
@media (min-width: 1680px) {
	.wt-main-container {
		max-width: 75%;
	}
}

/* Control printing on Facts 
 */
@media print {
	#sidebar, 
	.wt-tabs-individual .nav-item .nav-link,
	.wt-page-menu,
	#add-fact, .wt-quick-facts, .input-group-append,
	.wt-footers,
	.wt-facts-table tbody tr:first-child,
	.accordion .card,
	.story_edit,
	.col-sm-3 .text-center,
	.editfacts 
		{display:none;}
	.col-sm-8 {
		-webkit-box-flex: 0;
		flex: 0 0 96.666667%;
		max-width: 96.666667%;
		}
	.nav-link.active 
		{display: block!important;}
	a:link
		{text-decoration: none;}
}
