html {
    height: 100%;
    min-width: 405px;
}
body {
    background: transparent;
    height: 100%;
}
.page-wrapper {
    background: linear-gradient(#ffffff, #e1e1df);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.maindiv {
    flex-grow: 1;
}

.noselect {
    -webkit-touch-callout: none;
      -webkit-user-select: none;
       -khtml-user-select: none;
         -moz-user-select: none;
          -ms-user-select: none;
              user-select: none;
}

/*
** Text
*/

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    color: rgba(0,0,0, 0.5);
}

.h1, h1 {
    font-size: 1.5rem;
    margin-top: 0.5em;
}

.h2, h2 {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/*
** Forms
*/

.btn { 
    border-radius: 0.8rem;
    padding: 0.5em 2em;
    font-weight:500;
    color:#FFFFFFCC;
    border:0 none;
    box-shadow: 0 1px 8px -3px #888;
}

.btn-group-sm>.btn, .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.form-control, .custom-file-label {
    border-radius: 1.5rem;
    border: 3px solid #EEE;
    background: transparent;
    box-shadow: 0 1px 8px -3px #888;
}

.form-control:focus, .custom-file-input:focus~.custom-file-label  {
    color: #495057;
    background: transparent;
    border: 3px solid #888;
    outline: 0;
    box-shadow: 0 1px 8px -3px #888;
}

select.form-control[multiple] {
    padding-left: 1em;
    border-radius: 0.5em;
}

.custom-file * {
    cursor:pointer;
}

.custom-file-label {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding-right: 90px;
}

.custom-file-label:lang(en)::after {
  content: "Browse";
}

.custom-file-label:lang(fr)::after {
  content: "Parcourir";
}

.custom-file-label::after {
    font-weight:500;
    color:#FFFFFFFF;
    background: linear-gradient(0.25turn, #2581f9, #2164b2);
    padding-top: 0.2em;
    border-left: 0 none;
}

.display-flex {
    display: flex;
}
.logo-info {
    position: absolute;
    bottom: .5em;
    right: 1em;
    line-height: 1em;
    font-weight: bold;
}
.upload-preview img {
    max-width: 150px;
    max-height:150px;
    vertical-align: middle;
}

.upload-preview {
    padding:10px;
    width:200px;
    height:200px;
    line-height: 170px;
    border:1px solid rgba(0,0,0,.1);
    border-radius: 1.5rem;
    box-shadow: 0 1px 8px -3px #888;
}

.upload-preview:empty {
    display: none;
}

.btn:hover { 
    color:#FFFFFFFF;
    box-shadow: none;
}

.alert {
    border:0 none;
    text-align: center;
}
.alert p:last-of-type {
    margin-bottom: 0;
}

.primary {
    background: linear-gradient(0.25turn, #2581f9, #2164b2); 
}

.primary-text {
    color: #2164b2 !important;
}

.secondary {
    background: linear-gradient(0.25turn, #8e8e8e, #696969); 
}

.secondary-text {
    color: #696969 !important; 
}

.success {
    background: linear-gradient(0.25turn, #47c466, #22ad62); 
}

.success-text {
    color: #22ad62 !important; 
}

.danger {
    background: linear-gradient(0.25turn, #f57979, #e64949); 
}

.danger-text {
    color: #e64949 !important; 
}

/*
** NAV
*/

#navbarDropdown {
    background-color: white;
    border-radius: 25px;
    border: 1px solid rgba(0,0,0,0.5);
    width: 40px;
    font-size: 13px;
    font-weight: bold;
    line-height: 30px;
    padding: 4px 3px 4px 5px;
    text-transform: uppercase;
}

#navbarDropdown:hover {
    background-color: rgba(0,0,0,0.5);
    border: 1px solid white;
    color:white;
}

@media (max-width: 991.98px) {
    #navbarDropdown {
        background-color: transparent;
        border-radius: 0;
        border: 0 none;
        width: auto;
        font-size: 1em;
        font-weight: normal;
        line-height: 1em;
        padding: 4px 3px 4px 5px;
    }
    
    #navbarDropdown:hover {
        background-color: transparent;
        border: 0 none;
        color:rgba(0,0,0,0.5);
    }
    
    #navbarDropdown:focus, #navbarDropdown:hover {
        color: rgba(0,0,0,.7);
    }
}

img.company-header-logo {
    display: block;
    max-width:190px;
    max-height:52px;
    width: auto;
    height: auto;
}

.confirmation .popover-header {
    color: black;
    text-transform:none;
}

nav.navigation
{
    text-align: center;
    display: inline-block;
}

ul.pagination li
{
    margin-right: 0.5em;
    min-width: 2em;
    border: 1px solid #dee2e6;
    border-radius: 0.5em;
    line-height: 2em;
}
ul.pagination li.active, ul.pagination li:hover, ul.pagination li:active {
    font-weight: bold;
    border-color: #6c757d69;
}
ul.pagination li a {
    display: block;
    height: 100%;
    width: 100%;
    padding: 0 0.5em;
    text-decoration: none;
}

/* User friendly navbar */
header nav.navbar,
header nav.navbar .dropdown-menu {
    background-color: #3A444F;
}
#navbarDropdown,
header nav.navbar .navbar-toggler {
    background-color: #efefef;
    color: #3A444F;
}
header nav.navbar .navbar-toggler-icon {
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
header nav.navbar .nav-link:not(.dropdown) {
    color: #efefef;
}
header nav.navbar .nav-link:not(.dropdown):hover {
    color: #dadada;
}

.navbar-brand {
    display: flex;
    align-items: center;
}
.navbar-brand .main-logo {
    fill: #efefef;
    width: 5em;
    height: 2em;
}
.navbar-brand ._by_ {
    color: #efefef;
    font-weight: bold;
    margin:0 .5em;
}
.navbar-brand h3 {
    display: inline-block;
    color: #dadada;
    margin: 0;
    padding: 0;
}

.page-wrapper > footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    background-color: #3A444F;
    padding: 1em 0;
    margin-top: 2em;

    font-size: 0.9em;
    color: #efefef;
}
.page-wrapper > footer a {
    color: #efefef;
}
.page-wrapper > footer a:hover {
    color: #dadada;
}
.page-wrapper > footer .column ul {
    padding: 0;
}
.page-wrapper > footer .column li {
    list-style: none;
}
.page-wrapper > footer .column:not(:last-child) {
    margin-right: 15em;
}
.page-wrapper > footer .column h4 {
    color: #efefef;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: none;
}

/** Page specific */
#terms {
    overflow: auto;
}
#terms table {
    border-spacing: 0;
}
#terms table td {
    border: 1px solid #333;
    padding: .5em;
}
#terms h2, #terms h3, #terms h4 {
    text-transform: none;
}
#terms h3 {
    margin-top: 2em;
}

    /*
     * Cookies
     */
#cookies {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3em;

    display: none;
    justify-content: center;
    align-items: center;

    background-color: #2163b0;
    border-top: 1px solid #000;

    color:#fff;
}
#cookies a {
    margin-left: 2em;
    color: #fff;
}
#cookies a.accept {
    color: #fff;
    background-color: #000;
    padding: .25em 1em;
    text-decoration: none;
}

/*
 * Listings
 */
th.centered, td.centered {
    text-align: center;
}
.actions {
    text-align: center;
}
.actions a:not(:last-child) {
    margin-right: .5em;
}

/*
** Modals
*/

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 9% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 33%; /* Could be more or less, depending on screen size */
}

.modal-title {
    width: 100%;
    border-bottom: 2px solid #009ace;
    font-weight: 900;
    font-size: larger;
    text-align: center;
    text-transform: uppercase;
}

.modal .errors:not(:empty) {
    margin-bottom: 1em;
}

.modal .error {
    font-style: italic;
    margin-bottom: .2em;
}
.modal .new-only {
    display: none;
}

hr {
    position: relative;
    outline: 0;
    border: 0;
    line-height: 1em;
    text-align: center;
    height: 1.5em;
    margin: 1em 0;
}
hr:before {
    content: '';
    background-color: #bbb;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}
hr:after {
    content: attr(data-text);
    position: relative;
    display: inline-block;

    padding: 0 .5em;
    line-height: 1.5em;
    background-color: #fff;
    color: #bbb;
}