html,
iframe {
	padding: 0;
	margin: 0;
	overflow-x: hidden;
}

body {
	background-color: #121212;
	color: #ffffff;
	font-family: Arial, sans-serif;
	margin: 0;
}

header,
footer {
	text-align: center;
	padding: 10px 0;
	background-color: #1e1e1e;
	border-bottom: 1px solid #333;
}

footer {
	border-top: 1px solid #333;
	border-bottom: none;
	font-size: 0.8rem;
}

iframe {
	border: 0;
}

h1,
h2 {
	margin: 0 0 10px 0;
    display: none;
}

main {
	padding: 20px;
}

ul, ol {
	list-style: none;
	padding: 0 0 1.5rem;
	margin: 0;
}

li,
section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	border: 1px solid #333;
	margin-bottom: 5px;
	background-color: #1e1e1e;
	border-radius: 5px;
	white-space: pre;
	cursor: pointer;
}
#verseList > section {
	flex-direction: column;
	align-items: flex-start;
}

#verseList > section img {
	max-width: 100%;
}

section h1,
section h2 {
	margin: 0;
	font-size: inherit;
	align-self: end;
}
section p {
	display: block;
	width: 100%;
	margin: .5rem 0 0;
	padding: .5rem 0 0;
	text-wrap: wrap;
}
section p:first-of-type {
	border-top: none;
	margin: 0;
	padding: 0;
}

section span.verse {
	position: absolute;
	font-size: 0.8rem;
	right: .5rem;
	color: #717171;
}

section span.chord {
	display: none;
}

[draggable=true].dragging {
	opacity: 0.5;
	background-color: #f0f8ff;
}

[draggable=true].over {
	border: 1px dashed lightblue;
}


li.current,
section.current {
	background-color: #0044cc;
	color: #ffffff;
}

div {
	flex-grow: 1;
}

li span.dir {
	display: block;
	font-size: 0.8rem;
	opacity: .456;
}

li button {
	background-color: #444;
	color: #ffffff;
	border: none;
	padding: 5px 10px;
	border-radius: 3px;
	opacity: 0;
}

li:hover button {
	opacity: 1;
}

li button:hover {
	background-color: #555;
}

input[type="text"],
select {
	width: 100%;
	padding: 10px;
	border: 1px solid #333;
	border-radius: 5px;
	background-color: #1e1e1e;
	color: #ffffff;
	box-sizing: border-box;
	display: block;
}

input[type="text"]:focus,
select:focus {
	outline: none;
	border-color: #555;
}

#controls {
	display: flex;
	position: fixed;
	bottom: 0;
	left: 0;
	justify-content: space-between;
	align-items: stretch;
	height: 1.75rem;
	width: 100%;
	background-color: #333;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

#controls > * {
	box-sizing: border-box;
}

#controls button {
	height: 100%;
	flex-grow: 2;
	background-color: #333;
	border: none;
	padding: 2px 5px;
	cursor: pointer;
}

#controls button.danger svg {
	fill: red;
}

#controls button svg {
	fill: white;
	width: 1rem;
	height: 1rem;
}

#controls button:hover {
	background-color: #555;
}

#disconnected {
	display: none;
	position: fixed;
	fill: red;
	top: 1rem;
	right: 1rem;
}

body.disconnected #disconnected {
	display: block;
}

.toolbar {
	position: fixed;
	width: 100%;
	z-index: 10;
	box-shadow: 0 .5rem 1rem black;
	padding: 0;
	margin: 0;
}
.toolbar button {
	width: 3rem;
	height: 2rem;
	font-size: inherit;
}

/* Compact icon-only selector: the native <select> is invisible but overlays
   the icon, so clicking the icon opens the dropdown. */
.iconSelect {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-width: 1.5rem;
	padding: 2px 5px;
	border: none;
	border-radius: 4px;
	background-color: #333;
	cursor: pointer;
	line-height: 1;
	white-space: nowrap;
}
.iconSelect:hover {
	background-color: #555;
}
.iconSelect svg {
	display: block;
	fill: #fff;
	pointer-events: none;
}
.iconSelect select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	font: inherit;
}
.iconSelect select:focus-visible {
	outline: 2px solid #4a8cff;
	outline-offset: -2px;
}

/* Songs: full-width directory selector, filter input and content-search box. */
#controls:has(#folders) {
	gap: 0;
	padding: 0;
	background-color: #1e1e1e;
}
#controls:has(#folders) input[type="text"] {
	flex: 1 1 auto;
	align-self: stretch;
	min-width: 0;
	width: auto;
	height: 100%;
	padding: 0 5px;
	border: none;
	border-radius: 4px;
	background-color: #1e1e1e;
}
#controls:has(#folders) input[type="checkbox"] {
	margin: 0 .5rem;
	accent-color: #4a8cff;
}

/* Lists: full-width Prev / selector / Save / Next. */
#controls:has(#lists) {
	gap: 0;
	padding: 0;
}
