.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /*background: #724ae8;*/
    background: #283d93;
    transition: all 0.2s ease;
    z-index:10000;
}

body.show-chatbot .chatbot-toggler {
    transform: rotate(90deg);
}

.chatbot-toggler span {
    color: #fff;
    position: absolute;
}

    .chatbot-toggler span:last-child,
    body.show-chatbot .chatbot-toggler span:first-child {
        opacity: 0;
    }

body.show-chatbot .chatbot-toggler span:last-child {
    opacity: 1;
}

.chatbot {
    position: fixed;
    right: 35px;
    bottom: 90px;
    /*width: 420px;*/
    width:380px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom right;
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1), 0 32px 64px -48px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
    z-index:10000;
}

body.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chatbot header {
    padding: 16px 0;
    position: relative;
    text-align: center;
    color: #fff;
    background: #283d93;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .chatbot header span {
        position: absolute;
        right: 15px;
        top: 50%;
        display: block;
        cursor: pointer;
        transform: translateY(-50%);
    }

header h2 {
    font-size: 1.4rem;
}

.chatbot .chatbox {
    overflow-y: auto;
    height: 510px;
    padding: 30px 20px 100px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
    width: 6px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 25px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 25px;
}

.chatbox .chat {
    display: flex;
    list-style: none;
}

.chatbox .outgoing {
    margin: 20px 0;
    justify-content: flex-end;
}

.chatbox .incoming Myspan {
    /*    width: 32px;
    height: 32px;
    color: #fff;
    cursor: default;
    text-align: center;
    line-height: 32px;
    align-self: flex-end;
    background: #724ae8;
    border-radius: 4px;
    margin: 0 10px 7px 0;*/

    width: 32px;
    height: 32px;
    color: #fff;
    cursor: default;
    text-align: center;
    line-height: 32px;
    align-self: flex-end;
    background: #283d93;
    border-radius: 4px;
    margin: 0px -14px -1px 2px;
    /*margin: 0px -11px 11px 5px;*/
}

.chatbox .chat p {
    white-space: pre-wrap;
    padding: 10px 4px 11px 4px;
    border-radius: 10px 10px 0 10px;
    max-width: 85%;
    color: #000;
    font-size: 0.95rem;
    background: #b8f0ff;
    margin-bottom: 0 !important;
    word-wrap: normal;
}
.chatbox .chat Mydiv {
    /*white-space: pre-wrap;*/
    padding: 10px 5px 2px 5px;
    border-radius: 10px 10px 10px 0px;
    max-width: 85%;
    color: #000;
    font-size: 0.95rem;
    background: #b8f0ff;
    word-break: break-all;
    border-bottom: 2px solid #283d93;
}

.chatbox .incoming p {
    border-radius: 10px 10px 0px 10px;
    border-bottom: 2px solid #283d93;
}

.chatbox .chat p.error {
    color: #721c24;
    background: #f8d7da;
}

.chatbox .incoming p {
    color: #000;
    background: #f2f2f2;
}

.chatbot .chat-input {
    display: flex;
    gap: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 3px 20px;
    border-top: 1px solid #ddd;
}

.chat-input textarea {
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    max-height: 180px;
    padding: 15px 15px 15px 0;
    font-size: 0.95rem;
}

.chat-input span {
    align-self: flex-end;
    color: #724ae8;
    cursor: pointer;
    height: 55px;
    display: flex;
    align-items: center;
    visibility: hidden;
    font-size: 1.35rem;
}

.chat-input textarea:valid ~ span {
    visibility: visible;
}

@media (max-width: 490px) {
    .chatbot-toggler {
        right: 20px;
        bottom: 20px;
    }
  /*  body.chatbot-open {
        overflow: hidden;
    }*/
    .chatbot {
        right: 0;
        bottom: 0;
        height: 100%;
        border-radius: 0;
        width: 100%;
    }

        .chatbot .chatbox {
            height: 90%;
            padding: 25px 15px 100px;
        }

        .chatbot .chat-input {
            padding: 5px 15px;
        }

        .chatbot header span {
            display: block;
        }

    #landing {
        right: 0;
        bottom: 0;
        height: 100%;
        width: 100%;
        border-radius: 0;
    }
      
        }

 /*Import Google font - Poppins*/ 



/* .chatbox .chat p */
span.messages__dot {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 1px;
    background-color: #9E9EA1;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
    animation: 1s blink infinite;
}

@keyframes blink {
    50% {
        opacity: 1;
    }
}

@keyframes bulge {
    50% {
        transform: scale(1.05);
    }
}

.loader {
    margin-bottom: -2px;
    text-align: center;
    opacity: 0.3;
}

.loader__dot {
    display: inline-block;
    vertical-align: middle;
    width: 6px;
    height: 6px;
    margin: 0 1px;
    background: black;
    border-radius: 50px;
    -webkit-animation: loader 0.45s infinite alternate;
    animation: loader 0.45s infinite alternate;
}

    .loader__dot:nth-of-type(2) {
        -webkit-animation-delay: 0.15s;
        animation-delay: 0.15s;
    }

    .loader__dot:nth-of-type(3) {
        -webkit-animation-delay: 0.35s;
        animation-delay: 0.35s;
    }

@-webkit-keyframes loader {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}

@keyframes loader {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}


/* landing */

#landing {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 15px;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    text-align: center;
}
    div#landing span {
        position: absolute;
        right: 5px;
        top: 4%; 
        display: block;
        cursor: pointer;
        transform: translateY(-50%);
    }
input#username {
    font-size: 1.1rem;
    line-height: 2rem;
    text-align: center;
    border-radius: 5px;
    border: solid 1px #00000087;
    margin: 20px 0;
    width: 90%;
}

input#PhoneOrEmail {
    font-size: 1.1rem;
    line-height: 2rem;
    text-align: center;
    border-radius: 5px;
    border: solid 1px #00000087;
    margin: 20px 0;
    width: 90%;
}

form#form-start {
    align-self: end;
}

#start-chat {
    background: #f27a11;
    border: 2px #f27a11 inset;
    padding: 10px 15px;
    font-size: 1.3rem;
    font-weight:600;
    color: #ffffff;
    border-radius: 10px;
    width: 50%;
    font-family: Cairo;
}

    #start-chat:hover {
        background: #f9f7f6;
        color: #f27a11;
        border: 2px #f27a11 outset;
    }
/* #start-chat:focus{
  background: #f9f7f6;
  color: #f27a11;
  border: 2px #f27a11 outset;
} */

.error {
    color: #fafafa;
    background: #fa73738c;
    width: 80%;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    margin-right: 33px;
}
/* The alert message box */
.alert {
    padding: 20px;
    background-color: #f44336; /* Red */
    color: white;
    margin-bottom: 15px;
}

/* The close button */
.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

    /* When moving the mouse over the close button */
    .closebtn:hover {
        color: black;
    }



.imgcontainer {
    text-align: center;
    /* margin: 24px 0 12px 0; */
}

img.avatar {
    width: 70px;
    border-radius: 50%;
    height: 70px;
    border: 2px solid #2537be;
    box-shadow: 1px 6px 9px 1px gray;
}






#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modalMy {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10001; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}
/*body.modalMy-open{
    overflow:hidden;
}*/
/* Modal Content (image) */
.modal-contentMy {
  margin: auto;
  display: block;
  width: 80%;
  /*max-width: 700px;*/
  height:80%;
}
/*body.modal-contentMy{
    overflow:hidden;
}*/
 /*Caption of Modal Image*/ 
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-contentMy, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-contentMy {
    width: 100%;
  }
}



