body {
    background-color: #121212;
    color: white;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.current-note {
    font-size: 2.5rem;
    font-weight: bold;
    min-width: 80px;
}

.canvas-container {
    width: 100%;
    max-width: 1000px;
    background: #1e1e1e;
    border-radius: 8px;
    padding: 10px;
}

canvas {
    width: 100%;
    height: 400px;
    display: block;
}

button.mic {
    font-size: 1.5rem;
    padding: 5px 15px;
    cursor: pointer;
}

/* Note Legend styling */
.legend-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    max-width: 1000px;
    width: 100%;
}

.legend-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: #121212; /* Dark text for contrast against bright backgrounds */
    padding: 6px 12px;
    border-radius: 4px;
    min-width: 35px;
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}