@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.chat-icon {
    position: fixed;
    bottom: 30px;
    right: 27px;
    width: 100px;
    height: 80px;
    border-radius: 50%;
    /*background-color: #346cb0;*/
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: bounce 2s infinite ease-in-out;
    font-family: 'Montserrat';
}

    .chat-icon img {
        width: 70px;
        height: 60px;
    }

.tivaiconhead {
    width: 35px;
    border-radius: 30px;
    background-color: #e4faff;
}

.chat-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    animation: fadeIn 1s ease-out;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
    display: none; /* Hidden initially */
}

.chat-header {
    background-color: #346cb0;
    color: white;
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 14px;
}

.chat-box {
    flex-grow: 1;
    padding: 10px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
}

.message {
    background-color: #e0e0e0;
    margin: 5px 0;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    animation: slideIn 0.5s ease-out;
}

.bot-message {
    background-color: #e7e9f5;
    color: black;
    align-self: flex-start;
    border-radius: 20px 20px 20px 0px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
}

.user-message {
    /* background-color: #346cb0;
    color: white;
    align-self: flex-end;*/
    white-space: pre-wrap;
    padding: 12px 16px;
    border-radius: 20px 20px 0 20px;
    max-width: 20%;
    color: #fff;
    font-size: 13px;
    background: #346cb0;
    align-self: flex-end;
    font-family: "Montserrat", sans-serif;
}

input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    width: calc(100% - 22px);
    margin-bottom: 10px;
    border-radius: 5px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    button:hover {
        background-color: #45a049;
    }

.sendbtn {
    background-color: #346cb0;
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .sendbtn:hover {
        background-color: #346cb0;
    }

.closebtn {
    cursor: pointer;
    font-size: 2rem;
}

.font-montserrat {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
}

li {
    list-style-type: none;
}

.btn-link {
    padding: 10px;
    background: #fbfbfb;
    border-radius: 30px;
    border: 1px solid #d7d7d7;
    cursor: pointer;
    width: fit-content;
    box-shadow: 1px 1px 3px 0px grey;
}

    .btn-link:hover {
        box-shadow: inset 1px 1px 3px 0px grey;
        background: #e3e3e3;
    }

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}
