@import '~@style/_config/app-bootstrap-bulma'

$popup-box-shadow = 0 2px 13px 0 rgba(171, 175, 186, 0.53)
$popup-open-animation-speed = .25s

.popup
    position relative
    user-select none
    z-index 999

    &__content
        position absolute
        background $color-white
        border-radius 5px
        box-shadow $popup-box-shadow
        opacity 0
        /*transform translateY(-150px) scaleY(1.2) perspective(300px) rotateX(80deg)*/
        transform translateY(20px)
        visibility hidden
        transition: opacity $popup-open-animation-speed ease-in-out,
                transform $popup-open-animation-speed ease-in-out,
                visibility 0s $popup-open-animation-speed

        &-tip
            position absolute
            content ''
            top -7px
            left 50%
            height 0
            width 0
            margin-left -7px
            border-left 7px solid transparent
            border-right 7px solid transparent
            border-bottom 7px solid $color-white

        ^[-1]_fixed &
            position fixed

        ^[-1]_opened &
            opacity 1
            /*transform translateY(0) scaleY(1) perspective(300px) rotateX(0)*/
            transform translateY(0)
            user-select text
            visibility visible
            transition: opacity $popup-open-animation-speed ease-in-out,
                    transform $popup-open-animation-speed ease-in-out