Spaces:
Running
Running
File size: 12,822 Bytes
352a4b6 |
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 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 |
/**
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* Basic Reset & Body Style */
html {
height: 100%;
--image-fixed-width: 280px;
}
body {
font-family: sans-serif;
line-height: 1.6;
background-color: #f4f4f4;
color: #333;
margin: 0;
display: flex;
flex-direction: column;
user-select: none;
}
.main {
display: none; /*display: grid;*/
grid-template-columns: 1fr minmax(500px, 800px) minmax(300px, 1fr);
grid-template-rows: auto;
column-gap: 20px;
row-gap: 10px;
padding: 30px;
}
h1,
h2 {
color: #333;
}
.page-header h1 {
margin: 0;
}
.container {
display: flex;
flex-wrap: wrap;
gap: 25px;
padding: 20px;
flex-grow: 1;
justify-content: center;
}
/* Top Navigation Styles */
.top-navigation {
display: flex;
align-items: center;
padding-top: 30px;
gap: 15px; /* Space between back button and case tabs */
border-bottom: 1px solid #E0E0E0; /* Optional: a subtle separator */
margin-bottom: 10px;
align-items: flex-start;
justify-content: center;
}
.nav-button {
display: inline-flex; /* Changed from inline-flex on parent to allow direct styling */
justify-content: center;
align-items: center;
cursor: pointer;
user-select: none;
}
.nav-button-inner {
overflow: hidden;
border-radius: 100px; /* Very rounded corners */
outline: 1px solid #C4C7C5; /* Outline color */
outline-offset: -1px; /* Outline inside */
display: flex;
justify-content: center;
align-items: center;
padding: 6px 12px;
gap: 8px; /* Increased gap slightly for better visual separation */
transition: background-color 0.2s ease;
}
.nav-button-icon {
font-size: 20px; /* Icon size */
color: #444746; /* Icon color */
display: flex;
align-items: center;
justify-content: center;
}
.nav-button-text {
color: #444746; /* Text color */
font-size: 14px;
font-family: 'Google Sans Text', sans-serif;
font-weight: 500;
line-height: 20px;
white-space: nowrap;
}
.nav-button-case.active .nav-button-inner,
.nav-button:hover .nav-button-inner {
background-color: rgba(68, 71, 70, 0.10); /* Focused/hover background */
}
.nav-button-info {
color: #004A77;
margin: 0 20px;
}
/* Column Styles */
.report-section,
.image-section,
.explanation-section {
position: relative;
float: right;
}
.image-section {
justify-content: center;
display: flex;
flex-direction: column;
justify-self: end;
}
.report-section {
flex: 1;
max-width: 800px;
}
.image-header {
text-align: center;
color: black;
font-size: 22px;
font-family: Google Sans;
font-weight: 400;
line-height: 28px;
word-wrap: break-word;
margin: 5px;
}
.case-selector-tabs-container {
display: grid;
justify-content: center;
align-items: center;
grid-template-columns: min-content auto;
column-gap: 20px;
row-gap: 10px;
padding-left: 20px;
white-space: nowrap;
}
.case-selector-tabs-modality-container {
display: flex;
align-items: center;
width: 100%;
justify-content: flex-start;
}
.case-selector-tabs {
display: flex;
flex-wrap: wrap;
}
/* Report Text & Sentences */
.report-text-area {
padding: 30px;
overflow-y: auto;
background-color: #fdfdfd;
border-radius: 28px;
border: 2px solid #E9E9E9;
}
/* Styles for clickable sentences within the report text area */
.report-sentence {
cursor: pointer;
padding: 2px 0;
transition: background-color 0.2s ease;
border-radius: 14.272px;
border: 1.359px solid #F1E161;
}
.report-sentence:hover {
background: #F1E161;
mix-blend-mode: multiply;
}
.report-sentence.selected-sentence {
background: #F1E161;
mix-blend-mode: multiply;
}
/* Image Section */
.image-container {
position: relative;
border: 1px solid #ccc;
min-height: 100px;
display: flex;
flex-direction: column;
background-color: #f0f0f0;
margin: 0 auto; /* Keep auto margin for centering if desired */
width: var(--image-fixed-width);
}
.image-container img {
display: block;
max-width: 100%;
height: auto;
}
#report-image {
width: var(--image-fixed-width);
min-width: var(--image-fixed-width); /* Ensure min-width also uses the variable if it's meant to be the same */
}
#image-loading {
width: var(--image-fixed-width);
}
/* Note specific to CT images, displayed under the image */
#ct-image-note {
display: none; /* Initially hidden, controlled by JavaScript */
text-align: center;
margin-top: 10px;
font-size: 0.9em;
color: #555;
padding: 0 10px; /* Add some padding so text doesn't touch edges if it wraps */
word-wrap: break-word; /* Ensures text wraps to prevent overflow */
width: var(--image-fixed-width); /* Same width as the image */
}
.marker {
position: absolute;
transform: translate(-50%, -50%);
pointer-events: none;
display: none;
transition: top 0.3s ease-in-out, left 0.3s ease-in-out;
width: max-content;
}
/* Explanation Section */
.explanation-box {
border: 1px solid #eee;
min-height: 50px;
background-color: #F1E161;
box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.25);
position: absolute;
left: -20px;
top: 0px;
width: 300px;
transition: top 0.3s ease-in-out, background-color 0.3s ease, height 0.3s ease;
}
.explanation-header {
font-size: 22px;
font-style: normal;
font-weight: 400;
padding: 10px 10px 0;
}
.loading .explanation-header {
display: none;
}
/* New style for the content wrapper inside explanation-box */
#explanation-content {
padding: 10px;
overflow-y: auto;
height: 100%;
box-sizing: border-box;
}
/* Style for when the box is loading */
.explanation-box.loading {
background-color: #cfcfcf;
}
/* Adjust #explanation-loading (the div element) to be an overlay */
#explanation-loading {
display: none;
font-style: italic;
color: #777;
text-align: center;
padding: 10px;
}
/* Show #explanation-loading when its parent #explanation-output (which is .explanation-box) has class 'loading' */
#explanation-output.loading > #explanation-loading {
display: flex;
}
/* Utility Classes */
.error-message {
color: #d9534f;
background-color: #f2dede;
border: 1px solid #ebccd1;
padding: 10px;
border-radius: 4px;
margin-top: 10px;
text-align: center;
}
/* Responsive Adjustments (Optional) */
@media (max-width: 768px) {
.container {
flex-direction: column;
}
}
/* Info Page Styles */
.info {
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
}
.info-page-container {
display: flex;
flex-direction: row-reverse;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 40px;
padding: 40px;
background-color: #fff;
max-width: 1200px;
margin: 20px auto;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
box-sizing: border-box;
}
.info-content {
flex: 1;
min-width: 350px;
max-width: 600px;
display: flex;
flex-direction: column;
gap: 20px;
font-size: 18px;
}
.info-header {
margin-bottom: 10px;
}
.info-title-med,
.info-title-demo {
font-family: 'Google Sans', sans-serif;
font-size: 48px;
font-weight: 400;
}
#info-button .nav-button-inner{
background-color: #C2E7FF;
}
.info-title-demo {
color: #969696;
margin-left: 10px;
}
.info-subtitle-demo {
color: #969696;
font-size: 28px;
}
.info-text {
font-family: 'Google Sans', sans-serif;
line-height: 1.6;
color: #333;
}
.info-button {
font-family: 'Google Sans Text', sans-serif;
background-color: #0B57D0;
color: white;
font-size: 14px;
font-weight: 500;
padding: 12px 24px;
border: none;
border-radius: 100px;
cursor: pointer;
text-align: center;
transition: background-color 0.3s ease;
align-self: flex-start;
}
/* Hover state for the button */
.info-button:hover {
background-color: #0a4db8;
/* Darker blue on hover */
}
.info-disclaimer-box {
border: 1px solid #CDCDCD;
border-radius: 15px;
padding: 15px 20px;
margin-top: 20px;
}
.info-disclaimer-text {
font-family: 'Google Sans', sans-serif;
color: #333;
line-height: 1.5;
margin: 0;
font-size: 14px;
}
.info-disclaimer-title {
border-radius: 14.272px;
border: 1.359px solid #F1E161;
background: #F1E161;
mix-blend-mode: multiply;
}
.info-disclaimer-link {
color: #0B57D0;
font-weight: 500;
text-decoration: none;
}
.info-disclaimer-link:hover {
text-decoration: underline;
}
.info-image-container {
flex: 1;
min-width: 300px;
max-width: 500px;
display: flex;
justify-content: center;
align-items: center;
}
.info-image {
max-width: 100%;
height: auto;
border-radius: 8px;
}
/* Responsive adjustments for info page */
@media (max-width: 768px) {
.info-page-container {
flex-direction: column;
padding: 20px;
margin: 10px;
}
.info-content {
max-width: 100%;
align-items: center;
text-align: center;
}
.info-button {
align-self: center;
}
.info-header {
text-align: center;
}
.info-title-med,
.info-title-demo {
font-size: 36px;
}
.info-text {
font-size: 16px;
}
}
/* --- Immersive Info Dialog Styles --- */
.dialog-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent backdrop */
display: flex;
align-items: center;
justify-content: center;
z-index: 1000; /* Ensure it's on top */
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.dialog-overlay.active {
opacity: 1;
visibility: visible;
}
.dialog-box {
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 30px rgba(0,0,0,0.15);
width: 85%;
max-width: 800px; /* Adjust for desired largeness */
max-height: 85vh; /* Ensure it fits vertically and allows scrolling */
position: relative;
display: flex;
flex-direction: column;
overflow: hidden; /* Important for border-radius with scrollable content */
transform: scale(0.95);
transition: transform 0.3s ease;
}
.dialog-overlay.active .dialog-box {
transform: scale(1);
}
.dialog-title-text {
padding: 24px 24px 16px 24px;
margin: 0;
font-size: 1.6rem; /* Adjust as needed */
font-weight: 500; /* Using Google Sans weight */
color: #202124; /* Dark grey text color */
border-bottom: 1px solid #e0e0e0; /* Subtle separator */
flex-shrink: 0; /* Prevent title from shrinking */
}
.dialog-body-scrollable {
padding: 16px 24px 24px 24px;
overflow-y: auto; /* Enable scrolling for TBD content */
flex-grow: 1; /* Allow body to take available space */
color: #3c4043; /* Standard body text color */
line-height: 1.6;
}
.dialog-close-btn {
position: absolute;
top: 12px;
right: 12px;
background: transparent;
border: none;
cursor: pointer;
padding: 10px; /* Increase clickable area */
line-height: 0; /* Helps align icon if it's just an icon */
border-radius: 50%;
transition: background-color 0.2s ease-in-out;
z-index: 10; /* Ensure close button is above title/body */
}
.dialog-close-btn:hover {
background-color: rgba(0,0,0,0.08);
}
.dialog-close-btn .material-symbols-outlined {
font-size: 24px; /* Standard Material Icon size */
color: #5f6368; /* Standard icon color */
display: block; /* Better for layout */
}
.hf-logo {
vertical-align: middle;
width: 30px;
}
.floating-disclaimer {
padding: 5px 10px;
margin-top: 10px;
color: #333;
display: flex;
align-items: center;
font-size: 12px;
background-color: lightcyan;
text-align: justify;
}
.disclaimer-icon {
vertical-align: middle;
margin-right: 10px;
font-weight: 300 !important;
}
.nav-button-back {
/*justify-self: start;
margin-left: 30px;*/
} |