@import 'bootstrap-sass/assets/stylesheets/bootstrap/_variables';
@import "../../styles/_enterprise_vars";

.hne-carousel {
    height: calc(100% - 10px);

    .hne-carousel_content {
        height: 200px;
        position: relative;
        overflow: hidden;

        @media (min-width: $screen-md-min) {
            height: calc(100% - 50px);
        }
    }

    ul.hne-carousel_controls {
        height: 50px;
        text-align: center;
        list-style: none;
        padding: 0;
        line-height: 50px;

        li.hne-carousel_controls_dot {
            display: inline-block;
            margin: 0 0.5rem;
            font-size: 1.2rem;

            &.active a {
                color: color('primary');
                cursor: default;

                &:hover {
                    color: color('primary');
                }
            }
            a {
                cursor: pointer;
                color: color('gray');

                &:hover {
                    color: color('secondary');
                }
            }
        }
    }

    .hne-carousel-slide {
        height: 100%;
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;

        &.shown {
            opacity: 1;
            visibility: visible;
        }

        .hne-carousel_title {
            background-color: color('primary');
            color: color('white');
            text-align: center;
            height: 50px;
            line-height: 50px;
        }

        .hne-carousel_body {
            background-color: color('secondary');
            color: color('primary');
            height: calc(100% - 50px);
            padding: 2rem;
        }

        .hne-carousel_image {
            width: 100px;
            height: 100px;
            margin: 0 auto;
            border-radius: 50%;
            color: color('primary');
            font-family: $font-family-serif;
            font-size: 4rem;
            text-align: center;
            display: inline-block;
            line-height: 100px;

            &.hne-carousel_image_square {
                border-radius: 0;
            }

            &.hne-carousel_image--bordered {
                border: 5px solid rgb(240, 206, 141);
            }
        }
    }
}
