:root{
    --chat-footer-height: 70px;
    --right-message-container-color: rgba(63, 72, 199, 0.637);
    --right-message-text-color: white;
    --left-message-container-color: rgb(88, 168, 88);
    --left-message-text-color: white;
}

.message-seen-group-user{
    width:20px;
    height:20px;
    object-fit: cover;
    border-radius: 10px;
}

.chat-footer-container{
    position: fixed; 
    display: flex;
    bottom: 0px;
    align-self: center;
    width: inherit;
    min-height: var(--chat-footer-height);
    max-height: 80vh;
    box-sizing: border-box;
    z-index: 1;
    background-color: var(--bg);
}

.chat-footer-inner{
    position: relative;
    display: flex;
    width:100%;
    padding: 5px;
    border-top: solid 1px gray;
}

.chat-footer-image-container{
    position: absolute; 
    top:0; left:0; right:0;
    transform: translate(0%,-100%);
    align-self: center;
    width: 100%;
    max-height: 70vh;
    border-top: solid 1px gray;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--bg);
    overflow-y: scroll;
    z-index: 2;
}

.message-avatar{
    height: 30px;
    width: 30px;
    border-radius: 30px;
    object-fit: cover; 
    margin:4px;
}

.right-message-container{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    width: 100%;
    padding-bottom: 15px;
    align-items: center;
}

.left-message-sub-container-no-reply{
    display: flex;
    flex-direction: column;
    max-width: 92%;
    flex-grow: 1;
}

.left-message-sub-container{
    display: flex;
    flex-direction: column;
    max-width: 100%;
    flex-grow: 1;
}

.left-message-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding-bottom: 10px;
}

.left-message{
    background-color: var(--left-message-container-color);
    color: var(--left-message-text-color);
    padding: 5px;
    word-wrap: break-word;
    white-space: pre-wrap;
    border-radius: 5px;
    box-sizing: border-box;
    max-width: 70%;
    margin-left:5px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.message-image-container-container{
    width: 70%;
}

.right-message{
    background-color: var(--right-message-container-color);
    color: var(--right-message-text-color);
    padding: 5px;
    word-wrap: break-word;
    white-space: pre-wrap;
    border-radius: 5px;
    max-width: 70%;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    position: relative;
}

.message-image-container{
    display: flex;
    flex-direction: row;
    flex-wrap:wrap;
}

.message-image{
    width: 100%;
    height: 100%; 
    margin: 2px;
    border-radius: 10px;
    border:transparent;
    object-fit: cover;
    background-color: white;
}

.message-image:hover{
    cursor:pointer;
}

.message-user-name-outside{
    color: gray;
    font-size: 12px;
    text-align: left;
    padding:0;
    font-weight: unset;
}

.message-user-name-inside{
    color: white;
    font-size: 12px;
    text-align: left;
    padding:0;
    font-weight: unset;
}

.left-message-date{
    padding:5px;
    color:gray;
    font-size: 12px;
}

.message-reply-to-container{
    background-color: rgba(128, 128, 128, 0.418);
    margin:unset;
    width:100%;
    max-width: unset;
    border: solid 1px white;
}

.last-seen-date{
    width:100%;
    color:gray;
    text-align: right;
    font-size: 12px;
}

.right-message-date{
    padding:5px;
    color:gray;
    font-size: 12px;
    text-align: right;
}

.message-activity{
    font-size: 12px;
    color:gray;
    text-align: center;
}

.chat-options-container-container{
    position:-webkit-sticky;
    position:sticky;
    top:0px;
    z-index: 201;
    background-color: var(--bg);
}

.chat-options-container{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding:0px 10px;
    border-bottom: solid 1px gray;
}

.message-emoji-text-container{
    font-size: 60px;
    background-color: unset;
    padding: unset;
    text-shadow: 2px 2px 2px #aaa;
}

.message-footer-extra{
    padding:2px;
}

.message-date-separator{
    text-align: center;
    align-items: center;
    width:100%;
    color:gray;
    font-size: small;
    margin-bottom: 10px;
    margin-top:10px;
}

.message-reaction-container{
    position:absolute;
    right:0px;
    bottom:0px;
    padding: 0px 2px;
    background-color: #fff;
    font-size: 14px;
    transform: translate(0%, 50%);
    border-radius: 10px;
    cursor: pointer;
    text-shadow: 2px 2px 2px #aaa;
    color:black;    
}

.deleted-message{
    border-radius:5px;
    padding:10px;
    border: solid 1px black;
    min-width: 40%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-left:5px;
}

@media screen and (min-width:700px){
    .chat-footer-container{width:70vw;}
    .chat-footer-image-container{width:70vw;}
}

.type-dot11,
.type-dot1{
    width:10px;
    height:10px;
    border-radius: 5px;
    margin:1px;
    animation-name: typing-animation;
    animation-delay: 0ms;
    animation-iteration-count: infinite;
    animation-duration: 500ms;
    animation-direction: alternate-reverse;
}

.type-dot11{animation-duration: 1500ms;}

.type-dot21,
.type-dot2{
    width:10px;
    height:10px;
    border-radius: 5px;
    margin:1px;
    animation-name: typing-animation;
    animation-delay: 100ms;
    animation-iteration-count: infinite;
    animation-duration: 500ms;
    animation-direction: alternate-reverse;
}

.type-dot21{
    animation-duration: 1500ms;
    animation-delay: 300ms;
}

.type-dot31,
.type-dot3{
    width:10px;
    height:10px;
    margin:1px;
    border-radius: 5px;
    animation-name: typing-animation ;
    animation-delay: 200ms;
    animation-iteration-count: infinite;
    animation-duration: 500ms;
    animation-direction: alternate-reverse;
}

.type-dot31{
    animation-delay: 700ms;
    animation-duration: 1500ms;
}

@keyframes typing-animation{
    0% {background-color: black;}
    100% {background-color: white;}
}