body {
    font-family: 'Inter', sans-serif;
    background-color: #1c1c1e;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #f5f5f7;
}

.container {
    text-align: center;
    background-color: #2c2c2e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.controls, .drumroll {
    margin-bottom: 20px;
}

#playPauseButton {
    font-size: 2rem;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.control-icon {
    width: 50px;
    height: 50px;
    fill: #fff;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bpm-volume-section {
    display: flex;
    align-items: center;
    gap: 20px; /* Added gap to separate BPM and Volume */
}

.bpm-selector, .volume-slider {
    display: flex;
    align-items: center; /* Align vertically in the center */
    font-size: 33px; /* Set font size to 33px */
    font-size: 20px;
}

.bpm-selector input, .volume-slider input {
    background-color: #3a3a3c;
    border: none;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 20px; /* Increase font size */
}

.bpm-selector {
    margin-right: 10px; /* Added margin for separation */
}

.volume-slider input {
    width: 150px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #007aff 70%, #3a3a3c 70%);
    outline: none;
    height: 8px;
    border-radius: 5px;
}

.volume-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
}

.track {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.instrument-name {
    width: 100px;
    text-align: right;
    margin-right: 10px;
    font-weight: bold;
    cursor: pointer;
}

.steps {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-left: 10px;
}

.step {
    width: 20px;
    height: 20px;
    margin: 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.2s;
}

.step:nth-child(8n+1), .step:nth-child(8n+2), .step:nth-child(8n+3), .step:nth-child(8n+4) {
    background-color: #666666;
}

.step:nth-child(8n+5), .step:nth-child(8n+6), .step:nth-child(8n+7), .step:nth-child(8n+8) {
    background-color: #444444;
}

.step:nth-child(33) {
    margin-left: 5px; /* Separation only on the left side after the 32nd step */
}

.step.active[class*='kick'] {
    background-color: #ff9500;
}

.step.active[class*='snare'] {
    background-color: #00ff00;
}

.step.active[class*='hihat'] {
    background-color: #00ffff;
}

.step.active[class*='bass'] {
    background-color: #ff00ff;
}

.step.playing {
    animation: playingEffect 0.4s;
    background-color: #1e90ff;
    transform: scale(1.1);
}

@keyframes playingEffect {
    0% { background-color: #1e90ff; }
    100% { background-color: #666666; }
}

.instrument-list {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.instrument-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instrument-item {
    background-color: #666666;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    white-space: nowrap; /* Prevents text wrapping */
}

.empty-list-message {
    display: none; /* Hide by default */
}
