/* Hide the audio mixer */
.hidden {
    display: none !important;
}

/* Page settings */
body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 10px;
    background-color: #000;
    color: #6366f1;
}

.TrackContainer{
    width: 100%;       /* Forces it to take up the full width of the interface */
    box-sizing: border-box; /* Ensures padding/borders don't accidentally push it off-screen */
}

/* Track playback audio files */
.select-box{
    background-color: black;
    color: #6366f1;
    min-width: 150px;
    border: 4px solid #6366f1;
}

/* Audio mixer settings */
.MixerContainer{
    background-color: none;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    margin-top: 20px;
    width: 95%;
    justify-content: center;
    align-items: center;
}

/* Configure mixer buttons */
.mixerButton {
    -webkit-appearance: none;
    appearance: none;
    height: 40px;
    width: 80px;
    border-radius: 0%;
    background: transparent;
    border: 2px solid #6366f1;
    color: #6366f1;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
}

/* Configure mixer buttons hover state */
.mixerButton:hover {
    background: #6366f1;
    border: 2px solid white;
    color: #ffffff;
    transform: scale(1.10);
}

/* Button state while the track audio is muted */
.mixerButton.active-mute{
    border: 4px solid red;
    box-shadow: 0 0 15px 5px rgba(239, 68, 68, 0.6);
    background: #6366f1;
    color: white;
    transform: scale(1.10);
}

/* Button state while the track audio is muted */
.mixerButton.active-playing {
    border: 4px solid yellow;
    box-shadow: 0 0 15px 5px rgba(255, 255, 0, 0.6);
    background: #6366f1;
    color: white;
    transform: scale(1.10);
}

/* Mixer background components behind the UI */
.flex-item{ 
    background-color: transparent;
    display: flex;
    flex-direction: column;
    padding: 20px;
    width:170px;
    margin: 10px;
    height:300px;
    gap: 20px; 
    align-items: center;     
    justify-content: flex-start;
    text-align:center;
    border: 4px solid black;
    border-radius: 10%;
}

/* Configure slider thumb for Firefox */
.SliderVertical::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: transparent;
    border: 4px solid #6366f1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease, background-color 0.1s ease;
}

/* Configure slider track for Firefox */
.SliderVertical::-moz-range-track {
    width: 4px;
    background: #6366f1;
    border-radius: 2px;
}

/* Configure custom sliders */
.SliderVertical {
    -webkit-appearance: none;
    appearance: none; 
    writing-mode: vertical-lr; 
    direction: rtl; 
    width: 54px; 
    height: 175px;
    background: transparent;
    cursor: pointer;
}

/* Configure slider tracks */
.SliderVertical::-webkit-slider-runnable-track {
    width: 8px; 
    background: #6366f1;
    border-radius: 2px;
}

/* Configure slider thumb */
input[type="range"].SliderVertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 40px;
    border-radius: 0%;
    background: transparent;
    border: 2px solid #6366f1;
    color: #6366f1;
    font-weight: bold;
    transition: transform 0.1s ease, background-color 0.1s ease;
    margin-top: -10px; 
    margin-left: -16px;
}

/* Configure slider thumb - Hover event */
input[type="range"].SliderVertical::-webkit-slider-thumb:hover {
    background: #6366f1;
    border: 4px solid white;
    transform: scale(1.5);
}

/* Configure slider thumb for Firefox */
input[type="range"].SliderVertical::-moz-range-thumb {
    height: 20px;      /* Matched to WebKit */
    width: 40px;       /* Matched to WebKit */
    border-radius: 0%; /* Rectangular shape instead of 50% circle! */
    background: transparent;
    border: 2px solid #6366f1; /* Matched to WebKit */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease, background-color 0.1s ease;
    cursor: pointer;
}

/* Configure slider thumb for Firefox - Hover event */
input[type="range"].SliderVertical::-moz-range-thumb:hover {
    background: #6366f1;
    border: 4px solid white;
    transform: scale(1.5);
}

/* Configure mixer labels for individual track / master components */
.mixer-labels{
    color:#6366f1;
    background-color: black;
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Configure mixer headers, load, master and channel components */
.flex-header{
    display: flex;
    justify-content: center;
    background-color: #111827;
    padding: 10px 0;
    width: 100%;
}

/* Mixer track settings (master and track level) */
.flex-container,#start-container{
    border-top: 6px solid blue;
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #111827;
    width: 100%;
    margin-top: 0px;
    margin-bottom: 30px;
}

/* Load audio section */
.LoadContainer{
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #111827;
    width: 100%;
    margin-top: 0px;
    margin-bottom: 30px;
    height: 75px;
}

/* Load files box */
.loadFiles{
    color: transparent; /* Safari fix */
    -webkit-appearance: none;
    appearance: none;
    height: 40px;
    width: 400px;
    border-radius: 0%;
    background: black;
    border: 2px solid #6366f1;
    color: #6366f1;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
}

/* Configure file selector button (and WebKit target for Safari) */
.loadFiles::-webkit-file-upload-button,
.loadFiles::file-selector-button {
    -webkit-appearance: none;
    appearance: none;
    height: 40px;
    width: 150px;
    border-radius: 0%;
    color: #6366f1;
    background: transparent;
    border: 2px solid #6366f1;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
}

/* Configure file selector button - hover state */
.loadFiles::-webkit-file-upload-button:hover,
.loadFiles::file-selector-button:hover {
    color: #ffffff;
    background: #6366f1;
    border: 2px solid white;
    transform: scale(1.05);
}