@import 'variables.scss';
@import 'common.scss';

.#{$namespace}carousel-container {
    // @include message-bubble($grey-2, #000);
    //max-height: 345px;
    min-height: 345px;
    padding-bottom: 10px;
    overflow-x: hidden;
    overflow-y: hidden;
    white-space: nowrap;
    padding-left: 5px;
    padding-right: 0;
    margin-top: 8px;
    position: relative;
    display: flex;

    .#{$namespace}carousel-card {
        display: inline-block;
        max-width: 220px;
        width: 220px;
        min-width: 220px;
        min-height: 324px;
        margin: 3px 13px 3px 1px;
        box-shadow: 4px 2px 12px 1px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        overflow: hidden;
        position: relative;

        .#{$namespace}carousel-card-image {
            width: 100%;
            height: 150px;
            object-fit: cover;
            display: block;
            // this is so that it's not empty while loading
            background-color: $grey-3;
            cursor: pointer;
        }

        .#{$namespace}carousel-card-title {
            display: block;
            margin: 7px 10px 2px 9px;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }

        .#{$namespace}carousel-card-subtitle {
            display: block;
            margin: 0 9px 8px 9px;
            opacity: 0.5;
            font-size: 0.8em;
            overflow: hidden;
            white-space: normal;
            line-height: initial;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }

        .#{$namespace}carousel-buttons-container {
            margin-bottom: 1.5rem;
            width: 100%;
            .#{$namespace}reply {
                min-height: 21px;
                margin: 5px 10px;
                font-size: 0.9em;
                justify-content: center;
                outline: none;
                span {
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                }
            }
        }
    }
}

.#{$namespace}carousel-arrows-container {
    max-height: 345px;
    height: 345px;
    width: 100%;
    padding-left: -12px;
    padding-right: 0;
    margin-top: 8px;
    position: absolute;
    pointer-events: none;

    .#{$namespace}carousel-arrow {
        pointer-events: initial;
        position: absolute;
        width: 30px;
        height: 30px;
        background-color: white;
        top: 40%;
        border-radius: 11px;
        transition: all 0.2s ease-in-out;
        cursor: pointer;
        box-shadow: 0px 2px 8px 4px rgba(200, 200, 200, 0.35);
        &:hover {
            box-shadow: 0px 3px 8px 4px rgba(200, 200, 200, 0.2);
            top: calc(40% - 3px);
        }
        &:active {
            box-shadow: 0px 2px 8px 4px rgba(200, 200, 200, 0.3);
            top: calc(40% - 2px);
        }
        outline: none;
        img.#{$namespace}arrow {
            position: absolute;
            height: 100%;
            left: 3px;
        }
    }


    .#{$namespace}left-arrow {
        left: 10px;
    }

    .#{$namespace}right-arrow {
        right: 10px;
        div.#{$namespace}arrow {
            transform: rotate(180deg);
        }
    }
}
