.margin-stories {
    margin-top: 130px;
}

.background-stories {
    width:100%;
    height:130px;
    position: absolute;
    top:0;
    left:0;
    z-index:0;
    background-color: #15383e;
}

.avatar-wrapper {
    width:100%;
    height:120px;
    background-color: #15383e;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-pagination-bullet:only-child {
    display: block !important;
}

.story-slider * {
    pointer-events: none !important;
}

.modal.show-modal .story-slider * {
    pointer-events: auto !important;
}

.story-slider-user {
    display: flex;
    align-items: center;
    position: absolute;
    top: 25px;
    left: 10px;
    height: 32px;
    z-index: 5;
    color: #fff;
    text-decoration: none;
    user-select: none;
    transform: translateZ(0);
    background: transparent;
    outline: none;
    border: 0;
}

.swiper-slide .story-slider-user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.swiper-slide .story-slider-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.swiper-slide .story-slider-user-avatar .avatar-online-icon {
    position: absolute;
    top: -2%;
    right: -18%;
    z-index: 10;
}

.story-slider-user-wrapper .user-info .user-name {
    font-size: 12px;
    font-weight: 700;
    margin-right: 0.5rem;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.35);
}

.story-slider-user-wrapper .user-info .user-date {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.55;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.35);
}

.swiper a:hover{
    text-decoration: none !important;
    color:#fff !important;
}

.story-slider>.main-swiper>.swiper-wrapper .swiper-slide {
    text-align: left;
    font-size: 1.5rem;
    line-height: 2;
    background: #111;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.story-slider>.main-swiper>.swiper-wrapper .swiper-slide::after {
    content: "";
    height: 100px;
    width: 100%;
    background-image: linear-gradient(to top,
    rgba(255, 0, 0, 0),
    rgba(0, 0, 0, 0.5));
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.swiper-slide img,
.swiper-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.storieLoading {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 4px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
    /*visibility: visible;*/
}

.story-bar-avatar {
    position: relative;
    display: block;
    border-radius: 50%;
    padding: 3px;
}

.story-bar-avatar.to-see {
    background-image: linear-gradient(135deg, #e6005a 0%, #bc78bf 50%, #e6005a 100%);
}

.story-bar-avatar:after{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 2px 6px #e6005a;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.4s ease;
    transform: scale(1.2);
    opacity: 0;
}
.story-bar-avatar:hover:after{
    transform: scale(1);
    opacity: 1;
   /* animation: fadeOut 0.6s ease forwards;*/
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.story-bar-avatar.seen {
    background-image: none;
}

.story-bar-avatar:before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    right: 3px;
    bottom: 3px;
    background: #15383E;
    border-radius: 50%;
    z-index: 1;
}

.story-bar-avatar img {
    position: relative;
    z-index: 2;
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.story-bar-name {
    display: block;
    width: 100%;
    font-size: 13px;
    letter-spacing: 0.05rem;
    text-align: center;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
   /* padding-top: 0.5rem;*/
    padding-top: 3px;
}

.story-slider {
    padding-top: 44px;
    padding-bottom: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100vh;
    width: 100vw;
}

.story-slider>.main-swiper {
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 9 / 16;
    /*height: min(90vh, calc(100vw * 16 / 9));*/
    width: fit-content;
}

.story-slider>.main-swiper-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
}

.story-slider .story-slider-user-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.5;
    font-family: "Work Sans", sans-serif !important;
}
.story-slider .inner-swiper .share-buttons *{
    font-family: "Work Sans", sans-serif !important;
}

.story-slider .story-slider-user-wrapper .user-status {
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

.story-slider .story-slider-user-wrapper .user-info {
    display: flex;
    align-items: flex-end;
}

.story-slider .story-slider-user-wrapper .user-info .user-name {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    margin-right: 12px;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.35);
    /*width: 14rem;*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-slider .story-slider-user-wrapper .user-info .user-date {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.65;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.35);
}

/* .swiper-wrapper {
    will-change: transform;
    transform: translateZ(0);
} */

/*.main-swiper.story-slider .inner-swiper {
    overflow: visible;
}*/

.inner-swiper {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    /* Safe for Safari */
    position: relative;
    z-index: 1;
}

.story-slider .inner-swiper .swiper-slide::before {
    content: '';
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    background: -webkit-linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.3) 100%);
    background: -moz-linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.3) 100%);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.3) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=0);
}

.story-slider .inner-swiper .swiper-pagination {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 10px;
    bottom: unset;
    max-width: calc(100% - 10px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    transform: translateZ(0);
}

.story-slider .inner-swiper .swiper-pagination-bullet {
    width: 100%;
    flex-shrink: 10;
    border-radius: 999px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 1px #00000059;
    opacity: 1;
}

.story-slider .inner-swiper .swiper-pagination-bullet .progress-bar {
    position: absolute;
    background: #fff;
    left: 0;
    top: 0;
    height: 100%;
    transition: none;
}

.story-slider .inner-swiper .viewed.progress-bar .progress-bar {
    width: 100%;
    background: #fff;
}

.swiper-main-next.swiper-button-disabled,
.swiper-main-prev.swiper-button-disabled,
.swiper-inner-next.swiper-button-disabled,
.swiper-inner-prev.swiper-button-disabled {
    display: none;
}

.story-slider .swiper-main-next,
.story-slider .swiper-inner-next {
    right: 0;
}

.story-slider .swiper-inner-prev,
.story-slider .swiper-main-prev {
    left: 0;
}

.story-slider .swiper-inner-next,
.story-slider .swiper-inner-prev,
.story-slider .swiper-main-next,
.story-slider .swiper-main-prev {
    position: absolute;
    top: calc(50% - 50px);
    bottom: 0;
    height: calc(100% - 250px);
    width: 25%;
    margin: 0;
    transform: translateY(-50%);
    opacity: 0;
    color: #fff;
}

.story-slider .swiper-main-next,
.story-slider .swiper-inner-next {
    z-index: 5;
}

.story-slider .inner-swiper .share-buttons {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-evenly;
    gap: 0.2rem;
    margin: 1rem 0;
    z-index: 50;
}

.story-slider .inner-swiper .share-buttons * {
    pointer-events: auto;
}

.story-slider .inner-swiper .share-buttons .icon-btn {
    background: rgba(0, 0, 0, 0);
    width: 8rem;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.story-slider .inner-swiper .share-buttons .like-btn .heart-fill {
    display: none;
    fill: url(#heart-gradient);
}

.story-slider .inner-swiper .share-buttons .like-btn.liked .heart-fill {
    display:block;
}

.story-slider .inner-swiper .share-buttons .like-btn .heart-outline {
    stroke: #fff;
    stroke-width: 4;
    fill: #fff;
}

.story-slider .inner-swiper .share-buttons .like-btn.liked .heart-outline {
    stroke: none;
    fill: none;
}

#storiesModal .loading-stories-container {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#storiesModal .loading-stories-container svg {
    width: 3.5rem;
    height: 3.5rem;
    color: #15383e; /* replace with your primary color */
    fill: #AF9471; /* for SVG elements */
    animation: spin 1s linear infinite;
}

#storiesModal.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background-color: rgb(0 0 0 / 85%);
}

#alertModal.modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

#storiesModal .modal-content {
    background-color: transparent;
    padding: 20px;
    border: 0;
    border-radius: 5px;
    text-align: center;
    position: relative;
}

#alertModal .modal-content {
    max-width: 330px;
    width: 90vw;
    padding-top: 26px;
    border-radius: 5px;
    text-align: center;
    position: relative;
    background: white;
}

#alertModal .alert-modal-title {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 15px;
}

#alertModal .alert-modal-subtitle {
    font-size: 10px;
    color: #6C6C6C;
    margin: 10px 15px;
}

#alertModal #reportForm .alert-modal-options {
    list-style: none;
    padding: 0;
    border-top: 1px solid #E3E3E5;
    font-size: 12px;
    margin: 10px 0 30px;
}

#alertModal #reportForm .alert-modal-options li input {
    display: none;
}

#alertModal #reportForm .alert-modal-options li label {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #E3E3E5;
    cursor: pointer;
    font-weight: normal;
}

#alertModal #reportForm .alert-modal-options li label::after {
    content: url('data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.93453 7.30977L5.55953 11.6848C5.51888 11.7254 5.47063 11.7577 5.41752 11.7797C5.36441 11.8017 5.30748 11.813 5.25 11.813C5.19251 11.813 5.13559 11.8017 5.08248 11.7797C5.02937 11.7577 4.98112 11.7254 4.94047 11.6848C4.89982 11.6441 4.86758 11.5959 4.84558 11.5428C4.82358 11.4897 4.81226 11.4327 4.81226 11.3752C4.81226 11.3178 4.82358 11.2608 4.84558 11.2077C4.86758 11.1546 4.89982 11.1064 4.94047 11.0657L9.00648 7.00024L4.94047 2.93477C4.85837 2.85268 4.81226 2.74134 4.81226 2.62524C4.81226 2.50915 4.85837 2.3978 4.94047 2.31571C5.02256 2.23362 5.1339 2.1875 5.25 2.1875C5.3661 2.1875 5.47744 2.23362 5.55953 2.31571L9.93453 6.69071C9.97521 6.73134 10.0075 6.7796 10.0295 6.83271C10.0515 6.88582 10.0628 6.94275 10.0628 7.00024C10.0628 7.05774 10.0515 7.11467 10.0295 7.16778C10.0075 7.22089 9.97521 7.26914 9.93453 7.30977Z" fill="%236C6C6C"/></svg>');
    display: inline-block;
    margin-top: 2px;
    margin-left: 10px;
    vertical-align: middle;
}

#alertModal #reportForm {
    display: block;
    position: relative;
    height: 320px;
    overflow: hidden;
    overflow-y: auto;
}

#alertModal #reportForm>div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateX(100%);
    /* offscreen right by default */
}

#alertModal #reportForm>div.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

#alertModal #reportForm>div.exit-left {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 0;
}

#alertModal #reportForm textarea {
    outline: none;
    background: transparent;
    border: solid 1px #6C6C6C;
    padding: 5px;
    width: 100%;
    height: 100px;
    resize: vertical;
}

#alertModal #reportForm button {
    border: 0;
    outline: none;
    cursor: pointer;
    background: #15383e;
    color: white;
    padding: 10px;
    width: 100%;
}

#alertModal .close-alert {
    position: absolute;
    top: 4px;
    right: 6px;
    cursor: pointer;
    z-index: 9999;
    border: none;
    background: transparent;
}

#storiesModal .alert-btn {
    position: absolute;
    top: 24px;
    right: 46px;
    display: flex;
    cursor: pointer;
    z-index: 9999;
    border: none;
    background: transparent;
    pointer-events: none;
}

#storiesModal .close-btn {
    position: absolute;
    top: 24px;
    right: 14px;
    display: flex;
    cursor: pointer;
    z-index: 9999;
    border: none;
    background: transparent;
    pointer-events: none;
}

#storiesModal.show-modal, #alertModal.show-modal {
    animation: stories-in 0.4s forwards;
    pointer-events: auto;
    transform: translateZ(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.story-bar-container {
    position: relative;
    visibility: hidden;
    background: rgb(17 17 18 / 74%);
    z-index: 2;
    padding-top: 5px;
}

.story-bar-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 4px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
    visibility: visible;
}

/* When loaded, hide the pseudo-element and show content */
.story-bar-container.loaded {
    visibility: visible;
}

.story-bar-container.loaded::before {
    content: none;
}

.story-bar-swiper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    overflow: auto;
    scrollbar-width: none;
}

.story-bar-swiper .swiper-slide {
    margin-right: 12px;
    width: 74px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition-duration: 0.3s;
    transition-property: opacity;
}

.story-bar-swiper .swiper-slide:last-child {
    margin-right: 0;
}

.story-bar-swiper .swiper-wrapper {
    height: auto;
}

.story-bar-swiper .swiper-slide {
    margin-right: 12px;
    width: 74px;
}

.story-bar-swiper .swiper-slide:last-child {
    margin-right: 0;
}

.swiper-story-bar-prev,
.swiper-story-bar-next {
    display: none;
}

.swiper-story-bar-prev:after,
.swiper-story-bar-next:after {
    content: '';
}

.swiper-story-bar-prev.swiper-button-disabled,
.swiper-story-bar-next.swiper-button-disabled {
    opacity: 0.3;
}

.story-bar-swiper .swiper-slide .featured-icon {
    position: absolute;
    bottom: 3px;
    right: -3px;
    z-index: 2;
}

.story-bar-swiper .swiper-slide .online-icon {
    position: absolute;
    top: 3px;
    right: -3px;
    z-index: 2;
}

.story-bar-swiper .swiper-slide .featured-icon > svg {
    width: 25px;
    height: 25px;
    margin-bottom: -3px;
}

.story-bar-swiper .swiper-slide .featured-icon .lottie-new {
    width: 28px;
    height: 28px;
    margin-bottom: -3px;
}

.story-bar-swiper .swiper-slide .featured-icon .lottie-featured {
    width: 26px;
    height: 26px;
}

.story-bar-swiper .swiper-slide .online-icon .lottie-online {
    width: 24px;
    height: 24px;
}


@media (min-width: 992px) {
    .story-bar-container {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        justify-content: space-evenly;
        padding-top: 0.5rem;
    }

    .story-slider .swiper-inner-next,
    .story-slider .swiper-inner-prev,
    .story-slider .swiper-main-next,
    .story-slider .swiper-main-prev {
        height: auto;
        opacity: 1;
    }

    .story-slider .swiper-inner-prev,
    .story-slider .swiper-main-prev {
        left: -25%;
    }

    .story-slider .swiper-inner-next,
    .story-slider .swiper-main-next {
        right: -25%;
    }

    .swiper-story-bar-prev,
    .swiper-story-bar-next {
        display: block;
        position: relative;
        height: auto;
    }
    .swiper-story-bar-prev {
        left:  1.8%;
    }
    .swiper-story-bar-next{
        right: 1.8%;
    }

    .story-bar-swiper {
        width: 90%;
        padding-left: 0;
        padding-right: 0;
    }

    .story-bar-swiper .swiper-slide {
        width: 86px;
    }

    /*.story-bar-swiper .swiper-slide .story-bar-avatar {
        padding: 4px;
    }*/

    .story-bar-swiper .swiper-slide .story-bar-avatar img {
        width: 74px;
        height: 74px;
    }

    .story-bar-swiper .swiper-slide .featured-icon {
        position: absolute;
        bottom: -6px;
        right: -6px;
        z-index: 2;
    }

    .story-bar-swiper .swiper-slide .online-icon {
        position: absolute;
        top: -6px;
        right: -10px;
        z-index: 2;
    }

    .story-bar-swiper .swiper-slide .featured-icon > svg {
        width: 28px;
        height: 28px;
        margin-bottom: 3px;
        margin-right: 3px;
    }

    .story-bar-swiper .swiper-slide .featured-icon .lottie-new {
        width: 38spx;
        height: 38px;
        margin-bottom: 3px;
    }

    .story-bar-swiper .swiper-slide .featured-icon .lottie-featured {
        width: 46px;
        height: 46px;
    }

    .story-bar-swiper .swiper-slide .online-icon .lottie-online {
        width: 44px;
        height: 44px;
    }
}

.wrapper-audio-btn {
    pointer-events: auto !important;
    position: absolute;
   /* bottom: 100px;
    right: 5%;*/
    transform: translateX(50%);
    z-index: 999999 !important;
    top: 63px;
    bottom: auto;
    right: 30px;
}



@media (min-width: 992px){
   /* .wrapper-audio-btn {
        bottom: 15%;
        right: 4%;
    }*/

    .story-slider .inner-swiper .share-buttons .icon-btn {
        font-size: 13px;

    }

}

.wrapper-audio-btn button {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    padding: 0.75rem;
    pointer-events: auto !important;
    z-index: 1000000 !important;
}

.wrapper-audio-btn button svg {
    display: block;
}

/*@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}*/

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes stories-in {
    0% {
        transform: translateZ(0) scale(0.5);
        opacity: 0;
    }

    50% {
        transform: translateZ(0) scale(1.05);
        opacity: 1;
    }

    to {
        transform: translateZ(0) scale(1);
        opacity: 1;
    }
}

/*necessary for safari*/
.swiper-slide:not(.swiper-slide-active) .swiper-inner-prev,
.swiper-slide:not(.swiper-slide-active) .swiper-inner-next {
    display: none !important;
}

/*necessary for safari*/
.swiper-inner-prev,
.swiper-inner-next {
    transform: translateZ(0);
    position: absolute;
    z-index: 20;
    will-change: transform;
    pointer-events: auto;
}

/* Optional: Force rendering on Safari only */
@supports (-webkit-hyphens: none) {

    .swiper-inner-prev,
    .swiper-inner-next {
        transform: translate3d(0, 0, 1px);
    }

    .story-slider>.main-swiper {
        width: auto !important;
        display: inline-block;
    }
}

/*Specific css to force ignoring other css*/

/*#storiesModal .swiper.swiper-cube {
    overflow: hidden;
}*/
.outer-slider{
    margin-top: -127px;
    position: relative;
    z-index: 1;
}
@media (max-width: 992px){
    .outer-slider{
        margin-top: -114px;
    }
}
@media (max-width: 575px){
    #storiesModal .modal-content{
        padding: 0 !important;
    }
}
@media (max-width: 767px){
    .outer-slider{
        margin-top: 0;
    }
}


