/* Set the main body background color */
body {
    background-color: #2c3e50; /* Dark grey-blue color */
    font-family: Arial, sans-serif; /* Optional: set a default font */
}

/* Center the chat-wrapper with a max-width and padding */
#chat-wrapper {
    margin: 400px auto 0 auto; /* 400px from the top, auto center horizontally */
    max-width: 500px;
    border-radius: 8px; /* Optional: rounded corners */
    padding: 20px; /* Add some padding inside the wrapper */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: add a slight shadow */
    background-color: rgba(255, 255, 255, 0.5); /* Background color with 50% opacity */
}

/* Base font size for chat messages */
.chat-message-wrapper {
    font-size: 0.9em;
}

/* Styles for the content box of each message */
.chat-content {
    border: 1px solid grey;
    border-radius: 7px;
    padding: 8px;
    word-wrap: break-word;
    box-shadow: inset 0 -3px 3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    background-color: white;
}

/* Styles for the name div */
.chat-name {
    width: 100px;
    font-weight: bold;
    text-align: right;
    padding-right: 10px;
    box-sizing: border-box;
}

/* General message styling */
.chat-message {
    clear: both;
    margin-bottom: 10px;
}

/* Loading indicator styling */
.chat-loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ccc;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
