@import "variables";

:host {
    display: flex;
    height: 100%;
}

.preview-image {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    overflow: auto;
    text-align: center;
    box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.1);
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACuoAAArqAVDM774AAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAK0lEQVQ4T2P4jwP8xgFGNSADqDwGIF0DlMYAUH0YYFQDMoDKYwASNfz/DwB/JvcficphowAAAABJRU5ErkJggg==');
    flex: 1;

    &.centered {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    vdr-focal-point-control {
        position: relative;
        box-shadow: 0px 0px 10px -3px rgba(0, 0, 0, 0.15);
    }

    .image-wrapper {
        position: relative;
    }

    .asset-image {
        width: 100%;
    }

    .focal-point-info {
        position: absolute;
        display: flex;
        right: 0;
    }
}

.controls {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
    min-width: 15vw;
    max-width: 25vw;
    transition: opacity 0.3s;

    &.fade {
        opacity: 0.5;
    }

    .name-input {
        margin-bottom: 24px;
    }

    ::ng-deep .clr-control-container {
        width: 100%;
        .clr-input {
            width: 100%;
        }
    }

    .elide {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
    }
    .source-link {
        direction: rtl;
    }

    .preview-select {
        display: flex;
        align-items: flex-end;
        margin-bottom: 12px;
        clr-select-container {
            margin-right: 12px;
        }
    }
}
