This repository has been archived on 2024-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
ai-virtual-assistant/py/static/styles.css
2024-09-16 17:08:09 +02:00

336 lines
No EOL
7.5 KiB
CSS

/* Color Variables */
:root {
--background-color: white;
--text-color: white;
--font-family: Arial, sans-serif;
--history-background-color: rgb(0, 0, 48);
--models-background-color: rgb(0, 0, 48);
--code-model-color: red;
--math-model-color: green;
--language-model-color: blue;
--default-model-color: yellow;
--custom-model-color: purple;
--output-background-color: rgb(0, 0, 48);
--user-message-color: rgb(0, 128, 255);
--ai-message-color: rgb(100, 100, 255);
--input-background-color: rgb(0, 0, 48);
--input-button-color: rgb(0, 128, 255);
--input-button-hover-color: rgb(0, 100, 200);
}
/* Global Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100vh;
overflow: hidden; /* Prevent scrolling */
}
/* Body Styling */
body {
margin-top: 1em;
display: flex;
justify-content: center;
align-items: center;
background-color: var(--background-color);
color: var(--text-color);
font-family: var(--font-family);
}
header {
background-color: var(--background-color); /* Use the background color variable */
color: black; /* Use the text color variable */
width: 100%;
text-decoration: none;
position: fixed;
top: 0;
left: 0;
padding: 10px 20px; /* Add some padding for spacing */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
z-index: 1000; /* Ensure the header is above other content */
font-family: var(--font-family); /* Use the font family variable */
}
header li {
display: inline-block;
margin: 0 15px; /* Add spacing between list items */
}
header img {
height: 2em;
vertical-align: middle; /* Align image with text */
}
header a {
color: black; /* Ensure links are white */
text-decoration: none; /* Remove underline from links */
transition: color 0.3s; /* Smooth transition for hover effect */
}
header a:hover {
color: var(--input-button-color); /* Change color on hover for better interaction */
}
/* Container Grid Layout */
.container {
display: grid;
grid-template-columns: 1fr 3fr;
grid-template-rows: 1fr 1fr 0.5fr;
gap: 10px;
width: 90vw;
height: 90vh;
}
/* History Section */
.history {
grid-column: 1;
grid-row: 1;
border-radius: 2em;
background-color: var(--history-background-color);
padding: 1em;
overflow-y: auto;
height: 50vh; /* Adjusted to occupy 60% of the viewport height */
}
.history ul {
list-style: none;
}
.history ul li {
padding: 10px 0;
border-bottom: 1px solid var(--text-color);
width: 100%;
}
.history ul li a{
display: block;
text-decoration: none;
color: white;
width: 100%;
padding: 5px;
}
.history ul li a:hover{
background-color: var(--input-button-hover-color);
}
/* Models Section */
.models {
background-color: var(--models-background-color);
border-radius: 2em;
padding: 1em;
height: 40vh; /* Adjusted height to occupy 40% of the viewport height */
}
.models h3 {
padding: 2px;
margin: 5px;
}
.models .title h3 {
padding: 2px;
margin: 5px;
padding-bottom: 1em;
}
.grid{
grid-column: 1;
grid-row: 2;
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 1em;
}
.ai-class {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.circle {
width: 50px;
height: 50px;
border-radius: 50%;
cursor: pointer;
transition: transform 0.2s;
}
.circle:hover {
transform: scale(1.1);
}
/* Model Colors */
.code-model {
background-color: var(--code-model-color);
}
.math-model {
background-color: var(--math-model-color);
}
.language-model {
background-color: var(--language-model-color);
}
.default-model {
background-color: var(--default-model-color);
}
.custom-model {
background-color: var(--custom-model-color);
}
/* Output Section */
.output {
grid-column: 2;
grid-row: 1 / span 2;
border-radius: 2em;
background-color: var(--output-background-color);
padding: 1em;
display: flex;
flex-direction: column;
justify-content: flex-start;
font-size: 1.2em;
overflow-y: scroll;
height: 80vh;
margin-bottom: 0;
}
/* Conversation */
.conversation {
width: 100%;
}
.md {
display: block;
width: 100%;
}
.user-message {
background-color: var(--user-message-color);
padding: 10px;
border-radius: 10px;
margin-bottom: 10px;
align-self: flex-end;
text-align: right;
}
.ai-message {
background-color: var(--ai-message-color);
padding: 10px;
border-radius: 10px;
margin-bottom: 10px;
align-self: flex-start;
}
/* Input Section */
.input {
grid-column: 2;
grid-row: 3;
border-radius: 2em;
background-color: var(--input-background-color);
padding: 1em;
display: flex;
justify-content: space-between;
align-items: center;
height: 10vh;
margin-top: -7em;
}
.input input {
flex-grow: 1;
padding: 10px;
font-size: 1.2em;
border-radius: 5px;
border: none;
margin-right: 10px;
}
.input button {
padding: 10px 20px;
background-color: var(--input-button-color);
color: white;
border: none;
border-radius: 5px;
font-size: 1em;
cursor: pointer;
height: 3em;
margin: 5px;
}
.input button img {
height: 100%;
}
.input button:hover {
background-color: var(--input-button-hover-color);
}
/* Form styling */
#contactForm {
max-width: 600px;
margin: 0 auto;
background: var(--input-background-color); /* Use the input background color variable */
padding: 20px;
border-radius: 2em; /* Match the border radius used in other sections */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}
#contactForm label {
color: var(--text-color); /* Use the text color variable */
display: block; /* Ensure labels are block elements */
margin-bottom: 5px; /* Add some space below labels */
}
#contactForm input,
#contactForm textarea {
color: var(--text-color); /* Use the text color variable */
background-color: var(--history-background-color); /* Use a contrasting background */
border: 1px solid var(--input-button-color); /* Use the input button color for borders */
border-radius: 4px;
width: 100%;
padding: 10px;
margin-bottom: 15px;
}
#contactForm button {
background-color: var(--input-button-color); /* Use the input button color */
color: var(--background-color); /* Use the background color for text */
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s; /* Smooth transition for hover effect */
}
#contactForm button:hover {
background-color: var(--input-button-hover-color); /* Use the hover color variable */
}
/* FAQ Section */
#faq {
max-width: 800px;
width: 90%;
margin-top: 50px;
padding: 20px;
background-color: #222;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
#faq h2 {
text-align: center;
color: #00ccff;
font-size: 2em;
margin-bottom: 20px;
}
.faq-item {
margin-bottom: 20px;
padding: 10px;
border-radius: 5px;
background-color: #333;
}
.faq-item h3 {
color: #00ccff;
margin-bottom: 10px;
font-size: 1.5em;
}
.faq-item p {
color: #ddd;
font-size: 1.1em;
line-height: 1.5;
}
/* Add some hover effects for the FAQ items */
.faq-item:hover {
background-color: #444;
transition: background-color 0.3s;
}