* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #000;
    color: #00ffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to bottom, #000000, #001119, #001829, #001d32, #092137);
    position: relative;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 50, 80, 0.15),
        rgba(0, 50, 80, 0.15) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 20, 40, 0.5);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    background: rgba(0, 30, 60, 0.5);
    color: #00ffff;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

header h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    margin: 0;
}

.training-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Explicitly set the order of cards */
.card[data-type="intervals"] { order: 1; }
.card[data-type="chords"] { order: 2; }
.card[data-type="melodic-dictation"] { order: 3; }
.card[data-type="scales"] { order: 4; }
.card[data-type="chord-progressions"] { order: 5; }
.card[data-type="perfect-pitch"] { order: 6; }

.card {
    background: rgba(0, 30, 60, 0.5);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: linear-gradient(45deg, #00ffff, transparent, #00ffff);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.card:hover::before {
    opacity: 0.5;
}

.card h2 {
    color: #00ffff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #00ffff;
}

.card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

button {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

#training-area {
    background: rgba(0, 30, 60, 0.5);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

#training-title {
    color: #00ffff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    text-shadow: 0 0 10px #00ffff;
}

#controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

#controls button {
    min-width: 250px;
    padding: 15px 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#controls button:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

#options-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    margin: 15px 0;
    padding: 0 5px;
}

.option-btn {
    padding: 12px 24px;
    margin: 8px;
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(0, 30, 60, 0.5);
    color: #00ffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 7px;
    pointer-events: none;
}

.option-btn:hover:not(:disabled) {
    background-color: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.option-btn.correct {
    background-color: rgba(39, 174, 96, 0.2);
    border-color: rgba(39, 174, 96, 0.5);
    color: #2ecc71;
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.3);
}

.option-btn.incorrect {
    background-color: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
    color: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
}

#result-feedback {
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
}

.correct {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.5);
    color: #2ecc71;
    text-shadow: 0 0 5px #2ecc71;
}

.incorrect {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #e74c3c;
    text-shadow: 0 0 5px #e74c3c;
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    color: rgba(0, 255, 255, 0.7);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    .training-types {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .training-types {
        grid-template-columns: 1fr;
    }
    
    #controls {
        flex-direction: column;
    }
    
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }

    .note-slot {
        margin: 4px;
        width: calc(33.33% - 8px);
    }
    
    .degree-select {
        padding: 8px 20px 8px 8px;
        font-size: 0.9rem;
    }

    .settings-panel {
        padding: 15px;
    }
    
    .setting-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .number-input {
        padding: 8px 12px;
        font-size: 0.9rem;
        width: 80px;
    }
    
    .stats-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-display > div {
        border-right: none;
        border-bottom: 1px solid rgba(0, 255, 255, 0.3);
        padding: 10px 0;
    }
    
    .stats-display > div:last-child {
        border-bottom: none;
    }

    #options-container {
        padding: 0 2px;
    }
}

@media (max-width: 480px) {
    .note-slot {
        margin: 2px;
        width: calc(33.33% - 4px);
    }
    
    .degree-select {
        padding: 6px 16px 6px 4px;
        font-size: 0.85rem;
    }
    
    body {
        padding: 10px;
    }

    .container {
        padding: 10px;
    }

    .card {
        padding: 15px;
    }

    .card h2 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.8rem;
    }

    button {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    #options-container {
        padding: 0 1px;
    }
}

/* Melodic Dictation Styles */
.note-slot {
    display: inline-block;
    margin: 10px;
    text-align: center;
    width: calc(33.33% - 20px);
}

.degree-select {
    background: rgba(0, 30, 60, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(0, 255, 255, 0.5) 50%),
                      linear-gradient(135deg, rgba(0, 255, 255, 0.5) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                         calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px,
                    5px 5px;
    background-repeat: no-repeat;
}

.degree-select:hover {
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.degree-select:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.degree-select option {
    background: rgba(0, 20, 40, 0.9);
    color: #00ffff;
    padding: 10px;
}

.degree-select.correct {
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
    background-color: rgba(46, 204, 113, 0.1);
}

.degree-select.incorrect {
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
    background-color: rgba(231, 76, 60, 0.1);
}

/* Settings Panel for Melodic Dictation */
.settings-panel {
    background: rgba(0, 30, 60, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.settings-group {
    margin-bottom: 15px;
}

.settings-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settings-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.setting-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0.5;
    letter-spacing: 1px;
}

.setting-btn:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    opacity: 0.8;
}

.setting-btn.active {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    opacity: 1;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.number-input {
    background: rgba(0, 30, 60, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    width: 100px;
    text-align: center;
    transition: all 0.3s ease;
}

.number-input:hover, .number-input:focus {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    outline: none;
}

.number-input::-webkit-inner-spin-button,
.number-input::-webkit-outer-spin-button {
    opacity: 1;
    background: rgba(0, 255, 255, 0.1);
    border-left: 1px solid rgba(0, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.training-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px 0;
}

.training-header h2 {
    margin: 0;
    flex: 1;
    text-align: center;
    margin-right: 60px;
}

.nav-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 8px 15px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.nav-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.stats-display {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 30, 60, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.stats-display > div {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid rgba(0, 255, 255, 0.3);
    min-width: 150px;
}

.stats-display > div:last-child {
    border-right: none;
}

.session-summary {
    background: rgba(0, 30, 60, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #00ffff;
    font-family: 'Montserrat', sans-serif;
    max-width: 500px;
    margin: 50px auto;
}

.session-summary h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.session-summary p {
    font-size: 1.2em;
    margin: 15px 0;
}

.session-summary button {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.5);
    color: #00ffff;
    padding: 12px 25px;
    margin: 10px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.session-summary button:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.interval-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    padding: 10px;
}

.interval-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0, 40, 80, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.interval-option:has(input:checked) {
    background: rgba(0, 60, 100, 0.4);
    border-color: rgba(0, 255, 255, 0.3);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.interval-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #00ffff;
    flex-shrink: 0;
    margin-right: 2px;
}

.interval-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    cursor: pointer;
    font-size: 0.85rem;
    color: #00ffff;
    padding-right: 4px;
}

.interval-option:has(input:checked) label {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.interval-option label span {
    margin-right: auto;
    padding-right: 8px;
}

.listen-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 50px;
    opacity: 0.7;
}

.interval-option:has(input:checked) .listen-btn {
    opacity: 1;
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.4);
}

.listen-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    opacity: 1;
}

@media (max-width: 768px) {
    .interval-options {
        gap: 6px;
        padding: 6px;
    }
    
    .interval-option {
        padding: 6px 8px;
    }
    
    .interval-option label {
        font-size: 0.8rem;
    }
    
    .listen-btn {
        padding: 3px 6px;
        font-size: 0.7rem;
        min-width: 45px;
    }
}

@media (max-width: 480px) {
    .interval-options {
        gap: 4px;
        padding: 4px;
    }
    
    .interval-option {
        padding: 4px 6px;
    }
    
    .interval-option label {
        font-size: 0.75rem;
    }
    
    .listen-btn {
        padding: 2px 4px;
        min-width: 40px;
    }
}

#fixed-root-btn.active {
    background: rgba(0, 255, 255, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

#fixed-root-btn:not(.active) {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid rgba(255, 165, 0, 0.4);
    text-shadow: 0 0 5px rgba(255, 165, 0, 0.4);
}

.chord-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    padding: 10px;
}

.chord-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0, 40, 80, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.chord-option:has(input:checked) {
    background: rgba(0, 60, 100, 0.4);
    border-color: rgba(0, 255, 255, 0.3);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.chord-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #00ffff;
    flex-shrink: 0;
    margin-right: 2px;
}

.chord-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    cursor: pointer;
    font-size: 0.85rem;
    color: #00ffff;
    padding-right: 4px;
}

.chord-option:has(input:checked) label {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.chord-option label span {
    margin-right: auto;
    padding-right: 8px;
}

#chord-fixed-root-btn.active {
    background: rgba(0, 255, 255, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

#chord-fixed-root-btn:not(.active) {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid rgba(255, 165, 0, 0.4);
    text-shadow: 0 0 5px rgba(255, 165, 0, 0.4);
}

/* Media queries for chord options */
@media (max-width: 768px) {
    .chord-options {
        gap: 6px;
        padding: 6px;
    }
    
    .chord-option {
        padding: 6px 8px;
    }
    
    .chord-option label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .chord-options {
        gap: 4px;
        padding: 4px;
    }
    
    .chord-option {
        padding: 4px 6px;
    }
    
    .chord-option label {
        font-size: 0.75rem;
    }
}

.result-feedback {
    margin: 20px 0;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.result-feedback.correct {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-feedback.incorrect {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Add specific style for correct feedback in melodic dictation */
#training-area[data-training-type="melodic-dictation"] .result-feedback.correct {
    background-color: #d4edda;
    color: #0d8025; /* Brighter green color */
    border: 1px solid #c3e6cb;
    font-size: 1.1em;
}

/* Start Balance Training Button Styles - Fixed version */
.start-balance-btn {
    background: linear-gradient(to right, rgba(0, 150, 255, 0.2), rgba(0, 255, 255, 0.2));
    color: #00ffff;
    border: 2px solid rgba(0, 255, 255, 0.5);
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px auto;
    display: block;
    width: fit-content;
    min-width: 250px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transform: none;
}

.start-balance-btn:hover {
    background: linear-gradient(to right, rgba(0, 180, 255, 0.3), rgba(0, 255, 255, 0.3));
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

.start-balance-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.3);
}

.start-balance-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: 1;
    pointer-events: none;
}

.start-balance-btn:hover::before {
    left: 100%;
}

.start-balance-btn span {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .start-balance-btn {
        padding: 12px 24px;
        font-size: 1rem;
        min-width: 220px;
    }
}

@media (max-width: 480px) {
    .start-balance-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        letter-spacing: 1px;
        min-width: 200px;
    }
}
}

@media (max-width: 480px) {
    .interval-options {
        gap: 4px;
        padding: 4px;
    }
    
    .interval-option {
        padding: 4px 6px;
    }
    
    .interval-option label {
        font-size: 0.75rem;
    }
    
    .listen-btn {
        padding: 2px 4px;
        min-width: 40px;
    }
}

#fixed-root-btn.active {
    background: rgba(0, 255, 255, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

#fixed-root-btn:not(.active) {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid rgba(255, 165, 0, 0.4);
    text-shadow: 0 0 5px rgba(255, 165, 0, 0.4);
}

.chord-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    padding: 10px;
}

.chord-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0, 40, 80, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.chord-option:has(input:checked) {
    background: rgba(0, 60, 100, 0.4);
    border-color: rgba(0, 255, 255, 0.3);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.chord-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #00ffff;
    flex-shrink: 0;
    margin-right: 2px;
}

.chord-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    cursor: pointer;
    font-size: 0.85rem;
    color: #00ffff;
    padding-right: 4px;
}

.chord-option:has(input:checked) label {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.chord-option label span {
    margin-right: auto;
    padding-right: 8px;
}

#chord-fixed-root-btn.active {
    background: rgba(0, 255, 255, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

#chord-fixed-root-btn:not(.active) {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid rgba(255, 165, 0, 0.4);
    text-shadow: 0 0 5px rgba(255, 165, 0, 0.4);
}

/* Media queries for chord options */
@media (max-width: 768px) {
    .chord-options {
        gap: 6px;
        padding: 6px;
    }
    
    .chord-option {
        padding: 6px 8px;
    }
    
    .chord-option label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .chord-options {
        gap: 4px;
        padding: 4px;
    }
    
    .chord-option {
        padding: 4px 6px;
    }
    
    .chord-option label {
        font-size: 0.75rem;
    }
}

.result-feedback {
    margin: 20px 0;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.result-feedback.correct {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-feedback.incorrect {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Add specific style for correct feedback in melodic dictation */
#training-area[data-training-type="melodic-dictation"] .result-feedback.correct {
    background-color: #d4edda;
    color: #0d8025; /* Brighter green color */
    border: 1px solid #c3e6cb;
    font-size: 1.1em;
}
@media (min-width: 1801px) {
    .container {
        max-width: 1600px;
        padding: 30px;
    }
    
    .training-types {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .card {
        padding: 30px;
    }
    
    .card h2 {
        font-size: 1.8rem;
    }
    
    .card p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    #training-area {
        padding: 40px;
    }
    
    #training-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    #controls button {
        min-width: 300px;
        padding: 18px 35px;
        font-size: 1.3rem;
    }
    
    .option-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
        min-width: 220px;
    }
    
    .stats-display {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .stats-display > div {
        padding: 0 30px;
        min-width: 200px;
        font-size: 1.2rem;
    }
}
