body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 0;
    background: url('../img/background.jpg') repeat;
    background-size: cover;
    color: #333;
}

#chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

#input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5); /* 50% transparency */
    border-top: 1px solid #ccc;
}

#input-container input[type="text"],
#input-container select,
#input-container input[type="number"],
#input-container textarea {
    margin-right: 10px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#input-container textarea {
    flex-grow: 1; /* Take up the remaining space */
}

#input-container button {
    padding: 10px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#input-container button i {
    margin-right: 5px;
}

.message {
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: rgba(255, 255, 255, 0.6); /* Semi-transparent background */
}

.user-message {
    background-color: rgba(225, 245, 254, 0.6); /* Semi-transparent background */
    align-self: flex-end;
}

.bot-message {
    background-color: rgba(241, 248, 233, 0.6); /* Semi-transparent background */
    align-self: flex-start;
}

.code-block {
    background-color: rgba(240, 240, 240, 0.6); /* Semi-transparent background */
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-btn-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.copy-btn {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.copy-btn:hover {
    background-color: #0056b3;
}

.token-info {
    margin-left: 10px;
    font-size: 12px;
    color: #555;
}

#system-message {
    margin-right: 10px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
}

.system-message {
    background-color: rgba(255, 100, 100, 0.2); /* Semi-transparent background */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-style: italic;
    color: black; /* Solid black text */
}

.hover-title {
    position: relative;
    display: inline-block;
}

.hover-info {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.4em; /* Adjust the font size to be smaller */
    position: absolute;
    left: 0;
    top: 100%;
    background-color: rgba(50, 50, 50, 0.6); /* Optional: styling for better visibility */
    color: white; /* Optional: styling for better visibility */
    padding: 5px; /* Optional: styling for better visibility */
    border-radius: 3px; /* Optional: styling for better visibility */
}

.hover-title:hover .hover-info {
    visibility: visible;
    opacity: 1;
}

.system-message {
    background-color: rgba(255, 100, 100, 0.2); /* Semi-transparent background */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-style: italic;
    color: black; /* Solid black text */
}

.model-message {
    background-color: rgba(255, 100, 100, 0.2); /* Semi-transparent background */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-style: italic;
    color: black; /* Solid black text */
}
