@font-face {
    font-family: 'Ubuntu';
    src: url('./Ubuntu-Medium.ttf') format('truetype'); /* The ./ means "same folder" */
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('./Ubuntu-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('./Ubuntu-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Ubuntu', sans-serif, serif;
    background-color: #8e90a4;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

header {
    display: flex;
    justify-content: space-between;

    
}

header,
footer {
    background-color: #5f9f89;
    height: auto;
    width: 100%;
    flex-shrink: 0;
}

header {
    top: 0;
    padding: 1px;
    box-shadow: 1px 1px 1px black;
    display: flex;
    gap: 20pt;
    align-items: center;
}

header a {
    text-decoration: none;
    font-size: 20px;
    color: white;
    margin-right: 10px;
}

a {
    text-decoration: none;
    color: white;
}

a:visited {
    text-decoration: none;
    color: white;
}

#header-logo {
    text-shadow: 1px 1px 12px black;
    color: white;
    font-size: 30px;
    margin-left: 50px;
}

#home {
    background-color: #5f9f89;
    align-items: center;
}

#heading-house {
    color: white;
    margin: 20px;
    text-shadow: 1px 1px 8px black;
    text-align: center;
}

#home-heading {
    font-size: 150px;
    text-decoration: none;
}

#home-heading:visited {
    color: white;
}

button {
    border-radius: 5px;
    box-shadow: 1px 1px 2px black;
    font-family: ubuntu, "sans-serif", "sans";
    font-size: 20px;
}
h2, label {
    font-size: 20px;
}

h2, h3, label {
    padding: 0;
    margin: 0;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px black;
}

h3 {
    font-size: 30px;
    margin-top: 0px;
}

#m10{
    display: flex;
    height: 760px;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    transform: scale(0.9);
    transform-origin: center;
}

.wood {
    width: 35px;
    min-height: 760px;
    box-shadow: 3px 3px 10px black;
    background-color: #363532;
    border-radius: 4px;
}

#m10Body {
    width: 1200px;
    height: 700px;
    padding: 10px;
    background-color: #C7C6C6;
    box-shadow: 1px 1px 8px black;
    display:flex;
    flex-direction: column;
    margin: 0;
}

#top {
    display: flex;
}

#tracks {
    display:flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin-right: 10px;
    margin-left: 10px;
    margin-top: 20px;
}

.trackBtn {
    width: 80px;
    height: 35px;
}

#master {
    background-color: #A3D4C3;
}

#params {
    flex-grow: 1;
    display:flex;
    flex-direction: column;
}


#topParams {
    position: relative;
    display:flex;
    width: 100%;
    height: 520px;
    overflow: hidden;
    align-items: flex-start;
}

#trackParams {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 0 0 55%;
    margin-top: 50px;
}

#trackParams.master {
    flex: 0 0 100%;
}

#effectParams {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    margin-top: 100px;
}

#effectParams.master {
    flex: 0 0 0%;
}

#effectsHouse {
    margin-top: 30px;
}

.master {
    display: flex;
    justify-content: space-between;
}

.paramRow,
.masterEffect{
    display: flex;
    justify-content: space-between;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 15px;
    gap: 10px;
}

.masterEffect {
    flex-direction: column;
    align-items: center;
}

.masterEffectRow {
    display: flex;
}

#selectorRow,
#stateRow {
    justify-content: flex-start;
    gap: 20px;
}

#stateRow {
    width: 170px;
}

#selectorRow,
#stateRow {
    align-items: center;
}

#stateRow.master {
    width: 55%;
}

.selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

select {
    width: 250px;
    height: 30px;
    font-size: 16px;
    color: white;
    background-color: black;
}

#file {
    display: none;
}

/* style label to look like a button */
#upload-button {
    color: black;
    display: inline-block;
    border-radius: 4px;
    border: 2px solid ButtonText;
    width: 88px;
    height: 38px;
    border-radius: 5px;
    text-shadow: 0px 0px 0px black;
    box-shadow: 1px 1px 2px black;
    font-size: 20px;
    margin-bottom: 0px;
    background-color: ButtonFace;
    text-align: center;
    display: flex;         
    justify-content: center;
    align-items: center;
}

#globalParams {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    min-height: 80px;
    gap: 20px;
}

#globalParams button,
#stateRow button,
#selectorRow button {
    width: 90px;
    height: 40px;
}

#download {
    font-size: 16px;
}

#selectorRow button,
#stateRow button {
    margin-top: 20px;
}

#pages .page {
    width: 40px;
    height: 40px;
    margin-right: 5px;
}

button.page {
    text-align: center;
    font-size: 20px;
}

.house {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.display {
    background-color: black;
    color: white;
    width: 70px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.slider {
    width: 80%;
}

#parameters {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#sequencer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 80px;
    gap: 5px;
    margin-top: 10px;
}

#sequencer.read-only .step {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(100%);
}

#sequencer.read-only .step.current {
    opacity: 1;
    filter: none;
    background-color: #5F9F89;
}

.step {
    width: 65px;
    height: 65px;
}

.divider {
    border-left: 2px solid #7B8183;
    height: 90px;
    display: inline-block; 
}

.paramDivider {
    margin-top: 100px;
    height: 80%;
}

.masterDivider {
    height: 300px;
    margin-top: 50px;
}

.step.current {
    background-color: #ECC987;
    color: white;
}

.step.active {
    background-color: #BC81BF;
    color: white;
}

.step.active.current {
    background-color: #ECC987;
    color: white;
}

.selected {
    background-color: #5F9F89;
    color: white;
}

.muted {
    background-color: color-mix(in srgb, #5F9F89 50%, white);
    box-shadow: 1px 1px 40px #8795E8;
    text-shadow: 1px 1px 20px #8795E8;
    border-color: #8795E8;
    color: gray;
}

.flash {
    color: #e2ab45;
}

.muted.selected {
    background-color: color-mix(in srgb, #5F9F89 75%, #8E90A4);
}

#reload {
    background-color : #EE9ABD;
}

.changes {
    box-shadow: 1px 1px 40px #e2ab45;
    text-shadow: 1px 1px 20px #e2ab45;
    border-color: #ECC987;
}

.recording {
    box-shadow: 1px 1px 40px #EE9ABD;
    text-shadow: 1px 1px 20px #EE9ABD;
    border-color: #ECC987;
}

#logo {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 70px;
    font-weight: 700;
    letter-spacing: 7px;
    text-shadow: 1px 1px 8px black;
    margin: 0;
}


#masterArea.master {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 10px;
}

.loop {
    box-shadow: 1px 1px 10px #5F9F89;
    text-shadow: 1px 1px 10px #5F9F89;
    border-color: #DAEBFA;
}

footer {
    padding: 10px;
    padding-right: 0px;
    margin: 0;
    text-align: center;
    color: white;
}

.initSample {
    color: #e2ab45;
}

.hidden {
    display: none !important;
}


/* Modal Screens Styling */

.modal-overlay {
    position: fixed;
    font-size: 20px;
    min-width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;  
    z-index: 9999;      
}

.modal-box {
    background: #222;
    padding: 80px;
    border-radius: 8px;
    border: 1px solid #444;
    min-width: 350px;
    height: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;  
}

.modal-hidden {
    display: none !important;
}

#seq-name {
    min-width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 20px;
}

.modal-footer {
    display: flex;
    gap: 50px;
}

.modal-footer button {
    width: 100px;
    height: 35px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    pointer-events: all;
}

.loading-box {
    text-align: center;
    color: white;
}

/* loading screen spinner and animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #5f9f89;
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}