@import url("https://fonts.googleapis.com/css?family=Red+Hat+Display:400,500,900&display=swap");

.local_chatbot.center {
    z-index: 1000;
    position: fixed;
    bottom: 90px;
    right: calc(2%);
}

.local_chatbot .pic {
    width: 4rem;
    height: 4rem;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

.local_chatbot .contact {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 5rem;
    height: 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.local_chatbot .contact .pic {
    position: absolute;
    left: 0;
}
.local_chatbot .contact .name {
    font-weight: 500;
    color: #07273c;
    margin-bottom: 0.125rem;
}
.local_chatbot .contact .message,
.local_chatbot .contact .seen {
    font-size: 0.9rem;
    color: #999;
}
.local_chatbot .contact .badge {
    box-sizing: border-box;
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    padding-top: 0.125rem;
    border-radius: 1rem;
    top: 0;
    left: 2.5rem;
    background: #333;
    color: white;
}

.local_chatbot .contacts {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-6rem, -50%);
    width: 500px;
    height: 32rem;
    padding: 1rem 2rem 1rem 1rem;
    box-sizing: border-box;
    border-radius: 1rem 0 0 1rem;
    cursor: pointer;
    background: white;
    box-shadow: 0 0 8rem 0 rgba(0, 0, 0, 0.1), 2rem 2rem 4rem -3rem rgba(0, 0, 0, 0.5);
    transition: transform 500ms;
}
.local_chatbot .contacts h2 {
    margin: 0.5rem 0 1.5rem 5rem;
}
.local_chatbot .contacts .fa-bars {
    position: absolute;
    left: 2.25rem;
    color: #999;
    transition: color 200ms;
}
.local_chatbot .contacts .fa-bars:hover {
    color: #666;
}
.local_chatbot .contacts .contact:last-child {
    margin: 0;
}
.contacts:hover {
    transform: translate(-23rem, -50%);
}

.local_chatbot .chat {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 500px;
    height: calc(85vh - 90px);
    z-index: 2;
    box-sizing: border-box;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 0 8rem 0 rgba(0, 0, 0, 0.1), 0 2rem 4rem -3rem rgba(0, 0, 0, 0.5);
}
.local_chatbot .chat .contact.bar {
    flex-basis: 3.5rem;
    flex-shrink: 0;
    margin: 1rem;
    box-sizing: border-box;
}
.local_chatbot .chat .messages {
    flex-grow: 1;
    padding: 1rem;
    background: #f7f7f7;
    overflow-y: auto;
    box-shadow: inset 0 2rem 2rem -2rem rgba(0, 0, 0, 0.1), inset 0 -2rem 2rem -2rem rgba(0, 0, 0, 0.1);
}
.local_chatbot .chat .messages .time {
    font-size: 0.8rem;
    background: #eee;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    color: #999;
    width: fit-content;
    margin: 0 auto;
}
.local_chatbot .chat .messages .message {
    box-sizing: border-box;
    padding: 0.5rem 1rem;
    margin: 1rem;
    background: #fff;
    border-radius: 1.125rem 1.125rem 0 1.125rem;
    min-height: 2.25rem;
    width: fit-content;
    max-width: 80%;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.075), 0 1rem 1rem -1rem rgba(0, 0, 0, 0.1);
}
.local_chatbot .chat .messages .message.bot {
    margin: 1rem 1rem auto 1rem;
    border-radius: 1.125rem 1.125rem 1.125rem 0;
    background: #333;
    color: white;
}
.local_chatbot .chat .messages .message .typing {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0;
    box-sizing: border-box;
    background: #ccc;
    border-radius: 50%;
}
.local_chatbot .chat .messages .message .typing.typing-1 {
    -webkit-animation: typing 3s infinite;
    animation: typing 3s infinite;
}
.local_chatbot .chat .messages .message .typing.typing-2 {
    -webkit-animation: typing 3s 250ms infinite;
    animation: typing 3s 250ms infinite;
}
.local_chatbot .chat .messages .message .typing.typing-3 {
    -webkit-animation: typing 3s 500ms infinite;
    animation: typing 3s 500ms infinite;
}
.local_chatbot .chat .input {
    box-sizing: border-box;
    flex-basis: 4rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 0.5rem 0 1.5rem;
}
.local_chatbot .chat .input i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #666;
    cursor: pointer;
    transition: color 200ms;
}
.local_chatbot .chat .input i:hover {
    color: #333;
}
.local_chatbot .chat .input input {
    border: none;
    background-image: none;
    background-color: white;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    border-radius: 1.125rem;
    flex-grow: 2;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1), 0 1rem 1rem -1rem rgba(0, 0, 0, 0.2);
    font-family: Red hat Display, sans-serif;
    font-weight: 400;
    letter-spacing: 0.025em;
}
.local_chatbot .chat .input input:placeholder {
    color: #999;
}

@-webkit-keyframes typing {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

.local_chatbot .chat .messages .message.user {
    margin: 1rem 1rem 1rem auto;
}

@keyframes typing {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
.local_chatbot .pic.bot {
    background-image: url("Robi.png");
}

#local_chatbot_bubble {
    z-index: 99;
    font-size: 50px;
    position: fixed;
    bottom: 1rem;
    right: 4rem;
    display: none;
}

#local_chatbot_bubble i {
    font-size: 55px;
    width: 55px;
    height: 55px;
    cursor: pointer;
}

@keyframes bubble {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

#local_chatbot_bubble:hover {
    animation: bubble 1s;
}

.sources {
    margin-top: 10px;
    font-size: 10px;
}
.dropdown {
    cursor: pointer;
    color: #aaa;
}
.dropdown:hover {
    cursor: pointer;
    text-decoration: underline;
}
.dropdown-content {
    display: none;
    margin-top: 10px;
}
.dropdown-content.show {
    display: block;
}

.answerBtn {
    text-align: left;
    border: none;
    background: none;
    color: white;
    border-bottom: black;
    border-top: black;
}

.answerBtn:hover {
    background-color: #444;
}

@media (max-width: 550px) {
    .local_chatbot .chat {
        width: 90vw;
        border-radius: 0.5rem;
    }
}

@media (max-width: 200px), (max-height: 400px) {
    .local_chatbot {
        display: none;
    }
    #local_chatbot_bubble .icon {
        display: none;
    }
}