@import url("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css");

:root {
  --primary-color: #e3b282;
  --secondary-color: rgb(255,132,55);
  --old-primary-color: linear-gradient(180deg, rgba(70,72,102,1) 0%, #675c69 100%);
  --old-secondary-color: #7e7171;
  --button-color: #2E3238;
  --border-radius: 0;
}


#currentTime {
	margin: 0 5px 0 5px;
	color: #f1f1f1;
}

#compareWidget {
	box-sizing: border-box;
	color: #f0f0f0;
	margin: auto;
	overflow: visible;
	line-height: initial !important;
	width: 100%;
	max-width: 600px;
	border-radius: 12px;
	font-size: 14px;
}

.compareWidgetContainer {
	display: flex;
	height: 500px;
	margin: -75px 0;
	overflow: hidden;
}

/*.player-background {
	background: linear-gradient(180deg, rgba(70,72,102,1) 0%, #675c69 100%);
	border: 3px solid #7077a199;
	border-radius: 20px;
	box-shadow: rgba(246, 177, 122, 0.4) 0px 5px, rgba(246, 177, 122, 0.3) 0px 10px, rgba(246, 177, 122, 0.2) 0px 15px, rgba(246, 177, 122, 0.1) 0px 20px, rgba(246, 177, 122, 0.05) 0px 25px;
}
*/
#allPlayers {
	width: 100%;
	margin: auto;
	pointer-events: none;
}

.audio-player {
	margin: auto;
	background-color: transparent;
	display: flex;
	width: 350px;
  height: 350px;
  justify-content: end;
  flex-direction: column;
  scale: 1.0;
  pointer-events: auto;
}

.audio-player .player-contents {
	background: linear-gradient(transparent 20%, #000000ad 64%);
	padding: 20px;
	border-radius: var(--border-radius);
  transition: all 0.3s;
  transform: translateY(1px);
  text-shadow: #000 2px 4px 8px;
}

.audio-player .player-contents .song-info {
	font-weight: bold;
}

.swiper-slide-active .player-contents{
	transform: scale(1.1) translateY(10px);
}

.audio-player.old .player-contents {
  transform: scale(1.0009) translateY(0.5px);
}

.audio-player .player-controls {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 5px;
	margin-bottom: -30px;
	min-height: 90px;
	  /* to ensure only the active swipe can be clicked */
	pointer-events: none;
}

.audio-player.swiper-slide-active .player-controls {
	  /* to ensure only the active swipe can be clicked */
	pointer-events: initial;
}



.audio-player #playAudio {
	-webkit-appearance: none;
	position: absolute;
  right: calc(50% - 24px);
  bottom: calc(50% - 24px);
  scale: 2;
	outline: none;
	cursor: pointer;
	border: none;
	width: 48px;
	min-width: 20px;
	height: 48px;
	background-size: contain;
	background-color: transparent;
	margin-right: 5px;
	  /* to ensure only the active swipe can be clicked */
	pointer-events: none;
}

.audio-player.swiper-slide-active #playAudio {
	  /* to ensure only the active swipe can be clicked */
	pointer-events: initial;
	z-index: 1;
}

.audio-player p {
	margin: 0 0 0 5px;
	line-height: 1;
	display: inline-flex;

	-webkit-transition: .3s;
	transition: .3s;
}

.audio-player .seekContainer {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.audio-player #seekObjContainer {
	position: relative;
	width: 300px;
	margin: 0 5px;
	height: 5px;
}

.audio-player img {
  border-radius: var(--border-radius);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  position: absolute;
  width: 100%;
  position: absolute;
  z-index: -1;
  transition: all 0.3s;
}



.swiper-slide-active img#image {
		transform: scale(1.1);
}

.audio-player.old img#image {
	transform: scale(1);
	filter: saturate(30%);
}

.audio-player #seekObjContainer #seekObj {
	-webkit-transition: .3s;
	transition: .3s;
	position: relative;
	width: 100%;
	height: 100%;
}

.audio-player #seekObjContainer #seekObj #percentage {
	-webkit-transition: .3s;
	transition: .3s;
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
}

.audio-player #switchContainer p#after {
	font-size: 11px;
	margin-top: -15px;
	margin-bottom: 5px;
	align-items: center;
	width: 100%;
}

.audio-player #switchContainer p#before {
	font-size: 11px;
	margin-top: 8px;
	margin-left: 2px;
	margin-bottom: 5px;
	text-align: center;
}

.audio-player #switchContainer p{
	color: inherit;
	hyphens: none;
}

/* STYLES FOR THE TOGGLESWITCH */
.switch {
	position: relative;
	display: block;
	width: 25px;
	height: 45px;
	margin: auto;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .3s;
	transition: .3s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 2.5px;
	bottom: 5px;
	background-color: white;
	-webkit-transition: .3s;
	transition: .3s;
}

input:checked+.slider {
	background-color: #2196F3;
}

input:focus+.slider {
	box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
	-webkit-transform: translateY(-17px);
	-ms-transform: translateY(-17px);
	transform: translateY(-17px);
}

/* Rounded sliders */
.slider.round {
	border-radius: 17px;
}

.slider.round:before {
	border-radius: 50%;
}

/* SONG BUTTONS */
#songButtons .songButton {
	cursor: pointer;
	background-color: transparent;
	margin: auto;
	height: 70px;
	display: flex;
	align-items: center;
	padding-left: 20px;
}

#songButtons .songButton.active {
/*	background-color: var(--old-primary-color);*/
	background-color: #ffd79930;
}

.songButton:last-child {
	border-radius: 0 0 20px 20px;
}

#versionText {
	min-width: 58px;
	text-align: left;
}


.audio-player #playAudio::before {
	color: #var(--old-secondary-color);
}

.audio-player input:checked+.slider {
	background-color: var(--secondary-color)
}

.audio-player input:checked+.slider:before {
	background-color: #F0F0F0
}

.audio-player #seekObj {
	background-color: var(--secondary-color)
}

.audio-player #seekObj #percentage {
	background-color: white
}

.songButton {
	color: #F0F0F0;
	background-color: var(--old-secondary-color);
	border-top: 0px solid #000000;
}

.songButton.active {
	background-color: var(--old-primary-color)
}

.songButton.hover {
	background-color: #ffd79930 !important
}

.songButton .song-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.audio-player.old {
	color: #F0F0F0
}

.audio-player.old #playAudio::before {
	color: #F0F0F0
}

.audio-player.old .slider {
	background-color: var(--old-secondary-color);
}

.audio-player.old .slider:before {
	background-color: white;
}

.audio-player.old #seekObj {
	background-color: var(--old-secondary-color);
}

.audio-player.old #seekObj #percentage {
	background-color: white
}


/* ICONS */


.play-icon, #playAudio div{            
  background-color: white;
  webkit-mask-image: url('data:image/svg+xml;utf8, <svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8.6 5.2A1 1 0 0 0 7 6v12a1 1 0 0 0 1.6.8l8-6a1 1 0 0 0 0-1.6l-8-6Z" clip-rule="evenodd"/></svg>');
  mask-image:  url('data:image/svg+xml;utf8, <svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8.6 5.2A1 1 0 0 0 7 6v12a1 1 0 0 0 1.6.8l8-6a1 1 0 0 0 0-1.6l-8-6Z" clip-rule="evenodd"/></svg>');
  width: 48px;
  height: 48px;
}

.pause-icon, #playAudio.pause div {            
  background-color: white;
  webkit-mask-image: url('data:image/svg+xml;utf8, <svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8 5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H8Zm7 0a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-1Z" clip-rule="evenodd"/></svg>');
	mask-image: url('data:image/svg+xml;utf8, <svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8 5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H8Zm7 0a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-1Z" clip-rule="evenodd"/></svg>');
  width: 48px;
  height: 48px;
}


.column-container {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.row-container {
	display: flex;
	flex-direction: row;
	gap: 5px;
}

@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  #allPlayers {
  	scale: 0.6;
  }
}