body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100dvh;
    background-color: #ededed;
    overflow-y: hidden;
}

h1 {
    text-align: center;
    margin: 0;
    padding: 10px;
    font-size: 22pt;
}

#full-container {
    height: 100dvh;
    overflow-y: hidden;
}

.input-container {
    display: flex;
    flex-direction: row;      /* Arrange children in a row */
    align-items: center;      /* Center items vertically */
    gap: 10px;                /* Add space between textarea and button */
    width: 100dvw;              /* Make the input container take full width */
    justify-content: center;  /* Center both textarea and button */
    padding-top: 20px;
}

#textInput {
    width: 75dvw;              /* Width of the textarea to ensure it's smaller */
    height: 50px;            /* Height of the textarea */
    font-size: 16px;
    padding: 10px;           /* Add padding for better appearance */
    resize: none;            /* Prevent resizing if desired */
    white-space: pre-wrap;   /* Preserve whitespace and allow wrapping */
    overflow-wrap: break-word;/* Break long words and wrap text */
    border: 1px solid #ccc;
    border-radius: 4px;
}

.chat-container {
    width: 85dvw;
    height: 63dvh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding: 20px;
    margin: 0 auto;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    max-width: 100%;        /* Set a maximum width for the message bubble */
    word-wrap: break-word; /* Ensure long words break correctly */
    white-space: pre-wrap; /* Preserve whitespace and allow wrapping */
    overflow-wrap: break-word; /* Handle wrapping for long words */
}

.user {
    background-color: #e1ffc7; /* Light green for user messages */
    align-self: flex-end;
}

.bot {
    background-color: #f0f0f0; /* Light gray for bot messages */
    align-self: flex-start;
}

button {
    height: 50px;             /* Match the height of the text area */
    padding: 0 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #333333;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    align-self: center;       /* Center the button vertically */
}

button:disabled {
    background-color: #cccccc;  /* Change to a light gray when disabled */
    cursor: not-allowed;         /* Change the cursor to indicate it's disabled */
}
