html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  margin: 0;
  background: #f3f2f2;
  color: white;
  font-family: sans-serif;
  text-align: center;
}
#heading-banner {
  width: 100%;
  padding: 20px 0;
  background: #000;
  text-align: center;
  


}

#heading-banner h1 {
  margin: 0;
  font-family: "Arial", sans-serif;
  font-size: 50px;
  letter-spacing: 2px;
  color: #e5e5e5;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.header-buttons {
  display: flex;
  gap: 10px; /* space between buttons */
  top: 5px;
  margin-left: 5px;
}
#heading-banner h3 {
  margin: 0;
  font-family: "Arial", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: #e5e5e5;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  margin-left: 80px
}
.header-buttons button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}
/* DJ DECK PANEL */
#dj-deck {
  position: absolute;
  left: 20px;
  top: 150px;

  width: 180px;
  padding: 20px;

  background: linear-gradient(145deg, #181818, #0e0e0e);
  border-radius: 12px;
  border: 2px solid #444;
  box-shadow:
    0 10px 20px rgba(0,0,0,0.6),
    inset 0 0 15px rgba(255,255,255,0.05);

  font-family: 'Orbitron', sans-serif;
  text-align: center;
}


/* Title */
#dj-deck h2 {
  margin: 0 0 20px 0;
  color: #f2f2f2;
  font-size: 18px;
  text-shadow: 0 0 4px #000;
  letter-spacing: 1px;
}

/* Fader containers */
.fader-container {
  display: inline-block;
  width: 60px;
  height: 180px;
  margin: 0 5px;
  position: relative;
}

.fader-container label {
  color: #ccc;
  font-size: 12px;
  margin-bottom: 10px;
  display: block;
}

/* Vertical DJ fader slider */
input[type="range"][orient="vertical"] {
  appearance: slider-vertical;
  width: 12px;
  height: 150px;
  outline: none;
  background: #2e2e2e;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.7);
}

/* Fader knob */
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 26px;
  height: 12px;
  background: linear-gradient(180deg, #f2f2f2, #c0c0c0);
  border-radius: 4px;
  box-shadow:
    0 0 3px rgba(0,0,0,0.7),
    inset 0 0 4px rgba(0,0,0,0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 12px;
  background: linear-gradient(180deg, #f2f2f2, #c0c0c0);
  border-radius: 4px;
  box-shadow:
    0 0 3px rgba(0,0,0,0.7),
    inset 0 0 4px rgba(0,0,0,0.5);
}

/* LED Panel */
.led-panel {
  width: 40px;
  margin: 20px auto 0;
}

.led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 6px auto;
  background: #111;
  box-shadow: 0 0 4px rgba(0,0,0,0.8);
}

.led.on {
  background: #f90303;
  box-shadow: 0 0 8px #ff5454;
}

#layer-button{
   position: fixed;
  left: 20px;
  top: 600px;

}
/* CENTER EVERYTHING */
#turntable {
  margin: 40px auto;
  width: 450px;
  height: 450px;
  position: relative;
}

/* PLATTER */
#platter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;

  /* Dark vinyl with depth */
  background: radial-gradient(circle at 50% 50%, #3a3a3a 0%, #1a1a1a 40%, #0c0c0c 100%);

  /* Outer metallic rim */
  border: 12px solid transparent;
  box-shadow:
    0 0 30px rgba(0,0,0,0.6),
    inset 0 0 20px rgba(255,255,255,0.15),
    inset 0 0 10px rgba(0,0,0,0.6);
}

/* VINYL GROOVES */
#platter::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 1px,
    rgba(0,0,0,0.2) 2px,
    rgba(0,0,0,0.2) 4px
  );
  opacity: 0.25;   /* subtle so grooves look real */
  pointer-events: none;
}

/* LABEL IN THE MIDDLE OF THE RECORD */
#record-label {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 3;

  /* Rich label texture */
  background: radial-gradient(circle at 55% 45%, #d93434 0%, #a31515 60%, #600 100%);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.5),
    inset 0 2px 4px rgba(255,255,255,0.35),
    inset 0 -2px 6px rgba(0,0,0,0.4);
}

/* Center spindle */
#record-label::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #ddd 0%, #aaa 60%, #777 100%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    inset 0 1px 2px rgba(255,255,255,0.5);
}


/* YOUR CANVAS GOES ON TOP OF THE RECORD */
#myContainer canvas {
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

/* TONEARM */
#tonearm {
  position: absolute;
  width: 180px;
  height: 12px;
  background: linear-gradient(180deg, #dcdcdc 0%, #b8b8b8 100%);
  right: -20px;
  top: 140px;
  transform-origin: 15px 6px; /* pivot */
  transform: rotate(35deg);
  border-radius: 6px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.35),
    inset 0 0 4px rgba(255,255,255,0.6),
    inset 0 -2px 6px rgba(0,0,0,0.25);
}

/* Pivot post (more depth + ring) */
#tonearm::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 40% 40%, #cfcfcf, #8a8a8a 70%);
  border-radius: 50%;
  left: -14px;
  top: -8px;
  box-shadow:
    0 2px 5px rgba(0,0,0,0.4),
    inset 0 1px 4px rgba(255,255,255,0.4),
    inset 0 -2px 4px rgba(0,0,0,0.35);
}

/* Headshell (more realistic body + stylus block) */
#tonearm::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 8px;
  background: linear-gradient(180deg, #e6e6e6, #bdbdbd);
  right: -16px;
  top: 2px;
  border-radius: 4px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.35),
    inset 0 1px 3px rgba(255,255,255,0.5);

  /* Stylus block */
}
#tonearm .stylus {
  position: absolute;
  width: 8px;
  height: 10px;
  background: #444;
  right: -22px;
  top: 1px;
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.4);
}


#vinyl-panel {
  position: absolute;
  right: 20px;
  top: 150px;
  width: 180px;
  padding: 15px;

  border-radius: 12px;
  border: 2px ;
  text-align: center;
  color: #000000;
  font-family: 'Orbitron', sans-serif;
}

#vinyl-panel h2 {
  margin: 0 0 15px 0;
  font-size: 18px;
}

#vinyl-panel h3 {
  margin: 0 0 15px 0;
  font-size: 10px;
}


.vinyl {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 10px auto;
  cursor: grab;
  border: 3px solid #555;
   background: radial-gradient(circle at 50% 50%, #3a3a3a 0%, #1a1a1a 40%, #0c0c0c 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.7), inset 0 0 8px rgba(255,255,255,0.1);
  position: relative;
}

.vinyl:active {
  cursor: grabbing;
}

.vinyl .label {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
}

#layered-platters {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.layer {
  position: relative;
}

.layer-platter {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(#333, #111);
  margin: auto;
  align-items: center;
}

.layer .tonearm {
  position: absolute;
  right: -20px;
  top: 120px;
}

#layered-platters {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 40px;
}

.layer-turntable {
  display: flex;
  align-items: flex-start;        /* vertically center controls and platter */
  justify-content: flex-start; /* align left to match main deck */
  gap: 220px;                  /* space between controls and platter */
  margin: 20px 0;             /* vertical spacing between layers */
}

.layer-platter {
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(#3a3a3a, #0c0c0c);
  /* allow shifting left/right without moving the controls by using relative positioning */
  position: relative;
  /* adjust this value to move the platter left (negative) or right (positive) */
  left: var(--platter-shift, -200px);
  box-shadow:
    inset 0 0 20px rgba(255,255,255,0.15),
    inset 0 0 10px rgba(0,0,0,0.6);
}

.layer-label {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.layer-platter::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 1px,
    rgba(0,0,0,0.2) 2px,
    rgba(0,0,0,0.2) 4px
  );
  opacity: 0.25;
  pointer-events: none;
}


.layer-label {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}


/* LAYER CONTROLS MATCH DJ DECK */
.layer-controls {     /* remove absolute */
  display: flex;
  flex-direction: row;
  width: 180px;
  padding: 20px;
  gap: 15px;
  background: linear-gradient(145deg, #181818, #0e0e0e);
  border-radius: 12px;
  box-shadow:
    0 10px 20px rgba(0,0,0,0.6),
    inset 0 0 15px rgba(255,255,255,0.05);
  justify-content: space-between;
}

.layer-controls .fader-container {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 60px;
  height: 180px;


}

.layer-controls label {
  color: #ccc;
  font-size: 12px;
  margin-bottom: 10px;
  font-family: 'Orbitron', sans-serif;
}

/* Vertical slider styling same as DJ deck */
.layer-controls input[type="range"][orient="vertical"] {
  -webkit-appearance: slider-vertical;
  writing-mode: bt-lr; /* vertical orientation */
  width: 12px;
  height: 150px;
  outline: none;
  background: #2e2e2e;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.7);
}

.layer-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 12px;
  background: linear-gradient(180deg, #f2f2f2, #c0c0c0);
  border-radius: 4px;
  box-shadow:
    0 0 3px rgba(0,0,0,0.7),
    inset 0 0 4px rgba(0,0,0,0.5);
}

.layer-controls input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 12px;
  background: linear-gradient(180deg, #f2f2f2, #c0c0c0);
  border-radius: 4px;
  box-shadow:
    0 0 3px rgba(0,0,0,0.7),
    inset 0 0 4px rgba(0,0,0,0.5);
}
