@font-face {
    font-family: "Apple Garamond";
    src: url('../fonts/AppleGaramond.ttf');
}

@font-face {
    font-family: "Apple Garamond Light";
    src: url('../fonts/AppleGaramond-Light.ttf');
}

html, body {
    margin: 0;
    padding: 0 10px 0 10px;
    background-color: #DCDCDC;
    font-family: "Arial";
    font-size: 1em;
}

h1, h2, h3, h4, h5, h6 {
    color: rgba(34,34,34,1); /*#0e6c88;*/
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* Menus                                                                                                              */
/* ------------------------------------------------------------------------------------------------------------------ */

#branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

#branding-logo {
    margin-right: 15px;
}

#branding-logo img {
    width: 80%;
}

#branding-company {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 1550px) {
    #branding-company h1 {
        font-size: 1.6em;
    }
    #branding-company h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 1450px) {
    #branding-company h1 {
        font-size: 1.4em;
    }
    #branding-company h3 {
        font-size: 1.1em;
    }
}


#branding-company h1, #branding-company h3 {
    margin: 0;
}

#branding-connect {
    margin-right: 5px;
}

#branding-connect a, #branding-version a {
    text-decoration: none;
    color: #626F7E;
    font-weight: bold;
    cursor: pointer;
}

nav {
    background: rgb(10,39,55);
    /*background: linear-gradient(0deg, rgba(10,39,55,1) 0%, rgba(9,59,79,1) 35%, rgba(14,108,136,1) 100%);*/
    background: linear-gradient(0deg, rgba(34,34,34,1) 0%, rgba(64,64,64,1) 35%, rgba(88,88,88,1) 100%);
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0,0,0,.3);
    color: white;
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

nav ul li {
    margin-right: 15px;
}

nav ul li a {
    text-decoration: none;
    color: white; /*#bbbbbb;*/
    cursor: pointer;
}

#nav-icon {
    position: absolute;
    z-index: 1000;
    left: 80px;
    top: 70px;
}

#nav-icon img {
    width: 25%;
}

.secondary-menu {
    width: 100%;
}

.secondary-menu ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

.secondary-menu ul li {
    border-left: 1px solid black;
    padding: 0 15px 0 15px;
}

.secondary-menu ul li a {
    text-decoration: none;
    color: #626F7E;
    font-weight: bold;
    cursor: pointer;
}

.menu-current a {
    color: #eede45; /*white;*/
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* Pages                                                                                                              */
/* ------------------------------------------------------------------------------------------------------------------ */

#wrapper {
    margin-bottom: 15px;
}

#wrapper a {
    text-decoration: none;
    color: #626F7E;
    font-weight: bold;
    cursor: pointer;
}

#wrapper em {
    font-style: normal;
    font-weight: bold;
    color: #8d0a0d;
}

.box-columns {
    display: flex;
}

#box-search {
    display: flex;
    flex-direction: column;
    min-width: 30%;
}

#box-results {
    margin-left: 10px;
}

#box-form {
    background-color: #757575;
    padding: 5px;
    border-radius: 5px;
    border-color: #bbbbbb !important;
    color: #FFFFFF;
    margin-top: 60px;
}

#box-form form {
    margin: 0;
}

#box-form .input-larger {
    width: 190px;
}

.result-box-btn {
    display: flex;
    justify-content: flex-end;
}

.box-cgdt-image {
    display: flex;
    justify-content: center;
}

.box-cgdt-image img {
    width: 500px;
}

fieldset {
    border-color: #bbbbbb;
    border-width: 1px;
    margin-bottom: 10px;
    /*display: flex;
    flex-direction: column;*/
    align-items: center;
}

fieldset legend {
    margin: auto;
}

.form-item-centered {
    display: flex;
    justify-content: center;
}

.form-item {
    display: flex;
    justify-content: space-between;
}

.form-item--full-width {
    width: 100%;
}

.form-submit-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    border-width: 1px;
    border-style: solid;
    border-radius: 125px;
    border-color: #474747;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 0rem 1rem;
    padding: 0.1rem 1rem;
    position: relative;
    transition: all ease .3s;
    background: linear-gradient(#D3D2D3, #EEEEEE, #FFFFFF);
    color: #111111;
}

.form-submit-btn:before {
    background: linear-gradient(rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    border-color: #2B2E92;
    border-radius: 130px;
    content:'';
    height: 10px;
    left: 4%;
    position: absolute;
    top: 1px;
    transition: all ease .3s;
    width: 92%;
}
.form-submit-btn:hover {
    background: linear-gradient(#69ACEE, #98CDFA, #C6F9FE);
}

.form-submit-btn-red:hover {
    background: linear-gradient(#f5655c, #faa598, #feccc6);
}

.form-submit-btn-yellow:hover {
    background: linear-gradient(#b9a91f, #f0ee56, #f9fec6);
}

.btn-disabled {
    color: lightgray;
}
.btn-disabled:hover {
    background: linear-gradient(#D3D2D3, #EEEEEE, #FFFFFF);
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* DataTables                                                                                                         */
/* ------------------------------------------------------------------------------------------------------------------ */

#datatables_listing_info {
    color: #8d0a0d;
}

#datatables_loading_message {
    padding: 10px;
}

#datatables_listing thead tr th {
    padding: 5px;
    border-top: 1px solid #c8c8c8;
    background-color: #ffffff;
    color: #626F7E;
    text-align: left;
    border-bottom: 1px solid #c8c8c8;
    font-size: 0.7em;
}

#datatables_listing tbody tr td {
    font-size: small;
}

#datatables_listing .odd {
    background-color: #F0F4F8;
}

/*#datatables_listing thead .sorting{*/
    /*background-image: url('../images/both_arrow.png') !important;*/
    /*background-size: 20px 15px;*/
/*}*/

/*#datatables_listing thead .sorting_asc {*/
    /*background-image: url('../images/ascending_arrow.png') !important;*/
    /*background-size: 20px 15px;*/
/*}*/

/*#datatables_listing thead .sorting_desc {*/
    /*background-image: url('../images/descending_arrow.png') !important;*/
    /*background-size: 20px 15px;*/
/*}*/

/* ------------------------------------------------------------------------------------------------------------------ */
/* City Autocomplete                                                                                                  */
/* ------------------------------------------------------------------------------------------------------------------ */

.yla_autocomplete_results {
    background-color: white;
    color: black;
    display: flex;
    max-height: 400px;
    overflow: auto;
}

.yla_autocomplete_results ul {
    list-style: none;
    margin: 0;
    padding: 0 5px;
    width: 100%;
}

.yla_autocomplete_results ul li {
    width: 100%;
}

.yla_autocomplete_results ul li:hover {
    background-color: rgba(221,128,117,1);
    color: white;
    cursor: pointer;
}

.yla_autocomplete_results_item.selected {
    background-color: rgba(221,128,117,1);
    color: white;
}

.yla_autocomplete_input {
    display: flex;
    flex-direction: row-reverse;
}

.yla_autocomplete_toggle {
    width: 24px;
    height: 24px;
    display: block;
    position: absolute;
    background: url("../images/arrow_down_search.png");
    background-repeat: no-repeat;
    background-size: 20px;
    cursor: pointer;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* City Autocomplete (when using BAN API service)                                                                     */
/* ------------------------------------------------------------------------------------------------------------------ */

.ban_autocomplete_results {
    background-color: white;
    color: black;
    display: flex;
    max-height: 400px;
    overflow: auto;
}

.ban_autocomplete_results ul {
    list-style: none;
    margin: 0;
    padding: 0 5px;
    width: 100%;
}

.ban_autocomplete_results ul li {
    width: 100%;
}

.ban_autocomplete_results ul li:hover {
    background-color: rgba(221,128,117,1);
    color: white;
    cursor: pointer;
}

.ban_autocomplete_results_item.selected {
    background-color: rgba(221,128,117,1);
    color: white;
}

.ban_autocomplete_input {
    display: flex;
    flex-direction: row-reverse;
}

.ban_autocomplete_toggle {
    width: 24px;
    height: 24px;
    display: block;
    position: absolute;
    background: url("../images/search.png");
    background-repeat: no-repeat;
    background-size: 20px;
    cursor: pointer;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* ActHistory                                                                                                         */
/* ------------------------------------------------------------------------------------------------------------------ */

.icon-action-item {
    max-width: 20px;
    max-height: 20px;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* Recensement / Noraire détails                                                                                      */
/* ------------------------------------------------------------------------------------------------------------------ */

.recensement_block {
    column-count: 3;
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    width: 100%;
}

.recensement_block-column {
    background: white;
    border-radius: 3px;
    box-shadow: 2px 5px 20px darkgrey;
    color: black;
    margin-right: 5px;
    padding: 10px;
    width: 30%;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* Commentaires                                                                                                       */
/* ------------------------------------------------------------------------------------------------------------------ */

.comments {
    margin: 0 10px;
    overflow: auto;
    height: 287px;
    max-height: 287px;
}

.block-comment {
    background: white;
    padding: 10px;
    text-align: left;
    border-top: 1px solid darkgray;
}

.block-comment__title {
    color: #0e6c88;
    font-weight: bold;
}

.block-comment__content {
    padding-top: 5px;
    padding-left: 15px;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* Backoffice user roles badges                                                                                       */
/* ------------------------------------------------------------------------------------------------------------------ */

.role-badge {
    display: inline-block;
    margin: 1px 2px;
    padding: 1px 8px;
    border: 1px solid #b9d6df;
    border-radius: 10px;
    background-color: #e8f2f5;
    color: #0e6c88;
    font-size: 0.8em;
    line-height: 1.5;
    white-space: nowrap;
}

/* WordPress roles that are not genealogy roles (plugins, forum...) */
.role-badge--other {
    border-color: #dddddd;
    background-color: #f4f4f4;
    color: #777777;
}

.role-badges-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
    margin-bottom: 12px;
    font-size: 0.9em;
    color: #555555;
}

.role-badges-legend__title {
    font-weight: bold;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* Loader                                                                                                             */
/* ------------------------------------------------------------------------------------------------------------------ */

#loader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #626F7E;
    opacity: 0.7;
}

#loader_content {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translateX(-50%);
    background-color: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* Progress Bar for background tasks                                                                                                             */
/* ------------------------------------------------------------------------------------------------------------------ */

#progression {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(98, 111, 126, 0.7);
}

#progression_content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100% - 32px));
    box-sizing: border-box;
    background-color: white;
    border-radius: 5px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

#progressBar {
    width: 100%;
    height: 18px;
}

#progressBarValue {
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* Accordion
/* ------------------------------------------------------------------------------------------------------------------ */

.accordion {
    margin: 0;
    padding-top: 20px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    min-width: 840px;
}

.accordion .accordion-content {
    padding: 20px;
    background-color: #626F7E;
    color: white;
}

.accordion-compressed {
    display: none;
}

.accordion-title {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 5px;
    background: linear-gradient(#d2d2d2, #c3c3c3);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-top: 2px solid #dedede;
    border-bottom: 2px solid #a4a4a4;
    
    cursor: pointer;
}

.accordion-title h4 {
    margin: 0;
    color: #626F7E;
}
