@keyframes bigger-height {
    0% {
        height: 0;
        overflow-y: hidden;
        width: 0;
    }
    75% {
        height: 300px;
        width: 300px;
    }
    100% {
        height: 400px;
        width: 300px;
    }
}

@keyframes smaller-height {
    0% {
        height: 400px;
        overflow: hidden;
        width: 300px;
    }
    50% {
        height: 100px;
        width: 100px;
    }
    70% {
        height: 50px;
        width: 50px;
        overflow: hidden;
        opacity: 0;
        
    }
    95%{
        border-radius: 100px;
    }
    100% {
        height: 0;
        width: 0;
        display: none;
    }
}

.closing {
    animation: smaller-height .3s ease-in forwards;
}

.chatbot-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 50;
}

.opening{
    animation: bigger-height .4s ease-in forwards;
}

.chatbot-frame {
    border-radius: 10px;
    /* width: 300px; */
    width: 0;
    background-color: white;
    border: 1px solid black;
}

.close-chat {
    height: 30px;
    width: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    animation: fadeIn .1s ease-in forwards;
    animation-delay: .4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.chatbot-robot-icon {
    border-radius: 100%;
    background-color: #333333;
    height: 60px;
    padding: 10px;
    color: white;
    width: 60px;
    align-self: auto;
}

.block-chatbot {
    display: block;
    cursor: pointer;
}

.hidden-chatbot {
    display: none;
}

.chatbot-content {
    padding-top: 20px;
    height: 100%;
    display: flex;
    align-items: end;
    flex-direction: column;
    width: 100%;
    justify-content: end;
}

.chatbot-talking-section {
    margin-top: 20px;
    max-height: 215px;
    width: 100%;
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    animation: fadeIn .1s ease-in forwards;
    animation-delay: .4s;
}

.message-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-row {
    flex-direction: row-reverse;
}

.bot-row {
    flex-direction: row;
}

.bot-message .bot-icon {
    color: black;
}


.user-message .user-icon {
    color: black;
}

.bot-color-message {
    background-color: #f1f1f1;
}

.user-color-message {
    background-color: #333333;
    color: white;
}

.message-text {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}


.chatbot-send-infos {
    padding: 10px;
    display: flex;
    width: 100%;
    align-items: start;
    flex-direction: column;
}

.chatbot-send-infos p {
    font-size: 0.9rem;
}

.chatbot-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    width: 99%;
    margin-left: .5%;
}

.chatbot-submit-button:hover {
    background-color: #333333;
    width: 100%;
    color: white;
    margin-left: 0;
}