Spaces:
Sleeping
Sleeping
File size: 10,555 Bytes
88d8038 60285d9 88d8038 9dad147 88d8038 9216df5 88d8038 9216df5 88d8038 9216df5 88d8038 476ceec 88d8038 0ad30f3 88d8038 9b665fc 7c5d39b 0ad30f3 8f2c695 88d8038 7c5d39b 9b665fc 88d8038 7c5d39b 88d8038 7c5d39b 9b665fc 88d8038 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 | /* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
NEUROVIE β GLOBAL
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
:root {
--nv-bg: #f7f2ec;
--nv-card: #fffdf8;
--nv-border: #e5d8c7;
--nv-accent: #f38a6b;
--nv-accent-soft: #ffe4d4;
--nv-text-main: #262626;
--nv-text-muted: #6c6459;
--nv-radius-lg: 32px;
--nv-radius-md: 24px;
--nv-radius-sm: 18px;
}
/* Page layout */
.gradio-container {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
"Segoe UI", sans-serif;
background: radial-gradient(circle at top left, #fff6ee 0, #f7f2ec 50%, #f2ece6 100%);
max-width: 960px !important;
margin: 0 auto !important;
padding: 32px 0 40px 0;
position: relative;
}
/* Ambient blobs */
@keyframes nvBlobFloat {
0% {
transform: translate3d(0, 0, 0) scale(1);
opacity: 0.6;
}
50% {
transform: translate3d(10px, -8px, 0) scale(1.04);
opacity: 0.9;
}
100% {
transform: translate3d(0, 0, 0) scale(1);
opacity: 0.6;
}
}
.gradio-container::before,
.gradio-container::after {
content: "";
position: fixed;
width: 260px;
height: 260px;
border-radius: 999px;
z-index: -1;
filter: blur(3px);
animation: nvBlobFloat 14s ease-in-out infinite alternate;
}
.gradio-container::before {
top: -80px;
left: -60px;
background: radial-gradient(circle at 30% 30%, #ffd5c5, transparent 60%);
}
.gradio-container::after {
bottom: -120px;
right: -40px;
background: radial-gradient(circle at 70% 70%, #c3e4ff, transparent 60%);
animation-delay: 4s;
}
/* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
SHELL & TEXT
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.nv-shell {
background: var(--nv-card);
border-radius: var(--nv-radius-lg);
border: 1px solid var(--nv-border);
box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12),
0 1px 0 rgba(255, 255, 255, 0.8) inset;
padding: 26px 24px 22px;
animation: nvCardIn 500ms ease-out;
}
@keyframes nvCardIn {
0% {
opacity: 0;
transform: translateY(8px) scale(0.98);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.nv-badge {
font-size: 0.78rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--nv-text-muted);
}
.nv-title {
font-size: 1.9rem;
font-weight: 650;
margin-top: 4px;
}
.nv-subtitle {
font-size: 0.95rem;
color: var(--nv-text-muted);
margin-top: 6px;
margin-bottom: 18px;
}
.nv-note {
margin-top: 10px;
font-size: 0.78rem;
font-weight: 400;
letter-spacing: 0.03em;
text-transform: none;
color: rgba(15, 23, 42, 0.55);
text-align: center;
font-style: italic;
}
/* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
SECTIONS + LABELS
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.nv-section {
background: #fbf6ee;
border-radius: var(--nv-radius-md);
border: 1px solid #e6dac7;
padding: 16px 16px 14px;
margin-bottom: 14px;
}
.nv-label {
font-size: 0.78rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #a29078;
margin-bottom: 8px;
}
/* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
PILLS (radios)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.nv-pills label {
border-radius: 999px !important;
border: 1px solid #decfbb !important;
padding: 6px 11px !important;
font-size: 0.84rem !important;
background: #fdf8f1;
transition:
background 150ms ease,
transform 120ms ease,
box-shadow 120ms ease;
}
/* Center all radio pill groups */
.nv-pills {
display: flex !important;
justify-content: center !important;
gap: 10px;
}
/* Center the inner column for language, theme, category sections */
.nv-section > .gr-column,
.nv-section > .gr-row {
justify-content: center !important;
text-align: center;
}
.nv-pills input:checked + label {
background: linear-gradient(135deg, #ffe4d4, #ffd6c6) !important;
border-color: var(--nv-accent) !important;
color: var(--nv-text-main) !important;
box-shadow: 0 4px 10px rgba(243, 138, 107, 0.18);
transform: translateY(-1px);
}
/* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
BUTTON β card-game βbreathingβ + press animation
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
@keyframes nvPulse {
0% {
transform: translateY(0) scale(1);
box-shadow: 0 10px 22px rgba(243, 138, 107, 0.3);
}
50% {
transform: translateY(-1px) scale(1.02);
box-shadow: 0 14px 26px rgba(243, 138, 107, 0.4);
}
100% {
transform: translateY(0) scale(1);
box-shadow: 0 10px 22px rgba(243, 138, 107, 0.3);
}
}
/* Style the main Gradio button */
[data-testid="button"] > button {
border-radius: 999px !important;
padding: 10px 20px !important;
font-weight: 600 !important;
font-size: 0.96rem !important;
border: none !important;
background:
radial-gradient(circle at 0 0, #ffe4d4, transparent 55%),
linear-gradient(135deg, #f6a37d, #f38a6b) !important;
color: #fff !important;
animation: nvPulse 4s ease-in-out infinite;
transform-origin: center;
}
[data-testid="button"] > button:hover {
animation-duration: 1.4s;
}
[data-testid="button"] > button:active {
transform: translateY(1px) scale(0.99);
box-shadow: 0 6px 16px rgba(243, 138, 107, 0.35) !important;
}
/* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
CARD GRID + CARD ANIMATIONS
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
/* Fade-in for text when language changes */
@keyframes nvFadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
.nv-fade {
animation: nvFadeIn 220ms ease-out;
}
.nv-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
gap: 10px;
}
/* Deal-in animation (cards appearing) */
@keyframes nvCardDeal {
0% {
transform: translate3d(0, 16px, 0) rotate(-2deg) scale(0.7);
}
60% {
transform: translate3d(0, -4px, 0) rotate(1deg) scale(1.02);
}
100% {
transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}
}
@keyframes nvCardSlowFade {
0% {
opacity: 1;
}
100% {
opacity: 0.35; /* how βghostedβ a fully faded card looks */
}
}
/* Hover "lift" + subtle wiggle */
@keyframes nvCardHoverWiggle {
0% {
transform: translateY(0) rotate(0deg) scale(1);
}
50% {
transform: translateY(-3px) rotate(0.4deg) scale(1.02);
}
100% {
transform: translateY(-2px) rotate(0deg) scale(1.01);
}
}
.nv-card {
border-radius: var(--nv-radius-sm);
padding: 10px 11px;
font-size: 0.9rem;
border: 1px solid rgba(0, 0, 0, 0.03);
box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
opacity: 1;
transform: translateY(0) scale(1);
animation:
nvCardDeal 420ms ease-out forwards,
nvCardSlowFade 120s linear forwards;
cursor: default;
transition:
box-shadow 180ms ease,
transform 180ms ease,
opacity 240ms ease;
}
.nv-card:hover {
box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
transform: translateY(-4px) scale(1.03);
}
/* Category color themes */
.nv-card--cat-alimentation {
background: radial-gradient(circle at 0 0, #e3f7df 0, #ffffff 60%);
border-color: #c3e5bc;
}
.nv-card--cat-mouvement {
background: radial-gradient(circle at 0 0, #dbeeff 0, #ffffff 60%);
border-color: #b9d8ff;
}
.nv-card--cat-cerveau {
background: radial-gradient(circle at 0 0, #ffd6d6 0, #ffffff 60%);
border-color: #f7b6b6;
}
.nv-card--cat-liens {
background: radial-gradient(circle at 0 0, #ffead1 0, #ffffff 60%);
border-color: #f6d2a3;
}
.nv-card--cat-bien-etre {
background: radial-gradient(circle at 0 0, #ffe1f2 0, #ffffff 60%);
border-color: #f3c3e4;
}
.nv-card-title {
font-size: 0.72rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #7c6a9a;
margin-bottom: 4px;
}
/* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
HIDE GRADIO LOADING / QUEUE STATUS
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
[data-testid="queue-status"],
[data-testid="progress-bar"],
[data-testid="block-info"] {
display: none !important;
}
/* also hide HF footer for a cleaner "game" feel */
footer {
display: none !important;
}
/* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
MOBILE
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
@media (max-width: 640px) {
.nv-shell {
border-radius: 24px;
padding: 20px 16px 18px;
}
.nv-title {
font-size: 1.6rem;
}
.nv-section {
padding: 13px 12px 10px;
}
}
|