@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@200;300;400&display=swap');

:root {
    --main-col: #8f7edb;
    --accent-col: #c0afda;
    --bc-col: #514b6b;
}

#section4 {
    width: 100%;
}

.player-wrap {
    display: flex;
    position: relative;
    margin: auto;
    margin-top: 7vh;
    width: 30em;
    height: 80%;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
}

.player {
    border-color: var(--bc-col);
    background-color: var(--bc-col);
    user-select: none;
    height: 100%;
}

.controller {
    position: relative;
    height: 25%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 1em;
}

.playlist {
    overflow: scroll;
    color: #c0afda;
    font-family: 'Source Sans Pro', sans-serif;
}

.song-wrap {
    width: 90%;
    height: 4.5%;
    display: flex;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    text-align: left;
    border: 1px solid #c0afda;
    border-radius: 10px;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 10px;
    margin-left: 5px;
    filter: brightness(1);
    background-color: var(--bc-col);
    transition: all 0.3s;
}

.song-wrap:hover {
    filter: brightness(1.5);
}

.song-wrap:active {
    filter: brightness(0.8);
}

#playing {
    filter: brightness(1.5);
    transition: all 0.2s;
}

.song-wrap p {
    display: inline-block;
}

.song-length {
    margin-left: auto
}

.song-wrap span {
    margin-right: 1em;
}

#download-song,
#previous-song,
#next-song,
#play-button {
    color: var(--main-col);
    font-size: 3em;
    filter: brightness(1);
    transition: all 0.3s;
}

#download-song:hover,
#previous-song:hover,
#next-song:hover,
#play-button:hover {
    filter: brightness(1.3);
}

#download-song:active,
#previous-song:active,
#next-song:active,
#play-button:active {
    filter: brightness(0.8);
}

#play-button {
    font-size: 10em;

}

#volume {
    color: var(--bc-col);
}

/*CAMVASES*/

.viz {
    height: 100%;
    width: 100%;
}

.viz canvas {
    height: 100%;
    width: 20em;
}
















/*RANGE STYLE */
.volume-wrap {
    transform: rotate(-90deg);
    width: 3em;
    height: fit-content;
}

input[type=range] {
    height: 23px;
    -webkit-appearance: none;
    margin: 10px 0;
    width: 7em;
    background-color: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 0px 0px 0px #000000;
    background: #8f7edb;
    border-radius: 12px;
    border: 0px solid #000000;
}

input[type=range]::-webkit-slider-thumb {
    box-shadow: 0px 0px 0px #000000;
    border: 0px solid #000000;
    height: 17px;
    width: 17px;
    border-radius: 17px;
    background: #C0AFDA;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6.5px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #8f7edb;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 0px 0px 0px #000000;
    background: #8f7edb;
    border-radius: 12px;
    border: 0px solid #000000;
}

input[type=range]::-moz-range-thumb {
    box-shadow: 0px 0px 0px #000000;
    border: 0px solid #000000;
    height: 17px;
    width: 17px;
    border-radius: 17px;
    background: #C0AFDA;
    cursor: pointer;
}

input[type=range]::-ms-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    animate: 0.2s;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: #8f7edb;
    border: 0px solid #000000;
    border-radius: 24px;
    box-shadow: 0px 0px 0px #000000;
}

input[type=range]::-ms-fill-upper {
    background: #8f7edb;
    border: 0px solid #000000;
    border-radius: 24px;
    box-shadow: 0px 0px 0px #000000;
}

input[type=range]::-ms-thumb {
    margin-top: 1px;
    box-shadow: 0px 0px 0px #000000;
    border: 0px solid #000000;
    height: 17px;
    width: 17px;
    border-radius: 17px;
    background: #C0AFDA;
    cursor: pointer;
}

input[type=range]:focus::-ms-fill-lower {
    background: #8f7edb;
}

input[type=range]:focus::-ms-fill-upper {
    background: #8f7edb;
}