﻿.chatMessages {
    width: 100%;
    max-height: 78vh;
    overflow-y: auto;
    margin: 8px auto;
    top: 0;
    scrollbar-width: none;
}

.messageBox {
    width: 100%;
    height: auto;
    display: flex;
    padding: 8px 15px;
    border-radius: 10px;
    background-color: #2d2d2d;
    border: 1px solid rgb(63, 63, 63);
    margin-left: auto;
    margin-right: auto;
    bottom: 1%;
    position: sticky;
    text-align: center;
}

    .messageBox:focus-within {
        border: 1px solid rgb(110, 110, 110);
    }

.fileUploadWrapper {
    width: fit-content;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
}

#file {
    display: none;
}

.fileUploadWrapper label {
    cursor: pointer;
    width: fit-content;
    height: fit-content;
    display: flex;
    position: relative;
    margin-right: auto;
}

    .fileUploadWrapper label .bx {
        font-size: 24px;
        color: var(--cosgear-5);
        transition: all 0.3s;
    }

    .fileUploadWrapper label:hover .tooltip {
        display: block;
        opacity: 1;
    }

.tooltip {
    position: absolute;
    top: -40px;
    display: none;
    opacity: 0;
    color: white;
    font-size: 10px;
    text-wrap: nowrap;
    background-color: #000;
    padding: 6px 10px;
    border: 1px solid #3c3c3c;
    border-radius: 5px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.596);
    transition: all 0.3s;
}

#messageInput {
    width: 200px;
    height: 100%;
    background-color: transparent;
    outline: none;
    border: none;
    padding-left: 10px;
    color: white;
}

#sendButton {
    width: fit-content;
    height: 100%;
    background-color: transparent;
    outline: none;
    border: none;
    display: flex;
    cursor: pointer;
    transition: all 0.3s;
    align-items: center;
    margin-left: auto;
    vertical-align: middle;
}

    #sendButton .bx {
        font-size: 24px;
        color: var(--cosgear-5);
    }

    #sendButton svg path {
        transition: all 0.3s;
    }

    #sendButton:hover svg path {
        fill: #3c3c3c;
        stroke: white;
    }

.incoming-chat, .outgoing-chat {
    width: 100%;
}

    .incoming-chat img {
        width: 45px;
        height: 100%;
    }

    .incoming-chat .message {
        width: 100%;
        border-radius: 15px;
        background-color: var(--cosgear-2);
        color: var(--cosgear-1);
    }

.outgoing-chat {
    float: right; 
    right: 0;
}

    .outgoing-chat img {
        width: 45px;
        height: 100%;
    }

    .outgoing-chat .message {
        border-radius: 15px;
        background-color: var(--cosgear-5);
        color: var(--cosgear-1);
    }

.scrollBottom {
    display: none;
    position: fixed;
    margin-left: auto;
    margin-right: auto;
    bottom: 8%;
    left: 38%;
    z-index: 99;
    font-size: 12px;
    border: none;
    outline: none;
    background-color: var(--cosgear-4);
    color: var(--cosgear-5);
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
}
