/* General Styles */
body {
    font-family: Arial, sans-serif;
}

/* Conversation Styles */
.conversation {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 150px); /* Adjust based on your header/footer height */
    overflow-y: auto;
    padding: 20px;
}
.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.user-message, .gpt-response {
    padding: 15px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}
.user-message {
    background-color: #e6f7ff;
    align-self: flex-end;
    text-align: left;
}
.gpt-response {
    background-color: #f0f0f0;
    align-self: flex-start;
    text-align: left;
    margin-top: 10px;
}
.message strong {
    display: block;
    margin-bottom: 5px;
}

/* Styling for code blocks */
.gpt-response pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 10px;
    overflow-x: auto;
    border-radius: 5px;
}
.gpt-response code {
    background-color: #2d2d2d;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Styling for blockquotes */
.gpt-response blockquote {
    border-left: 4px solid #ccc;
    margin: 1em;
    padding-left: 1em;
    color: #555;
}

/* Styling for tables */
.gpt-response table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}
.gpt-response table, .gpt-response th, .gpt-response td {
    border: 1px solid #ddd;
}
.gpt-response th, .gpt-response td {
    padding: 8px;
    text-align: left;
}

/* Styling for horizontal rules */
.gpt-response hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 1em 0;
}

/* Styling for headers */
.gpt-response h1,
.gpt-response h2,
.gpt-response h3,
.gpt-response h4,
.gpt-response h5,
.gpt-response h6 {
    margin: 1em 0 0.5em;
}

/* Styling for lists */
.gpt-response ul,
.gpt-response ol {
    margin: 1em 0;
    padding-left: 40px;
}

/* Styling for links */
.gpt-response a {
    color: #1a0dab;
    text-decoration: none;
}
.gpt-response a:hover {
    text-decoration: underline;
}

/* Styling for images */
.gpt-response img {
    max-width: 100%;
    height: auto;
}

/* Styling for inline code */
.gpt-response p code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Styling for horizontal lines */
.gpt-response hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
}

/* Keyboard Button Styling */
.gpt-response kbd {
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    padding: 2px 4px;
    font-size: 0.9em;
    font-family: Arial, sans-serif;
}
