
.chatbot *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: 50;
}

.chatbot button{
    border:none;
    outline: none;
    cursor: pointer;
}


.chatbot section{
    max-width: 1100px;
    margin: auto;
    text-align: center;
    padding: 0 1rem;
}

.chatbot h1{
    font-size: 3rem;
    margin-bottom: 2rem;
}


.chatbot p{
    font-size: 2rem;
}

.chatbot .chat-btn{
    position: fixed;
    right:50px;
    bottom: 30px;
    background: dodgerblue;
    color: white;
    width:60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s;
    box-shadow: 0 5px 5px rgba(0,0,0,0.4);
}

.chatbot .chat-btn:hover, .submit:hover, #emoji-btn:hover{
    opacity: 1;
}

.chatbot .chat-title {
    background-color: #ddd;
    margin: -0.75rem -0.75rem 0.75rem;
    padding: 0.5rem;
    border-radius: 10px;
}

.chatbot .chat-popup{
    display: none;
    position: fixed;
    bottom:80px;
    right:120px;
    height: 800px;
    width: 600px;
    background-color: white;
    /* display: flex; */
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.75rem;
    box-shadow: 5px 5px 20px rgba(0,0,0,1);
    border-radius: 10px;
}

.chatbot .show{
    display: flex !important;
}

.chatbot .chat-area{
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    
    vertical-align: bottom;
    /* display: inline; */
}

.chatbot .income-msg{
    display: flex;
    align-items: center;
}

.chatbot .avatar{
    width:45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.chatbot .income-msg .msg{
    background-color: dodgerblue;
    color: white;
    padding:0.5rem;
    border-radius: 25px;
    margin-left: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.chatbot .badge{
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: red;
    color:white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    top:-10px;
    right: -10px;
}

.chatbot .out-msg{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.chatbot .my-msg{
    display: flex;
    justify-content: left;
    margin: 0.75rem;
    padding: 0.5rem;
    background-color: #ddd;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    /*word-break: break-all;*/
}

.chatbot #select-box{
    display: flex;
    background-color: #ccc;
    flex-direction: column;

    justify-content: space-between;
    padding: 0.75rem;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.4);
    border-radius: 10px;
}

.chatbot .choice{
    display: flex;
    justify-content: flex-end;
    margin: 0.25rem;
    padding: 0.5rem;
    background-color: #ddd;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    justify-content: left;
}

.chatbot .chat-body {
    display: flex;
    background-color: #ccc;
    /* flex-direction: column; */

    justify-content: space-between;
    padding: 0.75rem;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.4);
    border-radius: 10px;
}

.chatbot .chat-body input[type="text"] {
    width: 80%;
}

.chatbot .chat-body input[type="submit"]{
    width: 20%;
}

@media (max-width:500px){

    .chatbot .chat-popup{
        bottom: 120px;
        right:10%;
        width: 80vw;
    }

    .chatbot .chat-btn{
        right:10px;
        bottom: 10px;
    }
}

@keyframes myAnimation {
  0%   {top:0px;}
  16.7%  {top: -10px;}
  33.3%  {top: 0px;}
  100%  {top: 0px;}
}

.chatbot .bubbles {
    display: none;
    height: 40px;
    align-items: center;
}

.chatbot .bubble {
    width: 10px;
    height: 10px;
    background-color: white;
    display: block;
    border-radius: 10px;
    animation-name: myAnimation;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    position: relative;
}
