@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@200&family=Space+Mono&display=swap" rel="stylesheet');
@import url('https://fonts.googleapis.com/css2?family=Tillana:wght@400;600&display=swap');
:root{
    --space-mono-font: sans-serif;
    --border-dark-subtle: #373838; 
    --font-tillana:sans-serif;
}
*{
    box-sizing: border-box;
}
body *{
    font-family: var(--space-mono-font);
}
/**
Page Design
*/
body,
html{
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x:hidden;
}
body{
    background-color: transparent;
}
.page-title{
    font-size: 2.5rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 3px;
    font-family: var(--secular-font);
    text-align: center;
    text-shadow: 0px 0px 3px #2020208c;
}
.border-dark-subtle{
    border-color: var(--border-dark-subtle) !important;
}

/* Chatbox elements styles */
#chatbox-wrapper #chatbox-btn-wrapper{
    width: 50px;
    height: 50px;
    border-radius: 50% 50%;
    border: 2px solid black;
    background: black;
    display: flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    right: 1em;
    bottom:2em;
    animation: IconAnimation 5s ease-in-out infinite;
    cursor: pointer;
    z-index: 99;
}
#chatbox-wrapper #chatbox-btn-wrapper span{
    color:#fff;

}
#chatbox-wrapper #chatbox-btn-wrapper:hover{
    animation: unset !important;
    transform:scale(1.2);
}
@keyframes IconAnimation {
    0%{
        rotate:0deg;
        transform:scale(1);
    }
    25%{
        rotate:360deg;
        transform:scale(1.2);
    }
    50%,100%{
        rotate:720deg;
        transform:scale(1);
    }
}
#chatbox-wrapper #chatbox{
    --chatbox-height:550px;
    --chatbox-width:550px;
    position: absolute;
    width: 0;
    height: 0;
    z-index: 100;
    right: 1em;
    bottom: 2em;
    overflow: hidden;
}


@media (max-width:480px) {
    #chatbox-wrapper #chatbox{
        --chatbox-height:100%;
        --chatbox-width:100%;
        top:0;
        left:0;
        bottom: unset;
        right: unset;
    }
    .chatbox-header{
            border-radius: 0px 0px 0px 0px;
    }
    
    .chatbox-footer{
            border-radius: 0px 0px 0px 0px;
    }    
    
}

@media (min-width:480px) {
    .chatbox-header{
            border-radius: 10px 10px 0px 0px;
    }
    
    .chatbox-footer{
           border-radius: 0px 0px 10px 10px;
    }   
}


#chatbox-wrapper #chatbox.show{
    width: var(--chatbox-width);
    height: var(--chatbox-height);
}
#chatbox-wrapper #chatbox.closing{
    width: var(--chatbox-width);
    height: var(--chatbox-height);
}

#chatbox-wrapper #chatbox .chatbox-dialog{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform ease-in-out .5s;
}
#chatbox-wrapper #chatbox.show .chatbox-dialog{
    transform: translateY(0%);
}
#chatbox-wrapper #chatbox.closing .chatbox-dialog{
    transform: translateY(100%);
}

#chatbox-wrapper #chatbox .chatbox-close{
    background: transparent;
    outline: unset;
    border: none;
    padding: 5px;
    line-height: 10px;
}
#chatbox-wrapper #chatbox .chatbox-close span{
    font-size: 10px;
    font-weight: 600;
    color:#fff;
}
#chatbox-wrapper #chatbox .chatbox-body{
    flex-grow: 1;
    padding: .5em .75em;
    height: calc(100%);
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction:column-reverse;
    justify-content: end;
    align-items: center;
    background: #ededed;
    color:#fff;
}
#chatbox-wrapper #chatbox .chatbox-item{
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: start;
    color:#000;
}
#chatbox-wrapper #chatbox .chatbox-item .chatbox-user-avatar{
    width: 40px;
    height: 40px;
    border-radius: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top:.5em;
}
#chatbox-wrapper #chatbox .chatbox-item .chatbox-user-avatar span{
    font-weight: 500;
    color: #fff;
}
#chatbox-wrapper #chatbox .chatbox-item .chatbox-item-content-wrapper{
    width: 80%;
    padding: .35em;
    position: relative;
    display: flex;
    flex-direction: column;
}
#chatbox-wrapper #chatbox .chatbox-item .chatbox-item-content{
    flex-shrink: 1;
    max-width: 100%;
    color: #444;
    background: #ffffff;
    padding: .35em;
    border-radius: .35em;
    align-self: flex-start;
}
#chatbox-wrapper #chatbox .chatbox-item.chatbox-msg-user{
    flex-direction: row-reverse;
    justify-content: end;
}
#chatbox-wrapper #chatbox .chatbox-item.chatbox-msg-user .chatbox-item-content{
    align-self: flex-end;
    background: #aaa;
    color: #ffffff;
}
#chatbox-wrapper #chatbox .chatbox-item.chatbox-msg-user .chatbox-user-avatar{
    border-color: #aaaaaa;
    background: #aaaaaa;
}
#chatbox-wrapper #chatbox .chatbox-item.chatbox-msg-user .chatbox-user-avatar span{
    color: #fff;
}
#chatbox-wrapper #chatbox .chatbox-footer{
    flex-shrink: 1;
    padding: .35em;
    background-color: #dddddd;
    display: flex;
    width: 100%;
}
#chatbox-wrapper #chatbox .chatbox-footer .chatbox-field-wrapper{
    width: 85%;
    line-height: 12px;
}
#chatbox-wrapper #chatbox .chatbox-footer .chatbox-field-wrapper textarea{
    width: 100%;
    border-radius: 10px;
    border: 10px solid #fff;
    max-height: 150px !important;
    overflow: auto !important;
    bottom: 0px !important;
    border-top: 8px #fff solid !important;
    border-bottom: 8px #fff solid !important;
    field-sizing: content !important;
    resize: none !important;
    font-family: sans-serif !important;
    font-size: 16px;
    
    
}

#chatbox-wrapper #chatbox .chatbox-footer .chatbox-btn-wrapper{
    width: 15%;
    overflow: hidden;
    padding: 0 .35em;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chatbox-wrapper #chatbox .chatbox-footer .chatbox-btn-wrapper #chatbox-send-btn span{
    color: #fff;
}


    
    