/* Scale Diagram Styles */
.scale-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 15px auto;
    max-width: 100%;
    padding: 0 10px;
}

.scale-diagram {
    background: white;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 1 280px;
    max-width: 280px;
}

.scale-diagram svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Ensure SVG text scales properly */
.scale-diagram .scale-note-label {
    font-size: 11px;
}

/* Scale degree labels */
.scale-diagram .scale-degree-label {
    font-size: 11px;
    fill: white;
    font-weight: bold;
}

.scale-diagram text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.scale-section-header {
    text-align: center;
    color: #4CAF50;
    font-size: 20px;
    margin: 10px 0;
}

/* Toggle styles - moved to ui.css */

/* Scale SVG Styles */
.scale-svg {
    /* SVG rendering styles will be applied via JavaScript */
}

/* Desktop layout - ensure wrapping */
@media (min-width: 769px) {
    .scale-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .scale-diagram {
        flex: 0 1 280px;
    }
}

/* Scale specific SVG text styles */
.zero-text {
    fill: white;
    font-size: x-small;
    text-anchor: "middle";
    alignment-baseline: "middle";
}

.tonic-text {
    fill: white;
    font-size: x-small;
    font-weight: bold;
    text-anchor: "middle";
    alignment-baseline: "middle";
}

/* Invisible class for note labels */
.invisible {
    display: none !important;
}

/* About Modal Specific Styles - moved to ui.css */
