#contentPanel{
	width:100vw;
	height:100vh;
	display:flex;
	background-color: black;
	position: relative;
	transition: transform 0.5s ease-out;
}
#spotify{
	display:flex;
	flex-flow: row;
	align-items: flex-start;
	padding:16px 10px;
	position:relative;
	flex:1;
	gap:16px;
}
/* #region spotifySidebar*/
#spotifySidebar{
	width:35%;
	height:100%;
	border-radius: 15px;
	transition: width 1s ease;
	display:flex;
	flex-flow: column;
	gap:16px;
}
#spotifyTools{
	width:100%;
	height:fit-content;
	padding:25px;
	gap:25px;
	border-radius: 15px;
    background: var(--secondaryColor);
	transition: background .25s ease ;
	position: relative;
	display:flex;
	align-items: center;
	overflow: hidden;
}
#spotifyTools img{
	width:32px;
	height:32px;
}
.spotifyTool{
	width:32px;
	height:32px;
	filter: brightness(0) saturate(100%) invert(100%) sepia(95%) saturate(2%) hue-rotate(72deg) brightness(101%) contrast(101%);
}
.spotifyTool:hover{
	filter: brightness(0) saturate(100%) invert(75%) sepia(64%) saturate(5570%) hue-rotate(100deg) brightness(97%) contrast(77%);
}
#spotifyToolCog{
	transition: transform .25s ease-in-out;
	margin-right:25px;
}
#spotifyToolCog:hover{
	transform:rotate(180deg);
}
h1{
    font-size:3em;
	margin:0;
	flex:1;
}
#library{
	flex:1;
	width:100%;
	border-radius: 15px;
    background: var(--secondaryColor);
	transition: background .25s ease, opacity .5s ease;
	padding:15px;
	padding-bottom: 0;
	overflow:hidden;
	position: relative;
	display:flex;
	flex-flow:column;
}
#playlistHeader{
	display:flex;
	flex-flow:row;
	margin:10px 0;
	height:64px;
	width:100%;
	align-items: center;
}
#playlistHeader h2{
	text-align: left;
	white-space: nowrap;
	flex:1;
	margin:0;
	height:fit-content;
	font-size:1.7em;
	align-self: center;
}
#playlistHeader img{
	width:64px;
	min-width:32px;
    margin: 0 40px 0 10px;
	aspect-ratio: 1/1;
}
#playlistContainer{
	display:flex;
	flex-flow:row wrap;
	justify-content: center;
	align-content: flex-start;
	overflow:scroll;
	flex:1;
	width:100%;
}
#playlistContainer > div{
	width:128px;
	min-width:32px;
    box-sizing: content-box;
    font-size: 1.4em;
    transition: padding .25s ease, margin .25s ease, background-color .5s ease;
    margin: 10px 20px;
	display:block;
	height:min-content;
	text-decoration: none;
	font-family: sans-serif;
	text-align: center;
    border-radius: 16px;
}
#playlistContainer > div:hover {
    padding: 10px;
    background-color: var(--tetriaryColor);
    margin: 0px 10px;
}
#playlistContainer > div > div{
	border-radius:5%;
	width:100%;
	aspect-ratio: 1/1;
}
/*Code for when sidebar is collapsed, thinner. Default when vertical*/
#spotifySidebar[data-collapsed="false"] .playlistNames{
	display:block;
}
#spotifySidebar[data-collapsed="true"] .playlistNames{
	display:none;
}
#timeline{
	display:none;
}
/* #endregion spotifySidebar*/
/* #region Displayed playlist*/
#mainSection{
	position:relative;
	opacity:0;
	transition: opacity .5s ease;
    background-color: var(--secondaryColor);
	flex:1;
	height:100%;
	padding:0;
	border-radius: 15px;
	overflow:hidden;
}
#playlistSongsContainer{
	display:flex;
	transition: opacity .5s ease;
	flex-flow:column;
	height:100%;
	width:100%;
	position: absolute;
}
#playlistSongsContainer > span{
	flex:1;
	display:flex;
	flex-flow: column nowrap;
	justify-content: flex-end;
	padding-left: 32px;
}
#playListDetails{
	display:flex;
	padding-bottom:10px;
}
#playListImg{
	width:256px;
	height:256px;
	border-radius: 16px 0px;
	background: url(../images/placeholder256.png);
}
#playListHeader{
	padding:0 10px;
	display:flex;
	width:calc(100% - 256px);
	flex-direction: column;
	justify-content: flex-end;
}
#playListName{
	height:min-content;
	width:100%;
	font-size: 3em;
}
#playListLength{
	font-size: 1.3em;
	opacity:60%;
	font-style: italic;
}
#playListDescription{
	font-size: 1.8em;
}
#playListTools{
	display:flex;
	gap:16px;
	width:100%;
	padding-left:16px;
}
.toolsPlaylist{
	height:48px;
	width:48px;
	border-radius: 50%;
	background-color: white;
	overflow:hidden;
	display:flex;
	align-items: center;
	justify-content: center;
}
.toolsPlaylist:hover{
	background-color: var(--spotifyGreen);
}
.toolsPlaylist:active{
	background-color: var(--spotifyGreen);
	transform: scale(0.85);
}
.toolsPlaylist > img{
	width:50%;
	height:50%;
	pointer-events: none;
}
#topOfPlaylist > img{
	background-color: black;
	mask: url('../images/chevronUp.svg');
	-webkit-mask: url('../images/chevronUp.svg')
}
#bottomOfPlaylist > img{
	background-color: black;
	mask: url('../images/chevronDown.svg');
	-webkit-mask: url('../images/chevronDown.svg')
}
#playlistSearchBar{
	height:48px;
	min-width:96px;
	width:fit-content;
	border-radius: 24px;
	background-color: transparent;
	overflow:hidden;
	color:white;
	padding:4px;
	border:2px white solid;
}
#playlistSongs, #spotifySearchResults{
	flex:1;
	width:100%;
	position: relative;
	overflow-y: scroll;
	overflow-x: hidden;
}
#playlistLoading, #spotifySearchResultLoading{
	position:absolute;
	height: 100%;
	width: 100%;
	top:0;
	left:0;
	display:flex;
	align-items: center;
	justify-content: center;
	opacity:0;
	pointer-events: none;
}
.throbber {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
#playlistSongsList{
	list-style: none;
	width:calc(100% - 20px);
	position:relative;
	padding:0;
	margin:0;
}
#playlistSongsList > li{
	width:100%;
	height:75px;
	display:flex;
	align-items: center;
    transition: padding .25s ease, margin .25s ease, background-color .5s ease;
	margin:10px 5px;
	padding:5px;
	border-radius: 15px;
    font-size: 1.25em;
	gap:8px;
	position:relative;
}
#playlistSongsList > li:hover{
	background-color: var(--tetriaryColor) ;
}
/* #region playlistSongsListHeader Styles */
#playlistSongsList > li:nth-child(1){
	pointer-events: none;
}
#playlistSongsList > li:nth-child(1)::before{
	border: var(--accentColor) solid 0;
	border-width: 2px 0;
	border-radius: 0;
	content:"";
	width:100%;
	height:75px;
	display:flex;
	align-items: center;
    transition: padding .25s ease, margin .25s ease, background-color .5s ease;
	margin:0;
	padding:0;
    font-size: 1.25em;
	background-color: rgba(0,0,0,0);
	position:absolute;
}
#playlistSongsList > li:nth-child(1) img, #playlistSongsList > li:nth-child(1) .trackSettings{
	opacity:0;
} 
/* #endregion Header Styles */
/* #region playlistSongsListItem Styles*/
#playlistSongsList > li p{
	display:inline-block;
}
#playlistSongsList > li > div img{
	height:calc(100% / 3 * 2);
	aspect-ratio: 1/1;
}
#playlistSongsList > li:hover > .trackNum p{
	visibility: hidden;
}
#playlistSongsList > li:hover > .trackNum{
    background: url("../images/play.svg");
    background-size:50%;
	background-repeat: no-repeat;
	background-position: left center;
	transform:rotate(180deg);
	filter:invert(1);
}
.trackNum{
	aspect-ratio: 1/1;
	display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: transform .5s ease;
}
#playlistSongsList > li > .trackNum:hover{
	filter: brightness(0) saturate(100%) invert(60%) sepia(59%) saturate(4581%) hue-rotate(106deg) brightness(102%) contrast(77%);
}
#playlistSongsList > li > .addToQueue{
	height:50%;
	aspect-ratio: 1/1;
	background-color: white;
	border-radius:50%;
	display:flex;
	align-items: center;
	justify-content: center;
	opacity:0;
	transition: background-color .5s ease;;
}
#playlistSongsList > li:hover > .addToQueue{
	opacity:1;
}
#playlistSongsList > li > .addToQueue:hover{
	background-color:var(--spotifyGreen);
}
.trackTime, .trackNum, .trackSettings{
	width:5%;
	text-align: right;
	position:relative;
}
.trackSettings > div{
	width:50%;
	aspect-ratio: 1/1;
	background-image: url("../images/settingDots.svg");
	background-color: #3498db;
	border-radius: 50%;
}
.trackSettings:hover ul, .trackSettings > div:hover ~ ul, .trackSettings > ul{
	opacity:1;
	pointer-events: auto;
}

.trackSettings{
	aspect-ratio: 1/1;
	display:flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.trackSettings > ul{
	background-color: var(--accentColor);
	transform: translateX(-100%);
	padding: 0;
	list-style: none;
	text-align: left;
	position: absolute;
	top:-200%;
	left:50%;
	opacity:0;
	pointer-events: none;
	border-radius: 4px;
}
.trackSettings > ul li{
	background-color: var(--primaryColor);
	width:fit-content;
	white-space: nowrap;
	padding:8px;
	border-radius: 2px;
	width:100%;
}
#playlistSongsList > li > span{
	flex:1;
	display:inline-flex;
	align-items: center;
	height:100%;
	gap:16px;
}
#playlistSongsList > li > span > .trackName{
	overflow:hidden;
	flex:1;
	display:flex;
}
#playlistSongsList > li > span > .trackName > span{
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex:1;
}
#playlistSongsList > li > span > .trackAuthor{
	overflow:hidden;
	flex:1;
	display:flex;
	text-overflow: ellipsis;
}
#playlistSongsList > li > span > .trackAuthor > span{
	display: block;
	white-space: nowrap;
}
#playlistSongsList > li > span > .trackAuthor > span::after {
	content: ", ";
	margin-right: 4px;
}
#playlistSongsList > li > span > .trackAuthor > span:last-child:after {
	content: "";
}
#playlistSongsList > li > span p{
	margin:0;
	flex:1;
	text-align: left;
}
#playlistSongsList > li > span img{
	height:100%;
	aspect-ratio: 1/1;
}
/* #endregion playlistSongsListItem Styles*/
.scrollButtons .chevronDiv{
	display:none;
}
.chevronDiv{
	position: absolute;
	right:10px;
	top:0;
	width:5%;
	min-width:16px;
	height:100%;
	display:flex;
	flex-flow:column nowrap;
	justify-content: center;
}
.chevron{
	width:90%;
	position: relative;
	z-index: 5;
	margin:10px 0;
}
.closeMainPanel{
	position:absolute;
	top:16px;
	width:64px;
	right:16px;
	max-width: 64px;
	aspect-ratio: 1/1;
	z-index: 10;
}
.refreshButton{
	right:96px;
	filter: invert(1);
}
/* #endregion Displayed playlist*/
/* #region spotify search*/
#searchPanel{
	display:flex;
	transition: opacity .5s ease;
	flex-flow:column;
	height:100%;
	width:100%;
	position: absolute;
}
#spotifySearchHeader{
	display:flex;
	padding:16px;
}
#spotifySearchBar{
	font-size: 3em;
	color:white;
	background-color: black;
	padding:16px;
	border-radius: 16px;
	flex:1;
}
#spotifySearchHeader img{
	height:32px;
	margin:16px;
}
#spotifySearchResults{
	flex:1;
	width:100%;
	position: relative;
	overflow-y: scroll;
	overflow-x: hidden;
}
#spotifySearchResultLoading{
	position:absolute;
	height: 100%;
	width: 100%;
	top:0;
	left:0;
	display:flex;
	align-items: center;
	justify-content: center;
	opacity:0;
	pointer-events: none;
}
#spotifySearchResultList{
	list-style: none;
	width:calc(100% - 20px);
	position:relative;
	padding:0;
	margin:0;
}
#spotifySearchResultList > li{
	width:100%;
	height:75px;
	display:flex;
	align-items: center;
    transition: padding .25s ease, margin .25s ease, background-color .5s ease;
	margin:10px 5px;
	padding:5px;
	border-radius: 15px;
    font-size: 1.25em;
	gap:8px;
	position:relative;
}
#spotifySearchResultList > li:hover{
	background-color: var(--tetriaryColor) ;
}
#spotifySearchResultList > li p{
	display:inline-block;
}
#spotifySearchResultList > li > div img{
	height:calc(100% / 3 * 2);
	aspect-ratio: 1/1;
}
#spotifySearchResultList > li:hover > .trackNum p{
	visibility: hidden;
}
#spotifySearchResultList > li:hover > .trackNum{
    background: url("../images/play.svg");
    background-size:50%;
	background-repeat: no-repeat;
	background-position: left center;
	transform:rotate(180deg);
	filter:invert(1);
}
.trackNum{
	aspect-ratio: 1/1;
	display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: transform .5s ease;
}
#spotifySearchResultList > li > .trackNum:hover{
	filter: brightness(0) saturate(100%) invert(60%) sepia(59%) saturate(4581%) hue-rotate(106deg) brightness(102%) contrast(77%);
}
#spotifySearchResultList > li > .addToQueue{
	height:50%;
	aspect-ratio: 1/1;
	background-color: white;
	border-radius:50%;
	display:flex;
	align-items: center;
	justify-content: center;
	opacity:0;
	transition: background-color .5s ease;;
}
#spotifySearchResultList > li:hover > .addToQueue{
	opacity:1;
}
#spotifySearchResultList > li > .addToQueue:hover{
	background-color:var(--spotifyGreen);
}
.trackTime, .trackNum, .trackSettings{
	width:5%;
	text-align: right;
	position:relative;
}
.trackSettings > div{
	width:50%;
	aspect-ratio: 1/1;
	background-image: url("../images/settingDots.svg");
	background-color: #3498db;
	border-radius: 50%;
}
.trackSettings:hover ul, .trackSettings > div:hover ~ ul, .trackSettings > ul{
	opacity:1;
	pointer-events: auto;
}

.trackSettings{
	aspect-ratio: 1/1;
	display:flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.trackSettings > ul{
	background-color: var(--accentColor);
	transform: translateX(-100%);
	padding: 0;
	list-style: none;
	text-align: left;
	position: absolute;
	top:-200%;
	left:50%;
	opacity:0;
	pointer-events: none;
	border-radius: 4px;
}
.trackSettings > ul li{
	background-color: var(--primaryColor);
	width:fit-content;
	white-space: nowrap;
	padding:8px;
	border-radius: 2px;
	width:100%;
}
#spotifySearchResultList > li > span{
	flex:1;
	display:inline-flex;
	align-items: center;
	height:100%;
	gap:16px;
}
#spotifySearchResultList > li > span > .trackName{
	overflow:hidden;
	flex:1;
	display:flex;
}
#spotifySearchResultList > li > span > .trackName > span{
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex:1;
}
#spotifySearchResultList > li > span > .trackAuthor{
	overflow:hidden;
	flex:1;
	display:flex;
	text-overflow: ellipsis;
}
#spotifySearchResultList > li > span > .trackAuthor > span{
	display: block;
	white-space: nowrap;
}
#spotifySearchResultList > li > span > .trackAuthor > span::after {
	content: ", ";
	margin-right: 4px;
}
#spotifySearchResultList > li > span > .trackAuthor > span:last-child:after {
	content: "";
}
#spotifySearchResultList > li > span p{
	margin:0;
	flex:1;
	text-align: left;
}
#spotifySearchResultList > li > span img{
	height:100%;
	aspect-ratio: 1/1;
}
/* #endregion */