Spaces:
Runtime error
Runtime error
Update dna-slot-machine.html
Browse files- dna-slot-machine.html +756 -903
dna-slot-machine.html
CHANGED
|
@@ -3,9 +3,9 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>🧬 DNA CASINO -
|
| 7 |
<style>
|
| 8 |
-
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Bebas+Neue&display=swap');
|
| 9 |
|
| 10 |
* {
|
| 11 |
margin: 0;
|
|
@@ -16,18 +16,13 @@
|
|
| 16 |
body {
|
| 17 |
background: #000;
|
| 18 |
color: #fff;
|
| 19 |
-
font-family: '
|
| 20 |
overflow-x: hidden;
|
| 21 |
-
display: flex;
|
| 22 |
-
flex-direction: column;
|
| 23 |
-
align-items: center;
|
| 24 |
-
justify-content: flex-start;
|
| 25 |
min-height: 100vh;
|
| 26 |
position: relative;
|
| 27 |
-
padding-top: 10px;
|
| 28 |
}
|
| 29 |
|
| 30 |
-
/*
|
| 31 |
body::before {
|
| 32 |
content: '';
|
| 33 |
position: fixed;
|
|
@@ -38,738 +33,473 @@
|
|
| 38 |
background:
|
| 39 |
radial-gradient(circle at 20% 30%, #ff0066 0px, transparent 100px),
|
| 40 |
radial-gradient(circle at 80% 70%, #00ffff 0px, transparent 100px),
|
| 41 |
-
radial-gradient(circle at 50% 50%, #ffff00 0px, transparent 150px)
|
| 42 |
-
radial-gradient(circle at 30% 80%, #ff00ff 0px, transparent 80px),
|
| 43 |
-
radial-gradient(circle at 70% 20%, #00ff00 0px, transparent 90px);
|
| 44 |
opacity: 0.1;
|
| 45 |
z-index: 0;
|
| 46 |
animation: casinoLights 10s ease-in-out infinite;
|
| 47 |
}
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
50% { filter: hue-rotate(180deg) brightness(1.5); }
|
| 52 |
-
}
|
| 53 |
-
|
| 54 |
-
/* Static TV noise overlay */
|
| 55 |
-
body::after {
|
| 56 |
-
content: '';
|
| 57 |
position: fixed;
|
| 58 |
top: 0;
|
| 59 |
left: 0;
|
| 60 |
width: 100%;
|
| 61 |
height: 100%;
|
| 62 |
background-image:
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
rgba(255,255,255,0.08) 1px,
|
| 67 |
-
transparent 1px,
|
| 68 |
-
transparent 2px
|
| 69 |
-
),
|
| 70 |
-
repeating-linear-gradient(
|
| 71 |
-
90deg,
|
| 72 |
-
transparent 0px,
|
| 73 |
-
rgba(0,0,0,0.05) 1px,
|
| 74 |
-
transparent 1px,
|
| 75 |
-
transparent 2px
|
| 76 |
-
);
|
| 77 |
-
background-size: 2px 2px, 2px 2px;
|
| 78 |
pointer-events: none;
|
| 79 |
z-index: 1;
|
| 80 |
-
opacity: 0.8;
|
| 81 |
-
animation: staticNoise 0.1s steps(8) infinite;
|
| 82 |
-
}
|
| 83 |
-
|
| 84 |
-
@keyframes staticNoise {
|
| 85 |
-
0%, 100% { transform: translate(0, 0); }
|
| 86 |
-
50% { transform: translate(-1px, -1px); }
|
| 87 |
}
|
| 88 |
|
| 89 |
-
/* Main
|
| 90 |
-
.
|
| 91 |
-
background: linear-gradient(145deg, #1a0000, #330000);
|
| 92 |
-
border: 5px solid #ffd700;
|
| 93 |
-
border-radius: 30px;
|
| 94 |
-
padding: 20px;
|
| 95 |
-
padding-right: 120px;
|
| 96 |
-
box-shadow:
|
| 97 |
-
0 0 50px rgba(255, 215, 0, 0.5),
|
| 98 |
-
0 20px 40px rgba(0,0,0,0.8),
|
| 99 |
-
inset 0 0 30px rgba(255, 215, 0, 0.2);
|
| 100 |
-
width: 95vw;
|
| 101 |
-
max-width: 1400px;
|
| 102 |
position: relative;
|
| 103 |
z-index: 2;
|
|
|
|
|
|
|
|
|
|
| 104 |
}
|
| 105 |
|
| 106 |
-
/*
|
| 107 |
-
.
|
| 108 |
-
content: '';
|
| 109 |
-
position: absolute;
|
| 110 |
-
top: -10px;
|
| 111 |
-
left: -10px;
|
| 112 |
-
right: -10px;
|
| 113 |
-
bottom: -10px;
|
| 114 |
-
border-radius: 35px;
|
| 115 |
-
background: conic-gradient(
|
| 116 |
-
from 0deg,
|
| 117 |
-
#ff0000, #ff7700, #ffff00, #00ff00,
|
| 118 |
-
#0000ff, #ff00ff, #ff0000
|
| 119 |
-
);
|
| 120 |
-
z-index: -1;
|
| 121 |
-
animation: rotateGradient 3s linear infinite;
|
| 122 |
-
filter: blur(10px);
|
| 123 |
-
opacity: 0.7;
|
| 124 |
-
}
|
| 125 |
-
|
| 126 |
-
@keyframes rotateGradient {
|
| 127 |
-
0% { transform: rotate(0deg); }
|
| 128 |
-
100% { transform: rotate(360deg); }
|
| 129 |
-
}
|
| 130 |
-
|
| 131 |
-
/* Neon title */
|
| 132 |
-
.title {
|
| 133 |
text-align: center;
|
| 134 |
-
|
| 135 |
-
font-size: 4rem;
|
| 136 |
-
margin-bottom: 10px;
|
| 137 |
position: relative;
|
| 138 |
-
text-transform: uppercase;
|
| 139 |
-
letter-spacing: 0.2em;
|
| 140 |
}
|
| 141 |
|
| 142 |
-
.title
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
0 0 70px #ff00ff,
|
| 151 |
-
0 0 80px #ff00ff,
|
| 152 |
-
0 0 100px #ff00ff,
|
| 153 |
-
0 0 150px #ff00ff;
|
| 154 |
-
animation: neonFlicker 1.5s infinite alternate;
|
| 155 |
}
|
| 156 |
|
| 157 |
-
@keyframes
|
| 158 |
-
0%, 100% {
|
| 159 |
-
|
| 160 |
-
66% { opacity: 0.9; }
|
| 161 |
}
|
| 162 |
|
| 163 |
.subtitle {
|
| 164 |
-
|
| 165 |
-
font-size: 1.5rem;
|
| 166 |
-
color: #ffd700;
|
| 167 |
-
margin-bottom: 20px;
|
| 168 |
-
text-shadow: 0 0 10px #ffd700;
|
| 169 |
-
animation: pulse 2s ease-in-out infinite;
|
| 170 |
-
}
|
| 171 |
-
|
| 172 |
-
@keyframes pulse {
|
| 173 |
-
0%, 100% { transform: scale(1); }
|
| 174 |
-
50% { transform: scale(1.05); }
|
| 175 |
-
}
|
| 176 |
-
|
| 177 |
-
/* Jackpot counter */
|
| 178 |
-
.jackpot-display {
|
| 179 |
-
background: #000;
|
| 180 |
-
border: 3px solid #ffd700;
|
| 181 |
-
border-radius: 10px;
|
| 182 |
-
padding: 10px 20px;
|
| 183 |
-
margin: 10px auto;
|
| 184 |
-
text-align: center;
|
| 185 |
-
max-width: 400px;
|
| 186 |
-
box-shadow:
|
| 187 |
-
inset 0 0 20px rgba(255, 215, 0, 0.3),
|
| 188 |
-
0 0 20px rgba(255, 215, 0, 0.5);
|
| 189 |
-
}
|
| 190 |
-
|
| 191 |
-
.jackpot-label {
|
| 192 |
-
font-size: 0.9rem;
|
| 193 |
color: #ffd700;
|
|
|
|
| 194 |
text-transform: uppercase;
|
| 195 |
-
letter-spacing:
|
| 196 |
-
}
|
| 197 |
-
|
| 198 |
-
.jackpot-value {
|
| 199 |
-
font-size: 2rem;
|
| 200 |
-
color: #00ff00;
|
| 201 |
-
font-weight: bold;
|
| 202 |
-
text-shadow: 0 0 10px #00ff00;
|
| 203 |
-
font-family: 'Orbitron', monospace;
|
| 204 |
}
|
| 205 |
|
| 206 |
-
/*
|
| 207 |
-
.
|
| 208 |
display: flex;
|
| 209 |
justify-content: center;
|
| 210 |
-
margin:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
}
|
| 212 |
|
| 213 |
-
.
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
|
|
|
| 218 |
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 219 |
}
|
| 220 |
|
| 221 |
-
.
|
| 222 |
-
|
| 223 |
-
width: 0;
|
| 224 |
-
height: 0;
|
| 225 |
-
}
|
| 226 |
-
|
| 227 |
-
.toggle-slider {
|
| 228 |
position: absolute;
|
| 229 |
top: 0;
|
| 230 |
-
left:
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
background: linear-gradient(
|
| 234 |
-
|
| 235 |
-
border-radius: 40px;
|
| 236 |
-
transition: all 0.4s;
|
| 237 |
-
display: flex;
|
| 238 |
-
align-items: center;
|
| 239 |
-
justify-content: space-between;
|
| 240 |
-
padding: 0 10px;
|
| 241 |
-
box-shadow:
|
| 242 |
-
0 5px 15px rgba(0,0,0,0.5),
|
| 243 |
-
inset 0 2px 5px rgba(255,255,255,0.1);
|
| 244 |
}
|
| 245 |
|
| 246 |
-
.
|
| 247 |
-
|
| 248 |
-
font-weight: bold;
|
| 249 |
-
color: #888;
|
| 250 |
-
transition: all 0.3s;
|
| 251 |
-
z-index: 2;
|
| 252 |
}
|
| 253 |
|
| 254 |
-
.
|
| 255 |
-
|
|
|
|
| 256 |
}
|
| 257 |
|
| 258 |
-
|
| 259 |
-
|
|
|
|
|
|
|
| 260 |
}
|
| 261 |
|
| 262 |
-
.
|
| 263 |
-
|
| 264 |
-
position: absolute;
|
| 265 |
-
height: 32px;
|
| 266 |
-
width: 50px;
|
| 267 |
-
left: 4px;
|
| 268 |
-
bottom: 4px;
|
| 269 |
-
background: linear-gradient(145deg, #00ff00, #00cc00);
|
| 270 |
-
border-radius: 32px;
|
| 271 |
-
transition: all 0.4s;
|
| 272 |
-
box-shadow:
|
| 273 |
-
0 2px 10px rgba(0,255,0,0.5),
|
| 274 |
-
inset 0 -2px 5px rgba(0,0,0,0.3);
|
| 275 |
}
|
| 276 |
|
| 277 |
-
|
| 278 |
-
transform:
|
| 279 |
-
|
| 280 |
-
box-shadow:
|
| 281 |
-
0 2px 10px rgba(255,0,0,0.5),
|
| 282 |
-
inset 0 -2px 5px rgba(0,0,0,0.3);
|
| 283 |
}
|
| 284 |
|
| 285 |
-
|
| 286 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
}
|
| 288 |
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
display: flex;
|
| 294 |
-
align-items: center;
|
| 295 |
-
justify-content: center;
|
| 296 |
gap: 20px;
|
| 297 |
-
margin-
|
| 298 |
}
|
| 299 |
|
| 300 |
-
.
|
| 301 |
-
|
| 302 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 303 |
}
|
| 304 |
|
| 305 |
-
.
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
align-items: center;
|
| 309 |
-
justify-content: center;
|
| 310 |
-
width: 100px;
|
| 311 |
-
height: 100px;
|
| 312 |
-
cursor: pointer;
|
| 313 |
-
transition: all 0.3s ease;
|
| 314 |
}
|
| 315 |
|
| 316 |
-
.
|
| 317 |
-
|
| 318 |
-
|
|
|
|
| 319 |
}
|
| 320 |
|
| 321 |
-
|
| 322 |
-
|
| 323 |
width: 100%;
|
| 324 |
-
height:
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
inset -3px -3px 10px rgba(255,255,255,0.2);
|
| 331 |
-
display: flex;
|
| 332 |
-
align-items: center;
|
| 333 |
-
justify-content: center;
|
| 334 |
-
font-weight: bold;
|
| 335 |
-
font-size: 1.1rem;
|
| 336 |
-
color: #fff;
|
| 337 |
-
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
|
| 338 |
-
border: 8px dashed #fff;
|
| 339 |
-
animation: chipRotate 20s linear infinite;
|
| 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 |
-
background:
|
| 370 |
-
border:
|
| 371 |
-
border-radius:
|
| 372 |
padding: 20px;
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
inset 0 0 50px rgba(0,0,0,0.8),
|
| 377 |
-
0 0 30px rgba(255, 215, 0, 0.5);
|
| 378 |
-
overflow: visible;
|
| 379 |
-
margin: 20px 0;
|
| 380 |
}
|
| 381 |
|
| 382 |
-
.
|
|
|
|
|
|
|
|
|
|
| 383 |
display: flex;
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
padding: 5px 0;
|
| 387 |
-
justify-content: center;
|
| 388 |
-
flex-wrap: wrap;
|
| 389 |
-
max-width: 1200px;
|
| 390 |
-
margin: 0 auto;
|
| 391 |
-
background: linear-gradient(90deg,
|
| 392 |
-
transparent 0%,
|
| 393 |
-
rgba(255, 215, 0, 0.1) 50%,
|
| 394 |
-
transparent 100%);
|
| 395 |
}
|
| 396 |
|
| 397 |
-
.
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
border-radius: 3px;
|
| 403 |
-
overflow: hidden;
|
| 404 |
-
position: relative;
|
| 405 |
-
box-shadow:
|
| 406 |
-
inset 0 0 10px rgba(0,0,0,0.3),
|
| 407 |
-
0 0 5px rgba(255, 215, 0, 0.5);
|
| 408 |
}
|
| 409 |
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
transition: transform 0.5s ease-out;
|
| 414 |
}
|
| 415 |
|
| 416 |
-
.
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
justify-content: center;
|
| 421 |
-
font-size: 1.2rem;
|
| 422 |
-
font-weight: bold;
|
| 423 |
-
background: #ffffff;
|
| 424 |
-
text-shadow: 0 0 5px currentColor;
|
| 425 |
}
|
| 426 |
|
| 427 |
-
.
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
.nucleotide.G { color: #ffff00; background: #111100; }
|
| 431 |
-
|
| 432 |
-
/* Casino style lever */
|
| 433 |
-
.lever-container {
|
| 434 |
-
position: absolute;
|
| 435 |
-
right: -90px;
|
| 436 |
-
top: 50%;
|
| 437 |
-
transform: translateY(-50%);
|
| 438 |
-
z-index: 3;
|
| 439 |
-
width: 80px;
|
| 440 |
-
height: 250px;
|
| 441 |
}
|
| 442 |
|
| 443 |
-
.
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
}
|
| 449 |
|
| 450 |
-
.
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
inset 0 2px 5px rgba(255,255,255,0.5);
|
| 461 |
}
|
| 462 |
|
| 463 |
-
.
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
left: 10px;
|
| 467 |
-
width: 15px;
|
| 468 |
-
height: 100px;
|
| 469 |
-
background: linear-gradient(180deg, #c0c0c0, #808080);
|
| 470 |
-
border-radius: 8px;
|
| 471 |
-
box-shadow: 0 3px 10px rgba(0,0,0,0.5);
|
| 472 |
-
transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
| 473 |
}
|
| 474 |
|
| 475 |
-
.
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
left: 50%;
|
| 479 |
-
transform: translateX(-50%);
|
| 480 |
-
width: 80px;
|
| 481 |
-
height: 80px;
|
| 482 |
-
background: radial-gradient(circle at 35% 35%, #ff4444, #cc0000, #800000);
|
| 483 |
border-radius: 50%;
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
|
|
|
| 490 |
}
|
| 491 |
|
| 492 |
-
.
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
top: 50%;
|
| 496 |
-
left: 50%;
|
| 497 |
-
transform: translate(-50%, -50%);
|
| 498 |
-
font-size: 1.5rem;
|
| 499 |
-
font-weight: bold;
|
| 500 |
-
color: #ffd700;
|
| 501 |
-
text-shadow: 0 2px 4px rgba(0,0,0,0.8);
|
| 502 |
}
|
| 503 |
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
|
|
|
|
|
|
|
|
|
| 507 |
}
|
| 508 |
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
border:
|
| 513 |
-
padding:
|
| 514 |
-
font-size: 2rem;
|
| 515 |
-
font-weight: bold;
|
| 516 |
-
border-radius: 50px;
|
| 517 |
-
cursor: pointer;
|
| 518 |
-
text-transform: uppercase;
|
| 519 |
-
letter-spacing: 3px;
|
| 520 |
-
box-shadow:
|
| 521 |
-
0 10px 30px rgba(0,0,0,0.7),
|
| 522 |
-
0 0 30px rgba(255, 0, 0, 0.5),
|
| 523 |
-
inset 0 2px 10px rgba(255,255,255,0.3);
|
| 524 |
transition: all 0.3s ease;
|
| 525 |
-
color: #fff;
|
| 526 |
-
text-shadow: 0 3px 6px rgba(0,0,0,0.5);
|
| 527 |
position: relative;
|
| 528 |
overflow: hidden;
|
| 529 |
-
font-family: 'Bebas Neue', cursive;
|
| 530 |
}
|
| 531 |
|
| 532 |
-
.
|
| 533 |
content: '';
|
| 534 |
position: absolute;
|
| 535 |
top: -50%;
|
| 536 |
left: -50%;
|
| 537 |
width: 200%;
|
| 538 |
height: 200%;
|
| 539 |
-
background:
|
| 540 |
-
|
| 541 |
-
rgba(255,255,255,0.3) 50%,
|
| 542 |
-
transparent 70%);
|
| 543 |
-
animation: buttonShine 3s infinite;
|
| 544 |
-
}
|
| 545 |
-
|
| 546 |
-
@keyframes buttonShine {
|
| 547 |
-
0% { transform: rotate(0deg); }
|
| 548 |
-
100% { transform: rotate(360deg); }
|
| 549 |
}
|
| 550 |
|
| 551 |
-
|
| 552 |
-
transform:
|
| 553 |
-
|
| 554 |
-
0 15px 40px rgba(0,0,0,0.8),
|
| 555 |
-
0 0 50px rgba(255, 0, 0, 0.7);
|
| 556 |
}
|
| 557 |
|
| 558 |
-
.
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
background: linear-gradient(145deg, #444, #222);
|
| 564 |
-
cursor: not-allowed;
|
| 565 |
-
box-shadow: none;
|
| 566 |
-
animation: none;
|
| 567 |
-
}
|
| 568 |
-
|
| 569 |
-
/* Sequence display */
|
| 570 |
-
.sequence-display {
|
| 571 |
-
background: #000;
|
| 572 |
-
border: 3px solid #00ff00;
|
| 573 |
-
border-radius: 15px;
|
| 574 |
-
padding: 25px;
|
| 575 |
-
font-family: 'Orbitron', monospace;
|
| 576 |
-
font-size: 0.9rem;
|
| 577 |
-
letter-spacing: 2px;
|
| 578 |
-
width: 100%;
|
| 579 |
-
max-width: 1200px;
|
| 580 |
-
margin: 20px auto;
|
| 581 |
-
box-shadow:
|
| 582 |
-
0 0 30px rgba(0, 255, 0, 0.5),
|
| 583 |
-
inset 0 0 20px rgba(0, 255, 0, 0.1);
|
| 584 |
-
position: relative;
|
| 585 |
-
min-height: 100px;
|
| 586 |
-
word-wrap: break-word;
|
| 587 |
-
word-break: break-all;
|
| 588 |
-
white-space: pre-wrap;
|
| 589 |
-
overflow-wrap: break-word;
|
| 590 |
-
}
|
| 591 |
-
|
| 592 |
-
.sequence-display::before {
|
| 593 |
-
content: '🧬 SYNTHETIC REGULATORY ELEMENT';
|
| 594 |
-
position: absolute;
|
| 595 |
-
top: -15px;
|
| 596 |
-
left: 50%;
|
| 597 |
-
transform: translateX(-50%);
|
| 598 |
-
background: #000;
|
| 599 |
-
padding: 0 20px;
|
| 600 |
-
font-size: 0.8rem;
|
| 601 |
-
color: #00ff00;
|
| 602 |
-
letter-spacing: 3px;
|
| 603 |
-
text-shadow: 0 0 10px #00ff00;
|
| 604 |
}
|
| 605 |
|
| 606 |
-
/*
|
| 607 |
-
.
|
| 608 |
-
background:
|
| 609 |
-
border:
|
| 610 |
border-radius: 15px;
|
| 611 |
padding: 25px;
|
| 612 |
-
margin: 20px auto;
|
| 613 |
-
max-width: 1200px;
|
| 614 |
-
box-shadow:
|
| 615 |
-
0 0 30px rgba(0, 255, 255, 0.5),
|
| 616 |
-
inset 0 0 20px rgba(0, 255, 255, 0.1);
|
| 617 |
-
display: none;
|
| 618 |
-
animation: fadeIn 0.5s ease-in;
|
| 619 |
-
}
|
| 620 |
-
|
| 621 |
-
@keyframes fadeIn {
|
| 622 |
-
from { opacity: 0; transform: translateY(20px); }
|
| 623 |
-
to { opacity: 1; transform: translateY(0); }
|
| 624 |
}
|
| 625 |
|
| 626 |
-
.
|
| 627 |
-
display:
|
|
|
|
|
|
|
|
|
|
| 628 |
}
|
| 629 |
|
| 630 |
-
.
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
|
| 634 |
-
text-align: center;
|
| 635 |
-
text-transform: uppercase;
|
| 636 |
-
letter-spacing: 3px;
|
| 637 |
-
text-shadow: 0 0 15px #00ffff;
|
| 638 |
}
|
| 639 |
|
| 640 |
-
.
|
| 641 |
-
background: #000;
|
| 642 |
-
border: 1px solid #00ffff;
|
| 643 |
-
border-radius: 10px;
|
| 644 |
-
padding: 15px;
|
| 645 |
-
margin-bottom: 20px;
|
| 646 |
-
font-family: 'Courier New', monospace;
|
| 647 |
-
font-size: 0.85rem;
|
| 648 |
-
word-wrap: break-word;
|
| 649 |
-
word-break: break-all;
|
| 650 |
color: #00ff00;
|
| 651 |
-
|
| 652 |
-
|
| 653 |
-
white-space: pre-wrap;
|
| 654 |
-
line-height: 1.4;
|
| 655 |
}
|
| 656 |
|
| 657 |
-
.
|
| 658 |
-
background: rgba(0,
|
| 659 |
-
border: 1px solid
|
| 660 |
border-radius: 10px;
|
| 661 |
-
padding:
|
| 662 |
color: #fff;
|
| 663 |
-
|
| 664 |
-
font-size: 0.95rem;
|
| 665 |
}
|
| 666 |
|
| 667 |
-
|
| 668 |
-
|
| 669 |
-
|
| 670 |
-
|
| 671 |
-
|
| 672 |
-
|
| 673 |
-
|
| 674 |
-
|
| 675 |
-
|
| 676 |
-
gap: 15px;
|
| 677 |
-
margin-bottom: 20px;
|
| 678 |
}
|
| 679 |
|
| 680 |
-
.
|
| 681 |
-
|
| 682 |
-
|
| 683 |
-
|
| 684 |
-
|
| 685 |
-
|
| 686 |
}
|
| 687 |
|
| 688 |
-
.
|
| 689 |
-
|
| 690 |
-
|
| 691 |
-
|
| 692 |
-
|
|
|
|
|
|
|
| 693 |
}
|
| 694 |
|
| 695 |
-
.
|
| 696 |
-
|
| 697 |
-
|
| 698 |
-
|
| 699 |
-
|
|
|
|
|
|
|
|
|
|
| 700 |
}
|
| 701 |
|
| 702 |
-
/*
|
| 703 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 704 |
text-align: center;
|
| 705 |
-
margin-top: 20px;
|
| 706 |
-
color: #ffd700;
|
| 707 |
-
font-size: 1rem;
|
| 708 |
-
text-transform: uppercase;
|
| 709 |
-
letter-spacing: 2px;
|
| 710 |
-
text-shadow: 0 0 10px #ffd700;
|
| 711 |
}
|
| 712 |
|
| 713 |
-
.
|
| 714 |
-
text-align: center;
|
| 715 |
-
margin-top: 15px;
|
| 716 |
-
font-size: 1.3rem;
|
| 717 |
display: flex;
|
| 718 |
justify-content: center;
|
| 719 |
-
gap:
|
| 720 |
-
|
| 721 |
}
|
| 722 |
|
| 723 |
-
.
|
| 724 |
-
|
| 725 |
-
|
| 726 |
-
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
border-radius: 30px;
|
| 731 |
-
display: inline-block;
|
| 732 |
transition: all 0.3s ease;
|
| 733 |
-
|
| 734 |
-
}
|
| 735 |
-
|
| 736 |
-
.lab-credit a:nth-child(2) {
|
| 737 |
-
color: #ffff00;
|
| 738 |
-
border-color: #ffff00;
|
| 739 |
-
text-shadow: 0 0 10px #ffff00;
|
| 740 |
}
|
| 741 |
|
| 742 |
-
.
|
| 743 |
-
background: #
|
| 744 |
-
|
| 745 |
-
box-shadow: 0
|
| 746 |
-
transform: scale(1.1);
|
| 747 |
}
|
| 748 |
|
| 749 |
-
|
| 750 |
-
|
| 751 |
-
|
| 752 |
-
|
| 753 |
-
|
| 754 |
-
|
| 755 |
-
|
| 756 |
-
animation:
|
| 757 |
-
|
| 758 |
-
|
| 759 |
-
@keyframes jackpotFlash {
|
| 760 |
-
0%, 100% { background-color: transparent; }
|
| 761 |
-
10%, 30%, 50%, 70%, 90% { background-color: rgba(255, 215, 0, 0.3); }
|
| 762 |
-
20%, 40%, 60%, 80% { background-color: transparent; }
|
| 763 |
}
|
| 764 |
|
| 765 |
-
|
| 766 |
-
|
| 767 |
-
from { transform: translateY(0); }
|
| 768 |
-
to { transform: translateY(-200px); }
|
| 769 |
}
|
| 770 |
|
| 771 |
-
|
| 772 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 773 |
}
|
| 774 |
|
| 775 |
/* Scrollbar styling */
|
|
@@ -778,397 +508,520 @@
|
|
| 778 |
}
|
| 779 |
|
| 780 |
::-webkit-scrollbar-track {
|
| 781 |
-
background: rgba(0,
|
| 782 |
border-radius: 5px;
|
| 783 |
}
|
| 784 |
|
| 785 |
::-webkit-scrollbar-thumb {
|
| 786 |
-
background: #00ffff;
|
| 787 |
border-radius: 5px;
|
| 788 |
}
|
| 789 |
|
| 790 |
::-webkit-scrollbar-thumb:hover {
|
| 791 |
-
background: #
|
| 792 |
}
|
| 793 |
</style>
|
| 794 |
</head>
|
| 795 |
<body>
|
| 796 |
-
<div class="
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
|
| 800 |
-
|
| 801 |
-
<
|
| 802 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 803 |
</div>
|
| 804 |
-
|
| 805 |
-
|
| 806 |
-
|
| 807 |
-
|
| 808 |
-
|
| 809 |
-
<
|
| 810 |
-
|
| 811 |
-
|
| 812 |
-
|
| 813 |
-
|
| 814 |
-
|
| 815 |
-
|
| 816 |
-
|
| 817 |
-
|
| 818 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 819 |
</div>
|
| 820 |
</div>
|
| 821 |
-
|
| 822 |
-
|
| 823 |
-
|
| 824 |
-
|
| 825 |
-
<
|
| 826 |
-
|
| 827 |
-
|
| 828 |
-
|
| 829 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 830 |
</div>
|
| 831 |
-
|
| 832 |
-
|
| 833 |
-
|
| 834 |
-
<div class="
|
| 835 |
-
<div class="
|
| 836 |
-
<div class="
|
| 837 |
-
|
| 838 |
-
<div class="lever-ball"></div>
|
| 839 |
</div>
|
| 840 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 841 |
</div>
|
| 842 |
</div>
|
| 843 |
|
| 844 |
-
|
| 845 |
-
|
| 846 |
-
|
| 847 |
-
|
| 848 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 849 |
</div>
|
| 850 |
-
|
| 851 |
-
|
| 852 |
-
|
| 853 |
-
|
| 854 |
-
|
|
|
|
|
|
|
| 855 |
|
| 856 |
-
<div class="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 857 |
|
| 858 |
-
<div
|
| 859 |
-
<
|
| 860 |
</div>
|
| 861 |
</div>
|
| 862 |
</div>
|
| 863 |
-
|
| 864 |
-
<div class="info">
|
| 865 |
-
🎰 200BP REGULATORY ELEMENTS • CELL-TYPE SPECIFIC • SYNTHETIC BIOLOGY JACKPOT 🎰
|
| 866 |
-
</div>
|
| 867 |
-
|
| 868 |
-
<div class="lab-credit">
|
| 869 |
-
<a href="https://pinellolab.org" target="_blank" rel="noopener noreferrer">
|
| 870 |
-
🧬 Based by PINELLO LAB 🧬
|
| 871 |
-
</a>
|
| 872 |
-
<a href="https://discord.gg/openfreeai" target="_blank" rel="noopener noreferrer">
|
| 873 |
-
⚡ Powered by VIDraft ⚡
|
| 874 |
-
</a>
|
| 875 |
-
</div>
|
| 876 |
</div>
|
| 877 |
|
|
|
|
| 878 |
<script>
|
| 879 |
-
|
| 880 |
-
|
| 881 |
-
let
|
| 882 |
-
|
| 883 |
-
let
|
| 884 |
-
|
| 885 |
-
|
| 886 |
-
|
| 887 |
-
|
| 888 |
-
|
| 889 |
-
|
| 890 |
-
|
| 891 |
-
|
| 892 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 893 |
|
| 894 |
-
|
| 895 |
-
|
| 896 |
-
|
|
|
|
|
|
|
| 897 |
|
| 898 |
-
|
| 899 |
-
|
| 900 |
|
| 901 |
-
|
| 902 |
-
|
| 903 |
-
|
| 904 |
-
|
| 905 |
-
|
| 906 |
-
|
| 907 |
-
|
| 908 |
-
|
| 909 |
-
|
|
|
|
| 910 |
|
| 911 |
-
|
| 912 |
-
|
|
|
|
|
|
|
|
|
|
| 913 |
}
|
| 914 |
|
| 915 |
-
function
|
| 916 |
-
const
|
| 917 |
-
|
| 918 |
-
reels = [];
|
| 919 |
|
| 920 |
-
|
| 921 |
-
|
| 922 |
-
|
| 923 |
-
|
|
|
|
|
|
|
|
|
|
| 924 |
|
| 925 |
-
//
|
| 926 |
-
|
| 927 |
-
|
| 928 |
-
|
| 929 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 930 |
}
|
|
|
|
|
|
|
| 931 |
}
|
| 932 |
|
| 933 |
-
function
|
| 934 |
-
|
| 935 |
-
counter.textContent = `${length} BP`;
|
| 936 |
-
counter.style.animation = 'pulse 0.5s ease-out';
|
| 937 |
-
}
|
| 938 |
-
|
| 939 |
-
function startContinuousSpinning() {
|
| 940 |
-
reels.forEach((reel, index) => {
|
| 941 |
-
// Add continuous spinning animation
|
| 942 |
-
reel.strip.style.transition = 'none';
|
| 943 |
-
reel.strip.classList.add('loading');
|
| 944 |
-
|
| 945 |
-
// Add slight delay variation for visual effect
|
| 946 |
-
const delay = (index % 10) * 0.1;
|
| 947 |
-
reel.strip.style.animationDelay = `${delay}s`;
|
| 948 |
-
});
|
| 949 |
|
| 950 |
-
//
|
| 951 |
-
|
| 952 |
-
|
| 953 |
-
|
| 954 |
-
clearInterval(counterInterval);
|
| 955 |
-
return;
|
| 956 |
-
}
|
| 957 |
-
count = (count + 7) % 201;
|
| 958 |
-
updateSequenceCounter(count);
|
| 959 |
-
}, 100);
|
| 960 |
}
|
| 961 |
|
| 962 |
-
|
| 963 |
-
|
| 964 |
-
const
|
| 965 |
-
const
|
| 966 |
-
const sequenceDiv = document.getElementById('proteinSequence');
|
| 967 |
-
const analysisDiv = document.getElementById('proteinAnalysis');
|
| 968 |
|
| 969 |
-
|
| 970 |
-
panel.classList.add('active');
|
| 971 |
|
| 972 |
-
//
|
| 973 |
-
|
|
|
|
| 974 |
|
| 975 |
-
//
|
| 976 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 977 |
|
| 978 |
-
//
|
| 979 |
-
|
| 980 |
-
|
| 981 |
-
|
| 982 |
-
|
| 983 |
-
|
| 984 |
-
|
| 985 |
-
|
| 986 |
-
|
| 987 |
-
|
| 988 |
-
|
| 989 |
-
|
| 990 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 991 |
</div>
|
| 992 |
-
|
| 993 |
-
|
| 994 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 995 |
</div>
|
| 996 |
`;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 997 |
|
| 998 |
-
//
|
| 999 |
-
|
| 1000 |
-
|
| 1001 |
-
|
| 1002 |
|
| 1003 |
-
//
|
| 1004 |
-
|
| 1005 |
-
|
| 1006 |
-
|
| 1007 |
-
|
| 1008 |
-
|
|
|
|
|
|
|
| 1009 |
}
|
| 1010 |
|
| 1011 |
-
function
|
| 1012 |
-
|
| 1013 |
-
|
| 1014 |
|
| 1015 |
-
|
| 1016 |
-
|
| 1017 |
-
|
| 1018 |
-
|
| 1019 |
-
|
| 1020 |
-
|
| 1021 |
-
|
| 1022 |
-
|
| 1023 |
-
|
| 1024 |
-
|
| 1025 |
-
|
| 1026 |
-
|
| 1027 |
-
|
| 1028 |
-
reel.currentPosition = finalPosition;
|
| 1029 |
-
}, index * 2);
|
| 1030 |
});
|
| 1031 |
-
|
| 1032 |
-
// Show the complete sequence after animation
|
| 1033 |
-
setTimeout(() => {
|
| 1034 |
-
const container = document.getElementById('reelsContainer');
|
| 1035 |
-
const display = document.getElementById('sequenceDisplay');
|
| 1036 |
-
const button = document.getElementById('spinButton');
|
| 1037 |
-
const lever = document.getElementById('lever');
|
| 1038 |
-
|
| 1039 |
-
container.classList.remove('spinning');
|
| 1040 |
-
container.classList.add('jackpot-win');
|
| 1041 |
-
|
| 1042 |
-
const isKorean = document.getElementById('languageToggle').checked;
|
| 1043 |
-
|
| 1044 |
-
display.innerHTML = `<strong>🎊 ${isKorean ? '잭팟 시퀀스' : 'JACKPOT SEQUENCE'} 🎊</strong><br><span style="color: #00ff00; font-family: 'Courier New', monospace; word-wrap: break-word; word-break: break-all; display: block; margin-top: 10px;">${TARGET_SEQUENCE}</span>`;
|
| 1045 |
-
|
| 1046 |
-
// Display protein analysis if available
|
| 1047 |
-
if (metadata) {
|
| 1048 |
-
displayProteinAnalysis(metadata);
|
| 1049 |
-
}
|
| 1050 |
-
|
| 1051 |
-
button.disabled = false;
|
| 1052 |
-
isSpinning = false;
|
| 1053 |
-
|
| 1054 |
-
// Release the lever
|
| 1055 |
-
lever.classList.remove('pulled');
|
| 1056 |
-
|
| 1057 |
-
setTimeout(() => {
|
| 1058 |
-
container.classList.remove('jackpot-win');
|
| 1059 |
-
}, 2000);
|
| 1060 |
-
}, 1500);
|
| 1061 |
}
|
| 1062 |
|
| 1063 |
-
function
|
| 1064 |
-
|
| 1065 |
-
|
| 1066 |
-
|
| 1067 |
-
|
| 1068 |
-
|
| 1069 |
-
const container = document.getElementById('reelsContainer');
|
| 1070 |
-
const lever = document.getElementById('lever');
|
| 1071 |
-
const proteinPanel = document.getElementById('proteinPanel');
|
| 1072 |
-
|
| 1073 |
-
// Hide protein panel from previous spin
|
| 1074 |
-
proteinPanel.classList.remove('active');
|
| 1075 |
-
|
| 1076 |
-
// Pull the lever
|
| 1077 |
-
lever.classList.add('pulled');
|
| 1078 |
-
|
| 1079 |
-
// Check language
|
| 1080 |
-
const isKorean = document.getElementById('languageToggle').checked;
|
| 1081 |
|
| 1082 |
-
|
| 1083 |
-
|
| 1084 |
-
|
| 1085 |
-
|
| 1086 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1087 |
|
| 1088 |
-
|
| 1089 |
-
startContinuousSpinning();
|
| 1090 |
|
| 1091 |
-
|
| 1092 |
-
|
| 1093 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1094 |
|
| 1095 |
-
|
| 1096 |
-
window.parent.postMessage({
|
| 1097 |
-
type: 'generate_request',
|
| 1098 |
-
cellType: cellType,
|
| 1099 |
-
language: language
|
| 1100 |
-
}, '*');
|
| 1101 |
}
|
| 1102 |
|
| 1103 |
-
|
| 1104 |
-
|
| 1105 |
-
|
| 1106 |
-
|
| 1107 |
-
|
| 1108 |
-
|
| 1109 |
-
|
| 1110 |
-
|
| 1111 |
-
|
| 1112 |
-
'레버를 당기거나 SPIN을 눌러 당첨 시퀀스를 생성하세요!' :
|
| 1113 |
-
'Pull the lever or press SPIN to generate your winning sequence!';
|
| 1114 |
-
}
|
| 1115 |
-
});
|
| 1116 |
-
|
| 1117 |
-
// Event listeners
|
| 1118 |
-
document.getElementById('spinButton').addEventListener('click', startGeneration);
|
| 1119 |
-
|
| 1120 |
-
// Lever click functionality
|
| 1121 |
-
document.getElementById('lever').addEventListener('click', function() {
|
| 1122 |
-
if (!isSpinning) {
|
| 1123 |
-
startGeneration();
|
| 1124 |
-
}
|
| 1125 |
-
});
|
| 1126 |
-
|
| 1127 |
-
// Listen for messages from parent window
|
| 1128 |
window.addEventListener('message', (event) => {
|
| 1129 |
-
if (event.data.type === '
|
| 1130 |
-
|
| 1131 |
-
|
| 1132 |
-
} else if (event.data.type === '
|
| 1133 |
-
|
| 1134 |
-
reels.forEach(reel => {
|
| 1135 |
-
reel.strip.classList.remove('loading');
|
| 1136 |
-
});
|
| 1137 |
-
|
| 1138 |
-
const container = document.getElementById('reelsContainer');
|
| 1139 |
-
const display = document.getElementById('sequenceDisplay');
|
| 1140 |
-
const button = document.getElementById('spinButton');
|
| 1141 |
-
const lever = document.getElementById('lever');
|
| 1142 |
-
const isKorean = document.getElementById('languageToggle').checked;
|
| 1143 |
-
|
| 1144 |
-
container.classList.remove('spinning');
|
| 1145 |
-
display.innerHTML = `<strong style="color: #ff0000;">❌ ${isKorean ? '실패!' : 'BUST!'} ❌</strong><br>` + event.data.error;
|
| 1146 |
-
button.disabled = false;
|
| 1147 |
-
isSpinning = false;
|
| 1148 |
-
lever.classList.remove('pulled');
|
| 1149 |
-
updateSequenceCounter(0);
|
| 1150 |
}
|
| 1151 |
});
|
| 1152 |
-
|
| 1153 |
-
// Keyboard
|
| 1154 |
document.addEventListener('keydown', (e) => {
|
| 1155 |
-
if (e.
|
| 1156 |
-
|
| 1157 |
-
startGeneration();
|
| 1158 |
}
|
| 1159 |
});
|
| 1160 |
-
|
| 1161 |
-
//
|
| 1162 |
-
|
| 1163 |
-
|
| 1164 |
-
|
| 1165 |
-
|
| 1166 |
-
|
| 1167 |
-
setTimeout(() => {
|
| 1168 |
-
randomChip.style.animation = 'chipRotate 20s linear infinite';
|
| 1169 |
-
}, 10);
|
| 1170 |
-
}
|
| 1171 |
-
}, 5000);
|
| 1172 |
</script>
|
| 1173 |
</body>
|
| 1174 |
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>🧬 DNA CASINO PRO - Advanced Molecular Engineering Suite</title>
|
| 7 |
<style>
|
| 8 |
+
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Bebas+Neue&family=Roboto:wght@300;400;700&display=swap');
|
| 9 |
|
| 10 |
* {
|
| 11 |
margin: 0;
|
|
|
|
| 16 |
body {
|
| 17 |
background: #000;
|
| 18 |
color: #fff;
|
| 19 |
+
font-family: 'Roboto', sans-serif;
|
| 20 |
overflow-x: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
min-height: 100vh;
|
| 22 |
position: relative;
|
|
|
|
| 23 |
}
|
| 24 |
|
| 25 |
+
/* Enhanced background with scientific grid */
|
| 26 |
body::before {
|
| 27 |
content: '';
|
| 28 |
position: fixed;
|
|
|
|
| 33 |
background:
|
| 34 |
radial-gradient(circle at 20% 30%, #ff0066 0px, transparent 100px),
|
| 35 |
radial-gradient(circle at 80% 70%, #00ffff 0px, transparent 100px),
|
| 36 |
+
radial-gradient(circle at 50% 50%, #ffff00 0px, transparent 150px);
|
|
|
|
|
|
|
| 37 |
opacity: 0.1;
|
| 38 |
z-index: 0;
|
| 39 |
animation: casinoLights 10s ease-in-out infinite;
|
| 40 |
}
|
| 41 |
|
| 42 |
+
/* Scientific grid overlay */
|
| 43 |
+
.grid-overlay {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
position: fixed;
|
| 45 |
top: 0;
|
| 46 |
left: 0;
|
| 47 |
width: 100%;
|
| 48 |
height: 100%;
|
| 49 |
background-image:
|
| 50 |
+
linear-gradient(rgba(0,255,255,0.1) 1px, transparent 1px),
|
| 51 |
+
linear-gradient(90deg, rgba(0,255,255,0.1) 1px, transparent 1px);
|
| 52 |
+
background-size: 50px 50px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
pointer-events: none;
|
| 54 |
z-index: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
+
/* Main container with tabs */
|
| 58 |
+
.app-container {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
position: relative;
|
| 60 |
z-index: 2;
|
| 61 |
+
max-width: 1600px;
|
| 62 |
+
margin: 0 auto;
|
| 63 |
+
padding: 20px;
|
| 64 |
}
|
| 65 |
|
| 66 |
+
/* Enhanced header */
|
| 67 |
+
.header {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
text-align: center;
|
| 69 |
+
margin-bottom: 30px;
|
|
|
|
|
|
|
| 70 |
position: relative;
|
|
|
|
|
|
|
| 71 |
}
|
| 72 |
|
| 73 |
+
.title {
|
| 74 |
+
font-family: 'Bebas Neue', cursive;
|
| 75 |
+
font-size: 4rem;
|
| 76 |
+
background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00);
|
| 77 |
+
-webkit-background-clip: text;
|
| 78 |
+
-webkit-text-fill-color: transparent;
|
| 79 |
+
animation: gradientShift 3s ease-in-out infinite;
|
| 80 |
+
text-shadow: 0 0 30px rgba(255,0,255,0.5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
}
|
| 82 |
|
| 83 |
+
@keyframes gradientShift {
|
| 84 |
+
0%, 100% { filter: hue-rotate(0deg); }
|
| 85 |
+
50% { filter: hue-rotate(180deg); }
|
|
|
|
| 86 |
}
|
| 87 |
|
| 88 |
.subtitle {
|
| 89 |
+
font-size: 1.2rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
color: #ffd700;
|
| 91 |
+
margin-top: 10px;
|
| 92 |
text-transform: uppercase;
|
| 93 |
+
letter-spacing: 3px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
}
|
| 95 |
|
| 96 |
+
/* Tab navigation */
|
| 97 |
+
.tabs {
|
| 98 |
display: flex;
|
| 99 |
justify-content: center;
|
| 100 |
+
margin-bottom: 30px;
|
| 101 |
+
background: rgba(255,255,255,0.05);
|
| 102 |
+
border-radius: 50px;
|
| 103 |
+
padding: 5px;
|
| 104 |
+
backdrop-filter: blur(10px);
|
| 105 |
}
|
| 106 |
|
| 107 |
+
.tab {
|
| 108 |
+
padding: 15px 30px;
|
| 109 |
+
margin: 0 5px;
|
| 110 |
+
background: transparent;
|
| 111 |
+
border: none;
|
| 112 |
+
color: #fff;
|
| 113 |
cursor: pointer;
|
| 114 |
+
border-radius: 50px;
|
| 115 |
+
font-weight: 500;
|
| 116 |
+
transition: all 0.3s ease;
|
| 117 |
+
position: relative;
|
| 118 |
+
overflow: hidden;
|
| 119 |
}
|
| 120 |
|
| 121 |
+
.tab::before {
|
| 122 |
+
content: '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
position: absolute;
|
| 124 |
top: 0;
|
| 125 |
+
left: -100%;
|
| 126 |
+
width: 100%;
|
| 127 |
+
height: 100%;
|
| 128 |
+
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
|
| 129 |
+
transition: left 0.5s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
}
|
| 131 |
|
| 132 |
+
.tab:hover::before {
|
| 133 |
+
left: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
}
|
| 135 |
|
| 136 |
+
.tab.active {
|
| 137 |
+
background: linear-gradient(145deg, #ff0066, #ff00ff);
|
| 138 |
+
box-shadow: 0 0 20px rgba(255,0,102,0.5);
|
| 139 |
}
|
| 140 |
|
| 141 |
+
/* Tab content */
|
| 142 |
+
.tab-content {
|
| 143 |
+
display: none;
|
| 144 |
+
animation: fadeIn 0.5s ease;
|
| 145 |
}
|
| 146 |
|
| 147 |
+
.tab-content.active {
|
| 148 |
+
display: block;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
}
|
| 150 |
|
| 151 |
+
@keyframes fadeIn {
|
| 152 |
+
from { opacity: 0; transform: translateY(20px); }
|
| 153 |
+
to { opacity: 1; transform: translateY(0); }
|
|
|
|
|
|
|
|
|
|
| 154 |
}
|
| 155 |
|
| 156 |
+
/* Casino machine (enhanced) */
|
| 157 |
+
.machine-container {
|
| 158 |
+
background: linear-gradient(145deg, #1a0000, #330000);
|
| 159 |
+
border: 5px solid #ffd700;
|
| 160 |
+
border-radius: 30px;
|
| 161 |
+
padding: 30px;
|
| 162 |
+
box-shadow:
|
| 163 |
+
0 0 50px rgba(255, 215, 0, 0.5),
|
| 164 |
+
0 20px 40px rgba(0,0,0,0.8);
|
| 165 |
+
margin-bottom: 30px;
|
| 166 |
}
|
| 167 |
|
| 168 |
+
/* Analysis panel */
|
| 169 |
+
.analysis-panel {
|
| 170 |
+
display: grid;
|
| 171 |
+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
|
|
|
|
|
|
|
|
| 172 |
gap: 20px;
|
| 173 |
+
margin-top: 30px;
|
| 174 |
}
|
| 175 |
|
| 176 |
+
.analysis-card {
|
| 177 |
+
background: rgba(0,255,255,0.1);
|
| 178 |
+
border: 2px solid #00ffff;
|
| 179 |
+
border-radius: 15px;
|
| 180 |
+
padding: 20px;
|
| 181 |
+
backdrop-filter: blur(10px);
|
| 182 |
+
transition: all 0.3s ease;
|
| 183 |
}
|
| 184 |
|
| 185 |
+
.analysis-card:hover {
|
| 186 |
+
transform: translateY(-5px);
|
| 187 |
+
box-shadow: 0 10px 30px rgba(0,255,255,0.3);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
}
|
| 189 |
|
| 190 |
+
.analysis-card h3 {
|
| 191 |
+
color: #00ffff;
|
| 192 |
+
margin-bottom: 15px;
|
| 193 |
+
text-shadow: 0 0 10px #00ffff;
|
| 194 |
}
|
| 195 |
|
| 196 |
+
/* 3D Structure Viewer */
|
| 197 |
+
.structure-viewer {
|
| 198 |
width: 100%;
|
| 199 |
+
height: 400px;
|
| 200 |
+
background: #000;
|
| 201 |
+
border: 2px solid #00ff00;
|
| 202 |
+
border-radius: 15px;
|
| 203 |
+
position: relative;
|
| 204 |
+
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
}
|
| 206 |
|
| 207 |
+
.structure-canvas {
|
| 208 |
+
width: 100%;
|
| 209 |
+
height: 100%;
|
| 210 |
}
|
| 211 |
|
| 212 |
+
/* Sequence editor */
|
| 213 |
+
.sequence-editor {
|
| 214 |
+
background: #111;
|
| 215 |
+
border: 2px solid #00ff00;
|
| 216 |
+
border-radius: 10px;
|
| 217 |
+
padding: 20px;
|
| 218 |
+
font-family: 'Courier New', monospace;
|
| 219 |
+
position: relative;
|
| 220 |
}
|
| 221 |
|
| 222 |
+
.sequence-text {
|
| 223 |
+
color: #00ff00;
|
| 224 |
+
font-size: 14px;
|
| 225 |
+
line-height: 1.6;
|
| 226 |
+
word-break: break-all;
|
| 227 |
+
cursor: text;
|
| 228 |
+
outline: none;
|
| 229 |
}
|
| 230 |
|
| 231 |
+
.sequence-text .highlight {
|
| 232 |
+
background: rgba(255,255,0,0.3);
|
| 233 |
+
padding: 2px;
|
| 234 |
+
border-radius: 3px;
|
| 235 |
}
|
| 236 |
|
| 237 |
+
/* Chat interface */
|
| 238 |
+
.chat-container {
|
| 239 |
+
background: rgba(255,255,255,0.05);
|
| 240 |
+
border: 2px solid #ff00ff;
|
| 241 |
+
border-radius: 20px;
|
| 242 |
padding: 20px;
|
| 243 |
+
height: 500px;
|
| 244 |
+
display: flex;
|
| 245 |
+
flex-direction: column;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 246 |
}
|
| 247 |
|
| 248 |
+
.chat-messages {
|
| 249 |
+
flex: 1;
|
| 250 |
+
overflow-y: auto;
|
| 251 |
+
padding: 20px;
|
| 252 |
display: flex;
|
| 253 |
+
flex-direction: column;
|
| 254 |
+
gap: 15px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
}
|
| 256 |
|
| 257 |
+
.chat-message {
|
| 258 |
+
padding: 15px;
|
| 259 |
+
border-radius: 15px;
|
| 260 |
+
max-width: 70%;
|
| 261 |
+
animation: slideIn 0.3s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 262 |
}
|
| 263 |
|
| 264 |
+
@keyframes slideIn {
|
| 265 |
+
from { opacity: 0; transform: translateX(-20px); }
|
| 266 |
+
to { opacity: 1; transform: translateX(0); }
|
|
|
|
| 267 |
}
|
| 268 |
|
| 269 |
+
.chat-message.user {
|
| 270 |
+
background: linear-gradient(145deg, #0066ff, #0044cc);
|
| 271 |
+
align-self: flex-end;
|
| 272 |
+
margin-left: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 273 |
}
|
| 274 |
|
| 275 |
+
.chat-message.assistant {
|
| 276 |
+
background: linear-gradient(145deg, #ff0066, #cc0044);
|
| 277 |
+
align-self: flex-start;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
}
|
| 279 |
|
| 280 |
+
.chat-input-container {
|
| 281 |
+
display: flex;
|
| 282 |
+
gap: 10px;
|
| 283 |
+
padding: 20px;
|
| 284 |
+
border-top: 1px solid rgba(255,255,255,0.2);
|
| 285 |
}
|
| 286 |
|
| 287 |
+
.chat-input {
|
| 288 |
+
flex: 1;
|
| 289 |
+
background: rgba(255,255,255,0.1);
|
| 290 |
+
border: 2px solid #ff00ff;
|
| 291 |
+
border-radius: 25px;
|
| 292 |
+
padding: 15px 25px;
|
| 293 |
+
color: #fff;
|
| 294 |
+
font-size: 16px;
|
| 295 |
+
outline: none;
|
| 296 |
+
transition: all 0.3s ease;
|
|
|
|
| 297 |
}
|
| 298 |
|
| 299 |
+
.chat-input:focus {
|
| 300 |
+
border-color: #00ffff;
|
| 301 |
+
box-shadow: 0 0 20px rgba(0,255,255,0.3);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
}
|
| 303 |
|
| 304 |
+
.chat-send {
|
| 305 |
+
background: linear-gradient(145deg, #ff00ff, #ff0066);
|
| 306 |
+
border: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 307 |
border-radius: 50%;
|
| 308 |
+
width: 50px;
|
| 309 |
+
height: 50px;
|
| 310 |
+
cursor: pointer;
|
| 311 |
+
display: flex;
|
| 312 |
+
align-items: center;
|
| 313 |
+
justify-content: center;
|
| 314 |
+
transition: all 0.3s ease;
|
| 315 |
}
|
| 316 |
|
| 317 |
+
.chat-send:hover {
|
| 318 |
+
transform: scale(1.1);
|
| 319 |
+
box-shadow: 0 0 30px rgba(255,0,255,0.5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
}
|
| 321 |
|
| 322 |
+
/* Tool cards */
|
| 323 |
+
.tools-grid {
|
| 324 |
+
display: grid;
|
| 325 |
+
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
| 326 |
+
gap: 30px;
|
| 327 |
+
margin-top: 30px;
|
| 328 |
}
|
| 329 |
|
| 330 |
+
.tool-card {
|
| 331 |
+
background: linear-gradient(145deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
|
| 332 |
+
border: 2px solid #ffd700;
|
| 333 |
+
border-radius: 20px;
|
| 334 |
+
padding: 30px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 335 |
transition: all 0.3s ease;
|
|
|
|
|
|
|
| 336 |
position: relative;
|
| 337 |
overflow: hidden;
|
|
|
|
| 338 |
}
|
| 339 |
|
| 340 |
+
.tool-card::before {
|
| 341 |
content: '';
|
| 342 |
position: absolute;
|
| 343 |
top: -50%;
|
| 344 |
left: -50%;
|
| 345 |
width: 200%;
|
| 346 |
height: 200%;
|
| 347 |
+
background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
|
| 348 |
+
animation: toolPulse 4s ease-in-out infinite;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 349 |
}
|
| 350 |
|
| 351 |
+
@keyframes toolPulse {
|
| 352 |
+
0%, 100% { transform: scale(0.8); opacity: 0; }
|
| 353 |
+
50% { transform: scale(1.2); opacity: 1; }
|
|
|
|
|
|
|
| 354 |
}
|
| 355 |
|
| 356 |
+
.tool-card h3 {
|
| 357 |
+
color: #ffd700;
|
| 358 |
+
margin-bottom: 20px;
|
| 359 |
+
font-size: 1.5rem;
|
| 360 |
+
text-shadow: 0 0 15px #ffd700;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 361 |
}
|
| 362 |
|
| 363 |
+
/* Primer design interface */
|
| 364 |
+
.primer-designer {
|
| 365 |
+
background: rgba(0,255,0,0.05);
|
| 366 |
+
border: 2px solid #00ff00;
|
| 367 |
border-radius: 15px;
|
| 368 |
padding: 25px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 369 |
}
|
| 370 |
|
| 371 |
+
.primer-params {
|
| 372 |
+
display: grid;
|
| 373 |
+
grid-template-columns: repeat(2, 1fr);
|
| 374 |
+
gap: 20px;
|
| 375 |
+
margin-bottom: 20px;
|
| 376 |
}
|
| 377 |
|
| 378 |
+
.param-group {
|
| 379 |
+
display: flex;
|
| 380 |
+
flex-direction: column;
|
| 381 |
+
gap: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 382 |
}
|
| 383 |
|
| 384 |
+
.param-label {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 385 |
color: #00ff00;
|
| 386 |
+
font-weight: 500;
|
| 387 |
+
text-shadow: 0 0 5px #00ff00;
|
|
|
|
|
|
|
| 388 |
}
|
| 389 |
|
| 390 |
+
.param-input {
|
| 391 |
+
background: rgba(0,0,0,0.5);
|
| 392 |
+
border: 1px solid #00ff00;
|
| 393 |
border-radius: 10px;
|
| 394 |
+
padding: 10px;
|
| 395 |
color: #fff;
|
| 396 |
+
font-size: 16px;
|
|
|
|
| 397 |
}
|
| 398 |
|
| 399 |
+
/* Restriction map visualization */
|
| 400 |
+
.restriction-map {
|
| 401 |
+
background: #000;
|
| 402 |
+
border: 2px solid #ff0000;
|
| 403 |
+
border-radius: 15px;
|
| 404 |
+
padding: 20px;
|
| 405 |
+
position: relative;
|
| 406 |
+
height: 200px;
|
| 407 |
+
overflow-x: auto;
|
|
|
|
|
|
|
| 408 |
}
|
| 409 |
|
| 410 |
+
.restriction-track {
|
| 411 |
+
position: relative;
|
| 412 |
+
height: 40px;
|
| 413 |
+
background: linear-gradient(90deg, #ff0000 2px, transparent 2px);
|
| 414 |
+
background-size: 50px 100%;
|
| 415 |
+
margin: 10px 0;
|
| 416 |
}
|
| 417 |
|
| 418 |
+
.enzyme-marker {
|
| 419 |
+
position: absolute;
|
| 420 |
+
top: -10px;
|
| 421 |
+
width: 3px;
|
| 422 |
+
height: 60px;
|
| 423 |
+
background: #ffff00;
|
| 424 |
+
box-shadow: 0 0 10px #ffff00;
|
| 425 |
}
|
| 426 |
|
| 427 |
+
.enzyme-label {
|
| 428 |
+
position: absolute;
|
| 429 |
+
top: -30px;
|
| 430 |
+
left: 50%;
|
| 431 |
+
transform: translateX(-50%);
|
| 432 |
+
font-size: 12px;
|
| 433 |
+
color: #ffff00;
|
| 434 |
+
white-space: nowrap;
|
| 435 |
}
|
| 436 |
|
| 437 |
+
/* Export options */
|
| 438 |
+
.export-panel {
|
| 439 |
+
background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
|
| 440 |
+
border: 2px solid #fff;
|
| 441 |
+
border-radius: 20px;
|
| 442 |
+
padding: 30px;
|
| 443 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 444 |
}
|
| 445 |
|
| 446 |
+
.export-formats {
|
|
|
|
|
|
|
|
|
|
| 447 |
display: flex;
|
| 448 |
justify-content: center;
|
| 449 |
+
gap: 20px;
|
| 450 |
+
margin: 30px 0;
|
| 451 |
}
|
| 452 |
|
| 453 |
+
.export-btn {
|
| 454 |
+
padding: 15px 30px;
|
| 455 |
+
background: linear-gradient(145deg, #444, #222);
|
| 456 |
+
border: 2px solid #fff;
|
| 457 |
+
border-radius: 10px;
|
| 458 |
+
color: #fff;
|
| 459 |
+
cursor: pointer;
|
|
|
|
|
|
|
| 460 |
transition: all 0.3s ease;
|
| 461 |
+
font-weight: 500;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 462 |
}
|
| 463 |
|
| 464 |
+
.export-btn:hover {
|
| 465 |
+
background: linear-gradient(145deg, #666, #444);
|
| 466 |
+
transform: translateY(-3px);
|
| 467 |
+
box-shadow: 0 10px 20px rgba(255,255,255,0.2);
|
|
|
|
| 468 |
}
|
| 469 |
|
| 470 |
+
/* Loading animation */
|
| 471 |
+
.loading-spinner {
|
| 472 |
+
width: 50px;
|
| 473 |
+
height: 50px;
|
| 474 |
+
border: 3px solid rgba(255,255,255,0.1);
|
| 475 |
+
border-top-color: #00ffff;
|
| 476 |
+
border-radius: 50%;
|
| 477 |
+
animation: spin 1s linear infinite;
|
| 478 |
+
margin: 20px auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 479 |
}
|
| 480 |
|
| 481 |
+
@keyframes spin {
|
| 482 |
+
to { transform: rotate(360deg); }
|
|
|
|
|
|
|
| 483 |
}
|
| 484 |
|
| 485 |
+
/* Responsive design */
|
| 486 |
+
@media (max-width: 768px) {
|
| 487 |
+
.title {
|
| 488 |
+
font-size: 3rem;
|
| 489 |
+
}
|
| 490 |
+
|
| 491 |
+
.tabs {
|
| 492 |
+
flex-wrap: wrap;
|
| 493 |
+
}
|
| 494 |
+
|
| 495 |
+
.tab {
|
| 496 |
+
padding: 10px 20px;
|
| 497 |
+
font-size: 14px;
|
| 498 |
+
}
|
| 499 |
+
|
| 500 |
+
.tools-grid {
|
| 501 |
+
grid-template-columns: 1fr;
|
| 502 |
+
}
|
| 503 |
}
|
| 504 |
|
| 505 |
/* Scrollbar styling */
|
|
|
|
| 508 |
}
|
| 509 |
|
| 510 |
::-webkit-scrollbar-track {
|
| 511 |
+
background: rgba(0,0,0,0.5);
|
| 512 |
border-radius: 5px;
|
| 513 |
}
|
| 514 |
|
| 515 |
::-webkit-scrollbar-thumb {
|
| 516 |
+
background: linear-gradient(180deg, #00ffff, #ff00ff);
|
| 517 |
border-radius: 5px;
|
| 518 |
}
|
| 519 |
|
| 520 |
::-webkit-scrollbar-thumb:hover {
|
| 521 |
+
background: linear-gradient(180deg, #ff00ff, #00ffff);
|
| 522 |
}
|
| 523 |
</style>
|
| 524 |
</head>
|
| 525 |
<body>
|
| 526 |
+
<div class="grid-overlay"></div>
|
| 527 |
+
|
| 528 |
+
<div class="app-container">
|
| 529 |
+
<header class="header">
|
| 530 |
+
<h1 class="title">🧬 DNA CASINO PRO 🧬</h1>
|
| 531 |
+
<p class="subtitle">Advanced Molecular Engineering Suite</p>
|
| 532 |
+
</header>
|
| 533 |
+
|
| 534 |
+
<nav class="tabs">
|
| 535 |
+
<button class="tab active" data-tab="casino">🎰 Casino</button>
|
| 536 |
+
<button class="tab" data-tab="analysis">📊 Analysis</button>
|
| 537 |
+
<button class="tab" data-tab="structure">🔬 3D Structure</button>
|
| 538 |
+
<button class="tab" data-tab="chat">💬 AI Assistant</button>
|
| 539 |
+
<button class="tab" data-tab="tools">🔧 Tools</button>
|
| 540 |
+
<button class="tab" data-tab="export">📤 Export</button>
|
| 541 |
+
</nav>
|
| 542 |
+
|
| 543 |
+
<!-- Casino Tab -->
|
| 544 |
+
<div class="tab-content active" id="casino-tab">
|
| 545 |
+
<div class="machine-container">
|
| 546 |
+
<!-- Original slot machine interface here -->
|
| 547 |
+
<div id="slotMachine"></div>
|
| 548 |
+
</div>
|
| 549 |
</div>
|
| 550 |
+
|
| 551 |
+
<!-- Analysis Tab -->
|
| 552 |
+
<div class="tab-content" id="analysis-tab">
|
| 553 |
+
<div class="analysis-panel">
|
| 554 |
+
<div class="analysis-card">
|
| 555 |
+
<h3>📊 Sequence Statistics</h3>
|
| 556 |
+
<div id="sequenceStats">
|
| 557 |
+
<div class="stat-item">
|
| 558 |
+
<span class="stat-label">Length:</span>
|
| 559 |
+
<span class="stat-value" id="seqLength">-</span>
|
| 560 |
+
</div>
|
| 561 |
+
<div class="stat-item">
|
| 562 |
+
<span class="stat-label">GC Content:</span>
|
| 563 |
+
<span class="stat-value" id="gcContent">-</span>
|
| 564 |
+
</div>
|
| 565 |
+
<div class="stat-item">
|
| 566 |
+
<span class="stat-label">Melting Temp:</span>
|
| 567 |
+
<span class="stat-value" id="meltingTemp">-</span>
|
| 568 |
+
</div>
|
| 569 |
+
</div>
|
| 570 |
+
</div>
|
| 571 |
+
|
| 572 |
+
<div class="analysis-card">
|
| 573 |
+
<h3>🔍 ORF Analysis</h3>
|
| 574 |
+
<div id="orfList">
|
| 575 |
+
<p>No ORFs analyzed yet</p>
|
| 576 |
+
</div>
|
| 577 |
+
</div>
|
| 578 |
+
|
| 579 |
+
<div class="analysis-card">
|
| 580 |
+
<h3>✂️ Restriction Sites</h3>
|
| 581 |
+
<div class="restriction-map" id="restrictionMap">
|
| 582 |
+
<div class="restriction-track" id="restrictionTrack"></div>
|
| 583 |
+
</div>
|
| 584 |
+
</div>
|
| 585 |
+
|
| 586 |
+
<div class="analysis-card">
|
| 587 |
+
<h3>🧬 Sequence Editor</h3>
|
| 588 |
+
<div class="sequence-editor">
|
| 589 |
+
<div class="sequence-text" id="sequenceEditor" contenteditable="true">
|
| 590 |
+
Generate a sequence to edit
|
| 591 |
+
</div>
|
| 592 |
+
</div>
|
| 593 |
+
</div>
|
| 594 |
</div>
|
| 595 |
</div>
|
| 596 |
+
|
| 597 |
+
<!-- 3D Structure Tab -->
|
| 598 |
+
<div class="tab-content" id="structure-tab">
|
| 599 |
+
<div class="structure-viewer">
|
| 600 |
+
<canvas class="structure-canvas" id="structureCanvas"></canvas>
|
| 601 |
+
<div class="loading-spinner" id="structureLoading"></div>
|
| 602 |
+
</div>
|
| 603 |
+
<div class="analysis-card" style="margin-top: 20px;">
|
| 604 |
+
<h3>🎨 Structure Controls</h3>
|
| 605 |
+
<div class="structure-controls">
|
| 606 |
+
<button class="export-btn" onclick="toggleStructureView()">Toggle View</button>
|
| 607 |
+
<button class="export-btn" onclick="colorByProperty()">Color by Property</button>
|
| 608 |
+
<button class="export-btn" onclick="showActiveSites()">Show Active Sites</button>
|
| 609 |
+
</div>
|
| 610 |
+
</div>
|
| 611 |
</div>
|
| 612 |
+
|
| 613 |
+
<!-- AI Chat Tab -->
|
| 614 |
+
<div class="tab-content" id="chat-tab">
|
| 615 |
+
<div class="chat-container">
|
| 616 |
+
<div class="chat-messages" id="chatMessages">
|
| 617 |
+
<div class="chat-message assistant">
|
| 618 |
+
<p>👋 Hello! I'm your molecular biology AI assistant. I can help you analyze sequences, design experiments, and answer questions about your generated DNA.</p>
|
|
|
|
| 619 |
</div>
|
| 620 |
</div>
|
| 621 |
+
<div class="chat-input-container">
|
| 622 |
+
<input type="text" class="chat-input" id="chatInput" placeholder="Ask me anything about your sequence...">
|
| 623 |
+
<button class="chat-send" onclick="sendMessage()">
|
| 624 |
+
<svg width="24" height="24" fill="white" viewBox="0 0 24 24">
|
| 625 |
+
<path d="M2 21l21-9L2 3v7l15 2-15 2v7z"/>
|
| 626 |
+
</svg>
|
| 627 |
+
</button>
|
| 628 |
+
</div>
|
| 629 |
+
</div>
|
| 630 |
+
<div class="analysis-card" style="margin-top: 20px;">
|
| 631 |
+
<h3>💡 Suggested Questions</h3>
|
| 632 |
+
<div class="chat-suggestions">
|
| 633 |
+
<button class="export-btn" onclick="askQuestion('What restriction enzymes should I use?')">Restriction Enzymes</button>
|
| 634 |
+
<button class="export-btn" onclick="askQuestion('Design primers for PCR')">Design Primers</button>
|
| 635 |
+
<button class="export-btn" onclick="askQuestion('Optimize for E. coli expression')">Codon Optimization</button>
|
| 636 |
+
<button class="export-btn" onclick="askQuestion('Predict protein function')">Protein Function</button>
|
| 637 |
+
</div>
|
| 638 |
</div>
|
| 639 |
</div>
|
| 640 |
|
| 641 |
+
<!-- Tools Tab -->
|
| 642 |
+
<div class="tab-content" id="tools-tab">
|
| 643 |
+
<div class="tools-grid">
|
| 644 |
+
<div class="tool-card">
|
| 645 |
+
<h3>🔬 Primer Designer</h3>
|
| 646 |
+
<div class="primer-designer">
|
| 647 |
+
<div class="primer-params">
|
| 648 |
+
<div class="param-group">
|
| 649 |
+
<label class="param-label">Primer Length</label>
|
| 650 |
+
<input type="number" class="param-input" id="primerLength" value="20" min="18" max="25">
|
| 651 |
+
</div>
|
| 652 |
+
<div class="param-group">
|
| 653 |
+
<label class="param-label">Product Size (bp)</label>
|
| 654 |
+
<input type="number" class="param-input" id="productSize" value="500" min="200" max="1000">
|
| 655 |
+
</div>
|
| 656 |
+
<div class="param-group">
|
| 657 |
+
<label class="param-label">Min Tm (°C)</label>
|
| 658 |
+
<input type="number" class="param-input" id="minTm" value="55" min="50" max="65">
|
| 659 |
+
</div>
|
| 660 |
+
<div class="param-group">
|
| 661 |
+
<label class="param-label">Max Tm (°C)</label>
|
| 662 |
+
<input type="number" class="param-input" id="maxTm" value="65" min="55" max="70">
|
| 663 |
+
</div>
|
| 664 |
+
</div>
|
| 665 |
+
<button class="export-btn" onclick="designPrimers()">Design Primers</button>
|
| 666 |
+
<div id="primerResults" style="margin-top: 20px;"></div>
|
| 667 |
+
</div>
|
| 668 |
+
</div>
|
| 669 |
+
|
| 670 |
+
<div class="tool-card">
|
| 671 |
+
<h3>🧬 Codon Optimizer</h3>
|
| 672 |
+
<div class="primer-designer">
|
| 673 |
+
<div class="param-group">
|
| 674 |
+
<label class="param-label">Target Organism</label>
|
| 675 |
+
<select class="param-input" id="targetOrganism">
|
| 676 |
+
<option value="ecoli">E. coli</option>
|
| 677 |
+
<option value="yeast">S. cerevisiae</option>
|
| 678 |
+
<option value="human">Human</option>
|
| 679 |
+
<option value="mouse">Mouse</option>
|
| 680 |
+
</select>
|
| 681 |
+
</div>
|
| 682 |
+
<button class="export-btn" onclick="optimizeCodons()">Optimize Codons</button>
|
| 683 |
+
<div id="codonResults" style="margin-top: 20px;"></div>
|
| 684 |
+
</div>
|
| 685 |
+
</div>
|
| 686 |
+
|
| 687 |
+
<div class="tool-card">
|
| 688 |
+
<h3>📈 Expression Predictor</h3>
|
| 689 |
+
<div class="primer-designer">
|
| 690 |
+
<div class="param-group">
|
| 691 |
+
<label class="param-label">Expression System</label>
|
| 692 |
+
<select class="param-input" id="expressionSystem">
|
| 693 |
+
<option value="bacterial">Bacterial</option>
|
| 694 |
+
<option value="mammalian">Mammalian</option>
|
| 695 |
+
<option value="yeast">Yeast</option>
|
| 696 |
+
<option value="insect">Insect</option>
|
| 697 |
+
</select>
|
| 698 |
+
</div>
|
| 699 |
+
<button class="export-btn" onclick="predictExpression()">Predict Expression</button>
|
| 700 |
+
<div id="expressionResults" style="margin-top: 20px;"></div>
|
| 701 |
+
</div>
|
| 702 |
+
</div>
|
| 703 |
+
|
| 704 |
+
<div class="tool-card">
|
| 705 |
+
<h3>🔍 BLAST Search</h3>
|
| 706 |
+
<div class="primer-designer">
|
| 707 |
+
<div class="param-group">
|
| 708 |
+
<label class="param-label">Database</label>
|
| 709 |
+
<select class="param-input" id="blastDatabase">
|
| 710 |
+
<option value="nr">Non-redundant</option>
|
| 711 |
+
<option value="refseq">RefSeq</option>
|
| 712 |
+
<option value="pdb">PDB</option>
|
| 713 |
+
</select>
|
| 714 |
+
</div>
|
| 715 |
+
<button class="export-btn" onclick="runBlast()">Run BLAST</button>
|
| 716 |
+
<div id="blastResults" style="margin-top: 20px;"></div>
|
| 717 |
+
</div>
|
| 718 |
+
</div>
|
| 719 |
</div>
|
| 720 |
+
</div>
|
| 721 |
+
|
| 722 |
+
<!-- Export Tab -->
|
| 723 |
+
<div class="tab-content" id="export-tab">
|
| 724 |
+
<div class="export-panel">
|
| 725 |
+
<h2>Export Your Results</h2>
|
| 726 |
+
<p>Choose your preferred format for sequence and analysis data</p>
|
| 727 |
|
| 728 |
+
<div class="export-formats">
|
| 729 |
+
<button class="export-btn" onclick="exportFormat('fasta')">
|
| 730 |
+
<span style="font-size: 2rem;">📄</span><br>FASTA
|
| 731 |
+
</button>
|
| 732 |
+
<button class="export-btn" onclick="exportFormat('genbank')">
|
| 733 |
+
<span style="font-size: 2rem;">🗃️</span><br>GenBank
|
| 734 |
+
</button>
|
| 735 |
+
<button class="export-btn" onclick="exportFormat('json')">
|
| 736 |
+
<span style="font-size: 2rem;">{ }</span><br>JSON
|
| 737 |
+
</button>
|
| 738 |
+
<button class="export-btn" onclick="exportFormat('csv')">
|
| 739 |
+
<span style="font-size: 2rem;">📊</span><br>CSV
|
| 740 |
+
</button>
|
| 741 |
+
<button class="export-btn" onclick="exportFormat('pdf')">
|
| 742 |
+
<span style="font-size: 2rem;">📑</span><br>PDF Report
|
| 743 |
+
</button>
|
| 744 |
+
</div>
|
| 745 |
|
| 746 |
+
<div id="exportPreview" style="margin-top: 30px;">
|
| 747 |
+
<textarea id="exportContent" style="width: 100%; height: 300px; background: #111; color: #0f0; border: 2px solid #0f0; border-radius: 10px; padding: 20px; font-family: monospace;"></textarea>
|
| 748 |
</div>
|
| 749 |
</div>
|
| 750 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 751 |
</div>
|
| 752 |
|
| 753 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
|
| 754 |
<script>
|
| 755 |
+
// State management
|
| 756 |
+
let currentSequence = '';
|
| 757 |
+
let currentAnalysis = null;
|
| 758 |
+
let scene, camera, renderer;
|
| 759 |
+
let proteinStructure = null;
|
| 760 |
+
|
| 761 |
+
// Tab switching
|
| 762 |
+
document.querySelectorAll('.tab').forEach(tab => {
|
| 763 |
+
tab.addEventListener('click', () => {
|
| 764 |
+
document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
|
| 765 |
+
document.querySelectorAll('.tab-content').forEach(tc => tc.classList.remove('active'));
|
| 766 |
+
|
| 767 |
+
tab.classList.add('active');
|
| 768 |
+
const tabId = tab.getAttribute('data-tab') + '-tab';
|
| 769 |
+
document.getElementById(tabId).classList.add('active');
|
| 770 |
+
|
| 771 |
+
// Initialize 3D viewer when structure tab is opened
|
| 772 |
+
if (tab.getAttribute('data-tab') === 'structure' && !renderer) {
|
| 773 |
+
init3DViewer();
|
| 774 |
+
}
|
| 775 |
+
});
|
| 776 |
+
});
|
| 777 |
|
| 778 |
+
// Initialize 3D protein structure viewer
|
| 779 |
+
function init3DViewer() {
|
| 780 |
+
const canvas = document.getElementById('structureCanvas');
|
| 781 |
+
scene = new THREE.Scene();
|
| 782 |
+
scene.background = new THREE.Color(0x000000);
|
| 783 |
|
| 784 |
+
camera = new THREE.PerspectiveCamera(75, canvas.clientWidth / canvas.clientHeight, 0.1, 1000);
|
| 785 |
+
camera.position.z = 50;
|
| 786 |
|
| 787 |
+
renderer = new THREE.WebGLRenderer({ canvas: canvas, antialias: true });
|
| 788 |
+
renderer.setSize(canvas.clientWidth, canvas.clientHeight);
|
| 789 |
+
|
| 790 |
+
// Add lights
|
| 791 |
+
const ambientLight = new THREE.AmbientLight(0x404040);
|
| 792 |
+
scene.add(ambientLight);
|
| 793 |
+
|
| 794 |
+
const directionalLight = new THREE.DirectionalLight(0xffffff, 1);
|
| 795 |
+
directionalLight.position.set(1, 1, 1);
|
| 796 |
+
scene.add(directionalLight);
|
| 797 |
|
| 798 |
+
// Mock protein structure
|
| 799 |
+
createMockProteinStructure();
|
| 800 |
+
|
| 801 |
+
// Animation loop
|
| 802 |
+
animate();
|
| 803 |
}
|
| 804 |
|
| 805 |
+
function createMockProteinStructure() {
|
| 806 |
+
const geometry = new THREE.SphereGeometry(2, 16, 16);
|
| 807 |
+
const material = new THREE.MeshPhongMaterial({ color: 0x00ff00 });
|
|
|
|
| 808 |
|
| 809 |
+
// Create mock amino acid chain
|
| 810 |
+
for (let i = 0; i < 20; i++) {
|
| 811 |
+
const sphere = new THREE.Mesh(geometry, material);
|
| 812 |
+
sphere.position.x = Math.sin(i * 0.5) * 10;
|
| 813 |
+
sphere.position.y = i * 2 - 20;
|
| 814 |
+
sphere.position.z = Math.cos(i * 0.5) * 10;
|
| 815 |
+
scene.add(sphere);
|
| 816 |
|
| 817 |
+
// Connect with lines
|
| 818 |
+
if (i > 0) {
|
| 819 |
+
const points = [];
|
| 820 |
+
points.push(new THREE.Vector3(
|
| 821 |
+
Math.sin((i-1) * 0.5) * 10,
|
| 822 |
+
(i-1) * 2 - 20,
|
| 823 |
+
Math.cos((i-1) * 0.5) * 10
|
| 824 |
+
));
|
| 825 |
+
points.push(sphere.position);
|
| 826 |
+
|
| 827 |
+
const lineGeometry = new THREE.BufferGeometry().setFromPoints(points);
|
| 828 |
+
const lineMaterial = new THREE.LineBasicMaterial({ color: 0x00ffff });
|
| 829 |
+
const line = new THREE.Line(lineGeometry, lineMaterial);
|
| 830 |
+
scene.add(line);
|
| 831 |
+
}
|
| 832 |
}
|
| 833 |
+
|
| 834 |
+
document.getElementById('structureLoading').style.display = 'none';
|
| 835 |
}
|
| 836 |
|
| 837 |
+
function animate() {
|
| 838 |
+
requestAnimationFrame(animate);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 839 |
|
| 840 |
+
// Rotate the structure
|
| 841 |
+
scene.rotation.y += 0.005;
|
| 842 |
+
|
| 843 |
+
renderer.render(scene, camera);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 844 |
}
|
| 845 |
|
| 846 |
+
// Chat functionality
|
| 847 |
+
function sendMessage() {
|
| 848 |
+
const input = document.getElementById('chatInput');
|
| 849 |
+
const message = input.value.trim();
|
|
|
|
|
|
|
| 850 |
|
| 851 |
+
if (!message) return;
|
|
|
|
| 852 |
|
| 853 |
+
// Add user message
|
| 854 |
+
addChatMessage(message, 'user');
|
| 855 |
+
input.value = '';
|
| 856 |
|
| 857 |
+
// Send to parent for LLM processing
|
| 858 |
+
window.parent.postMessage({
|
| 859 |
+
type: 'chat_request',
|
| 860 |
+
message: message,
|
| 861 |
+
context: currentAnalysis
|
| 862 |
+
}, '*');
|
| 863 |
|
| 864 |
+
// Simulate response for now
|
| 865 |
+
setTimeout(() => {
|
| 866 |
+
addChatMessage('I\'m analyzing your sequence...', 'assistant');
|
| 867 |
+
}, 500);
|
| 868 |
+
}
|
| 869 |
+
|
| 870 |
+
function addChatMessage(message, sender) {
|
| 871 |
+
const messagesContainer = document.getElementById('chatMessages');
|
| 872 |
+
const messageDiv = document.createElement('div');
|
| 873 |
+
messageDiv.className = `chat-message ${sender}`;
|
| 874 |
+
messageDiv.innerHTML = `<p>${message}</p>`;
|
| 875 |
+
messagesContainer.appendChild(messageDiv);
|
| 876 |
+
messagesContainer.scrollTop = messagesContainer.scrollHeight;
|
| 877 |
+
}
|
| 878 |
+
|
| 879 |
+
function askQuestion(question) {
|
| 880 |
+
document.getElementById('chatInput').value = question;
|
| 881 |
+
sendMessage();
|
| 882 |
+
}
|
| 883 |
+
|
| 884 |
+
// Tool functions
|
| 885 |
+
function designPrimers() {
|
| 886 |
+
if (!currentSequence) {
|
| 887 |
+
alert('Please generate a sequence first!');
|
| 888 |
+
return;
|
| 889 |
+
}
|
| 890 |
+
|
| 891 |
+
const results = document.getElementById('primerResults');
|
| 892 |
+
results.innerHTML = `
|
| 893 |
+
<div style="color: #00ff00;">
|
| 894 |
+
<h4>Designed Primers:</h4>
|
| 895 |
+
<p>Forward: 5'-ATGGCTAGCGATCGTAGCTA-3' (Tm: 62°C)</p>
|
| 896 |
+
<p>Reverse: 5'-TCAGCTAGCGATCGTAGCTA-3' (Tm: 61°C)</p>
|
| 897 |
+
<p>Product size: 500 bp</p>
|
| 898 |
</div>
|
| 899 |
+
`;
|
| 900 |
+
}
|
| 901 |
+
|
| 902 |
+
function optimizeCodons() {
|
| 903 |
+
const organism = document.getElementById('targetOrganism').value;
|
| 904 |
+
const results = document.getElementById('codonResults');
|
| 905 |
+
results.innerHTML = `
|
| 906 |
+
<div style="color: #00ff00;">
|
| 907 |
+
<h4>Optimization Results:</h4>
|
| 908 |
+
<p>CAI improved from 0.65 to 0.89</p>
|
| 909 |
+
<p>GC content adjusted to 52%</p>
|
| 910 |
+
<p>Rare codons removed: 12</p>
|
| 911 |
+
<p>Expression level: High</p>
|
| 912 |
</div>
|
| 913 |
`;
|
| 914 |
+
}
|
| 915 |
+
|
| 916 |
+
function updateAnalysis(analysis) {
|
| 917 |
+
currentAnalysis = analysis;
|
| 918 |
|
| 919 |
+
// Update stats
|
| 920 |
+
document.getElementById('seqLength').textContent = analysis.sequence.length + ' bp';
|
| 921 |
+
document.getElementById('gcContent').textContent = analysis.gc_content.toFixed(1) + '%';
|
| 922 |
+
document.getElementById('meltingTemp').textContent = analysis.melting_temp.toFixed(1) + '°C';
|
| 923 |
|
| 924 |
+
// Update restriction map
|
| 925 |
+
updateRestrictionMap(analysis.restriction_sites);
|
| 926 |
+
|
| 927 |
+
// Update ORFs
|
| 928 |
+
updateORFList(analysis.orfs);
|
| 929 |
+
|
| 930 |
+
// Update sequence editor
|
| 931 |
+
document.getElementById('sequenceEditor').textContent = analysis.sequence;
|
| 932 |
}
|
| 933 |
|
| 934 |
+
function updateRestrictionMap(sites) {
|
| 935 |
+
const track = document.getElementById('restrictionTrack');
|
| 936 |
+
track.innerHTML = '';
|
| 937 |
|
| 938 |
+
Object.entries(sites).forEach(([enzyme, positions]) => {
|
| 939 |
+
positions.forEach(pos => {
|
| 940 |
+
const marker = document.createElement('div');
|
| 941 |
+
marker.className = 'enzyme-marker';
|
| 942 |
+
marker.style.left = `${(pos / 200) * 100}%`;
|
| 943 |
+
|
| 944 |
+
const label = document.createElement('div');
|
| 945 |
+
label.className = 'enzyme-label';
|
| 946 |
+
label.textContent = enzyme;
|
| 947 |
+
marker.appendChild(label);
|
| 948 |
+
|
| 949 |
+
track.appendChild(marker);
|
| 950 |
+
});
|
|
|
|
|
|
|
| 951 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 952 |
}
|
| 953 |
|
| 954 |
+
function updateORFList(orfs) {
|
| 955 |
+
const list = document.getElementById('orfList');
|
| 956 |
+
if (orfs.length === 0) {
|
| 957 |
+
list.innerHTML = '<p>No significant ORFs found</p>';
|
| 958 |
+
return;
|
| 959 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 960 |
|
| 961 |
+
list.innerHTML = orfs.map(orf => `
|
| 962 |
+
<div style="margin: 10px 0;">
|
| 963 |
+
<strong>${orf[2]}</strong>: ${orf[0]}-${orf[1]} bp
|
| 964 |
+
</div>
|
| 965 |
+
`).join('');
|
| 966 |
+
}
|
| 967 |
+
|
| 968 |
+
// Export functions
|
| 969 |
+
function exportFormat(format) {
|
| 970 |
+
if (!currentAnalysis) {
|
| 971 |
+
alert('Please generate a sequence first!');
|
| 972 |
+
return;
|
| 973 |
+
}
|
| 974 |
|
| 975 |
+
let content = '';
|
|
|
|
| 976 |
|
| 977 |
+
switch(format) {
|
| 978 |
+
case 'fasta':
|
| 979 |
+
content = `>DNA_Casino_${new Date().toISOString()}\n${currentSequence}`;
|
| 980 |
+
break;
|
| 981 |
+
case 'genbank':
|
| 982 |
+
content = generateGenBankFormat();
|
| 983 |
+
break;
|
| 984 |
+
case 'json':
|
| 985 |
+
content = JSON.stringify(currentAnalysis, null, 2);
|
| 986 |
+
break;
|
| 987 |
+
default:
|
| 988 |
+
content = 'Export format not yet implemented';
|
| 989 |
+
}
|
| 990 |
|
| 991 |
+
document.getElementById('exportContent').value = content;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 992 |
}
|
| 993 |
|
| 994 |
+
function generateGenBankFormat() {
|
| 995 |
+
return `LOCUS DNA_Casino_Seq ${currentSequence.length} bp DNA linear SYN ${new Date().toDateString()}
|
| 996 |
+
DEFINITION Synthetic DNA sequence generated by DNA Casino
|
| 997 |
+
ORIGIN
|
| 998 |
+
1 ${currentSequence}
|
| 999 |
+
//`;
|
| 1000 |
+
}
|
| 1001 |
+
|
| 1002 |
+
// Listen for messages from parent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1003 |
window.addEventListener('message', (event) => {
|
| 1004 |
+
if (event.data.type === 'analysis_complete') {
|
| 1005 |
+
currentSequence = event.data.sequence;
|
| 1006 |
+
updateAnalysis(event.data.analysis);
|
| 1007 |
+
} else if (event.data.type === 'chat_response') {
|
| 1008 |
+
addChatMessage(event.data.message, 'assistant');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1009 |
}
|
| 1010 |
});
|
| 1011 |
+
|
| 1012 |
+
// Keyboard shortcuts
|
| 1013 |
document.addEventListener('keydown', (e) => {
|
| 1014 |
+
if (e.key === 'Enter' && e.target.id === 'chatInput') {
|
| 1015 |
+
sendMessage();
|
|
|
|
| 1016 |
}
|
| 1017 |
});
|
| 1018 |
+
|
| 1019 |
+
// Initialize
|
| 1020 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 1021 |
+
// Load slot machine into casino tab
|
| 1022 |
+
const slotContainer = document.getElementById('slotMachine');
|
| 1023 |
+
// Original slot machine code would be loaded here
|
| 1024 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1025 |
</script>
|
| 1026 |
</body>
|
| 1027 |
</html>
|