body {
    font-family: 'Roboto', sans-serif;
    background-color: #131314;
    color: #e3e3e3;
    margin: 0;
    padding: 20px;
}


header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

header img.logo {
    width: 150px;
    vertical-align: middle;
}

header h1 {
    font-weight: 500;
    color: #c792ea;
    /* A nice purple for the title */
}

a{
	text-decoration: none;
}

.container{
	max-width: 1024px;
	margin: auto;
	display: flex;
	flex-flow: row;
	gap: 10px;
}

.intro{
	background-color: #f1f1d1;
	color: #101010;
    border-bottom-left-radius: 4px;
	
	padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.6;
	text-align: left;
}

.intro-content{
}

.col-2{
	display: inline-block;
	min-width: 25%;
}

.col-10{
	display: inline-block;
	min-width: 75%;
}



.align-center{
	justify-content: center;
}

.align-left{
	justify-content: start;
}

/* Style for the total token count in the header */
#total-tokens {
    font-size: 0.9em;
    color: #9e9e9e;
    margin-top: 15px;
}

.chat-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#loading-msg{
	color: #fafafa;
	text-align: center;
}

/* A new container to group the message content and its footer */
.bubble-container {
    display: flex;
    flex-direction: column;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    flex-shrink: 0;
}

.message-content {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.6;
}

/* User-specific styles */
.message.user {
    justify-content: flex-end;
    /* Align user messages to the right */
}

.message.user .avatar {
    background-color: #2c3e50;
    order: 2;
    /* Move avatar to the right */
}

.message.user .message-content {
    background-color: #2d3855;
    border-bottom-right-radius: 4px;
    order: 1;
    /* Move content to the left */
}

/* Model (AI) specific styles */
.message.model {
    justify-content: flex-start;
    /* Align AI messages to the left */
}

.message.model .avatar {
    background-color: #8e44ad;
}

.message.model .message-content {
    background-color: #27282b;
    border-bottom-left-radius: 4px;
}

/* Styling for content inside the bubbles */
.message-content p {
    margin-top: 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul,
.message-content ol {
    padding-left: 20px;
}

.message-content a {
    color: #89b4f8;
    text-decoration: none;
}

.message-content a:hover {
    text-decoration: underline;
}

/* Code block styling */
.message-content pre {
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

/* Styling for the footer of each message bubble */
.message-footer {
    font-weight: bold;
}
