body {
    background-color: #1a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.canvas {
    width: 400px;
    height: 600px;
    background-color: #2b0f0f;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.block {
    width: 100%;
    position: relative;
    transition: all 0.5s ease;
}

/* Create the "paint" layer with blur */
.block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    filter: blur(3px);
    z-index: 1;
}

.block-1 { height: 20%; margin-bottom: 20px; }
.block-1::before {
    background-color: #8b0000;
    box-shadow: 0 0 15px #8b0000;
}

.block-2 {
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.block-2::before {
    background-color: #cc3300;
    box-shadow: 0 0 20px #cc3300;
}

.block-3 { height: 15%; margin-top: 20px; }
.block-3::before {
    background-color: #4a1a1a;
    box-shadow: 0 0 15px #4a1a1a;
}

#fact {
    position: relative;
    z-index: 2; /* Put text above the blurred background */
    color: #f5f5dc;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* SCimilarity App Layout Styles */
.header { margin-bottom: 20px; color: #f5f5dc; }
.controls { 
    display: flex; 
    gap: 20px; 
    align-items: center; 
    background: rgba(255, 255, 255, 0.1); 
    color: #f5f5dc;
    padding: 10px; 
    border-radius: 5px; 
    margin-bottom: 20px; 
}
.control-group { display: flex; flex-direction: column; gap: 5px; }
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}
.plot-container { height: 600px; border: 1px solid #4a1a1a; background: rgba(0,0,0,0.3); }
.heatmap-container { height: 600px; border: 1px solid #4a1a1a; margin-bottom: 20px; background: rgba(0,0,0,0.3); width: 100%; }
.legend-panel { 
    border: 1px solid #4a1a1a; 
    padding: 15px; 
    border-radius: 5px;
    display: none;
    color: #f5f5dc;
    background: rgba(0,0,0,0.3);
}
.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
}
.legend-item:hover { background: rgba(255,255,255,0.1); }
.color-box { width: 15px; height: 15px; border: 1px solid #999; }
.error-message { color: #ff6b6b; text-align: center; padding-top: 200px; }

/* Override body flex for the app layout to scroll correctly */
body {
    display: block;
    height: auto;
    min-height: 100vh;
    padding: 20px;
}
