main {
    display: flex;
    justify-content: center;
}

#wrapper {
    display: none;
    flex-direction: row;
    min-width: 98vw;
    max-width: 98vw;
    justify-content: space-around;
    align-items: space-around;
}

h1 {
    margin-bottom: 0.5em;
    margin-top: 0em;
}

#conductorSays {
    position: sticky;
    z-index: 999999999999999;
    top: 93vh;
    width: 90%;
    height: 2vh;
    background-color: var(--lclo-black);
    border: 1px solid #ffffff80;
    color: white;
    margin-bottom: 3px;
    border-radius: 3px;
    padding: 0.6em;
}
.bounceButton {
    all: unset;
    cursor: pointer;
    padding: 10px;
    padding-top: 5px;
    padding-bottom: 2px;
    border-radius: 5px;
}
.bounceButton:hover {
    background-color: #ffffff15;
}
.bounceButton.active {

    background-color: #ffffff30;
}
#splash {
    width: 100%;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#controlsWrapper {
    display: flex;
    flex-direction: column;
    min-width: 50vw;
    max-width: 50vw;

}
#payloadControl {
    width: 100%
}
#payloadSelection {
    width: 100%;
    height: 25vh;
    overflow: scroll;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    align-items: center;
    margin-top: 0.5em;

}
#toneControl {
    width: 100%;
    height:150px;
}
#toneControlWrapper {
    position: relative;
    width: 100%;
    height: 150px;
    background: linear-gradient(to right, #619c5c,#292721) ;
    border: 1px solid white;
    z-index: 10000;
    border-radius: 0.3em;

}
#toneControlTopLevel {
    display: flex;
    justify-content: center;
    width: 100%;
}

.globalNumber {
    padding: 0.3em;
    color: black;

    border-radius: 0.3em;
    background-color: var(--lclo-gold)
}

.label {
    text-decoration: underline;
    margin-bottom: 0.5em;

}
#payloadSelection button {
    all: unset;
    width: 95%;
    overflow-wrap: break-word;
    background-color: #ffffff20;
    margin-bottom: 5px;


    padding: 5px;
    font-size: 0.7em;
}
#payloadSelection button:hover {
    background-color: #ffffff35;

}

#payloadSelection button.active {

    background-color: #ffffff70;

}
#tempoButtons {
    display: flex;
    width: 100%;
    justify-content: center;
}

.tempoSelectionButton {
    all: unset;
    padding: 10px;
    border: 2px solid #00000000;
    border-radius: 3px;
    margin-left: 5px;
    margin-right: 5px;

}
.tempoSelectionButton:hover {
    background-color: #ffffff40;

}
.tempoSelectionButton.active {
    border: 2px solid white;
    background-color: #ffffff40;
}
.tempoSelectionButton img {

    max-width: 15px;
    min-width: 15px;
    height: auto;

}


#noteGridWrapper {
    width: 100%;
    display: flex;
    gap: 1px;
}
#noteGridWrapper button {
    all: unset;
    width: 100%;
    height: 25px;
    background-color: #737373;
    cursor: crosshair;


}
#noteGridWrapper button.active {
    background-color: var(--lclo-gold);

}
#noteGridWrapper button.playing {
    background-color: #e3e1e1;

}
.controls {

    min-width: 30vw;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.sublabel {
    font-size: 0.7em;
    text-decoration: none !important;
}
p {
    font-size: 0.7em;
    margin-top: 0em;
    margin-bottom: 0em;
}
.score {
    max-width: fit-content;
    text-align: right
}
.control {
    padding: 10px;
    height: fit-content;
    box-sizing: border-box;
    border: 1px dotted #ffffff60;
    background-color: #1c1c1c;
    box-shadow: 5px 5px 5px #00000050;
    margin-bottom: 1em;
}
.controlLabels {

    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.7em;


}
.payload {
    margin-top: 0px !important;
    max-width: 50vw;
    overflow: scroll;
    font-size: 0.3em;
}

#stats {
   display: grid;
   grid-template-columns: auto auto auto;
   gap: 3px;
    font-size: 0.7em;

}

#stats b {
    display: block;
    font-size: 2em;
}

#piano {
    box-sizing: border-box;

    margin-bottom: 0.7em;
    border: 4px inset var(--lclo-black);
    border-right: 4px inset rgb(40,90,30);
    border-left: 4px inset rgb(200,60,30);

    width: 45vw;
    height: 80vh;
    background-color: black;


}

#secondRowControls {
    display: flex;
    gap: 8px;
    flex-direction: column;
}




#tempoSlider {
    direction: rtl

}

input[type=range] {
  -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
    width: 100%; /* Specific width is required for Firefox. */
    background: transparent; /* Otherwise white in Chrome */
    margin-bottom: 0.7em;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type=range]:focus {
  outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

input[type=range]::-ms-track {
  width: 100%;
  cursor: pointer;

  /* Hides the slider so custom styles can be added */
  background: transparent;
  border-color: transparent;
  color: transparent;
}

/* Special styling for WebKit/Blink */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 1px solid #000000;
  height: 10px;
  width: 10px;
  background: #ffffff;
  cursor: pointer;
  margin-top: -4px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; /* Add cool effects to your sliders! */
}
input[type=range]::-webkit-slider-runnable-track {
    min-width: 100%;
    height: 3px;
    cursor: pointer;
    box-shadow: 1px 1px 1px #ffffff20;
    background: var(--lclo-gold);
    /* border-radius: 1.3px; */
    border: 0.2px solid #010101;
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: #367ebd;
}

@media (max-width: 768px) {

    #piano {

        width: 90vw;
        height: 50vh;
    }
    #controlsWrapper {
        min-width: 90vw;
        max-width: 90vw;
    }
    #controls {
        padding-left: 0em;


    }

    #wrapper {
        flex-direction: column;
        align-items: center;
        min-width: 95vw;
        max-width: 95vw;
    }
    #noteGridWrapper button {
        height: 50px
    }

}
