my-float-popup {
    position: absolute;
    width: 25rem; height: auto; min-height: 4rem;
    background-color: rgba(0,0,0,0.8);
    border-radius: var(--popup-border-radius);
    color: #ffffff;
    transition: opacity var(--transition-duration);
    transition-delay: 0.1s;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

my-float-popup.visible {
    /* transition: opacity 0.3s, left 0.3s, right 0.3s; */
    transition-delay: 0.0s;
    opacity: 1;
}

my-float-popup::before {
    content: '';
    position: absolute;
    width: 0px; height: 0px;
    border-style: solid;
}

my-float-popup.top::before {
    left: 50%; top: 100%; transform: translate(-50%,0);
    border-width: 10px 7px 0 7px;
    border-color: rgba(0,0,0,0.8) transparent transparent transparent;
}


my-float-popup.right::before {
    left: auto; right: 100%; top: 50%; transform: translate(0,-50%);
    border-width: 7px 10px 7px 0;
    border-color:  transparent rgba(0,0,0,0.8) transparent transparent;
}

my-float-popup.left::before {
    left: 100%; top: 50%; transform: translate(0,-50%);
    border-width: 7px 0px 7px 10px;
    border-color:  transparent transparent transparent rgba(0,0,0,0.8) ;
}

my-float-popup.bottom::before {
    left: 50%; top: auto; bottom: 100%; transform: translate(-50%,0);
    border-width: 0px 7px 10px 7px ;
    border-color:  transparent transparent rgba(0,0,0,0.8) transparent;
}

my-float-popup .content {
    position: relative;
    width: auto; height: auto;
    display: flex;
    flex-direction: column;
    font-family: National;
    font-size: 1.4rem;
    color: #dddddd;
    border-radius: var(--popup-border-radius);
    overflow: hidden;
    /* padding: 1rem; */
}

my-float-popup .content .img {
    position: relative;
    width: 100%; height: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    font-size: 0;
    transition: height calc( var(--transition-duration) / 1);
}

my-float-popup .content .img img {
    position: relative;
    width: 100%; height: auto;
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.5);
    transition: opacity calc( var(--transition-duration) / 1), filter calc( var(--transition-duration) / 1), transform calc( var(--transition-duration) / 0.7);
}

my-float-popup .content .img img.visible {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1.0);
}

my-float-popup .content .title {
    position: relative;
    box-sizing: border-box;
    width: 100%; height: auto;
    background-color: rgba(0,0,0,0.0);
    padding: 1.5rem 2rem 1rem 2rem;
    font-weight: bolder;
    font-size: 1.8rem; 
}

my-float-popup .content:has(.text-stage.hidden) .title {
    text-align: center;
    padding: 1.5rem 2rem 1.5rem 2rem;
}


my-float-popup .content .text-stage {
    position: relative;
    width: 100%; height: auto;
}

my-float-popup .content .img.hidden,
my-float-popup .content .title.hidden,
my-float-popup .content .text-stage.hidden {
    display: none;
}

my-float-popup .content .text-stage .text {
    position: relative;
    box-sizing: border-box;
    width: 100%; height: auto; max-height: 15rem;
    padding: 0rem 2rem 2rem 2rem;
    overflow-y: auto;
    pointer-events: all!important;
}

my-float-popup .content .text-stage scroll-bar {
    position: absolute;
    left: auto; right: 1rem; top: 0rem; width: 0.4rem; height: calc(100% - 2rem);
    z-index: 100;
    pointer-events: all!important;
}


