body {
    text-align: center;
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 20px;
}

canvas {
    background: #f0f0f0;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Launch button row — centered above selectors */
.launch-row {
    text-align: center;
    margin-bottom: 12px;
}

.launch-btn {
    padding: 14px 48px;
    font-size: 20px;
    font-weight: bold;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    box-shadow: 0 3px 8px rgba(46, 204, 113, 0.4);
}

.launch-btn:hover {
    background-color: #27ae60;
}

.launch-btn:active {
    background-color: #1e8449;
}

/* Controls container */
.controls-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

/* Physics sliders */
.physics-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mode and root note selectors */
.mode-control, .rootnote-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

.control {
    display: flex;
    flex-direction: column;
    align-items: center;
}

select {
    padding: 5px;
    margin: 5px 0;
    min-width: 120px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Sequencer steps */
.sequencer-step {
    display: inline-block;
    margin: 5px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.sequencer-step.active {
    background-color: #e1f5fe;
    border-color: #29b6f6;
    box-shadow: 0 0 5px rgba(41, 182, 246, 0.5);
}

/* Secondary buttons (Auto, Collisions) */
.secondary-buttons {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Buttons */
button {
    padding: 8px 15px;
    margin: 0 5px;
    border: none;
    background-color: #3498db;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease-in-out;
}

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

button:active {
    background-color: #1f6691;
}

input[type="range"] {
    width: 120px;
    margin: 5px 0;
}

/* SoundFont instrument selector */
.soundfont-control {
    margin: 10px 0;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.soundfont-control label {
    margin-right: 10px;
    font-weight: bold;
}

.soundfont-control select {
    margin-right: 10px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.soundfont-control button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.soundfont-control button:hover {
    background-color: #45a049;
}

#loadingIndicator {
    margin-left: 10px;
    color: #666;
    font-style: italic;
}

/* Custom SF2 loader */
.custom-sf2 {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.custom-sf2 input[type="file"] {
    padding: 5px;
    margin: 0 10px;
}

/* Current note display */
#note-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    z-index: 1000;
}
