:root {
    --red: #DE4242;
    --light-red: #b44747;
    --light-grey: #D3D3D3;
    --dark-grey: #495057;
}

body {
    background-color: var(--light-grey);
}


/* Navbar */
header {
    min-height: 33px !important;
    margin-bottom: 0;
    border-radius: 0;
    background-color: white;
    border-color: white;
}
header img {
    max-width: 175px;
}
.navbar-collapse .nav-link {
    padding-left: 40px;
}

@media (max-width: 767px) {
    header .navbar-nav .open .dropdown-menu > li > a {
        color: #ecf0f1;
    }
    #navbarNav > ul > li.nav-item > a {
        padding-left: 8px;
    }
}
.navbar .menu .list-group-item {
    background-color: unset;
    color: white;
}

/* Sidebar */
aside .list-group > a {
    color: black;
}
aside .list-group > a.active {
    background-color: var(--red);
    border: none;
    font-weight: bolder;
}
aside .list-group > a:hover {
    background-color: var(--light-red);
    color: white;
}
aside .credits {
    font-size: 14px;
    color: black;
}
aside .list-group-item.divider {
    height: 41px;
}

/* Card */
main {
    margin-bottom: 20px;
}
main > .card-header {
    background-color: var(--red);
    color: white;
    border: none;
}
main .card-body .card-buttons .btn {
    width: 120px!important;
}

/* Blocks */
.blocks {
    display: flex;
    flex-flow: row wrap;
}
.blocks a {
    text-decoration: none;
}
.blocks a i {
    color: var(--dark-grey);
}
.block .image-box {
    height: 95px;
}
.block img {
    width: auto;
    height: 100%;
    max-height: 150px;
    padding: 5px;
}
.block img.landscape {max-width:100%; width:100%; height:auto;}
.block img.portrait {max-height:130px; width:auto; height:100%;}
.block {
    width: 130px;
    min-height: 120px;
    max-height: 170px;
}
.block:hover {
    background-color: var(--light-grey);
    cursor: pointer;
}
.block span {
    overflow: hidden;
    padding: 0 5px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* max number of lines to show */
    -webkit-box-orient: vertical;
}

/* Preview */
.preview {
    min-height: 75vh;
}

/* Select2 form */
.select2 {
    width: 100%!important;
}
.select2-selection {
    min-height: 38px;
    border: 1px solid #ced4da!important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 33px;
}
.select2-container--default .select2-results > .select2-results__options {
    max-height: 250px;
}
.select2-container--default .select2-results__option .select2-results__option {
    padding-left: 2em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
    padding-left: 0; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -1em;
    padding-left: 3em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -3em;
    padding-left: 5em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -4em;
    padding-left: 5em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -5em;
    padding-left: 6em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -6em;
    padding-left: 7em; }

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding-left: unset!important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin: auto 0;
    position: unset;
    padding: 5px;
}

/* Comments */
.comment {
    border: none;
    box-shadow: 5px 6px 6px 2px #e9ecef;
    border-radius: 4px
}
.comment .time {
    min-width: 120px;
}
.comment .content {
    padding-right: 10px;
}
.actions {
    margin-left: 12px
}
.actions small {
    color: #b7b4b4
}
.actions small:hover {
    color: var(--red);
    cursor: pointer
}
.actions small a {
    color: unset;
    text-decoration: none;
}

/* Table */
.click-row:hover {
    cursor: pointer;
}
