
:root {
	--background: #f5f7f9;
	--background2: #e2e8f0;
	--text: #2a2d33;
	--heading: #3b5b7a;
	--subheading: #6b7c8b;
	--link: #2c6e7e;
	--button-text: #f5f7f9;
	--button-bg: #34557a;
	--separator: #cccccc;
	--table-border: #a9b2bd;
}


@media (prefers-color-scheme: dark) {
	:root {
		--background: #1a1e23;
		--background2: #262d35;
		--text: #d0d4dd;
		--heading: #8ca9d6;
		--subheading: #8b95a6;
		--link: #6f9ce0;
		--button-text: #1a1e23;
		--button-bg: #7593c9;
		--separator: #333333;
		--table-border: #4b5563;
	}
}






@font-face {
	font-family: assistant;
	src: url('/fonts/Assistant-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: assistant;
	src: url('/fonts/Assistant-Bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: frankcurledlamed;
	src: url('/fonts/FrankCurledLamedRI.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: brands;
	src: url('/fonts/fa-brands-400.woff2') format('woff2');
}

@font-face {
	font-family: solid;
	src: url('/fonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
	font-family: sblhebrew;
	src: url('/fonts/SBLHebrew.ttf') format('truetype');
}


* {
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--background);
	color: var(--text);
	padding: 1rem;
	line-height: 1.3;
}

nav {
	padding: 1rem;
	}

h1 {
	color: var(--heading);
}


h2, h3, h4 {
	color: var(--subheading);
	margin-top: 1rem;
	margin-bottom: 1rem;
}

a {
	color: var(--link);
	text-decoration: none;
}

hr {
	margin: 2rem 0;
}

img.cover {
	height: 120px;
	width: 120px;
	float: left;
	padding-right: 10px;
	}


ul {
	list-style-type: none;
	text-align: right;
	}




section.album {
	padding: 1rem;
	border-bottom: 1px solid var(--separator);
	}

section.info {
	text-align: center;
}

section.info img {
	max-width: 200px;
}

section.info ul {
	text-align: center;
}

section p,
section ul {
	margin: 1rem 0;
}

#player h3, h4,
#player div {
	text-align: right;
}

#player {
	background-color: var(--background2);
	position: sticky;
	bottom: 0;
	height: 25vh;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto auto 1fr auto;
	padding: 1rem;
	box-sizing: border-box;
	z-index: 10;
	border-radius: 10px;
}

#player-image {
	grid-column: 1;
	grid-row: 1 / 4;
	width: 60px;
	height: 100%;
	object-fit: contain;
	background: transparent;
}

#player-track {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	font-size: 1.1rem;
	color: var(--heading);
	align-self: end;
	text-align: right;
}

#player-album {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	font-size: 0.9rem;
	font-weight: normal;
	color: var(--subheading);
	align-self: start;
	text-align: right;
}

#player > div:first-of-type {
	grid-column: 2;
	grid-row: 3;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	font-size: 0.8rem;
	color: var(--subheading);
	opacity: 0.8;
}

#player-download {
	color: var(--link);
	text-decoration: none;
	font-size: 1.2rem;
	line-height: 1;
}

#player-waveform {
	grid-column: 1 / -1;
	grid-row: 4;
	width: 100%;
	height: 100%;
}

#player-time {
	grid-column: 1 / -1;
	grid-row: 5;
	font-family: monospace;
	font-size: 0.9rem;
	color: var(--text);
	justify-self: center;
	align-self: center;
}


#waveform {
	width: 100%;
	border: 1px solid red;
	}


textarea {
	width: 100%;
	height: 400px;
	font-size: 1.8em;
}

.rtl {
	direction: rtl;
	text-align: right;
}

.scriptures {
	font-family: frankcurledlamed;
}

.assistant {
	font-family: assistant;
}

.frank {
	font-family: frankcurledlamed;
}

.brands {
	font-family: brands;
}

.solid {
	font-family: solid;
	font-weight: 900;
}

.sbl {
	font-family: sblhebrew;
}

button,
a.button {
	display: inline-block;
	box-sizing: border-box;
	margin: 2px;
	padding: 2px 12px;
	border: 1px solid var(--button-bg);
	border-radius: 3px;
	background-color: var(--button-bg);
	color: var(--button-text);
	font: inherit;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

button:hover,
a.button:hover {
	filter: brightness(1.15);
}

button:active,
a.button:active {
	filter: brightness(0.9);
}


table {
	border-collapse: collapse;
}

th,
td {
	border: 1px solid var(--table-border);
	padding: 2px 8px;
}

th {
	background-color: var(--text);
	color: var(--background);
	text-align: start;
}

table.layout td {
	border: none;
	padding: 0;
}

.preview {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
}

.preview img {
	width: 300px;
}

.preview-wide img {
	display: block;
	width: 100%;
	margin-bottom: 1em;
}
