Files
website/static/css/neural-network-background.css

217 lines
5.5 KiB
CSS

/* Neural Network Background CSS */
/* Make sure the neural network background is always visible */
#neural-network-background {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
z-index: -10 !important; /* Below content but above regular background */
pointer-events: none !important;
opacity: 1 !important;
}
/* Override any solid background colors for the body */
body, body.dark {
background-color: transparent !important;
}
/* Make sure any background color is removed */
html.dark, html {
background-color: transparent !important;
}
/* Make sure any fixed backgrounds are removed */
#app-container {
background-color: transparent !important;
}
/* Ensure content is properly visible over the background */
.glass-morphism {
background-color: rgba(17, 24, 39, 0.6) !important;
backdrop-filter: blur(5px) !important;
}
/* Dark Mode - Navbar */
body.dark .glass-navbar-dark {
background-color: rgba(10, 14, 25, 0.7) !important;
}
/* Light Mode - Verbesserter Navbar */
body .glass-navbar-light {
background-color: rgba(255, 255, 255, 0.92) !important;
backdrop-filter: blur(10px) !important;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
border-bottom: 1px solid rgba(220, 220, 220, 0.5) !important;
}
/* Light Mode - Verbesserte Lesbarkeit für Navbar-Elemente */
body:not(.dark) .navbar-link,
body:not(.dark) .navbar-item {
color: #1e3a8a !important; /* Dunkles Blau für bessere Lesbarkeit */
}
body:not(.dark) .navbar-link:hover,
body:not(.dark) .navbar-item:hover {
color: #4f46e5 !important; /* Helles Lila beim Hover */
background-color: rgba(240, 245, 255, 0.9) !important;
}
/* Light Mode - Buttons verbessert */
body:not(.dark) .btn,
body:not(.dark) button {
background-color: #3b82f6 !important; /* Klares Blau statt Grau */
color: white !important;
border: none !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}
body:not(.dark) .btn:hover,
body:not(.dark) button:hover {
background-color: #4f46e5 !important; /* Lila beim Hover */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12) !important;
}
/* Verbesserte Karten im Light Mode */
body:not(.dark) .card,
body:not(.dark) .panel {
background-color: rgba(255, 255, 255, 0.92) !important;
border: 1px solid rgba(220, 220, 220, 0.8) !important;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}
/* Verbesserte Lesbarkeit für Text im Light Mode */
body:not(.dark) {
color: #1e293b !important; /* Dunkles Blau-Grau statt Schwarz */
}
body:not(.dark) h1,
body:not(.dark) h2,
body:not(.dark) h3,
body:not(.dark) h4,
body:not(.dark) h5,
body:not(.dark) h6 {
color: #0f172a !important; /* Fast schwarz für Überschriften */
}
/* Make sure footer has proper transparency and styling */
body.dark footer {
background-color: rgba(10, 14, 25, 0.7) !important;
}
body:not(.dark) footer {
background-color: rgba(249, 250, 251, 0.92) !important;
border-top: 1px solid rgba(220, 220, 220, 0.8) !important;
}
/* Neural Network Background für Dark & Light Mode */
.neural-network-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
overflow: hidden;
opacity: 0.8;
transition: opacity 0.5s ease;
}
.neural-network-bg {
width: 100%;
height: 100%;
}
/* Dark Mode Netzwerk-Hintergrund */
.dark .neural-network-container {
opacity: 0.5;
}
.dark .neural-network-bg .node {
fill: rgba(139, 92, 246, 0.4);
transition: fill 0.3s ease;
}
.dark .neural-network-bg .link {
stroke: rgba(139, 92, 246, 0.15);
transition: stroke 0.3s ease;
}
/* Light Mode Netzwerk-Hintergrund */
body:not(.dark) .neural-network-container {
opacity: 0.25;
}
body:not(.dark) .neural-network-bg .node {
fill: rgba(124, 58, 237, 0.35);
filter: drop-shadow(0 0 3px rgba(124, 58, 237, 0.2));
transition: all 0.3s ease;
}
body:not(.dark) .neural-network-bg .node:hover {
fill: rgba(124, 58, 237, 0.5);
filter: drop-shadow(0 0 5px rgba(124, 58, 237, 0.3));
}
body:not(.dark) .neural-network-bg .link {
stroke: rgba(124, 58, 237, 0.15);
stroke-width: 1.25;
filter: drop-shadow(0 0 1px rgba(124, 58, 237, 0.1));
transition: all 0.3s ease;
}
body:not(.dark) .neural-network-bg .link:hover {
stroke: rgba(124, 58, 237, 0.3);
stroke-width: 1.5;
}
/* Animationen für das Netzwerk */
@keyframes pulse {
0% { opacity: 0.7; }
50% { opacity: 1; }
100% { opacity: 0.7; }
}
@keyframes float {
0% { transform: translateY(0); }
50% { transform: translateY(-5px); }
100% { transform: translateY(0); }
}
.neural-network-bg .node {
animation: pulse 3s infinite ease-in-out;
}
.neural-network-bg .link {
animation: pulse 4s infinite ease-in-out;
}
/* Speziell für den Light Mode leicht pulsierende Knoten */
body:not(.dark) .neural-network-bg .node {
animation: pulse 4s infinite ease-in-out, float 6s infinite ease-in-out;
animation-delay: calc(var(--node-index, 0) * 0.2s);
}
/* Responsives Verhalten */
@media (max-width: 768px) {
.neural-network-container {
opacity: 0.2; /* Auf mobilen Geräten etwas dezenter */
}
body:not(.dark) .neural-network-bg .link {
stroke-width: 1;
}
}
/* Hover-Effekte für Desktop-Geräte */
@media (min-width: 1024px) {
body:not(.dark) .neural-network-container:hover {
opacity: 0.35;
}
.dark .neural-network-container:hover {
opacity: 0.6;
}
}