*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --light-blue: #84c0f9;
    --main-blue: #399af7;
    --dark-blue: #1C4B78;

    --meter-width: 0;
}

body, header, h1 {
    margin: 0;
}

header {
    background-color: var(--main-blue);
    padding: 2rem 0;
    text-align: center;
}

h1 {
    color: #fff;
    font-weight: 500;
}

a#essentia-header-link {
    color: inherit;
}

a#essentia-header-link:hover {
    text-decoration: underline;
}

a#essentia-header-link:active {
    color: var(--dark-blue);
}

#main {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;

    margin: 3rem auto;
    height: 30vh;
}


/* FILE UPLOAD AREA */
/* button {
    font-size: 1rem;
    padding: .33rem .66rem;
} */

#file-select-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;

    height: 30vh;
}

#file-drop-area {
    border: 3px dashed #BFBFBF;
    border-radius: 1rem;

    background-color: #f7f7f7;
    height: 100%;
    width: 80%;

    text-align: center;
    line-height: 30vh;
    color: #AFAFAF;
}

#file-drop-area:hover {
    cursor: pointer;
    color: #7f7f7f;
    border-color: #7f7f7f;
}

#file-drop-area > span {
    display: inline-block;
    vertical-align: center;
    line-height: normal;
}

#waveform {
    width: 90%;
}


/* RESULTS AREA */

#results {
    height: 100%;
    max-width: 80%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.controls {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;

    /* margin-top: 1rem; */
}

#loader {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    border-radius: 1rem;
}

.classifier {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#bpm-and-key {
    margin-top: 1.8rem;
    height: 1.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tag {
    font-weight: bold;
}

#key-value, #bpm-value {
    width: 70%;
    margin: 0 0.3rem;
    border: 1px solid #444444;
    border-radius: 2px;

    text-align: center;
}

.row-container {
    display: flex;
    flex-direction: row;
}

span {
    margin: auto .8rem;
    font-size: 1.5rem!important;
}

.classifier-meter {
    width: 80%;
    height: 1.8rem;
    position: relative;

    border: .05rem solid var(--dark-blue);
    border-radius: .1rem;
    margin: .5rem 0;
}

.classifier-meter::before {
    display: flex;
    align-items: center;

    background-color: #F7AF39;
    width: calc(var(--meter-width, 0) * 1%);
    max-width: calc(100% - 0.3rem);
    min-width: 0;
    height: 1.4rem;
    position: absolute;
    left: .15rem;
    top: .15rem;
    bottom: .15rem;

    padding-left: .15rem;

    content: attr(data-classifier);
    text-align: center;
    font-size: 1rem;
}


/* FOOTER */

footer#links {
    width: 100%;

    display: flex;
    justify-content: space-evenly;
    align-content: center;
    padding-top: 1rem;

    color: #ffffff;
    font-weight: 300;
    font-size: 1rem;
    background-color: var(--light-blue);

    position: absolute;
    bottom: 0vh;
}

.footer-block {
    display: flex;

    text-align: center;
    align-content: center;
    margin-bottom: 0.5rem;
}

.footer-block p {
    margin: auto!important;
}

.footer-block a {
    height: fit-content;
    margin: auto 0;
}

.footer-block img {
    margin-left: 2rem;
    /* height: 2.5rem; */
    border-radius: 5px;
}

.footer-block img:hover {
    /* border: solid 1px white; */
    box-shadow: 0 0 0 1px white;
}

[alt="Javascript audio analysis library Essentia.js"] {
    height: 2.5rem;
}

[alt="Music Technology Group logo"] {
    height: 3.5rem;
}
