@use './variables';

.feature-alert .btn-primary {
    margin-top: 16px;
    width: 127px;
}
.hotspot {
    $hotspot-size: 32px;

    position: absolute;
    width: $hotspot-size;
    height: $hotspot-size;
    padding: 6px;
    border: 2px solid variables.get-color('tertiary', base);
    border-radius: 50%;

    animation-duration: 1s;
    animation-name: pulse;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;

    &:before {
        content: ' ';
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 50%;
        background: variables.get-color('tertiary', base);
    }

    &,
    &.hotspot-left {
        left: -#{$hotspot-size * 0.5};
        top: calc(50% - #{$hotspot-size * 0.5});
    }
    &.hotspot-right {
        left: calc(100% - #{$hotspot-size * 0.5});
    }
    &.hotspot-top {
        left: calc(50% - #{$hotspot-size * 0.5});
        top: -#{$hotspot-size * 0.5};
    }
    &.hotspot-bottom {
        left: calc(50% - #{$hotspot-size * 0.5});
        top: calc(100% - #{$hotspot-size * 0.5});
    }
}

@keyframes pulse {
    from {
        opacity: 0.5;
        transform: scale(1);
    }
    to {
        opacity: 0.75;
        transform: scale(1.25);
    }
}

.fade-out {
    opacity: 0.5;
    animation: hotspot-fade-out 300ms forwards;
}

@keyframes hotspot-fade-out {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 0;
    }
}
