:root{
    --primary-color: #ddd;
    --secondary-color: #f5f5f5;
    --primary-bg-color: #f5f5f5;
    --theme-color: #ddd;
    --theme-color-primary: #d4003b;
    --theme-color-secondary: #e73769;
    --lable-color: #000;
    --text-color: #000;
}

body{
    background-color: var(--primary-bg-color);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}
h6{
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--theme-color-primary);
}

.form-group {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--lable-color);
}

.form-control {
    display: block;
    margin-block: 1em;
    width: 100%;
    height: 40px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--primary-color);
    background-clip: padding-box;
    border: 1px solid var(--theme-color);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--text-color);
    background-color: var(--primary-color);
    border-color: var(--theme-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

button, .next, .download{
    margin-block: 1em;
    display: inline-block;
    font-weight: 400;
    color: var(--theme-color);
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: var(--theme-color-primary);
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

button:hover, .next:hover, .download:hover{
    color: var(--theme-color);
    background-color: var(--theme-color-secondary);
    border-color: var(--theme-color-primary);
}

.logout{
    display: inline-block;
    font-weight: 400;
    color: var(--theme-color);
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: var(--theme-color-primary);
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.logout:hover{
    color: var(--theme-color);
    background-color: var(--theme-color-secondary);
    border-color: var(--theme-color-primary);
}

.form-group input {
    display: block;
    width: 100%;
    padding: 5px;
    /* border: 1px solid #ccc; */
    /* border-radius: 3px; */
}

.navbar{
    background-color: var(--theme-color-primary);
    color: var(--theme-color);
    padding: 0.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img{
    width: 75%
}

.nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav ul{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav ul li{
    list-style: none;
    margin: 0 1em;
}

select{
    display: block;
    width: 100%;
    padding: 5px;
    margin-block: 1em;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--primary-color);
    background-clip: padding-box;
    border: 1px solid var(--theme-color);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
option{

    display: block;
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

table{
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* tr:nth-child(even){
    background-color: #f2f2f2;
} */

th{
    background-color: var(--theme-color-primary);
    color: var(--theme-color);
    padding: 10px;
    text-align: center;
}
.table thead th {
    vertical-align: middle;
    border: 0px;
}

tr {
    display: table-row;
    vertical-align: center;
    padding: 1em;
}

.table td {
    padding: 5px;
    text-align: center;
    vertical-align: middle;
}

.table-striped tbody tr{
    background-color: #ddd;
}

.table-striped tbody tr:hover{
    background-color: #ccc;
}


.form-group .preview {
    margin-top: 10px;
}

.imageThumb {
    max-height: 75px;
    border: 2px solid;
    padding: 1px;
    cursor: pointer;
}
.pip {
    display: inline-block;
    margin: 10px 10px 0 0;
}
.delete {
    position: absolute;
    bottom: 0;
    display: block;
    background: #444;
    border: 1px solid black;
    color: white;
    text-align: center;
    cursor: pointer;
}
.delete:hover {
    background: white;
    color: black;
}

.login-form {
    width: 45%;
    margin: 0 auto;
    padding: 20px;
}    

#preloader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #fff url(preloader.gif) no-repeat center center;
    background-size: 30%;
    /* change if the mask should have another color then white */
    z-index: 99;
    /* makes sure it stays on top */
}


#preloader.fadeOut {
    opacity: 1;
    pointer-events: none;
}

.fadeOut {
    -webkit-animation: fadeOut 3s;
    -moz-animation: fadeOut 3s;
    animation: fadeOut 3s;
}



.preview {
    display: inline-block;
    width: 100%;
    height: max-content;
    min-height: 500px;
    position: relative;
    overflow-y: scroll;
    background-color: #eeeeee;
    color: var(--theme-color-primary);
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.1);
}

.preview ol{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75em;
}

.preview ol li{
    position: relative;
    display: inline-block;
    width: 200px;
    height: 300px;
    background-color: #ffffff;
    margin: 10px;
    cursor: pointer;
    overflow: hidden;
}

.preview ol li.active{
    background-color: #000000;
}

.preview ol li div{
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview ol li p{
    padding: 10px;
}

.preview ol li div img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.download-display{
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #ffffff;
    flex-wrap: wrap;
    list-style: none;
}

.li-checkbox{
    display: flex;
    text-overflow: ellipsis;
    margin: 5px;
    width: 200px;
    overflow: hidden;
    align-items: flex-start;
    height: 250px;
    flex-direction: column;
    padding: 10px;
    border : 2px solid white;
    cursor: pointer;
}

.navbar-text{
    color: var(--secondary-color);
    font-size: larger;
    font-weight: 400;
}

.image-preview{
    width: 175px;
    height: 200px;
    object-fit: contain;
    display: flex;
    justify-content: center;
    align-items: center;

}

.image-preview img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.active{
    /* border: 2px solid rgba(255, 0, 0, 0.222); */
    border: 2px solid #d4003b4b;
    border-radius: 10px;
    /* background: #ff000014; */
    background: #d4003b0e;
}

.select_all{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 50px;
    border: 2px solid #d4003b4b;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

#overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    display: none;
}

.info{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}
.user{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}
.user_id, .user_name{
    display: inline-block;
    font-weight: 400;
    color: var(--theme-color);
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: var(--theme-color-primary);
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

@media (max-width: 500px) {
    .login-form {
        width: 100%;
    }
/*.li-checkbox {
        width:280px;
        height: 320px;
    }
    .image-preview{
        width: 245px;
        height: 256px;
    }*/
    .li-checkbox {
        width:175px;
        height: 200px;
    }
    .image-preview{
        width: 150px;
        height: 170px;
    }
    label{
        font-size: 0.675em;
    }
}

@media (max-width: 768px) {
    .login-form {
        width: 80%;
    }
}

.be-input-link{
    color : #d4003b;
}

.upload_button{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}