
@keyframes iconBouncingAnimation {
    0%,99% {
        transform: scale(0)
    }

    12.5%,87.5% {
        transform: scale(.25)
    }

    25%,75% {
        transform: scale(.5)
    }

    37.5%,62.5% {
        transform: scale(.75)
    }

    50% {
        transform: scale(1)
    }
}

.floating-chat {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    transform: translateY(70px);
    transition: all 250ms ease-out;
    border-radius: 50%;
    opacity: 0;
  
    @include fancy-background;
    &.enter:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
        opacity: 1;
    }
    &.enter {
        transform: translateY(0);
        opacity: 1;
        box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.14);
        background: #333;
        z-index: 9999999999;
    }
    &.expand {
        width: 346px;
        max-height: 400px;
        height: 400px;
        border-radius: 0px;
        cursor: auto;
        opacity: 1;
        background: #333;
        z-index: 99999999999999999999999;
    }
    :focus {
        outline: 0;
        box-shadow: 0 0 3pt 2pt rgba(#0EC879, 0.3);
    }
    button {
        background: transparent;
        border: 0;
        color: white;
        text-transform: uppercase;
        border-radius: 3px;
        cursor: pointer;
    }
    .chat {
        display: flex;
        flex-direction: column;
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
        border-radius: 50%;
        transition: all 250ms ease-out;
        margin: auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        &.enter {
            opacity: 1;
            border-radius: 0;
            margin: 10px;
            width: auto;
            height: auto;
        }
        .header {
            flex-shrink: 0;
            padding-bottom: 10px;
            display: flex;
            background: transparent;
            /* margin-left: 20px; */
            
            
            
            
            
            .title {
                flex-grow: 1;
                flex-shrink: 1;
                padding: 0 5px;
            }
            button {
                flex-shrink: 0;
            }
        }
        .messages {
            padding: 10px;
            margin: 0;
            list-style: none;
            overflow-y: scroll;
            overflow-x: hidden;
            flex-grow: 1;
            border-radius: 4px;
            background: #00000047;
            
           
         
        }
        .footer {
            flex-shrink: 0;
            display: flex;
            max-height: 199px;
            background: transparent;
            padding: 0px;
            padding-top: 8px;
            border: 0;
            
     
            
            .text-box {
                border-radius: 3px;
                min-height: 100%;
                width: 100%;
                margin-right: 5px;
                color: #0EC879;
                overflow-y: auto;
                padding: 2px 5px;
                background: #1f1f1ffc;
            }
        }
    }
}

@keyframes show-chat-even {
    0% {
        margin-left: -480px;
    }
    100% {
        margin-left: 0;
    }
}

@-moz-keyframes show-chat-even {
    0% {
        margin-left: -480px;
    }
    100% {
        margin-left: 0;
    }
}

@-webkit-keyframes show-chat-even {
    0% {
        margin-left: -480px;
    }
    100% {
        margin-left: 0;
    }
}

@keyframes show-chat-odd {
    0% {
        margin-right: -480px;
    }
    100% {
        margin-right: 0;
    }
}

@-moz-keyframes show-chat-odd {
    0% {
        margin-right: -480px;
    }
    100% {
        margin-right: 0;
    }
}

@-webkit-keyframes show-chat-odd {
    0% {
        margin-right: -480px;
    }
    100% {
        margin-right: 0;
    }
}

.floating-chat.enter>i {
  font-size: 24px;
}

.floating-chat:hover img.floatingalphasky {
  width: 31px;
  filter: contrast(1);
}
.floating-chat img.floatingalphasky {
  width: 31px;
  filter: contrast(0);
}


.floating-chat .chat .messages li.other:before {
  right: -45px;
  background-image: url(/storage/alphasky-logo.png);
}
.floating-chat .chat .messages li:before {
  position: absolute;
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 25px;
  content: "";
  background-size: cover;
}

.floating-chat .chat .messages li.other {
  animation: show-chat-odd 0.15s 1ease-in;
  -moz-animation: show-chat-odd 0.15s 1 ease-in;
  -webkit-animation: show-chat-odd 0.15s 1ease-in;
  float: right;
  margin-right: 45px;
  color: #0AD5C1;
}
.floating-chat .chat .messages li {
  position: relative;
  clear: both;
  display: inline-block;
  padding: 14px;
  margin: 0 0 20px 0;
  /* font: 12px / 16px "Noto Sans", sans-serif; */
  border-radius: 10px;
  background-color: rgba(25, 147, 147, 0.2);
  word-wrap: break-word;
  max-width: 81%;
}

.floating-chat .chat .messages li.other:after {
  border-right: 10px solid transparent;
  right: -10px;
}
.floating-chat .chat .messages li:after {
  position: absolute;
  top: 10px;
  content: "";
  width: 0;
  height: 0;
  border-top: 10px solid rgba(25, 147, 147, 0.2);
}

.floating-chat .chat .messages li.other {
  animation: show-chat-odd 0.15s 1ease-in;
  -moz-animation: show-chat-odd 0.15s 1 ease-in;
  -webkit-animation: show-chat-odd 0.15s 1ease-in;
  float: right;
  margin-right: 45px;
  color: #0AD5C1;
}
.floating-chat .chat .messages li {
  position: relative;
  clear: both;
  display: inline-block;
  padding: 14px;
  margin: 0 0 20px 0;
  /* font: 12px / 16px "Noto Sans", sans-serif; */
  border-radius: 10px;
  background-color: rgba(25, 147, 147, 0.2);
  word-wrap: break-word;
  max-width: 81%;
}

.floating-chat .chat .messages li.self:before {
  left: -45px;
  background-image: url(https://github.com/ortichon.png);
}
.floating-chat .chat .messages li:before {
  position: absolute;
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 25px;
  content: "";
  background-size: cover;
}

.floating-chat .chat .messages li.self:after {
  border-left: 10px solid transparent;
  left: -10px;
}
.floating-chat .chat .messages li:after {
  position: absolute;
  top: 10px;
  content: "";
  width: 0;
  height: 0;
  border-top: 10px solid rgba(25, 147, 147, 0.2);
}

.floating-chat .chat .messages li.self:before {
  left: -45px;
  background-image: url(https://github.com/ortichon.png);
}
.floating-chat .chat .messages li:before {
  position: absolute;
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 25px;
  content: "";
  background-size: cover;
}
.floating-chat .chat .messages li.self {
  animation: show-chat-even 0.15s 1ease-in;
  -moz-animation: show-chat-even 0.15s 1 ease-in;
  -webkit-animation: show-chat-even 0.15s 1ease-in;
  float: left;
  margin-left: 45px;
  color: #0EC879;
}
.floating-chat .chat .messages li {
  position: relative;
  clear: both;
  display: inline-block;
  padding: 14px;
  margin: 0 0 20px 0;
  /* font: 12px / 16px "Noto Sans", sans-serif; */
  border-radius: 10px;
  background-color: rgba(25, 147, 147, 0.2);
  word-wrap: break-word;
  max-width: 81%;
}
.floating-chat select {
    appearance: none;
    font-size: 14px;
    padding: 0;
    color: #aeaeae;
    width: 100%;
    background: #33333300;
    border: 0;
}





.floating-chat .main-nav-ai__icon {
    height: 20px;
    margin-inline-start: 16px;
    position: relative;
    width: 31px;
    z-index: 999999999999;
    display: block;
    visibility: hidden;
}

.floating-chat .main-nav-ai__icon:after,.floating-chat .main-nav-ai__icon:before {
    animation-name: iconBouncingAnimation;
    animation-duration: 1.8s;
    animation-iteration-count: infinite;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: '';
    position: absolute;
    transform: scale(0);
    transform-origin: center
}

.floating-chat .main-nav-ai__icon:after {
    animation-name: iconBouncingAnimation;
    background-image: url(/themes/images/ai-icon-1.svg);
    height: 16px;
    right: 0;
    top: 0;
    width: 17px
}

.floating-chat .main-nav-ai__icon:before {
    animation-delay: .6s;
    background-image: url(/themes/images/ai-icon-2.svg);
    bottom: 0;
    height: 15px;
    left: 0;
    width: 14px
}
