.container-checkbox {
    /*display: block;*/
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.upload-container-checkbox,
.file-container-checkbox {
    position: relative;
    padding-left: 1em;
}

.folder-container-checkbox {
    padding-top: 1em;
    padding-bottom: 1em;
    position: relative;
}

/* Hide the browser's default checkbox */
.container-checkbox input {
    /*position: relative;  Was absolute
    height, width should be 0. Set to 16px for browser compatibility*/
    opacity: 0;
    cursor: pointer;
    height: 16px;
    width: 16px;
}

.checkmark {
    position: absolute;
    background-color: var(--detailsColor);
    height: 25px;
    width: 25px;
}

/* Custom checkbox */
.upload-checkmark,
.file-checkmark {    
    top: 0;
    left: 0;
}

.folder-checkmark {
    -ms-transform: scale(0.8, 0.8); /* IE 9 */
    -webkit-transform: scale(0.8, 0.8); /* Safari */
    transform: scale(0.8, 0.8);
}
/*
.checkmark:hover {
    opacity: 0.9;
}

.container-checkbox:hover input ~ .checkmark {
    background-color: var(--detailsColor);
}
*/

.container-checkbox input:checked ~ .checkmark {
    background-color: var(--mainColor);
    opacity: 1;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container-checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid var(--detailsColor);
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}