* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	user-select: none;
	text-wrap: balance;
}

html {
	background-color: #000000;
	color: #ffffff;
}

body {
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #000000;
	-webkit-tap-highlight-color: transparent;
}

@supports (-webkit-touch-callout: none) {
	body {
		min-height: -webkit-fill-available;
	}
}

.container {
	width: 100%;
	max-width: 500px;
	padding: 15px;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: end;
}

.file-input-container {
	margin-top: 2rem;
}

.file-input {
	display: none;
}

.file-label {
	display: block;
	padding: 10px;
	background-color: #ffffff;
	color: #000000;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
}

.file-label:hover {
	background-color: #f0f0f0;
}

.player-container {
	display: none;
	margin-top: 2rem;
	flex: 1;
	flex-direction: column;
	justify-content: center;
}

.player-container.visible {
	display: flex;
}

.cover-image-container {
	max-width: 150px;
	max-height: 150px;
	margin: 0 auto 1.5rem;
	border-radius: 8px;
	overflow: hidden;
}

.cover-image-container img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
}

.now-playing {
	margin-bottom: 1rem;
	text-align: center;
	color: #fff;
}

#fileName {
	font-size: 1em;
	margin-bottom: 0.5rem;
	line-height: 1.4em;
}

.metadata {
	opacity: 0.6;
	font-size: 1em;
	margin-top: 0.25rem;
}

audio {
	width: 100%;
	margin-top: 1rem;
}

.buttons-container {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin-top: 1rem;
}

.buttons-container > svg {
	padding: 0.5rem;
	cursor: pointer;
	width: calc(28px + 1rem);
	height: calc(28px + 1rem);
}

#playPauseButton {
	display: flex;
	padding: 1rem;
	background-color: #ffffff;
	color: #000000;
	cursor: pointer;
	border-radius: 50%;
}

#playPauseButton svg {
	width: 28px;
	height: 28px;
}

#playPauseButton.pause #pauseIcon {
	display: block;
}

#playPauseButton.pause #playIcon {
	display: none;
}

#playPauseButton.play #pauseIcon {
	display: none;
}

#playPauseButton.play #playIcon {
	display: block;
}
