Ai_lip_sync / static /css /style.css
WebashalarForML's picture
Upload 96 files
c51a38f verified
raw
history blame
7.48 kB
/* static/css/style.css */
/* General Body Styles */
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
background-color: var(--background-color);
color: var(--text-color);
transition: background-color 0.3s ease, color 0.3s ease;
}
/* Theme Variables (important for dark/light mode) */
html[data-theme='dark'] {
--background-color: #1a1a2e; /* Dark blue/purple */
--card-background: #16213e; /* Slightly lighter dark blue */
--primary-color: #e94560; /* Vibrant red/pink */
--accent-color: #0f3460; /* Darker blue */
--text-color: #e0e0e0; /* Light grey */
--border-color: #3e204c; /* Darker border */
--shadow: rgba(0, 0, 0, 0.4);
}
html[data-theme='light'] {
--background-color: #f0f2f5; /* Light grey */
--card-background: #ffffff; /* White */
--primary-color: #e94560; /* Vibrant red/pink */
--accent-color: #4CAF50; /* Green */
--text-color: #333333; /* Dark grey */
--border-color: #cccccc; /* Light grey border */
--shadow: rgba(0, 0, 0, 0.1);
}
/* Container for centering content */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header Styles */
.main-header {
background-color: var(--card-background);
color: var(--text-color);
padding: 15px 0;
box-shadow: 0 2px 10px var(--shadow);
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
color: var(--primary-color);
text-decoration: none;
font-size: 1.8em;
font-weight: bold;
transition: color 0.3s ease;
}
.logo:hover {
color: var(--accent-color);
}
/* --- FIX FOR NAV BAR STARTS HERE --- */
.main-nav ul {
list-style: none; /* Remove bullet points */
margin: 0;
padding: 0;
display: flex; /* Make list items display in a row */
gap: 25px; /* Space between navigation items */
}
.main-nav li a {
color: var(--text-color);
text-decoration: none;
font-weight: 500;
padding: 8px 12px;
border-radius: 5px;
transition: color 0.3s ease, background-color 0.3s ease;
}
.main-nav li a:hover {
color: var(--primary-color);
background-color: rgba(255, 255, 255, 0.1); /* Subtle background on hover */
}
/* --- FIX FOR NAV BAR ENDS HERE --- */
/* Theme Toggle Button */
.theme-toggle {
background: none;
border: 2px solid var(--text-color);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
font-size: 1.2em;
color: var(--text-color);
transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.theme-toggle:hover {
background-color: var(--accent-color);
border-color: var(--accent-color);
color: #fff;
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
display: none; /* Hide both by default */
}
html[data-theme='light'] .theme-toggle .icon-moon {
display: block; /* Show moon icon in light mode */
}
html[data-theme='dark'] .theme-toggle .icon-sun {
display: block; /* Show sun icon in dark mode */
}
/* Main Content Area */
.main-content {
padding: 40px 0;
min-height: calc(100vh - 180px); /* Adjust based on header/footer height */
}
/* Footer Styles */
.main-footer {
background-color: var(--card-background);
color: var(--text-color);
text-align: center;
padding: 20px 0;
box-shadow: 0 -2px 10px var(--shadow);
}
.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.footer-content p {
margin: 0;
}
.social-links a {
color: var(--text-color);
font-size: 1.5em;
margin-left: 15px;
transition: color 0.3s ease;
}
.social-links a:hover {
color: var(--primary-color);
}
/* Animations and Utilities */
@keyframes fadeInScale {
from { opacity: 0; transform: scale(0.95); }
to { opacity: 1; transform: scale(1); }
}
.pulse {
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.02); }
100% { transform: scale(1); }
}
.hover-grow:hover {
transform: scale(1.02);
transition: transform 0.2s ease;
}
/* Flash message styling (moved from index.html for global use) */
.flash-messages {
list-style: none;
padding: 0;
margin: 20px auto; /* Center the list */
text-align: center;
max-width: 600px; /* Optional: limit width */
}
.flash-messages li {
padding: 12px 25px;
margin-bottom: 10px;
border-radius: 8px;
font-weight: 600;
display: inline-block; /* Display messages inline-block to allow centering */
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
animation: fadeInOut 0.5s ease forwards;
width: auto; /* Adjust width based on content */
max-width: 90%; /* Ensure it doesn't go too wide on small screens */
box-sizing: border-box; /* Include padding in width calculation */
}
.flash-messages .error {
background-color: #dc3545; /* Red */
color: #fff;
}
.flash-messages .success {
background-color: #28a745; /* Green */
color: #fff;
}
.flash-messages .info {
background-color: #007bff; /* Blue */
color: #fff;
}
.cta-button {
background-color: var(--accent-color); /* You might want a different color than download */
color: #fff;
padding: 12px 25px;
border: none;
border-radius: 5px;
font-size: 1.1em;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
font-weight: 600;
text-decoration: none; /* For the anchor tag */
display: inline-block;
margin-top: 20px;
}
.cta-button:hover {
background-color: var(--primary-color); /* Or another distinct hover color */
transform: translateY(-2px);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.cta-button:active {
transform: translateY(0);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
@keyframes fadeInOut {
0% { opacity: 0; transform: translateY(-10px); }
100% { opacity: 1; transform: translateY(0); }
}
/* Responsive Adjustments */
@media (max-width: 768px) {
.header-content {
flex-direction: column;
text-align: center;
}
.main-nav ul {
flex-direction: column; /* Stack nav items vertically on small screens */
gap: 10px; /* Adjust gap for vertical stacking */
margin-top: 15px;
}
.theme-toggle {
margin-top: 15px;
}
.footer-content {
flex-direction: column;
}
.social-links {
margin-top: 15px;
}
}
/* Styles from index.html (ensure they are either in style.css or copied) */
/*
If you had these in index.html, move them to style.css for global application
.inference-form { ... }
.inference-form h2 { ... }
.form-group { ... }
.form-group label { ... }
.form-group input[type="file"], .form-group select, .form-group input[type="number"] { ... }
.checkbox-group { ... }
.checkbox-group input[type="checkbox"] { ... }
.checkbox-group label { ... }
.submit-button { ... }
.loading-overlay { ... }
.spinner { ... }
@keyframes spin { ... }
*/