/* suppresses scrollbars during the animation, see https://css-tricks.com/hide-scrollbars-during-an-animation */
@keyframes hide-scroll {
    from, to { overflow: hidden; }
}

.collapsible {
    background-color: transparent;
/*    min-height: 34px; */

    --collapsible-arrow-font-size: 12pt;
    --collapsible-caption-margin: 26px;

    .header {
        padding: 0 0 0 20px;
    }

    .collapsible-caption {
        cursor: pointer;
        clear: both;
        font-weight: bold;
        white-space: nowrap;
        text-align: left;
        color: var(--color-link);
        min-height: 1.4rem;
        font-size: 0.85rem;
        margin-right: 15px;
        position: relative;

        display: flex;
        width: 100%;
        align-items: center;

        &:hover h3 {
            color: #ffac73;
        }

    }

    .content {
        margin: 0;
        padding: 0;
        clear: both;
        overflow: hidden;
        transition: max-height 0.26s ease;
    }

    .closed .content {
        max-height: 0;
    }

    .open .content {
        overflow-y: auto;
        animation: hide-scroll 0.3s backwards;
    }

}

.collapsible + .collapsible {
    margin-top: 4px;
}

.collapsible.left .collapsible-caption::before {
    font-family: 'Font Awesome 6 Pro';
    color: #70b0f0;
    position: absolute;
    left: 5px;

    transition-duration: 0.26s;
    transition-timing-function: ease;

    content: "\f054";
    transform: rotate(-90deg);
    font-size: var(--collapsible-arrow-font-size);
}

.collapsible.left .closed .collapsible-caption::before {
    transform: rotate(90deg);
}

.collapsible.right .collapsible-caption::after {
    font-family: 'Font Awesome 6 Pro';
    color: #70b0f0;
    position: absolute;
    right: 25px;
}

.collapsible.right .collapsible-caption::after {
    transition-duration: 0.26s;
    transition-timing-function: ease;
    content: "\f054";
}

.collapsible.right .closed .collapsible-caption::after {
    transform: rotate(90deg);
}

.collapsible.right .collapsible-caption::after {
    transform: rotate(270deg);
}

.collapsible.right .collapsible-caption {
    padding: 10px 25px;
    background: #f0f0f0;
    color: #707070;
}

.collapsible.right .content {
    background: #f0f0f0;
}

.collapsible.left .collapsible-caption > span {
    line-height: normal;
    padding-left: var(--collapsible-caption-margin);
}

.collapsible.right .collapsible-caption > span {
    line-height: normal;
    padding-left: 0;
}

.collapsible .content.restrictedHeight {
    overflow-y: auto;
}

.collapsible.partial-collapse .content {
    margin-left: 20pt;
    background: #90909015;
    margin-bottom: 8pt;
    padding: 2pt 4pt;
    border-radius: 3pt;
}

.collapsible.unlimited .content {
}



div.collapsible_section {
    border: 1px solid #909090;
    padding: 5px;
    background: #e0e0e0;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 10px;

    .header {
        padding: 0 0 0 20px;
    }

    .content {
        margin-top: 8px;
    }

    .open .content {
        visibility: visible;
        display: block;
    }

    .closed .content {
        visibility: hidden;
        display: none;
    }
}

.collapse-relative {
    position: relative;
}

.collapse-absolute {
    position: absolute;
    z-index: 10;
    box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, 0.15);
    background: var(--color-main-bg-light);
}

.collapse-absolute .internalContainer {
    padding: 10pt 10pt
}

.collapsible.collapse-card {
    background: #90909020 !important;
    border-radius: 8pt;
    padding: 8pt 10pt;
    display: flex;
    align-items: center;

    h3 {
        font-size: 13pt;
        margin: 0;
    }

    .content {
        margin-left: 21pt;
    }
}

