body, html {
    height: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: black;
}

@media screen and (max-width: 600px) {
  body, html {
    width: 100%;
  }  
}

@font-face {
    font-family: Commit Mono;
    src: url(CommitMono-400-Regular.otf);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: url(#noiseFilt);
    pointer-events: none; /* Allows you to click "through" the grain to the sliders */
    z-index: 9999;        /* Keeps it on top of all UI */
    opacity: 0.1;         /* Fine-tune the overall visibility here */
}

.sliderBody {
    flex-grow: 1;
    height: 100%;
    width: 75%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: black;
}

@media screen and (max-width: 600px) {
  .sliderBody{
    width: 100%;
  }  
}

.three-slider {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    height: 100%;
    overflow: auto;
}
.slider-container {
  display: grid;
  grid-template-areas: "overlap";
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-info {
  grid-area: overlap;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers label vertically */
  align-items: center;     /* Centers label horizontally */
  z-index: 11;              /* Places text on top of slider */
  pointer-events: none;    /* Ensures mouse clicks pass through to the slider */
}

.slider-label {
  color: white;
  font-family: 'Commit Mono', monospace;
  font-size: 1rem;
  opacity: 1;
  z-index: 11;
}
.upper-label {
  color: white;
  grid-area: overlap;
  font-family: 'Commit Mono', monospace;
  font-size: 1rem;
  opacity: 1;
  z-index: 11;
  position: absolute;
  top: 1%;
  left: 1%;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.lower-label {
  color: white;
  font-family: 'Commit Mono', monospace;
  font-size: 1rem;
  opacity: 1;
  z-index: 11;
  position: absolute;
  bottom: 1%;
  left: 1%;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.vertical-slider {
  grid-area: overlap;
  margin-block-end: 0px;
  writing-mode: vertical-lr;
  direction: rtl;
  -webkit-appearance: none;
  overflow: hidden;
  height: 100%;
  width: 100%;
  accent-color: black;
  border: none;
  outline: none;
  margin: 0;
  outline: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
}
.vertical-slider:hover {
  opacity: 1;
}
.vertical-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to bottom, #680117, #641828);
    width: 100%;
    height: 100%;
}

.vertical-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 100%;
    height: 0px;
    background: #000;
    box-shadow: 0 -5000px 0 5000px #000000;
}
.vertical-slider::-moz-range-track {
  background: linear-gradient(to bottom, #680117, #641828);
  width: 100%;
  height: 100%;
}
.vertical-slider::-moz-range-thumb {
  width: 100%;
  height: 0px;
  background: #000;
  border: none;
  border-radius: 0;
  box-shadow: 0 -5000px 0 5000px #000000;
}

.navBar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 7.5%;
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.navBar ul{
  display: flex;
  background-color: #000;
  margin: 0;
  padding: 0;
  height: 100%;
}

.navBar ul li{
  list-style-type: none;
  padding: 0;
  margin: 0;
  height: 100%;
}

.navBar ul li a {
  font-family: 'Commit Mono', monospace;
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  padding: 0 16px;
  height: 100%;
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
}

.navBar ul li a.active {  
  background-color: #ffffff;
  color: black;
}

.navBar ul li a:hover {
  opacity: 1;
}

.meter-container {
  display: grid;
  grid-template-areas: "overlap";
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
  transition: opacity 0.2s ease-in-out;
  opacity: 1;
}

.meter-fill {
  grid-area: overlap;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, #641828, #680117); 
  transition: height 0.05s ease-in-out;
  position: absolute;
  bottom: 0;
  left: 0;
}

.meter-container:hover {
  opacity: 1;
}

.bypass-button {
  display: flex;
  font-family: 'Commit Mono', monospace;
  box-shadow:inset;
  transition: color 0.5s, background-color 0.5s, height 0.2s, opacity 0.2s ease-in-out;
  border: none;
  aspect-ratio: 1/1;
  justify-content: center;
  align-items: center;
  border-radius: 15%;
  opacity: 0.8;
  font-size: 1.5rem;
}

.bypass-button:hover {
  opacity: 1;
}

.bypass-button.bypassed {
  height: 3.5%;
  background-color: black;
  color: white;
  content: "+";
}

.bypass-button.active {
  height: 4%;
  background-color: white;
  color: black;
  content: "x";
}

.thumb-only-slider {
  grid-area: overlap;
  margin-block-end: 0px;
  writing-mode: vertical-lr;
  direction: rtl;
  -webkit-appearance: none;
  overflow: hidden;
  height: 100%;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  margin: 0;
  outline: 0;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 10;
}

.thumb-only-slider:hover {
  opacity: 1;
}

.meter-container:hover .upper-label{
  opacity: 1;
}
.meter-container:hover .lower-label{
  opacity: 1;
}

.thumb-only-slider::-webkit-slider-runnable-track {
    background: none;
    width: 100%;
    height: 100%;
}

.thumb-only-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 100%;
  height: 1%;
  background: white;
}
.thumb-only-slider::-moz-range-track {
  background: none;
  width: 100%;
  height: 100%;
}
.thumb-only-slider::-moz-range-thumb {
  width: 100%;
  height: 1%;
  background: white;
  border: none;
  border-radius: 0;
}

