/* region général */
html {
    height: 100%; /* Fallback CSS for IE 4-6 and older browsers. Note: Without this setting, body below cannot achieve 100% height. */
    height: 100vh;
}
body {
    height: auto; /* Allows content to grow beyond the page without overflow */
    width: auto; /* Allows content to grow beyond the page without overflow */
    min-height: 100%; /* Starts web page with 100% height. Fallback for IE 4-6 and older browsers */
    min-height: 100vh;/* Starts web page with 100% height. Uses the viewport's height. Only works in modern HTML5 browsers */
    overflow-y: scroll;/* Optional: Adds an empty scrollbar to the right margin in case content grows vertically, creating a scrollbar.  Allows for better width calculations, as the browser pre-calculates width before scrollbar appears, avoiding page content shifting.*/
    margin: 0;
    padding: 0;
    position: relative;
}

body, button {
    /*font-family: Arial sans-serif;*/
    font-family: cursive;
    font-size: 16px;
}
.hidden {
    display: none;
}

a.btn {
    text-decoration: none;
}

small {
    font-size: 85%;
}


.title {
    font-weight: bold;
    text-decoration: underline;
    color: #a80000;
}
.sub-title {
    font-weight: bold;
    color: #a80000;
}

.text-center {
    text-align: center;
}

.rules {
    text-align: justify;
    display: inline-block;
    position: relative;
}

.w-100 {
    width: 100%;
}

a.btn img,
button img {
    max-height: 20px;
}

a {
    color: #d40000;
}
a:hover {
    color: #a80000;
    cursor: pointer;
}

#disconnect-btn {
    position: absolute;
    bottom: 0;
    right: 10px;
    z-index: 999;
}

.cursor-wait {
    cursor: wait !important;
}

h4 {

}

.m-left-20 {
    margin-left: 20%;
}
.m-top-30px {
    margin-top: 30px;
}
.p-bottom-40px {
    padding-bottom: 40px;
}
/* endregion général */

/* region forms */
input[type=text], input[type=password], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit] img, button img, button.btn img, a.btn img {
    filter: brightness(0) invert(1);
}
input[type=submit], button, button.btn, a.btn {
    display: inline-block;
    text-align: center;
    background-color: #d40000;
    border: solid 1px #d40000;
    color: white;
    padding: 10px 20px;
    margin: 8px 0;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
}
input[type=submit]:hover img, button:hover img, button.btn:hover img, a.btn:hover img {
    filter: brightness(0);
}
input[type=submit]:hover, button:hover, a.btn:hover {
    background-color: #fff;
    border-color: #d40000;
    color:#d40000;
}
button.xs {
    padding: 1px;
}

button.btn-back, a.btn.btn-back {
    background-color: #7e7e7e;
}
button.btn-back:hover, a.btn-back:hover {
    background-color: #575757;
}
button.btn-delete, a.btn.btn-delete {
    background-color: #d40000;
}
button.btn-delete:hover, a.btn-delete:hover {
    background-color: #a80000;
}

form {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
}

.ql-editor {
    background-color: #fff;
}
/* endregion forms */

/* region administrateur */
/* region tables */
table img {
    max-width: 100px;
    max-height: 60px;
}

table p {
    margin: 0;
}

table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

table td, table th {
    border: 1px solid #ddd;
    padding: 8px;
}

table tr:nth-child(even){background-color: #f2f2f2;}

table tr:hover {background-color: #ddd;}

table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #d40000 !important;
    color: white;
}
/* endregion tables */
/* endregion administrateur */

/* region background */
#page-content {
    position: relative;
    z-index: 2;
    padding-top: 160px;
    width: 80%;
    /*max-width: 1200px;*/
    margin-left: 10%;
    margin-bottom: 80px;
    background: #ffffff4a;
}
#login-banderolles {
    position: absolute;
    z-index: 1;
    top: 0;
    width: 80%;
    left: 10%;
    max-height: 300px;
}
.login-ballons {
    position: absolute;
    z-index: 1;
}
#ballon_droit {
    right: 10%;
    top: 340px;
}
#ballon_gauche {
    left: 10%;
    top: 300px;
}
#sub-content {
    margin-top: 180px;
    width: 80%;
    margin-left: 10%;
    padding-bottom: 50px;
}

@media screen and (max-width: 976px) {
    #page-content {
        margin-left: 10px;
        margin-right: 10px;
        width: calc(100% - 20px);
        padding-top: 100px;
    }
    #login-banderolles {
        width: 100%;
        left: 0;
        max-height: 300px;
    }
    .login-ballons {
        max-height: 200px;
    }
    #ballon_droit {
        right: 5%;
        top: 320px;
    }
    #ballon_gauche {
        left: 5%;
        top: 280px;
    }
    #sub-content {
        margin-top: 50px;
        width: 100%;
        margin-left: 0;
    }
}
/* endregion background */

/* region chance wheel */
#chance-wheel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: top left repeat rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 0;
    z-index: 10000;
    text-align: center;
    padding-top: 20px;
}
/* endregion chance wheel */

/* region animation */
.animation-image {
    max-width: 70%;
    max-height: 400px;
}
/* endregion animation */

/* region lightbox */
.elem, .elem * {
    box-sizing: border-box;
    margin: 0 !important;
}
.elem {
    display: inline-block;
    font-size: 0;
    width: 19%;
    border: 10px solid transparent;
    border-bottom: none;
    height: auto;
    background-clip: padding-box;
    text-align: center;
}
.elem .inner-elem {
    display: inline-block;
    background: #ddd;
    padding: 10px;
    width: 100%;
    border-bottom: 5px solid #fff;
}
.elem .inner-elem > span {
    display: block;
    cursor: pointer;
    height: 0;
    padding-bottom:	70%;
    background-size: cover;
    background-position: center center;
}
.file-zone {
    min-height: 150px;
}
a.btn-download {
    padding: 2px 10px;
    display: block;
    margin-top: 0 !important;
}
.video-list {
    display: block;
}
.video-view {
    display: inline-block;
    width: 48%;
    /*margin-right: 3%;*/
    height: 250px;
    /*max-height: 300px;*/
    clear: both;
    margin-top: 20px;
}
.video-view:nth-child(2n) {
    margin-left: 3%;
}
.download-img {
    width: 20px;
    filter: brightness(1) invert(0) !important;
}

.lcl_txt_under #lcl_txt .lcl_txt_border, .lcl_txt_over #lcl_txt .lcl_txt_border, .lcl_force_txt_over #lcl_txt .lcl_txt_border {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 2px;
}
/* endregion lightbox */

/* region modal */
.modal-header .close {
    padding: 5px;
    line-height: 14px;
    margin: 0;
}
.modal-header .close span {
    font-size: 14px;
}
.modal-header {
    padding: 10px;
}
/* endregion modal */

/* region tabs */
.nav.nav-tabs .nav-link {
    color: #d40000;
    font-size: 20px;
}
.nav.nav-tabs .nav-link:hover,
.nav.nav-tabs .nav-link.active {
    color: #a80000;
}
/* endregion tabs */

@media screen and (max-width: 575px) {
    .elem {
        width: 48%;
    }
    .video-view {
        width: 100%;
    }
    .video-view:nth-child(2n) {
        margin-left: 0;
    }
}