@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html {
	box-sizing: border-box ;
	--parent-height : 20em ;
	--duration: 1s ;
	--duration-text-wrap: 12s 1.5s cubic-bezier(0.82, 0.82, 1, 1.01) ;
	--cubic-header: var(--duration) cubic-bezier(0.71, 0.21, 0.3, 0.95) ;
	--cubic-slider : var(--duration) cubic-bezier(0.4, 0, 0.2, 1) ;
	--cubic-play-list : .35s var(--duration) cubic-bezier(0, 0.85, 0.11, 1.64) ;
	--cubic-slider-context : cubic-bezier(1, -0.01, 1, 1.01) ;
}

html *,
html *::before,
html *::after {
box-sizing: inherit ;
scrollbar-width: none ;
}

body {
	margin: 0 ;
	width: 100vw;
	height: 100vh ;
	display: flex ;
	user-select: none ;
	align-items: center ;
	justify-content: center ;
	background-color: #e5e7e9 ;
	font-family: 'Roboto', sans-serif;
	-webkit-tap-highlight-color: transparent ;
	transition: background-color var(--cubic-slider) ;
}

audio {
	height: 2.5em;
	width: 390px;
}

table {
	width: 100%;
}

tr:hover {
	background-color: #e0e0e0;
}

td {
	cursor: pointer;
}


.container {
	display: flex;
	align-items: center ;
	justify-content: center ;
	height: 100vh;
	width: 100vw;
}

.dark-mode {
	display: flex;
    align-self: flex-end;
    color: #bebdbd;
}

.dark-mode .music-player {
    background-color: #333; /* Change background color of .music-player in dark mode */
    background-image: linear-gradient(to bottom, #6d6b6b, #222); /* Gradient background */
    color: #bebdbd; /* Change text color of .music-player in dark mode */
}

.dark-mode .container {
    background-color: #222;
}

.dark-mode .player-header {
	background-color: #6d6b6b ;
}

.dark-mode audio::-webkit-media-controls-panel {
	background-color: #333;
}

.dark-mode .controls-btn {
	background-color: #333;
}

.dark-mode audio::-webkit-media-controls-mute-button {
  background-color: #6d6b6b;
  border-radius: 50%;
}

.dark-mode audio::-webkit-media-controls-play-button {
  background-color: #6d6b6b;
  border-radius: 50%;
}

.dark-mode audio::-webkit-media-controls-current-time-display {
  color: #bebdbd;
}

.dark-mode audio::-webkit-media-controls-time-remaining-display {
	color: #bebdbd;
}


#darkModeToggle {
/*    position: fixed;
    top: 20px;
    right: 20px;*/
    background-color: white;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    width: 0;
    height: 0;
    border-radius: 50%;
}

#darkModeToggle + label {
/*    position: fixed;
    top: 20px;
    right: 20px;*/
    background-color: white;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
    margin: 10px;
}

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

.music-player {
	width: 30em ;
	display: flex ;
	align-items: center;
	justify-content: flex-start;
	overflow: hidden ;
	font-size: 1em;
	font-weight: normal;
	border-radius: 1.35em ;
	flex-direction: column ;
	background-color: white ;
	height: 75% ;
	background-color: #f9f9f9; /* Lighter background color */
    background-image: linear-gradient(to bottom, #f9f9f9, #e5e7e9); /* Gradient background */

}

.player-header {
	z-index: 1 ;
	gap: 0 .4em ;
	width: 100% ;
	display: flex;
	height: fit-content;
	padding-top: 5px;
	flex-shrink: 0 ;
	flex-direction: column;
	position: relative;
	align-items: center;
	border-radius: inherit ;
	justify-content: center ;
	background-color: white ;
	font-weight: bold;
	box-shadow: 0 2px 6px 1px #0000001f ;
	transition: height var(--cubic-header), box-shadow var(--duration), padding var(--duration) ease-in-out ;
}

.controls {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center align items vertically */
    justify-content: center; /* Center align items horizontally */
    height: 3em; /* Set a fixed height for the buttons container */
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* Make the buttons container full width */
    height: 3em; /* Set a fixed height for the buttons container */
}

.controls-btn {
    flex-shrink: 0;
    width: 3em;
    height: 3em;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.controls-btn:hover {
    background-color: #e0e0e0;
}

.playlist {
    list-style-type: none;
    padding: 0 0.6em 0 1.2em ;
    text-align: left;
    overflow: scroll;
    scrollbar-width: thin;
    scrollbar-color: #888 #f2f2f2;
    width: 100%;
}

.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-thumb {
    background-color: #888;
}

.playlist li {
    display: flex;
    cursor: pointer;
    margin-bottom: 0.5em;
    padding-bottom: 0.7em;
    border-bottom: 0.1em solid #d8d8d859;
    transition: background-color 0.3s ease;
}

.playlist li:hover {
    background-color: #f2f2f2;
}

.playlist li.active {
    font-weight: bold;
}

.img {
	width: 100% ;
	flex-shrink: 0;
	display: block ;
	object-fit: cover ;
}

.dark-mode-icon {
	background-color: white;
	width: 25px;
	height: auto;
	border-radius: 50%;
	padding: 1px;
	cursor: pointer;
}


@media only screen and (max-width: 600px) {
	.music-player {
		height: 100% ;
	}
}
