@font-face {
  font-family: "LCD";
  src: url("../fonts/LCD2U___.TTF") format("opentype");
}

@font-face {
  font-family: "Alien";
  src: url("../fonts/antar.regular.ttf") format("opentype");
}

#dropZone {
  width: 300px;
  background-color: #000000;
  color: #ff0303;
  border-radius: 5px transparent;
  border: 4px solid #2a2a2a;
  border-image: linear-gradient(
      to bottom,
      rgba(43, 43, 43, 0.5),
      rgba(160, 160, 160, 0.5),
      rgba(90, 90, 90, 0.8)
    )
    1 stretch;
  /* padding: 2px 2px; */
  font-family: "LCD";
  font-size: 18px;
  text-align: left;
  letter-spacing: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-bottom: 4px;
  margin-top: 6px;
}

.playing {
  outline: 2px solid limegreen;
}

.toggle-group {
  display: none;
}

/* =============== BASE STEP STYLES =============== */
.step {
  appearance: none;
  width: 50px;
  height: 50px;
  background: linear-gradient(to bottom, #444, #696868);
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  border: 2px solid #666;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), inset 0 -2px 5px rgba(0, 0, 0, 0.5),
    inset 0 2px 2px rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.step:active {
  transform: translateY(2px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4), inset 0 -1px 3px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgb(0, 119, 60);
  box-shadow: 0 0 4px #200, inset -1px -1px 2px rgba(0, 0, 0, 0.6),
    inset 1px 1px 1px rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s, box-shadow 0.3s;
}

/* =============== UNCHECKED (DULL) COLORS =============== */
.step:not(.accent):not(.slide):not(.tie-checkbox):checked::before {
  background-color: #004400; /* dull green for normal steps */
  box-shadow: 0 0 4px #001f00, inset -1px -1px 2px rgba(0, 0, 0, 0.4),
    inset 1px 1px 1px rgba(255, 255, 255, 0.05);
}

.step.accent::before {
  background-color: #665500; /* dull yellow/orange */
}

.step.slide::before {
  background-color: #004d4d; /* dull cyan */
}

.step.tie-checkbox::before {
  background-color: #4d004d; /* dull magenta */
}

/* =============== CHECKED (LIT) COLORS =============== */
.step:not(.accent):not(.slide):not(.tie-checkbox):checked::before {
  background-color: #0f0; /* bright green */
  box-shadow: 0 0 8px #0f0, 0 0 15px #0f0,
    inset -1px -1px 2px rgba(0, 0, 0, 0.5),
    inset 1px 1px 1px rgba(255, 255, 255, 0.2);
  animation: ledGlow 1s infinite alternate;
}

.step.accent:checked::before {
  background-color: #ff0; /* bright yellow */
  box-shadow: 0 0 8px #ff0, 0 0 15px #ff0,
    inset -1px -1px 2px rgba(0, 0, 0, 0.5),
    inset 1px 1px 1px rgba(255, 255, 255, 0.2);
  animation: accentGlow 1s infinite alternate;
}

.step.slide:checked::before {
  background-color: #0ff; /* bright cyan */
  box-shadow: 0 0 8px #0ff, 0 0 15px #0ff,
    inset -1px -1px 2px rgba(0, 0, 0, 0.5),
    inset 1px 1px 1px rgba(255, 255, 255, 0.2);
  animation: slideGlow 1s infinite alternate;
}

.step.tie-checkbox:checked::before {
  background-color: #f0f;
  box-shadow: 0 0 8px #f0f, 0 0 15px #f0f,
    inset -1px -1px 2px rgba(0, 0, 0, 0.5),
    inset 1px 1px 1px rgba(255, 255, 255, 0.2);
  animation: tieGlow 1s infinite alternate;
}

/* =============== ANIMATIONS =============== */
@keyframes ledGlow {
  0% {
    box-shadow: 0 0 8px #0f0, 0 0 15px #0f0;
  }
  100% {
    box-shadow: 0 0 12px #0f0, 0 0 22px #0f0;
  }
}

@keyframes accentGlow {
  0% {
    box-shadow: 0 0 8px #ff0, 0 0 15px #ff0;
  }
  100% {
    box-shadow: 0 0 12px #ff0, 0 0 22px #ff0;
  }
}

@keyframes slideGlow {
  0% {
    box-shadow: 0 0 8px #0ff, 0 0 15px #0ff;
  }
  100% {
    box-shadow: 0 0 12px #0ff, 0 0 22px #0ff;
  }
}

@keyframes tieGlow {
  0% {
    box-shadow: 0 0 8px #f0f, 0 0 15px #f0f;
  }
  100% {
    box-shadow: 0 0 12px #f0f, 0 0 22px #f0f;
  }
}

/* =============== PLAYING STATE =============== */
.step.playing {
  background-color: rgb(3, 241, 146);
  box-shadow: 0 0 8px rgb(0, 255, 76), 0 0 15px rgb(0, 255, 55),
    inset -1px -1px 2px rgba(0, 8, 255, 0.5),
    inset 1px 1px 1px rgba(255, 255, 255, 0.2);
}

.tb303-step.playing {
  background-color: rgb(3, 241, 146);
  box-shadow: 0 0 8px rgb(0, 255, 76), 0 0 15px rgb(0, 255, 55),
    inset -1px -1px 2px rgba(13, 0, 253, 0.5),
    inset 1px 1px 1px rgba(255, 255, 255, 0.2);
}

.sequence-step.playing {
  background-color: rgb(3, 241, 146);
  box-shadow: 0 0 8px rgb(0, 255, 76), 0 0 15px rgb(0, 255, 55),
    inset -1px -1px 2px rgba(13, 0, 253, 0.5),
    inset 1px 1px 1px rgba(255, 255, 255, 0.2);
}

.select-button {
  width: 60px;
  height: 30px;
  border-radius: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: "Alien";
  font-size: 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05),
    0 0 10px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 200, 0.1);
  backdrop-filter: blur(6px);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.select-button::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.select-button.active {
  border-color: rgba(0, 255, 200, 0.3);
  color: #0f0;
}

.select-button.active::before {
  background-color: #0f0;
  box-shadow: 0 0 10px #0f0, 0 0 16px #0f0;
}

#accentToggle {
  width: 90%;
  height: 36px;
  font-size: 14px;
  font-weight: bold;
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-shadow: 0 0 2px #000;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.05),
    0 0 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Toggle ON (Orange) with Glow */
#accentToggle.orange {
  background: rgba(255, 165, 0, 0.1);
  border-color: orange;
  color: orange;
  box-shadow: 0 0 8px 2px orange, inset 0 0 4px rgba(255, 165, 0, 0.3);
}

/* Toggle OFF (Red) with Glow */
#accentToggle.red {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgb(0, 255, 110);
  color: rgb(0, 255, 76);
  box-shadow: 0 0 8px 2px rgb(0, 255, 72), inset 0 0 4px rgba(255, 0, 0, 0.3);
}

.desktop {
  width: 100%;
  height: 100vh;
  background-image: url("../images/wood-591631.jpg");
  background-size: cover;
}

.tabContent {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  padding-top: 10px;
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: flex-start;
}

.tempo-label {
  font-size: 24px;
  font-weight: bold;
  color: rgb(0, 0, 0);
}

label {
  font-size: 18px;
  color: #ffffff;
  user-select: none;
}

.label {
  font-size: 18px;
  color: #ffffff;
  user-select: none;
}

p {
  font-weight: bold;
  color: whitesmoke;
}

h1 {
  color: whitesmoke;
}

.controls {
  width: 110px;
  display: flex;
  flex-direction: column;
  border: 1px solid hsla(0, 0%, 96%, 0.3);
  border-radius: 5px;
  margin-left: 5px;
  align-items: center;
}

.controls button {
  margin-top: 10px;
}

.controls select {
  width: 90%;
}
.controls2 {
  display: flex;
  flex-direction: row;
  border: 1px solid hsla(0, 0%, 96%, 0.3);
  border-radius: 5px;
  margin-left: 5px;
  align-items: center;
  gap: 30px;
  padding: 10px;
}

.controls button {
  width: 90%;
}

.control-button {
  width: 80px;
  height: 36px;
  font-family: "Alien";
  font-size: 18px;
  font-weight: bold;
  color: #ccc;
  background: black;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-shadow: 0 0 2px #000;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.05),
    0 0 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-button.active {
  color: #0f0;
  background: black;
  border-color: rgba(0, 255, 0, 0.3);
  box-shadow: 0 0 6px rgba(0, 255, 0, 0.3), 0 0 20px rgba(0, 255, 0, 0.3),
    inset 0 0 6px rgba(0, 255, 0, 0.2);
}

@keyframes bpmPulse {
  0% {
    box-shadow: 0 0 6px rgba(0, 255, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.6);
  }
  100% {
    box-shadow: 0 0 6px rgba(0, 255, 0, 0.2);
  }
}

.control-button.pulsing {
  animation-name: bpmPulse;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.range-knob-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  margin: 10px;
  background: radial-gradient(circle, #656464, #c8b1b1);
  border-radius: 50%;
  box-shadow: 0 0px 8px rgb(0, 0, 0);
}

.range-knob-wrapper input[type="range"] {
  position: absolute;
  z-index: 2;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transform: rotate(-90deg);
  transform-origin: center center;
  top: 0;
  left: 0;
}

.range-knob-wrapper .range-knob {
  position: absolute;
  z-index: 1;
  top: 17.5%;
  left: 17.5%;
  width: 65%;
  height: 65%;
  background: linear-gradient(145deg, #ffffff, #482121);
  border: 2px solid #000000;
  border-radius: 50%;
  transition: transform 0.1s;
  box-sizing: border-box;
  box-shadow: inset 1px 1px 5px rgba(255, 255, 255, 0.6),
    inset -1px -1px 5px rgba(0, 0, 0, 0.2);
}

.range-knob-wrapper .range-knob:after {
  content: "";
  display: block;
  position: absolute;
  width: 4px;
  height: 15px;
  top: -4px;
  left: 50%;
  background: #333;
  transform: translateX(-50%);
}

.range-knob-wrapper input[type="range"]:focus + .range-knob {
  border: 1px solid black;
  outline: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 2px 4px #464646;
}

.lcd-text2 {
  font-family: "LCD", monospace;
  font-weight: bold;
  font-size: 18px;
  color: #ff0000;
  background-color: #000000;
  border-radius: 5px transparent;
  border: 4px solid #2a2a2a;
  border-image: linear-gradient(
      to bottom,
      rgba(43, 43, 43, 0.5),
      rgba(160, 160, 160, 0.5),
      rgba(90, 90, 90, 0.8)
    )
    1 stretch;
  padding: 4px;
  text-shadow: 0 0 1px #504f4f;
  text-align: center;
  height: 20px;
  width: 80px;
  animation: lcdFlicker 3s infinite ease-in-out;
}

input[type="text"] {
  font-family: "LCD", monospace;
  font-weight: bold;
  font-size: 22px;
  width: 400px;
  height: 40px;
  color: #ff0000;
  background-color: #0a0a0a;
  border: 4px solid #404040;
  border-image: linear-gradient(
      to bottom,
      rgba(193, 191, 191, 0.5),
      rgba(160, 160, 160, 0.5),
      rgba(90, 90, 90, 0.8)
    )
    1 stretch;
  padding: 4px;
  text-shadow: 0 0 1px #504f4f;
  text-align: center;

  /* NEW */
  animation: lcdFlicker 3s infinite ease-in-out;
}

@keyframes lcdFlicker {
  0% {
    opacity: 1;
  }
  3% {
    opacity: 0.85;
  }
  5% {
    opacity: 1;
  }
  15% {
    opacity: 0.92;
  }
  20% {
    opacity: 1;
  }
  30% {
    opacity: 0.96;
  }
  33% {
    opacity: 1;
  }
  40% {
    opacity: 0.9;
  }
  100% {
    opacity: 1;
  }
}

.lcd-select {
  width: 50px;
  background-color: #000000;
  color: #ff0303;
  border-radius: 5px transparent;
  border: 4px solid #2a2a2a;
  border-image: linear-gradient(
      to bottom,
      rgba(43, 43, 43, 0.5),
      rgba(160, 160, 160, 0.5),
      rgba(90, 90, 90, 0.8)
    )
    1 stretch;
  /* padding: 2px 2px; */
  font-family: "LCD";
  font-size: 18px;
  text-align: left;
  letter-spacing: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23ff0000" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
  background-position: right center;
  background-size: 15px;
  background-repeat: no-repeat;
  margin-bottom: 4px;
  margin-top: 6px;
}

.lcd-select:focus {
  outline: 1px solid red;
}

.slider-div {
  justify-items: center;
}

#tb303-controls {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.controls select {
  margin-top: 10px;
}

.select-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.select-div select {
  width: 120px;
}

#presetModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
  border: 1px solid #00ffe1;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 12px #00ffe1, inset 0 0 6px #004d43;
  color: #e0fefe;
  font-family: "Alien", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 40%;
  justify-content: center;
  align-items: center;
}

.modal-content select {
  width: 100%;
  height: 50px;
  font-size: 25px;
  font-weight: bold;
  padding-left: 20px;
}

.modal-content button {
  width: 100%;
}

#presetModal:hover {
  box-shadow: 0 0 20px #00ffe1, inset 0 0 10px #004d43;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.drum-button {
  margin: 10px;
  padding: 5px 10px;
  font-size: 22px;
  font-family: "Alien", sans-serif;
  height: 40px;
  color: #ffffff;
  background: radial-gradient(circle, #aa6f6f, #590404 70%);
  border: 1px solid rgb(255, 254, 254);
  border-radius: 12px;
  box-shadow: 0 2px 0 black, 0 8px 16px rgba(0, 0, 0, 0.25);
  outline: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  position: relative;
  animation: flicker 1.15s infinite alternate;
}

.drum-button::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: linear-gradient(
    to right,
    rgba(229, 120, 120, 0.8),
    rgba(255, 255, 255, 0)
  );
  border-radius: 10px;
}

.drum-button:hover {
  background: radial-gradient(circle, #780000, #693c3c 70%);
}

.drum-button:active {
  box-shadow: 0 2px 0 black, 0 4px 8px rgba(0, 0, 0, 0.2),
    0 3px 6px rgba(255, 0, 0, 0.6) inset;
  transform: translateY(2px);
}

.drum-button:focus {
  outline: 1px solid honeydew;
}

.import-label input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  overflow: hidden;
  white-space: nowrap;
}

.import-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 22px;
  height: 30px;
  width: 100%;
}

@keyframes flicker {
  0%,
  100% {
    box-shadow: 0 2px 0 black, 0 4px 8px rgba(0, 0, 0, 0.2),
      0 3px 6px rgba(255, 0, 0, 0.6) inset;
  }
  50% {
    box-shadow: 0 2px 0 black, 0 4px 8px rgba(0, 0, 0, 0.2),
      0 3px 6px rgba(255, 0, 0, 1) inset;
  }
}

.drumMachine {
  width: 90%;
  height: 80%;
  background: linear-gradient(145deg, #222, #111);
  border: 12px solid transparent;
  border-radius: 15px;
  box-shadow: inset 0 0 15px #000, 0 0 10px rgba(0, 0, 0, 0.6),
    0 0 3px #888 inset, 0 0 20px #aaa;
  padding: 20px;
  position: relative;
  background-clip: padding-box;
}

.drumMachine::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 20px;
  background: linear-gradient(145deg, #bbb, #eee);
  z-index: -1;
  box-shadow: inset 0 0 10px #999, 0 0 10px #000;
}

.bass-synth {
  width: 90%;
  height: 80%;
  background: linear-gradient(145deg, #222, #111);
  border: 12px solid transparent;
  border-radius: 15px;
  box-shadow: inset 0 0 15px #000, 0 0 10px rgba(0, 0, 0, 0.6),
    0 0 3px #888 inset, 0 0 20px #aaa;
  padding: 20px;
  position: relative;
  background-clip: padding-box;
  display: flex;
}

.bass-synth::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 20px;
  background: linear-gradient(145deg, #bbb, #eee);
  z-index: -1;
  box-shadow: inset 0 0 10px #999, 0 0 10px #000;
}

.sampler {
  width: 90%;
  height: 80%;
  background: linear-gradient(145deg, #222, #111);
  border: 12px solid transparent;
  border-radius: 15px;
  box-shadow: inset 0 0 15px #000, 0 0 10px rgba(0, 0, 0, 0.6),
    0 0 3px #888 inset, 0 0 20px #aaa;
  padding: 20px;
  position: relative;
  background-clip: padding-box;
}

.sampler::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 20px;
  background: linear-gradient(145deg, #bbb, #eee);
  z-index: -1;
  box-shadow: inset 0 0 10px #999, 0 0 10px #000;
}

.polySynth {
  width: 90%;
  height: 80%;
  background: linear-gradient(145deg, #222, #111);
  border: 12px solid transparent;
  border-radius: 15px;
  box-shadow: inset 0 0 15px #000, 0 0 10px rgba(0, 0, 0, 0.6),
    0 0 3px #888 inset, 0 0 20px #aaa;
  padding: 20px;
  position: relative;
  background-clip: padding-box;
}

.polySynth::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 20px;
  background: linear-gradient(145deg, #bbb, #eee);
  z-index: -1;
  box-shadow: inset 0 0 10px #999, 0 0 10px #000;
}

.centered-container {
  display: flex;
  justify-content: center;
}

#tb303-sequencer {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  gap: 5px;
  margin-top: 20px;
  background: linear-gradient(to bottom, #404040, #202020);
  border: 2px solid black;
  border-radius: 5px;
  width: 90%;
  padding: 20px;
}

#sequencer {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  gap: 5px;
  margin-top: 20px;
  background: linear-gradient(to bottom, #404040, #202020);
  border: 2px solid black;
  border-radius: 5px;
  width: 90%;
  padding: 20px;
}

#programmer {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  gap: 5px;
  margin-top: 20px;
  background: linear-gradient(to bottom, #404040, #202020);
  border: 2px solid black;
  border-radius: 5px;
  width: 90%;
  padding: 20px;
}

#polySequencer {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  gap: 5px;
  margin-top: 20px;
  background: linear-gradient(to bottom, #404040, #202020);
  border: 2px solid black;
  border-radius: 5px;
  width: 90%;
  padding: 20px;
}

.groove-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5px;
  padding: 10px;
  width: 95%;
  height: 700px;
  justify-self: center;
  background: linear-gradient(
    135deg,
    #7f7d7d 40%,
    #919090 50%,
    #2b2b2b 70%,
    #a49797 100%
  );
  color: #000000;
  font-family: "Alien";
  border-radius: 15px;
  box-shadow: 12px 12px 25px rgba(0, 0, 0, 0.8),
    -8px -8px 15px rgba(255, 255, 255, 0.3),
    inset 0px 0px 15px rgba(0, 0, 0, 0.4),
    inset 0px 0px 50px rgba(255, 255, 255, 0.1);
  border: none;
}

.drum-step {
  text-align: center;
}

.accent-step {
  text-align: center;
}

.tb303-step {
  text-align: center;
}

.sequence-step {
  text-align: center;
}

#sampler-cutoff-value,
#sampler-resonance-value,
#attackValue,
#decayValue,
#filterAmountValue,
#sampler-volume-value,
#osc-1-gainValue,
#filter-depth-value,
#osc-2-gainValue,
#osc-2-detuneValue,
#amp-attack-value,
#amp-decay-value,
#filter-cutoff-value,
#filter-q-value,
#filter-decay-value,
#filter-attack-value,
#tb303-cutoff-value,
#tb303-resonance-value,
#tb303-volume-value,
#tb303-env-amount-value,
#tb303-decay-value,
#lfo-rate-value,
#lfo-depth-value,
#endDisplay,
#startDisplay,
#tb303-distortion-value {
  display: block;
  margin-top: 10px;
}

.file-upload-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Alien";
  font-size: 14px;
  color: white;
}

.file-upload-label {
  padding: 10px 20px;
  background-color: #200;
  color: #f00;
  font-family: "Alien";
  font-size: 12px;
  border: 2px solid #500;
  border-radius: 6px;
  cursor: pointer;
  text-shadow: 0 0 5px #f00;
  transition: all 0.2s ease-in-out;
}

.file-upload-label:hover {
  background-color: #300;
  border-color: #f00;
  text-shadow: 0 0 10px #fff;
}

.file-upload-input {
  display: none;
}

.file-name-display {
  width: 300px;
  background-color: #000000;
  color: #ff0303;
  border-radius: 5px transparent;
  border: 4px solid #2a2a2a;
  border-image: linear-gradient(
      to bottom,
      rgba(43, 43, 43, 0.5),
      rgba(160, 160, 160, 0.5),
      rgba(90, 90, 90, 0.8)
    )
    1 stretch;
  font-family: "LCD";
  font-size: 18px;
  text-align: left;
  letter-spacing: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-bottom: 4px;
  margin-top: 6px;
}

#polySequencer {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
}

.module-button {
  padding: 10px 10px;
  margin: 8px;
  font-size: 16px;
  font-family: "Alien";
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.module-button:hover {
  background-color: #333;
}

.module-button.active {
  box-shadow: 0 0 5px rgb(255, 0, 0), 0 0 5px rgb(255, 0, 0);
  transform: scale(1.05);
}

.switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Alien";
  color: rgb(255, 255, 255);
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

.switch-toggle input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  overflow: hidden;
  white-space: nowrap;
}

.switch-knob {
  position: relative;
  width: 40px;
  height: 20px;
  background: #111;
  border: 2px solid #555;
  border-radius: 10px;
  box-shadow: inset 0 0 4px #000, 0 0 4px rgba(0, 255, 0, 0.2);
  transition: background 0.2s ease-in-out;
}

.switch-knob::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  background: #ccc;
  border: 1px solid #444;
  border-radius: 50%;
  box-shadow: 0 1px 2px #000;
  transition: transform 0.2s ease-in-out;
}

.switch-toggle input[type="checkbox"]:checked + .switch-knob::before {
  transform: translateX(20px);
  background: rgb(82, 10, 10);
  border-color: rgb(252, 24, 24);
}

.switch-toggle input[type="checkbox"]:checked + .switch-knob {
  box-shadow: inset 0 0 6px rgb(255, 0, 0), 0 0 6px rgba(255, 0, 0, 0.4);
}

.switch-toggle input[type="checkbox"]:focus + .switch-knob {
  outline: 2px solid rgb(255, 0, 0);
  outline-offset: 2px;
}
