#chat-box-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    overflow-y: auto;
    flex-direction: column;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    /*width: 170px;*/
    width: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.6s ease;
    z-index: 1; /* the z-index value is higher than that of most other elements */
    position: relative;
}

#chat_input_container {
    position: relative;
    bottom: 0;
    left: 0;
    width: auto;
    border-top: 1px solid #4b5563;
    border-radius: 0;
    padding: 12px;
    background-color: #374151;
}

label.chat_label {
    width: 85px;
}

.chat_input[type="text"] {
    max-width: 130px;
}

.chat_message_date {
    margin-bottom: 5px;
    font-size: 9px;
    color: #9ca3af;
}

.chat_username {
    font-weight: bold;
    line-height: 1.25rem;
    font-size: 10px;
    color: #60a5fa;
}

@keyframes move-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#chat-message-list {
    font-family: Verdana, serif;
    font-size: 10px;
    padding: 12px;
    color: #e5e7eb;
    background-color: #1f2937;
}

.chat_message {
    animation: move-up 0.5s ease-out;
    animation-fill-mode: forwards;
    overflow-wrap: break-word;
    color: #e5e7eb;
    margin-bottom: 8px;
}

