body {
    margin: 0;
}

header {
    width: 100%;
    height: 100px;
    display: flex;
    flex: auto;
    align-content: center;
    font-family: "Lucida Handwriting", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #5c165c;
}

td {
    padding: 2px 5px;
}

a {
    color: #6d006d;
}

.home-link {
    text-decoration: none !important;
}

#logo-left {
    margin: auto 0 auto auto;
    color: #eeeeee;
    text-align: center;
}

#logo {
    height: 100px;
    width: 100px;
}

#logo-right {
    margin: auto auto auto 0;
    color: #eeeeee;
    text-align: center;
}

footer {
    width: 100%;
    height: 50px;
    margin-top: 50px;
    background-color: #5c165c;
    color: #eeeeee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

nav {
    font-family: "Lucida Handwriting", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

.navbar-space-under {
    margin-bottom: 50px;
}

@media screen and (max-width: 768px) {
    #nav-bar {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        list-style: none;
        align-items: flex-end;
    }

    .navbar-space-under {
        margin-bottom: 20px;
    }

    #logo-left {
        margin: auto 0 auto auto;
        color: #eeeeee;
        text-align: center;
        font-size: 20px;
    }

    #logo {
        height: 75px;
        width: 75px;
    }

    #logo-right {
        margin: auto auto auto 0;
        color: #eeeeee;
        text-align: center;
        font-size: 20px;
    }

    header {
        height: 75px;
    }
}

.nav-item-name {
    color: #6d006d;
}

.nav-item-selected {
    text-decoration: underline;
    text-decoration-color: #6d006d;
}

#content-wrapper {
}

#home-wrapper {
    display: flex;
    flex-direction: column;
}

.home-title {
    font-family: "Lucida Handwriting", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #6d006d;
}

#top-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

#bottom-section {
    margin: 20px 0;
    text-align: center;
}

#bottom-section-header {
    border-bottom: solid 1px #6d006d;
}

#quick-presentation-wrapper {
    flex: 2 2 66%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

#quick-presentation {
}

#event_list_wrapper {
    flex: 1 1 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.btn-violet {
    background-color: #5c165cbb;
    border-color: #520252;
    color: #EEEEEE;
    margin-bottom: 20px;
}

#highlights-section {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

#goto-galerie {
    margin: 30px auto;
    width: 300px;
}

#galerie-content {
    display: flex;
}

.collapse-facets-button {
    display: none;
}

#facets-wrapper {
    flex-direction: column;
    align-items: center;
}

.facet_group {
    border-bottom: 2px solid darkgrey;
    padding: 10px;
    text-align: center;
}

.facet_list {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
}

.facet_list_admin {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
}

.facet_item {
    padding: 0.4em 0.8em;
    margin: 0.1em 0;
    border-radius: 10rem;
    min-width: 15rem;
}

#facets-control {
    display: flex;
    flex-direction: column;
}

.btn-facet-selected {
    background-color: #a462a4;
    border-color: #520252;
    color: #FFFFFF;
}

.btn-facet-selected.active.focus, .btn-facet-selected.active:focus, .btn-facet-selected.active:hover,
.btn-facet-selected:active.focus, .btn-facet-selected:active:focus, .btn-facet-selected:active:hover,
.open>.dropdown-toggle.btn-facet-selected.focus, .open>.dropdown-toggle.btn-facet-selected:focus,
.open>.dropdown-toggle.btn-facet-selected:hover {
    color: #fff;
    background-color: #782873;
    border-color: #520252;
}

#search_bar {
    display: flex;
    min-height: 2em;
}

#search_field {
    flex: auto;
}

.collapse-facets {
    display: flex;
}

#search_bar_separator {
    flex: 1;
}

#galerie-pagination {
    text-align: center;
}

#galerie {
    margin-left: 10px;
    flex: 0 1 100%;
    display: flex;
    flex-direction: column;
}

#galerie-wrapper {
    display: flex;
    flex-flow: column;
    flex: 0 1 100%;
}

#galerie-bijoux {
    display: flex;
    flex-wrap: wrap;
}

.galerie-photo {
    min-width: 160px;
    height: auto;
    box-shadow: 0 0 5px 2px #5c165c;
}

.bijou-item {
    flex: 0 0 30%;
    display: flex;
    justify-content: center;
    flex-flow: column;
    margin: 10px;
    text-align: center;
}

.bijou-item:hover {
    background-color: lightblue;
}

.show-facets {
    display: block;
}

.collapse-facets-button[aria-expanded="true"] .show-facets
{display: none;}

.hide-facets {
    display: none;
}

.collapse-facets-button[aria-expanded="true"] .hide-facets
{display: block;}

@media screen and (max-width: 768px) {
    #galerie-content {
        display: flex;
        flex-direction: column;
    }

    #galerie-bijoux {
        justify-content: center;
    }

    .collapse-facets-button {
        display: block;
        margin: 5px auto;
    }

    #facets-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .collapse-facets {
        display: none;
    }

    .facet_list {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        list-style: none;
        flex-wrap: wrap;
    }

    .facet_list_admin {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        list-style: none;
        flex-wrap: wrap;
    }

    #search_bar {
        margin: 2px 20px;
    }
}

.bijou-controls {
    margin: auto;
}

#hd-photo {
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
}

#add-bijou {
    margin: 10px auto;
}

#formset {
    display: flex;
    border: solid 2px darkgrey;
    margin: 20px 0;
}

#photos-list-wrapper {
    flex: 1;
    border: solid 1px darkgrey;
    display: flex;
    flex-direction: column;
}

#photos-list {
    display: flex;
    flex-direction: column;
}

.photo_bijou {
    border: solid 1px darkgrey;
    background-color: lightblue;
    padding: 5px;
}

.photo_bijou_selected {
    border: solid 2px blue;
}

.photo_bijou_empty {
    background-color: lightgrey;
}

.photo_bijou_edited {
    background-color: lightseagreen;
}

.photo_bijou_added {
    background-color: lightgreen;
}

.photo_bijou_incomplete {
    background-color: lightsalmon;
}

.photo_bijou_deleted {
    background-color: lightcoral;
}

.photo_bijou_selection:hover {
    cursor: pointer;
}

.photo-preview-wrapper {

}

.photo-preview {
    max-width: 500px;
    max-height: 500px;
}

#photo-form-wrapper {
    flex: 3;
    border: solid 1px darkgrey;
    display: flex;
    justify-content: center;
}

.photo_bijou_form {
    margin: 20px;
}

.photo-hidden {
    display: none;
}

.photo-visible {
}

#real-form {
    display: none;
}

.split-input {
    display: flex;
    flex-direction: row;
}

.left-input {
    display: flex;
    flex-direction: column;
    flex: 1 1 75%;
}

.right-input {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1 1 25%;
    padding: 0 15px;
}

#presentation-section {
    margin-bottom: 30px;
    width: 100%;
}

#highlights-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    border-bottom: solid 2px #5c165c;
    margin: 20px 0;
    width: 100%;
}

#highlights-wrapper {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    #highlights-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 100%;
        margin-bottom: 20px;
    }
}

#selector-wrapper {
    display: flex;
    margin: 10px;
}

.highlight {
    flex: 1 1 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#highlights-submit {
    width: 200px;
    margin: 10px;
}

#highlights-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#highlights-form-wrapper {
    margin: 20px;
}

.highlight-bijou-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.highlight-photo {
    min-width: 160px;
    height: auto;
    box-shadow: 0 0 5px 2px #5c165c;
}

.highlighted {
    border: solid 3px darkblue;
}

.nom-bijou {
    color: #5c165c;
}

.dashboard-category {
    background: lightgrey;
    border-radius: 20px;
    margin: 20px;
    padding: 10px;
    text-align: center;
}

#dashboard {
    display: flex;
    flex-flow: wrap;
}

.dashboard-group {
    display: flex;
    flex-flow: wrap;
}

.dashboard-tile {
    display: flex;
    flex-flow: column;
    flex: 1 1 25%;
    justify-content: center;
}

.dashboard-tile-content {
    display: flex;
    flex-flow: column;
    flex: 0 0 25%;
    text-align: center;
    font-size: 4em;
}

.dashboard-group-title {

}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form .checkbox, .contact-form .radio {
    margin: 0;
}

.contact-form-group {
    width: 100%;
}

#contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.enlarge_btn {
    display: none;
}

#details-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

#hd_photo-wrapper {
    display: flex;
    flex-direction: row;
    flex: 1 1 65%;
}

#thumbnails {
    display: flex;
    flex-direction: column;
    overflow: auto;
    max-height: 400px;
    width: 120px;
    direction: rtl;
    margin-right: 15px;
}

#thumbnails::-webkit-scrollbar {
    width: 10px;
}

#thumbnails::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

#thumbnails::-webkit-scrollbar-thumb {
  background-color: darkgrey;
  outline: 1px solid slategrey;
}

.bijou-thumbnail {
    margin: 5px 5px 15px 5px;
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbnail-selected {
    box-shadow: 0 0 3px 2px #5c165c;
}

.enlarge_pane_contain {
    max-width: 400px;
    max-height: 400px;
}

#bijou-details {
    display: flex;
    flex-direction: column;
    flex: 1 1 35%;
}

.photo-ref {
    display: none;
}

#contact_for_ref {
    margin-top: 15px;
}

#price-helper-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#presentation {
    margin: 0 20px;
}

#event_detail {
    margin: 0 20px;
}

@media screen and (max-width: 768px) {
    .enlarge_pane_contain {
        max-width: 300px;
        max-height: 300px;
        margin: auto;
    }

    #hd_photo-wrapper {
        flex-direction: column-reverse;
    }

    #thumbnails {
        flex-direction: row;
        overflow: auto;
        width: auto;
        direction: ltr;
        margin: auto;
    }

    #hd-photo {
        max-width: 300px;
        max-height: 300px;
        width: auto;
        height: auto;
    }
}

#siret {
    font-size: 0.4em;
}

.captcha {
    margin-left: 10px;
    margin-bottom: 5px;
}

.new-tab-photo-trigger {
    cursor: pointer;
}
