html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Helvetica, sans-serif;
    background-color: #1a1a1a;
    color: #eaeaea;
}

.container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    flex-grow: 1;
    background-color: #212121;
    display: flex;
    flex-direction: column;
    color: white;
}

.chat-header, .chat-footer, .chat-content {
    width: 100%;
}

.chat-header {
    padding: 10px;
    text-align: center;
    background-color: #212121;
    color: white;
    margin-top: 10px;
}

.chat-header h1 {
    margin: 0;
    font-size: 24px;
    line-height: 50px;
}

.chat-content {
    flex: 1;
    max-width: 80%;
    margin: auto;
    padding: 10px;
    overflow-y: auto;
    background-color: #212121;
    color: white;
    font-size: 14px;
}

.user-message, .able-message, .openai-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.user-message .profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0px;
    margin-left: 10px;
    border: 0.2px solid white;
}

.able-message .profile-pic, .openai-message .profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    margin-left: 0px;
    border: 0.2px solid white;
}

.user-message {
    justify-content: flex-end;
    margin-bottom: 40px; /* Adds space between user and ABLE messages */
}

.able-message {
    justify-content: flex-start;
    margin-top: 40px; /* Adds space between ABLE and user messages */
}

.openai-message {
    justify-content: flex-start;
    margin-top: 40px; /* Adds space between OpenAI and user messages */
}

.message-bubble {
    padding: 10px;
    border-radius: 10px;
    max-width: 50%;
}

.openai-message-bubble {
    padding: 10px;
    border-radius: 10px;
    max-width: 50%;
    word-wrap: break-word;
    white-space: pre-wrap; /* Ensure long words are broken and wrap within the bubble */
}

.openai-message-bubble pre {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    max-width: 100%;
}

.openai-message-bubble code {
    background-color: #f8f8f8;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    white-space: pre-wrap; /* Ensure inline code blocks wrap within the bubble */
    word-wrap: break-word;
}

.user-bubble {
    background-color: #2c2c2c;
}

.able-bubble {
    background-color: #171717;
}

.typing-indicator {
    padding-top: 10px;
    justify-content: flex-start;
    max-width: 80%;
}

#chatInput {
    flex: 1;
    overflow: hidden;
    resize: none;
    font-family: inherit; /* Use the same font as before */
    padding: 8px;
    border: 1px solid #444444;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #2c2c2c;
    color: white;
    outline: none;
    min-height: 33px; /* Ensure minimum height to match initial size */
    max-height: 25vh;
}

.chat-footer {
    display: flex;
    align-items: flex-end; /* Align items to the bottom */
    padding: 10px;
    max-width: 80%;
    margin: auto;
    background-color: #212121;
}

#sendButton {
    margin-left: 8px;
    padding: 8px 12px;
    background-color: #3a3a3a;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 400;
    height: 33px; /* Fix the button height */
    align-self: flex-end; /* Align button to the bottom of its container */
}

#sendButton.active {
    cursor: pointer;
    background-color: white;
    color: #212121;
    font-weight: 600;
}

#sendButton.active:hover {
    background-color: #eaeaea;
}

.chat-disclaimer {
    text-align: center;
    font-size: 12px;
    color: #b0b0b0;
    margin-top: 2px;
    margin-bottom: 10px;
}

/* Customize scrollbar for WebKit browsers (Chrome, Safari) */
.chat-content::-webkit-scrollbar {
    width: 0; /* Set the width of the scrollbar to 0 */
    background: transparent; /* Make the scrollbar background transparent */
}

/* Handle portion of the scrollbar */
.chat-content::-webkit-scrollbar-thumb {
    background-color: transparent; /* Set the color of the scrollbar handle to transparent */
}

/* Track portion of the scrollbar */
.chat-content::-webkit-scrollbar-track {
    background: transparent; /* Set the background color of the scrollbar track to transparent */
}

/* Customize scrollbar for Firefox */
* {
    scrollbar-color: transparent transparent; /* Set the color of the scrollbar thumb and track to transparent */
    scrollbar-width: none; /* Hide the scrollbar in Firefox */
}

/* Media Queries for responsive design */
@media (max-width: 1220px) { /* Latest mobile phones */
    .chat-header h1 {
        font-size: 20px;
    }

    .chat-container {
        height: 100vh; /* Ensure the chat container takes full height on latest mobile phones */
    }

    .chat-content, .chat-footer {
        max-width: 90%;
    }

    .user-message, .able-message, .openai-message {
        margin-bottom: 20px;
    }

    .user-message {
        margin-bottom: 20px; /* Adds space between user and ABLE messages */
    }

    .able-message, .openai-message {
        margin-top: 20px; /* Adds space between ABLE and user messages */
    }

    .message-bubble {
        max-width: 60%;
    }

    #sendButton {
        margin-left: 5px;
        padding: 8px 10px;
    }

    .addMessageFromABLE {
        margin-bottom: 10px; /* Set margin-bottom to 10px for addMessageFromABLE */
    }

    .followUpMessageDiv {
        margin-top: 10px; /* Set margin-top to 10px for followUpMessageDiv */
    }
}

@media (max-width: 1200px) { /* Latest tablets */
    .chat-header h1 {
        font-size: 20px;
    }

    .chat-container {
        height: 100vh; /* Ensure the chat container takes full height on latest tablets */
    }

    .chat-content, .chat-footer {
        max-width: 90%;
    }

    .user-message, .able-message, .openai-message {
        margin-bottom: 20px;
    }

    .user-message {
        margin-bottom: 20px; /* Adds space between user and ABLE messages */
    }

    .able-message, .openai-message {
        margin-top: 20px; /* Adds space between ABLE and user messages */
    }

    .message-bubble {
        max-width: 60%;
    }

    #sendButton {
        margin-left: 5px;
        padding: 8px 10px;
    }

    .addMessageFromABLE {
        margin-bottom: 10px; /* Set margin-bottom to 10px for addMessageFromABLE */
    }

    .followUpMessageDiv {
        margin-top: 10px; /* Set margin-top to 10px for followUpMessageDiv */
    }
}

@media (max-width: 768px) { /* Tablet */
    .chat-header h1 {
        font-size: 20px;
    }

    .chat-container {
        height: 100vh; /* Ensure the chat container takes full height on tablets */
    }

    .chat-content, .chat-footer {
        max-width: 90%;
    }

    .user-message, .able-message, .openai-message {
        margin-bottom: 20px;
    }

    .user-message {
        margin-bottom: 20px; /* Adds space between user and ABLE messages */
    }

    .able-message, .openai-message {
        margin-top: 20px; /* Adds space between ABLE and user messages */
    }

    .message-bubble {
        max-width: 60%;
    }

    .addMessageFromABLE {
        margin-bottom: 10px; /* Set margin-bottom to 10px for addMessageFromABLE */
    }

    .followUpMessageDiv {
        margin-top: 10px; /* Set margin-top to 10px for followUpMessageDiv */
    }
}

@media (max-width: 720px) { /* Phone */
    .chat-header h1 {
        font-size: 18px;
    }

    .chat-container {
        height: 100vh; /* Ensure the chat container takes full height on phones */
    }

    .chat-content, .chat-footer {
        max-width: 90%;
    }

    .user-message, .able-message, .openai-message {
        margin-bottom: 20px;
    }

    .user-message {
        margin-bottom: 20px; /* Adds space between user and ABLE messages */
    }

    .able-message, .openai-message {
        margin-top: 20px; /* Adds space between ABLE and user messages */
    }

    .message-bubble {
        max-width: 60%;
    }

    #sendButton {
        margin-left: 5px;
        padding: 8px 10px;
    }

    .addMessageFromABLE {
        margin-bottom: 10px; /* Set margin-bottom to 10px for addMessageFromABLE */
    }

    .followUpMessageDiv {
        margin-top: 10px; /* Set margin-top to 10px for followUpMessageDiv */
    }
}