@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.hidden {
    display: none !important;
}

header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

header .options {
    display: flex;
    margin-right: .5rem;
}

.song-info {
    padding: 0 .25rem;
}

.song-info h2 {
    font-size: 1.2rem;
    letter-spacing: -1px;
}

.song-info .track-number,
.song-info .track-duration {
    padding: 0 .5rem;
}

.song-info .track-number {
    text-transform: uppercase;
    font-size: .85rem;
    font-weight: bold;
    background: rgba(128, 128, 128, 0.385);
    width: fit-content;
    border-radius: .5rem;
    margin: .1rem 0;
    padding: .15rem .5rem;
}

.song-info .track-duration {
    font-size: .65rem;
    background: rgba(128, 128, 128, 0.385);
    width: fit-content;
    border-radius: .5rem;
}

.song-info .track-duration .time-number {
    font-weight: 400;
    font-size: .8rem;
}

.song-info .track-duration .time-number:nth-child(2) {
    font-size: .7rem;
}

button {
    cursor: pointer;
    user-select: none;
    margin: .25rem;
    border: none;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.133);
    position: sticky;
    background: #fff;
    top: 0;
    z-index: 5;
    box-shadow: 0 3px 6px rgba(38, 38, 38, 0.616);

    /* background-color: rgba(128, 128, 128, 0.5); */
    /* border-radius: 2rem 2rem 0 0; */
    /* width: fit-content; */
    /* margin: auto; */
}

.control-button {
    display: flex;
    padding: .5rem;
}

/* INFO - DIV - MESSAGE */
.app-info-message {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(32, 193, 168, 0.175);
    border: 1px solid rgba(32, 193, 169, 0.404);
    padding: 1rem;
    margin: .5rem;
    border-radius: 2rem;
}

.app-info-message p {
    line-height: 1.75rem;
    text-align: center;
    max-width: 20rem;
}

.app-info-message p img {
    position: relative;
    top: .5rem;
    width: 2rem;
}

/* AUDIO - TRACK - ERROR-MESSAGE */
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: .25rem;
}
.error-message .error-icon {
    font-size: 1.5rem;
}
.error-message span {
    font-size: 1.25rem;
    font-weight: 150;
}
.error-message p {
    font-weight: 600;
    font-size: .75rem;
    background-color: rgba(255, 0, 0, 0.232); 
    border: 1px solid rgba(255, 0, 0, 0.278);  
    padding: .25rem .75rem;
    margin-top: .5rem !important;
    border-radius: .75rem;
    color: red;
}
.error-message p span {
    font-size: .8rem;
    font-weight: normal;
    color: rgba(23, 22, 22, 0.892);    
}

/* AUDIO - TRACK */
.audio-track {
    position: relative;
    border-top: 1px solid rgb(56, 56, 56);
    padding: .1rem 0;
}

.audio-track:nth-child(1) {
    border-top: none
}

.audio-track p {
    margin: 0;
}

.audio-spectral {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spectral {
    width: 85%;
}

.track-name {
    font-size: .7rem;
    font-weight: 600;
    max-width: 100vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-button {
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.img-button.mute {
    margin-right: -.25rem;
}

.img-button.info {
    width: 35px;
}

.audio-track.active {
    transition: .2s;
    background: rgba(71, 71, 71, 0.097);
}

.audio-track.active .spectral {
    opacity: .125;
}

.audio-track.active .track-name {
    opacity: .75;
    font-weight: 200;
}

.img-button img {
    width: 35px;
    height: 35px;
}

.img-button.mute img {
    width: 27px;
    height: 27px;
}

.img-button.info img {
    width: 23px;
    height: 23px;
}

.solo {
    background: green;
    font-weight: bold;
    font-size: 2rem;
}

#waveform {
    margin: 0 .15rem .15rem .15rem;
    padding: 0.5rem 0;
}

#wave-timeline {
    margin: 0 .15rem .15rem .15rem;
    border-radius: 0 .15rem .15rem 0;
    position: sticky;
    bottom: 0;
    z-index: 5;
    box-shadow: 0 -3px 6px rgba(38, 38, 38, 0.616);
    background: #fff;
}

/* MODAL */
.modal-song-list,
.modal-song-settings,
.modal-info {
    background-color: rgb(190, 190, 190);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 90%;
    height: 90%;
    max-width: 40rem;

    overflow-y: scroll;

    padding: 1rem 0;
    border-radius: 1.25rem;
}

/* Song List */
.modal-background {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
}

.modal-title,
.settings-title,
.info-title {
    user-select: none;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgb(14, 125, 108);
}

.modal-song-list ul {
    list-style: none;
}

.modal-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1000;
}

.modal-song-item {
    cursor: pointer;
    padding: .25rem;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin: .5rem 0;
    border-radius: .25rem;
    display: flex;
    align-items: center;
}

.modal-song-item img {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: .25rem;
}

.modal-song-item .details {
    text-transform: uppercase;
    font-size: .75rem;
}

.modal-song-item:hover {
    background-color: rgba(129, 129, 129, 0.5);
}

/* Settings */
.apply-settings-button {
    font-size: 1.25rem;
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: .2rem;
    background-color: rgb(14, 125, 108);
    color: #fff;
}

.modal-input-container, 
.modal-select-container {
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 20rem;
    width: 100%;
    min-width: 10rem;
    align-items: center;
    background: rgba(128, 128, 128, 0.223);
    padding: .5rem .5rem;
    margin: .85rem 0;
    border-radius: .2rem;
}

.modal-select-container {
    align-items: center;
}

.modal-select-container select {
    margin-left: 1.65rem;
    padding: .25rem;
}

/* Info */
.modal-info-container {
    display: flex;
    flex-direction: column;
    max-width: 20rem;
    min-width: 10rem;
    font-size: .85rem;
    font-weight: 600;
}

.modal-info-container p {
    background: rgba(128, 128, 128, 0.36);
    margin: .5rem;
    padding: .5rem;
}

.modal-info-container p:first-child {
    background: none;
}

.modal-info-container span {
    display: block;
    width: fit-content;
    background: #fff;
    padding: .15rem;
    border-radius: .2rem;
    margin-bottom: .25rem;
}

.waiting-points span {
    margin: .05rem;
    animation: waitingPoints 1.5s ease-in-out infinite;
    opacity: 1;
    font-size: 1.75rem;
}
.waiting-points span:nth-child(2) {
    animation-delay: .3s;
}
.waiting-points span:nth-child(3) {
    animation-delay: .6s;
}

@keyframes waitingPoints {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* LOADER */
.loader-container {
    background-color: rgba(0, 0, 0, 0.348);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: all .2s;
}

.loader-container .loader {
    position: absolute;
    width: 2rem;
    height: 2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 150;
}

.loader-container .span-box {
    border-radius: .5rem;
    animation: turn 2s ease-out infinite;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.loader-container .span-box span {
    width: .35rem;
    height: .35rem;
    background: #0e7d6c;
    display: block;
    border-radius: 50%;
}


.loader-container .span-box:nth-child(1) {
    animation-delay: .2s;
}

.loader-container .span-box:nth-child(2) {
    animation-delay: .4s;
}

.loader-container .span-box:nth-child(3) {
    animation-delay: .6s;
}

.loader-container .span-box:nth-child(4) {
    animation-delay: .8s;
}

.loader-container .span-box:nth-child(5) {
    animation-delay: 1s;
}

.loader-container .span-box:nth-child(6) {
    animation-delay: 1.2s;
}

.loader-container .span-box:nth-child(7) {
    animation-delay: 1.4s;
}

.loader-container .span-box:nth-child(8) {
    animation-delay: 1.6s;
}

@keyframes turn {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

/* Volume Slider */
.slider-volume {
    -webkit-appearance: none;
    width: 50px;
    height: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: .2rem;
}

.volume-container {
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    padding-bottom: .5rem;
}

.volume-container p {
    margin-bottom: .25rem;
}

.slider-volume.global {
    width: 80%;
}

.slider-volume:hover {
    opacity: 1;
}

.slider-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #0fa58e;
    cursor: pointer;
    border-radius: .4rem;
}

.slider-volume::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #0fa58e;
    cursor: pointer;
}