@font-face {
    font-family: 'Futura Extra Black';
    src: url('../static/FuturaExtraBlackfont.ttf') format('truetype');
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    align-items: center; /* Center the chat container */
}

.chat-header {
    font-family: 'Futura Extra Black';
    background-color: #238273;
    color: #fff;
    padding: 20px;
    font-size: 24px;
    text-align: center;
    width: 100%;
    max-width: 600px; /* Limit the header width */
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center messages for better focus */
    width: 100%;
    max-width: 600px; /* Limit the chat messages width */
}

.input-container {
    display: flex;
    padding: 20px;
    background-color: #fff;
    width: 100%;
    max-width: 600px; /* Limit the input container width */
    border-top: 2px solid #ddd;
    align-items: center;
}

.input-field {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #ccc;
    border-radius: 25px;
    margin-right: 10px;
    font-size: 16px;
    outline: none;
}

.send-button {
    background-color: #238273;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 14px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.send-button:hover {
    background-color: #1e6d5f;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    margin: auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    width: 100%;
    font-size: 14px;
    color: #555;
    border-top: 2px solid #ddd;
}

.message {
    max-width: 80%;
    width: 100%;
    display: flex;
    margin-bottom: 10px;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    padding: 12px 18px;
    border-radius: 20px;
    display: inline-block;
    max-width: 60%;
    background-color: #e9e9e9;
    color: #333;
}

.user-message .message-content {
    background-color: #007bff;
    color: #fff;
}

.bot-message .message-content {
    background-color: #e9e9e9;
    color: #333;
}

.message-label {
    font-weight: bold;
    display: block;
}

.user-message .message-label {
    color: #007bff;
    text-align: right;
}

.bot-message .message-label {
    color: #238273;
    text-align: left;
}
