* {
    touch-action: manipulation;
}

body {
  background-color: black;
  font-family: Arial, sans-serif;
  padding:0;
  margin:0;
  overflow: hidden;
}

#main {
  display: flex;
  justify-content: center;
  min-height:100vh;
  min-height:100dvh;
  width:100%;
}

#mpc {
  display: flex;
  flex-direction: column; 
  align-items: center;
  width:min(500px, 100%);
  padding: 0 12px 24px;
  box-sizing: border-box;
  position:relative;
}

#innerScreen {
  z-index: 2;
  width:100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: whitesmoke;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 12px;
  background-color:fuchsia; 
  min-height:200px;
  height:200px;
  border-radius:35px;
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent), linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  mask-composite: intersect;
  padding-bottom: 20px;
  padding-top: 20px;
  filter: invert(100%) contrast(1.2) brightness(1);
}

#configButtons {
  display: flex;
  flex-wrap:wrap;
  justify-content: center;
  align-items: center;
  width:100%;
}

#pads {
  display: flex;
  align-items: center;
  position:relative;
  width: 400px;
  height:900px;
}

#lcdText {
  display: flex;
  margin:0px;
}

#samplePlaying {
  position:relative;
  top:0px;
  left:0px;
}

.monsieur {
  font-size: 10vh;
  font-family: "Monsieur La Doulaise", cursive;
  font-weight: 400;
  font-style: normal;
}

#sideText {
  position:absolute;
  top:30px;
  left: auto; 
  right: 0;         /* hugs the MPC's right edge */
  font-size: min(10vh, 12vw);  /* scales with width too, not just height */
  line-height: 1;
  white-space: nowrap;
  writing-mode: vertical-rl;
  pointer-events: none;
  z-index: 1000;
}

#sideText p { margin: 0; }

/* phones: no room beside the MPC, so tuck it inside the right edge */
@media (max-width: 700px) {
  #sideText { left: auto; right: 0; }
}

button {
  cursor: crosshair;
  font-size: 10px;
  border-width:1px;
  border-color:whitesmoke;
  border-radius: 12px;
  border-style: solid;
  border-width:1px;
  box-shadow: 0px 2px 9px lightgrey;
  transition: box-shadow 0.5s ease-in-out;
}

button:focus {
  outline:0;
}

button, input[type=range] {
  touch-action: manipulation;          /* no double-tap zoom / 300ms delay */
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;         /* no long-press menu on iOS */
}

#bankButton {
  width:auto;
  margin:8px;
  left:100px;
  border-radius:55px;
  background-color:transparent;
  color:whitesmoke;
}

.pressed {
  transition: box-shadow 0.5s ease-out;
  box-shadow: 0px 2px 30px red;
  /* violet orchid magenta fuchsia */
}

.pad { 
  font-size: 38px;
  text-shadow: 1px 1px 4px slategray;
  background-color: transparent;
  width: 100%;
  height: 100%;
  touch-action: none;
}

input[type="range"]:focus {
  outline:none
}

p {
  text-shadow:0px 2px 8px whitesmoke;
}

input[type=range]:focus::-webkit-slider-runnable-track {
  outline: none;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  background: #3071a9;
  border-radius: 1.3px;
  border: 0.2px solid #010101;
}

input[type=range]::-ms-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  background: transparent;
  border-color: red;
  border-width: 16px 0;
  color: red;
}

input[type=range]::-ms-fill-lower {
  background: #2a6495;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}

input[type=range]:focus::-ms-fill-lower {
  background: #3071a9;
}

input[type=range]::-ms-fill-upper {
  background: #3071a9;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
}

input[type=range]:focus::-ms-fill-upper {
  background: #367ebd;
}

input[type=range] {
  -webkit-appearance: none;
  margin: 18px 0;
  width: 100px;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  background: lightgrey;
  border-radius:35px;
  box-shadow: 0px 2px 9px lightgray;
 cursor: crosshair;
}

input[type=range]::-webkit-slider-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50px;
  background: lightgrey;
  box-shadow: 0px 2px 9px lightgray;
  cursor: crosshair;
  -webkit-appearance: none;
  margin-top: -5px;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #3071a9;
  border: 0.2px solid #010101;
}

input[type=range]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  cursor: pointer;
}

input[type=range]::-ms-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 16px 0;
  color: transparent;
}

input[type=range]::-ms-fill-lower {
  background: #2a6495;
  border: 0.2px solid #010101;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}

input[type=range]::-ms-fill-upper {
  background: #3071a9;
  border: 0.2px solid #010101;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}

input[type=range]::-ms-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  cursor: pointer;
}

input[type=range]:focus::-ms-fill-lower {
  background: #3071a9;
}

input[type=range]:focus::-ms-fill-upper {
  background: #367ebd;
}

@media (max-width: 600px) {
  #innerScreen { min-height: 170px; height: 170px; }
  #sliders { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; width: 100%; }
  #sliders input[type=range] { width: 100%; margin: 14px 0; }
}
