/* Reset and Basic Setup */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Containers */
.container {
    width: 100%;
}

/* Navigation (Sticky Header) */
.nav {
    width: 100%;
    height: 60px;
    background-color: #0056b3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #0056b3;
}

.nav a:hover {
    background-color: #003f7f;
}

/* Flash Messages Section */
.msgs {
    width: 100%;
    text-align: center;
    background-color: #f4f4f4;
    padding: 10px 0;
}

.flashes {
    padding: 0;
    list-style-type: none;
    margin: 0;
}

.flashes li {
    font-size: 1em;
    color: #333;
}

/* Main Content Area */
.content {
    width: 80%; /* Set the width to 80% */
    margin: 0 auto; /* Center the content horizontally */
    flex: 1;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Start content from the top */
    text-align: center;
    
}

.content h1, .content p, .content div {
    text-align: center;
}

/* Footer Styles */
.footer {
    width: 100%;
    height: 50px;
    background-color: #0056b3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
}

/* Menu */
.menu {
    background-color: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.menu ul li {
    display: inline;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #0056b3;
}

.menu ul li a:hover {
    background-color: #003f7f;
}

/* Chat Section */
.chat-container {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin-top: 20px; /* Space between menu and chat */
}

.chat-box {
    border: 1px solid #ccc;
    padding: 10px;
    height: 400px;
    overflow-y: auto;
    background: #f9f9f9;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

#user-input {
    width: 100%;
    height: auto; /* Allow dynamic height */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical; /* Allow vertical resizing */
    box-sizing: border-box;
}

/* Messages */
.user-message, .assistant-message {
    padding: 8px;
    border-radius: 5px;
    margin: 5px 0;
    max-width: 70%; /* Limit width for readability */
    white-space: pre-wrap; /* Preserve whitespace and line breaks */
}

.user-message {
    align-self: flex-end;
    text-align: right;
    background-color: #d1e7dd;
}

.assistant-message {
    align-self: flex-start;
    text-align: left;
    background-color: #f8d7da;
}

/* Forms */
#chat-form {
    display: flex;
    gap: 10px;
}

    .example-question-btn {
        display: flex; /* Use flexbox for centering content */
        justify-content: center; /* Horizontally center text */
        align-items: center; /* Vertically center text */
        margin: 5px auto; /* Add vertical spacing and auto horizontal centering */
        padding: 10px; /* Adjust padding for consistent spacing */
        border: 1px solid #ccc;
        background: #ffffff;
        cursor: pointer;
        border-radius: 5px;
        text-align: center; /* Fallback for non-flexbox browsers */
        width: 90%; /* Set a consistent width for buttons */
        height: 60px; /* Set a consistent height for buttons */
        box-sizing: border-box; /* Include padding and border in width/height calculations */
    }

    .example-question-btn:hover {
        background: #f0f0f0;
    }


