body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    /* background-color: #2c3e50; */
    background-color: #172748;
    font-family: Arial, sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.main-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    justify-content: space-between;
}

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.wheel-container {
    position: relative;
    width: 800px;
    height: 800px;
}

.note-wheel {
    width: 100%;
    height: 100%;
    position: relative;
}

.note-section {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    cursor: pointer;
    transition: filter 0.05s, transform 0.05s;
}

.note-section:hover {
    filter: brightness(1.1);
}

.note-section.active {
    filter: brightness(0.8);
    transform: scale(0.95);
}

.note-path {
    stroke: #000000;
    stroke-width: 3;
    transition: filter 0.1s;
}

.note-path:hover {
    filter: brightness(0.85);
    cursor: pointer;
}

.note-path.outer-ring {
    stroke: #000000;
    stroke-width: 3;
}

.note-label {
    position: absolute;
    color: rgb(0, 0, 0);
    font-weight: bold;
    pointer-events: none;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1.2;
}

.notation-line {
    font-size: 28px;
    font-weight: bold;
}

.key-line {
    font-size: 24px;
}

.center-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: #2c3e50;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.center-display {
    color: white;
    text-align: center;
    font-weight: bold;
}

.center-main-key {
    font-size: 36px;
    margin-bottom: 10px;
}

.center-alt-key {
    font-size: 28px;
    opacity: 0.8;
}

/* Octave controls styles */
.octave-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.octave-button {
    background-color: #34495e;
    color: #ecf0f1;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    min-width: 80px;
}

.octave-button:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.octave-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.octave-button.reset {
    background-color: #3498db;
}

.octave-button.reset:hover {
    background-color: #2980b9;
}

.octave-display {
    font-size: 14px;
    color: #bdc3c7;
    cursor: pointer;
    user-select: none;
    padding: 10px 16px;
    transition: color 0.2s;
    width: 120px;
    text-align: center;
    display: inline-block;
}

.octave-display:hover {
    color: #3498db;
}

/* Octave keyboard hints */
.octave-key-hint {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: normal;
    letter-spacing: 0.5px;
}

/* Piano keyboard styles */
.piano-container {
    background-color: #34495e;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    box-sizing: border-box;
}

.piano-keyboard {
    display: flex;
    position: relative;
    justify-content: center;
}

.piano-key {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.white-key {
    width: 48px;
    height: 180px;
    background-color: white;
    border: 1px solid #ddd;
    margin: 0 1px;
    border-radius: 0 0 5px 5px;
    transition: all 0.1s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
}

.white-key:hover {
    background-color: #f5f5f5;
}

.white-key.active {
    background-color: #e0e0e0;
    transform: translateY(2px);
}

.black-key {
    position: absolute;
    width: 32px;
    height: 110px;
    background-color: #1a252f;
    border: 1px solid #0d1419;
    border-radius: 0 0 3px 3px;
    z-index: 2;
    transition: all 0.1s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
}

.black-key:hover {
    background-color: #0d1419;
}

.black-key.active {
    background-color: #000;
    transform: translateY(2px);
}

.piano-key-label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.black-key .piano-key-label {
    color: white;
    font-size: 18px;
}

/* Keyboard hints */
.key-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #2f2f2f;
    background: rgba(184, 184, 184, 0.9);
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: normal;
}

.white-key .key-hint {
    bottom: 35px;
}

.black-key .key-hint {
    background: rgba(0, 0, 0, 0.7);
    color: #ccc;
    bottom: 35px;
}

/* Position black keys */
.black-key-cs { left: 42px; }
.black-key-ds { left: 101px; }
.black-key-fs { left: 197px; }
.black-key-gs { left: 252px; }
.black-key-as { left: 300px; }

/* Options panel styles */
.options-panel {
    background-color: #34495e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
    min-width: 200px;
}

.options-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.option-group {
    margin-bottom: 15px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    color: #bdc3c7;
}

.option-checkbox {
    display: none;
}

.toggle-container {
    display: block;
    margin-bottom: 15px;
}

.toggle-switch {
    position: relative;
    display: block;
    width: 100%;
    height: 36px;
    background-color: #2c3e50;
    border-radius: 18px;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid #34495e;
    transition: all 0.1s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    border-radius: 16px;
    background-color: #3498db;
    top: 0;
    left: 0;
    transition: transform 0.1s;
}

.toggle-option {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    transition: color 0.1s;
    z-index: 1;
    user-select: none;
}

.toggle-option.left {
    left: 25%;
    transform: translate(-50%, -50%);
    color: white;
}

.toggle-option.right {
    right: 25%;
    transform: translate(50%, -50%);
    color: #7f8c8d;
}

.option-checkbox:checked + .toggle-switch::after {
    transform: translateX(100%);
}

.option-checkbox:checked + .toggle-switch .toggle-option.left {
    color: #7f8c8d;
}

.option-checkbox:checked + .toggle-switch .toggle-option.right {
    color: white;
}

.volume-slider {
    width: 100%;
    height: 24px;
    border-radius: 2px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    margin: 0;
    
    /* Create the visual track in the center */
    background-image: linear-gradient(to right, #7f8c8d 0%, #7f8c8d 100%);
    background-size: 100% 4px;
    background-position: center;
    background-repeat: no-repeat;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
}

/* Remove default track styling */
.volume-slider::-webkit-slider-runnable-track {
    background: transparent;
    height: 24px;
}

.volume-slider::-moz-range-track {
    background: transparent;
    height: 24px;
}

.volume-label {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 8px;
}

/* Active state styles */
.note-path.active {
    filter: brightness(0.6);
    transform-origin: center;
}

.note-path.active-primary {
    filter: brightness(0.6);
    transform-origin: center;
}

.note-path.active-primary + .note-label,
.note-label[data-note] {
    transition: color 0.1s;
}

.active-primary ~ .note-label,
.note-label.primary-active {
    color: white !important;
}

.note-label.primary-active .notation-line,
.note-label.primary-active .key-line {
    color: white !important;
}

.piano-key.active {
    filter: brightness(0.8);
    transform: translateY(2px);
}

.piano-key.active-primary {
    filter: brightness(0.6);
    transform: translateY(2px);
}