/* -------------------------------------------------------------
   GLOBAL THEME
------------------------------------------------------------- */
:root {
  --bg: #111;
  --panel: #1b1b1b;
  --border: #333;
  --text: #eee;
  --accent: #4da3ff;
  --accent2: #ff7f50;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  overflow-y: scroll;
}

/* -------------------------------------------------------------
   HEADERS
------------------------------------------------------------- */
h2 {
  color: var(--accent);
  margin: 30px 0 10px 0;
  font-size: 26px;
  font-weight: bold;
}

h3 {
  color: var(--accent2);
  margin: 20px 0 10px 0;
  font-size: 20px;
  font-weight: bold;
}

/* -------------------------------------------------------------
   PANELS
------------------------------------------------------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

/* -------------------------------------------------------------
   OSCILLATOR LAYOUT — FULL WIDTH STACKED MODULES
------------------------------------------------------------- */

#osc-grid {
  display: flex;
  flex-direction: column;
  gap: 20px; /* space between oscillators */
}

.osc-row {
  background: #222;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.osc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: bold;
  color: var(--accent);
}

.osc-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}
/* -------------------------------------------------------------
   OSCILLATOR LANE
------------------------------------------------------------- */
.osc-row {
  background: #222;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.osc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--accent);
}

.osc-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* -------------------------------------------------------------
   GLOBAL SECTIONS
------------------------------------------------------------- */
.global-section {
  background: #222;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* -------------------------------------------------------------
   SLIDERS + INPUTS
------------------------------------------------------------- */
input[type="range"] {
  width: 100%;
}

select,
input[type="checkbox"],
input[type="range"] {
  cursor: pointer;
}

select {
  background: #000;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 4px;
}

/* -------------------------------------------------------------
   KEYBOARD
------------------------------------------------------------- */
#keyboard-container {
  position: relative;
  height: 180px;
  user-select: none;

  display: flex;
  flex-direction: row;

  overflow-x: auto;     /* horizontal scroll */
  overflow-y: hidden;   /* no vertical scroll */

  white-space: nowrap;  /* prevents wrapping */
}

.white-key {
  width: 40px;
  height: 180px;
  background: #fff;
  border: 1px solid #ccc;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  flex-shrink: 0;         /* ← prevents resizing */
}

.white-key.active {
  background: #e0e0e0;
}

.black-key {
  width: 26px;
  height: 110px;
  background: #000;
  position: absolute;
  margin-left: -13px;
  z-index: 10;
  border-radius: 0 0 3px 3px;
  pointer-events: auto;
}

.black-key.active {
  background: #444;
}

/* -------------------------------------------------------------
   LABELS
------------------------------------------------------------- */
label {
  font-size: 14px;
}