:root {
    --green: rgba(227, 247, 239, 1);
    --grey: rgba(232, 237, 244, 1);
    --name: rgba(230, 79, 123, 1);
}
.bg-green {
    background-color: var(--green);
}
.bg-grey {
    background-color: var(--grey);
}
.color-name {
    color: var(--name);
}

.animations {
    padding-top: 50px;
    font-size: 14px;
    line-height: 18px;
    font-family: Arial, sans-serif;
}
.animations .chat-wrapper {
    background-color: white;
    width: calc(393px + 12px);
    max-width: calc(100% - 36px);
    padding: 8px;
    height: calc(852px);
    height: calc(752px);
    border-radius: 28px;
    //border: 6px solid black;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    transition: width 0.4s ease-in-out;
    //transition-delay: 0.2s;
}

.chat-wrapper-desktop {
    background-color: yellow;
}

/*
body.mobile {
    .animations-mobile {
        transform: translateX(0);
        transition: transform ;
        transition-duration: 1s;
        min-width: 100%;
    }
    .animations-tablet,
    .animations-desktop {
        transform: translateX(100vw);
        transition: transform ;
        transition-duration: 1s;
        min-width: 0;
    }
}
body.tablet {
    .animations-mobile {
        transform: translateX(-100%);
        transition: transform ;
        transition-duration: 1s;
        min-width: 0;
    }
    .animations-tablet {
        transform: translateX(0);
        transition: transform ;
        transition-duration: 1s;
        min-width: 100%;
    }
    .animations-desktop {
        transform: translateX(100vw);
        transition: transform ;
        transition-duration: 1s;
        min-width: 0;
    }
}

*/

@keyframes width {
    0% { width: calc(393px + 12px); }
    100% { width: calc(752px * 3 / 2); }
}

/*
.animations-mobile .chat-wrapper {
    opacity: 0;
    animation: opacity ease 2s;
    animation-name: right2left,opacity;
    animation-duration: 2s;
    animation-timing-function: ease;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
*/

@keyframes opacity {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes right2left {
    0% { margin-left: 40px; margin-top: 40px; }
    100% { margin-left: 0; margin-top: 0; }
}

.animations .chat-wrapper-inner {
    padding: 24px;
    padding-left: 48px;
    padding-top: 0px;
    margin-top: 0;
    float: right;
}
/*
.animations-mobile .chat-wrapper-inner {
    animation-name: scrollInnerWrapper;
    animation-delay: 5.0s;
    animation-duration: 0.8s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.42,0,.58,1);
}
*/



.animations .person img {
    width: 42px;
    height: 42px;
    border-radius: 32px;
    left: -46px;
}
.animations div.text {
    max-width: 264px;
    margin-top: 16px;
    display: flex;
}
.animations div.textr {
    margin-left: 50px;
}
.animations .textr + .textr,
.animations .textl + .textl {
    margin-top: 3px;
}
.animations .bg-img {
    width: 164px;
    height: auto;
}
.animations div.text div,
.animations div.person,
.animations div.text img {
    display: inline-block;
    padding: 8px;
    border-radius: 12px;
    max-width: 100%;
    opacity: 0;
    animation-name: fadeIn;
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
.animations div.text img {
    padding: 0px;
}



.animations-mobile .textr:has(+ .textr) div {
// background-color: red;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        margin-top: 200px;
    }
    to {
        opacity: 1;
        margin-top: 0px;
    }
}
@keyframes scrollInnerWrapper {
    from {
        margin-top: 0px;
    }
    to {
        margin-top: -690px;
    }
}

.animations .chat-wrapper-mobile .inputfield {
    border: 1px solid rgba(227, 232, 240, 1);
    border-radius: 8px;
    color: rgba(141, 153, 165, 1);
    padding: 12px;
    font-size: 15px;
    width: 345px;
    max-width: calc(100% - 48px);
    //margin-left: 16px;
    bottom: 24px;
    opacity: 0;
    animation: opacity ease 2s;
    animation-name: inputfield;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    right:24px;
}

.animations strong {
    font-weight: 900;
}
@keyframes inputfield {
    0% { opacity:0; }
    100% { opacity:1; }
}

.splide__slide.is-active .animations .chat-wrapper-tablet {
    width: calc(752px * 3 / 2);
    max-width: 100%;
    transition: width 0.4s ease-in-out;
}

.splide__slide.is-active .animations .chat-wrapper-tablet div.text {
    animation-duration: 0.8s;
    animation-delay: 0.4s;
    animation-name: width2;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}
@keyframes width2 {
    0% { max-width:264px; }
    100% { max-width:364px; }
}
.splide__slide.is-active .animations .chat-wrapper-tablet .inputfield {
    animation-duration: 0s;
    animation-delay: 0s;
    animation-name: width3;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    opacity: 1 ;

}
@keyframes width3 {
    0% { width:345px; opacity: 1;}
    100% { width:445px; opacity: 1;}
}