@import '../../Core/_platformCommon.scss';
$panel-height: 544px;
$panel-width: 640px;
$panel-image-div-height: 304px;
$panel-padding: 24px;
$panel-close-button-size: 28px;
$panel-text-top-padding: $spacing-12;
$panel-button-width: 80px;
$panel-progress-margin: $spacing-4;
$panel-progress-width: 8px;

.bolt-teaching-panel-layer {
    background: $transblack-30;
}

.bolt-teaching-panel {
    height: $panel-height;
    width: $panel-width;
    border-radius: 6px;
    @media screen and (-ms-high-contrast: active) {
        border: solid 1px;
    }

    box-shadow: 0px 6px 32px $calloutShadowColor;
    overflow: hidden;

    .bolt-teaching-panel-image-div {
        // Use hard coded color since images may not work with themed backgrounds.
        background: #0078d4;
        position: relative;
        justify-content: center;
        height: $panel-image-div-height;
        width: $panel-width;

        .bolt-teaching-pane-close-button {
            // Use hard coded color since images may not work with themed backgrounds.
            color: white;
            background-color: transparent;
            right: $panel-padding;
            top: $panel-padding;
            position: absolute;
            padding: 0;
            font-size: 16px;
            height: $panel-close-button-size;
            width: $panel-close-button-size;

            &:focus {
                border-color: white;
                @media screen and (-ms-high-contrast: active) {
                    border: solid 1px Highlight;
                }
            }
        }

        .bolt-teaching-panel-image {
            display: flex;
            align-self: flex-end;
            max-width: 100%;
            max-height: 100%;
        }
    }

    .bolt-teaching-panel-text-div {
        background: $calloutBackgroundColor;
        height: $panel-height - $panel-image-div-height;
        width: $panel-width;
        padding: $panel-padding;

        .bolt-teaching-panel-text {
            display: inline;
            padding-top: $panel-text-top-padding;
        }

        .bolt-teaching-panel-progress {
            align-content: center;
            text-align: center;
            vertical-align: middle;
            flex-basis: 50%;

            .bolt-teaching-panel-progress-group {
                align-self: center;
            }

            .bolt-teaching-panel-progress-circle {
                border-radius: 50%;
                background-color: $neutral-20;
                width: $panel-progress-width;
                height: $panel-progress-width;
                margin-left: $panel-progress-margin;
                margin-right: $panel-progress-margin;
                @media screen and (-ms-high-contrast: active) {
                    border: solid 1px $black;
                }

                &.current {
                    background-color: $communication-background;

                    @media screen and (-ms-high-contrast: active) {
                        background-color: Highlight;
                    }
                }
            }
        }

        .bolt-teach-panel-button-container {
            flex-basis: 25%;
        }

        .bolt-teaching-panel-back {
            min-width: $panel-button-width;
            max-width: $panel-button-width * 2;

            &.first-slide {
                visibility: hidden;
            }
        }

        .bolt-teaching-panel-next {
            float: right;
            min-width: $panel-button-width;
            max-width: $panel-button-width * 2;
        }
    }
}