@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', sans-serif;    
    font-weight: 100 !important;
    color: white;

    overflow: hidden;
}

html {
    width: 100vw;
    height: 100vh;

    background: radial-gradient(50% 50.00% at 50% 50.00%, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.70) 100%), url("./background.png");
    background-position: center, center;
    background-size: cover, cover;
}

body {
    width: 100vw;
    height: 100vh;

    background-color: transparent;
}

.container {
    max-width: 100%;
}

.title-content-holder {
    width: 100vw;
    height: 80vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: absolute;

    pointer-events: none;
}

@keyframes title-small {
    from {
        font-size: calc(((100vw / 1920.0) * 96) + 32px);
    }
    to {
        font-size: calc(((100vw / 1920.0) * 64) + 24px);
    }
}

@keyframes title-previous-small {
    from {
        font-size: calc(((100vw / 1920.0) * 64) + 24px);
    }
    to {
        font-size: calc(((100vw / 1920.0) * 96) + 32px);

    }
}

@keyframes expand-fade-in {
    from {
        opacity: 0;
        max-width: 0px;
        margin: 0px 0px;
    }
    to {
        opacity: 1;
        max-width: 800px;
        margin: 0px 10px;
    }
}

@keyframes shrink-fade-out {
    from {
        opacity: 1;
        max-width: 800px;
        margin: 0px 10px;
    }
    to {
        opacity: 1;
        max-width: 0px;
        margin: 0px 0px;
    }
}

#predictionTitle {
    font-size: calc(((100vw / 1920.0) * 96) + 32px);
    text-align: center;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    justify-content: center;
    align-content: center;
}

#predictionTitle.small {
    font-size: calc(((100vw / 1920.0) * 64) + 24px);

    animation-name: title-small;
    animation-duration: 4s;
}

#predictionTitle.previouslySmall {
    animation-name: title-previous-small;
    animation-duration: 4s;
}

#predictionTitle span {
    display: inline-flex;

    background: linear-gradient(90deg, #F89B29, #FF0F7B);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    max-width: 0px;
    opacity: 0;
    overflow: hidden;
    margin: 0px 0px;
}

#predictionTitle.paused #pausedTitleSection,
#predictionTitle.listening #listeningTitleSection,
#predictionTitle.predicting #predictingTitleSection,
#predictionTitle.predicting.percussion #percussionTitleSection,
#predictionTitle.predicting.melodic #melodicTitleSection,
#predictionTitle.predicting.bass #bassTitleSection,
#predictionTitle.predicting.vocal #vocalTitleSection,
#predictionTitle.predicting.speech #speechTitleSection,
#predictionTitle.predicting.and-melodic #melodicAndSign,
#predictionTitle.predicting.and-percussion #percussionAndSign,
#predictionTitle.predicting.and-vocal #vocalAndSign,
#predictionTitle.predicting.and-speech #speechAndSign
{
    max-width: 800px;
    opacity: 1;

    animation-name: expand-fade-in;
    animation-duration: 1s;

    margin: 0px 10px;
}

#predictionTitle.predicting.previous-percussion #percussionTitleSection,
#predictionTitle.predicting.previous-melodic #melodicTitleSection,
#predictionTitle.predicting.previous-bass #bassTitleSection,
#predictionTitle.predicting.previous-vocal #vocalTitleSection,
#predictionTitle.predicting.previous-speech #speechTitleSection,
#predictionTitle.predicting.previous-melodic #melodicAndSign,
#predictionTitle.predicting.previous-percussion #percussionAndSign,
#predictionTitle.predicting.previous-vocal #vocalAndSign,
#predictionTitle.predicting.previous-speech #speechAndSign,
#predictionTitle.predicting.and-hide-melodic #melodicAndSign,
#predictionTitle.predicting.and-hide-percussion #percussionAndSign,
#predictionTitle.predicting.and-hide-vocal #vocalAndSign,
#predictionTitle.predicting.and-hide-speech #speechAndSign
{
    max-width: 0px;
    opacity: 0;

    animation-name: shrink-fade-out;
    animation-duration: 1s;

    margin: 0px 0px;
}

.prediction-content-holder {
    width: 100vw;
    height: 50vh;
    transform: translateY(100%);

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;

    position: absolute;

    pointer-events: none;
}

.prediction {
    font-size: calc(((100vw / 1920.0) * 48) + 16px);
    text-align: center;
    width: 10%;
    overflow: visible;
}

@keyframes select-prediction {
    from {
        font-size: calc(((100vw / 1920.0) * 48) + 16px);
        transform: translateY(0%);
    }
    to {
        font-size: calc(((100vw / 1920.0) * 64) + 24px);
        transform: translateY(-50%);
    }
}

@keyframes deselect-prediction {
    from {
        font-size: calc(((100vw / 1920.0) * 64) + 24px);
        transform: translateY(-50%);
    }
    to {
        font-size: calc(((100vw / 1920.0) * 48) + 16px);
        transform: translateY(0%);
    }
}

.prediction.selected {
    font-size: calc(((100vw / 1920.0) * 64) + 24px);
    transform: translateY(-50%);
    animation-name: select-prediction;
    animation-duration: 1s;
}

.prediction.previouslySelected {
    animation-name: deselect-prediction;
    animation-duration: 1s;
}

.prediction-icon,
.prediction-strength {
    width: 100%;
    overflow: visible;
}

#audioSource,
#toggleMic,
#stopMic {
    font-size: calc(((100vw / 1920.0) * 24) + 12px);
    background-color: transparent;
    color: white !important;
    border-radius: 12px;
    border: 1px solid #FFF;

    padding: 0.75rem 1.5rem;
}

#audioSource {
    background-size: 32px 24px;
}

option {
    background-color: black;
}

#clientId {
    font-size: calc(((100vw / 1920.0) * 16) + 8px);
}

#volumeSlider,
#volumeMeter {
    width: 200px;
    height: 1.5rem;
    overflow: visible;
    position: absolute;
}

#volumeSlider {
    z-index: 100;
}

#clientId {
    position: absolute;
    bottom: 0px;
    margin-bottom: 0px !important;
}

#volumeSlider::-webkit-slider-runnable-track {
    background: transparent;
}