body {
    font-family: monospace;
    margin: 0;
    padding: 20px;
    background-color: #000;
    color: #00ff00;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.sequencer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    max-width: 95vw;
}

#display {
    font-size: 16px;
    line-height: 1;
    text-align: center;
    white-space: pre;
    width: fit-content;
    overflow-x: auto;
}

.inverse {
    background-color: #00ff00;
    color: #000;
}

.status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    min-width: 400px;
    width: 100%;
    box-sizing: border-box;
}

.filename {
    color: #444;
}

.pattern {
    color: #ff6600;
    font-weight: bold;
}

.tempo {
    color: #6699cc;
}

.track-0 { color: #00ff00; }
.track-1 { color: #00dd00; }
.track-2 { color: #00bb00; }
.track-3 { color: #009900; }
.track-4 { color: #007700; }
.track-5 { color: #005500; }
.track-6 { color: #00ff44; }
.track-7 { color: #00ff88; }
.track-8 { color: #44ff00; }
.track-9 { color: #88ff00; }
.track-10 { color: #aaff00; }
.track-11 { color: #ccff00; }
.track-12 { color: #00ffaa; }
.track-13 { color: #00ffcc; }
.track-14 { color: #00ffdd; }
.track-15 { color: #00ffee; }

.track-muted { color: #333; }

.next-pattern {
    opacity: 0.6;
    text-decoration: underline;
}

.help-screen {
    color: #00ff00;
    font-size: 14px;
    line-height: 1.4;
    max-width: 600px;
}

.help-title {
    color: #ffff00;
    font-weight: bold;
    margin-bottom: 10px;
}

.help-section {
    margin-bottom: 8px;
}

.help-key {
    color: #00ffff;
    font-weight: bold;
}

.mode-indicator {
    color: #ffff00;
    font-weight: bold;
    background-color: #333;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 10px;
}

.mode-mute {
    color: #ff4444;
    background-color: #440000;
    animation: pulse 1s infinite;
}

.mode-velocity {
    color: #44ff44;
    background-color: #004400;
}

.mode-tempo {
    color: #4444ff;
    background-color: #000044;
}

.mode-random {
    color: #ff44ff;
    background-color: #440044;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.track-header {
    font-weight: bold;
    padding: 2px 4px;
    margin-right: 10px;
}

/* Responsive font sizing for very wide content */
@media (max-width: 768px) {
    #display {
        font-size: 14px;
    }
    
    .status-line {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    #display {
        font-size: 12px;
    }
    
    .status-line {
        font-size: 10px;
        flex-direction: column;
        gap: 5px;
    }
}