digitalhuman / interdisciplinary.css
atlury's picture
Upload 12 files
035bfeb verified
/* interdisciplinary.css */
/* Reset and Base Styles */
#interdisciplinary * {
box-sizing: border-box;
font-family: Arial, sans-serif;
}
/* Card Styling */
.interdisciplinary-card {
display: flex;
flex-direction: column; /* Changed from row to column */
gap: 20px;
background: linear-gradient(135deg, #ffffff, #f1f8e9);
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
padding: 25px;
margin: 25px auto;
transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.interdisciplinary-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
background: linear-gradient(135deg, #e0f7fa, #ffffff);
}
/* Flex Layout for Inter Options and Chat Window */
.inter-options {
display: flex;
flex-direction: row; /* Changed from column to row */
flex-wrap: wrap; /* Allows wrapping on smaller screens */
gap: 20px;
}
/* Ensure Inter Options takes up available horizontal space */
.inter-options {
width: 100%;
}
/* Chat Window Styling */
.chat-window {
flex: 2;
display: flex;
flex-direction: column;
gap: 20px;
}
/* Option Sections Styling */
.option-section {
background-color: #ffffff;
padding: 15px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
transition: background 0.3s, box-shadow 0.3s;
flex: 1; /* Allows each option section to take equal space */
min-width: 200px; /* Ensures a minimum width for each control */
}
.option-section:hover {
background-color: #f9f9f9;
}
/* Button Styling (Reused from Original) */
#interdisciplinary button {
background: linear-gradient(135deg, #00796B, #004D40);
border: none;
color: white;
padding: 12px 20px;
font-size: 1em;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#interdisciplinary button:hover:not(:disabled) {
background: linear-gradient(135deg, #005D56, #00332E);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#interdisciplinary button:disabled {
background: linear-gradient(135deg, #A5D6A7, #81C784);
cursor: not-allowed;
box-shadow: none;
}
/* Select Dropdown Styling (Reused from Original) */
#interdisciplinary select {
width: 100%;
padding: 10px 15px;
border: 1px solid #cccccc;
border-radius: 8px;
font-size: 1em;
background-color: #ffffff;
transition: border-color 0.3s, box-shadow 0.3s;
margin-bottom: 15px;
}
#interdisciplinary select:focus {
border-color: #00796B;
box-shadow: 0 0 5px rgba(0, 121, 107, 0.5);
outline: none;
}
/* Speech Controls Styling */
#inter-speech-controls label {
display: block;
margin-bottom: 5px;
color: #555555;
font-weight: 500;
}
#inter-speech-controls input[type="range"] {
width: 100%;
margin-bottom: 15px;
}
/* Logs Container Styling */
#inter-logs-container {
display: flex;
flex-direction: column;
gap: 10px;
max-height: 200px; /* Set a maximum height for the logs container */
overflow: hidden; /* Hide any overflow to prevent the container from expanding */
}
#inter-logs {
flex: 1;
max-height: 200px; /* Adjust as needed */
border: 1px solid #e0e0e0;
border-radius: 12px;
overflow-y: auto; /* Enable vertical scrolling */
padding: 10px;
background-color: #f9f9f9;
font-size: 0.85em;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
#inter-clear-logs {
align-self: flex-end;
background: linear-gradient(135deg, #FF5252, #E53935);
border: none;
color: white;
padding: 8px 16px;
font-size: 0.9em;
cursor: pointer;
border-radius: 8px;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#inter-clear-logs:hover {
background: linear-gradient(135deg, #E53935, #D32F2F);
transform: scale(1.02);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* Chat Box Styling */
#inter-chat-box {
height: 500px;
border: 1px solid #e0e0e0;
border-radius: 12px;
overflow-y: auto;
padding: 20px;
background-color: #ffffff;
position: relative;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
margin-bottom: 20px;
}
/* Message Styling */
#interdisciplinary .message-container {
margin-bottom: 20px;
display: flex;
}
#interdisciplinary .message {
padding: 12px 18px;
border-radius: 20px;
max-width: 75%;
position: relative;
word-wrap: break-word;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
font-size: 0.95em;
line-height: 1.4;
background-color: #f1f8e9;
transition: background-color 0.3s, box-shadow 0.3s;
}
#interdisciplinary .user .message {
background: #DCF8C6;
border-bottom-right-radius: 0;
}
#interdisciplinary .assistant .message {
background: #e3f2fd;
border-bottom-left-radius: 0;
}
/* Chat Input Container Styling */
#inter-text-input-container {
display: flex;
gap: 10px;
}
#inter-text-input {
flex: 1;
padding: 10px 15px;
border: 1px solid #cccccc;
border-radius: 8px;
font-size: 1em;
background-color: #ffffff;
transition: border-color 0.3s, box-shadow 0.3s;
}
#inter-text-input:focus {
border-color: #00796B;
box-shadow: 0 0 5px rgba(0, 121, 107, 0.5);
outline: none;
}
#inter-submit-button {
background: linear-gradient(135deg, #00796B, #004D40);
border: none;
color: white;
padding: 10px 20px;
font-size: 1em;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#inter-submit-button:hover:not(:disabled) {
background: linear-gradient(135deg, #005D56, #00332E);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#inter-submit-button:disabled {
background: linear-gradient(135deg, #A5D6A7, #81C784);
cursor: not-allowed;
box-shadow: none;
}
/* Microphone and Stop Buttons Styling */
#inter-mic-container {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 20px;
}
#inter-start_button,
#inter-stop_button {
background: linear-gradient(135deg, #00796B, #004D40);
border: none;
color: white;
padding: 15px;
border-radius: 50%;
cursor: pointer;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
width: 60px;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
#inter-stop_button {
background: linear-gradient(135deg, #E53935, #D32F2F);
}
#inter-start_button::before,
#inter-stop_button::before {
content: '';
position: absolute;
width: 200%;
height: 200%;
background: rgba(255, 255, 255, 0.3);
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0);
border-radius: 50%;
transition: transform 0.5s ease-out;
}
#inter-start_button:active::before,
#inter-stop_button:active::before {
transform: translate(-50%, -50%) scale(1);
}
#inter-start_button:disabled,
#inter-stop_button:disabled {
background: linear-gradient(135deg, #A5D6A7, #81C784);
cursor: not-allowed;
box-shadow: none;
}
#inter-start_button:hover:not(:disabled),
#inter-stop_button:hover:not(:disabled) {
transform: scale(1.05);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
#inter-stop_button:hover:not(:disabled) {
background: linear-gradient(135deg, #D32F2F, #C62828);
}
/* Icon Styling */
.interdisciplinary .mic-icon,
.interdisciplinary .stop-icon {
width: 30px;
height: 30px;
transition: transform 0.3s;
fill: #ffffff;
}
/* Animation for Mic Icon */
.interdisciplinary .mic-animate {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
/* Chat Stats */
#inter-chat-stats {
font-size: 0.85em;
color: #555555;
text-align: center;
margin-top: 10px;
}
/* Hidden Class */
#interdisciplinary .hidden {
display: none;
}
/* Scrollbar Styling */
#inter-chat-box::-webkit-scrollbar,
#inter-logs::-webkit-scrollbar {
width: 8px;
}
#inter-chat-box::-webkit-scrollbar-track,
#inter-logs::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
#inter-chat-box::-webkit-scrollbar-thumb,
#inter-logs::-webkit-scrollbar-thumb {
background: #cccccc;
border-radius: 4px;
}
#inter-chat-box::-webkit-scrollbar-thumb:hover,
#inter-logs::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
/* Initialize Button Styling (Reused from Original) */
#inter-download {
flex: 0 0 auto;
background: linear-gradient(135deg, #00796B, #004D40);
border: none;
color: white;
padding: 10px 20px;
font-size: 1em;
border-radius: 8px;
cursor: pointer;
transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#inter-download:hover:not(:disabled) {
background: linear-gradient(135deg, #005D56, #00332E);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#inter-download:disabled {
background: linear-gradient(135deg, #A5D6A7, #81C784);
cursor: not-allowed;
box-shadow: none;
}
/* Configuration Info Styling */
#inter-configuration {
margin-top: 15px;
font-size: 0.9em;
color: #555555;
}
/* Responsive Grid Adjustments */
@media (max-width: 800px) {
.interdisciplinary-card {
flex-direction: column;
}
/* Adjust Logs Container Height for Smaller Screens */
#inter-logs-container {
max-height: 200px;
}
#inter-logs {
max-height: 150px;
}
/* Stack the option sections vertically on smaller screens */
.inter-options {
flex-direction: column;
}
.option-section {
min-width: 100%;
}
}