.correlation-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.correlation-type {
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.correlation-type h4 {
    margin-top: 0;
    color: #2c3e50;
}

.correlation-type .description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.correlation-diagram {
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    text-align: center;
}

.correlation-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
}

.scatter-plot {
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.plot-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 0 auto;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.plot-axis {
    position: absolute;
    font-size: 12px;
    color: #666;
}

.x-axis-label {
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.y-axis-label {
    left: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.trend-line {
    position: absolute;
    height: 2px;
    background: #e74c3c;
    transform-origin: left center;
}

.correlation-strength {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.strength-example {
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.strength-example h5 {
    margin-top: 0;
    color: #2c3e50;
}

.real-world-examples {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.correlation-analysis {
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.correlation-result {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.correlation-stat {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
}

.correlation-stat .value {
    font-size: 1.5em;
    font-weight: bold;
    color: #3498db;
}

.correlation-stat .label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.caution-note {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .demo-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group {
        width: 100%;
    }

    .correlation-types {
        grid-template-columns: 1fr;
    }

    .correlation-strength {
        grid-template-columns: 1fr;
    }

    .correlation-result {
        flex-direction: column;
        align-items: center;
    }
}