@font-face {
  font-family: 'Cousine';
  src: url('fonts/Cousine-Bold.ttf') format('truetype');
}

:root {
  --primary-color: #2498Eb;
  --secondary-color: #2c3e50;
  --background-color: #0000;
  --text-color: #333;
  --border-radius: 4px;
  --cc-background: #000000;
  --cc-text-color: #ffffff;
  --cc-font-size: 24px;
  --cc-line-height: 1.2;
  --caption-font-size: 3.2em;
  --caption-font-color: #ffffff;
  --caption-bg-color: #000000;
}

button {
	max-width: 600px;
}

body {
	margin: 0;
	padding: 0 10px;
	height: 100%;
	border: 0;
	display: flex;
	flex-direction: column-reverse;
	position: absolute;
	bottom: 0;
	overflow: hidden;
	max-width: calc(100vw - 20px);
	background-color: var(--caption-bg-color);
}

.hidden {
	display: none !important;
}

.output {
	margin: 0;
	background-color: var(--caption-bg-color);
	color: var(--caption-font-color);
	font-family: Cousine, monospace;
	font-size: var(--caption-font-size);
	line-height: 1.1em;
	letter-spacing: 0.0em;
	padding: 0em;
	text-shadow: 0.05em 0.05em 0px rgba(0,0,0,1);
	direction: auto;
	unicode-bidi: bidi-override;
}

.output span {
	background-color: var(--caption-bg-color);
	padding: 8px 8px 0px 8px;
	margin: 0;
	max-width: 100%;
	display: inline-block;
	direction: inherit;
	text-align: start;
	color: var(--caption-font-color);
}

a {
	color: white;
	font-size: 1.2em;
	text-transform: none;
}

.github {
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAd5JREFUOE+d1MurjlEUBvDfIZQZShEGmMhQiZGZlAlyK4eEAZHcyiVRyq1cUq5FwsD1MJGJiT/AzEzRcR8xMnGOW89pv9q9fScfe/J977o8e61nP2v16HzGYBWWYA4mlbBPeI5HuI9v7fSeDnircRqTh7msMX/ALtyr42rAEbiAzX8BaruTsx0/46gBL/0HWAMe0G01YNq8Xbz5PYuN2ISvCHc5oWEsruA69mJF8a0Mr6kwD/C64mw3zpSgCfjc6nE8vhRbAE+U/+8xI4DrcKNKOol9XfJ4CimgOb0BfIilxfIds/GyS8BZeIGRJf5BAN9gWjE8xcIuwZqwZ1hQPvoDOIBRxRCiN/wj4C30lpyBNmAmYNk/Aj7G4pIz2G75I6Y2Iu0CONwlZ2Ldcl+rqmjvWhdgCdmCi1Xs0KOsxc3C5WDhcw8uI9+dzugyVZFNw3/i1jTCfoVIJmo/VDiJeJ9gPX4U1CRHs4swrnXTO8xsZjlAd9GP+WU1zcPxckGde7WMZbvy5eirl8N5bMUxHMSvYdo9igMt3znsiK29vuLI1ojYU+2dwmWdnwv3V4YskozfUAGdFmzaz4KdgiM43KomNGTW32JnGd0/IZ0A48wrhpPMdFZ+feZievjqpILf7lRg3csIRqAAAAAASUVORK5CYII=");
	background-color: #FFF !important;
	width: 4px;
	height: 12px;
	background-repeat: no-repeat;
	display: inline-block;
	top: 2px;
	position: relative;
	left: 2px;
	filter: invert(100%);
	-webkit-filter: invert(100%);
}

.small-text-container {
	background-color: black;
	padding: 10px;
	margin-top: 10px;
}

.toggle-button {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s ease;
	margin: 10px 0;
	position: absolute;
	top: 0;
	right: 0;
}

.toggle-button:hover {
	background-color: var(--secondary-color);
}

.toggle-button.paused {
	background-color: #dc3545;
}

.control-buttons {
	position: fixed;
	top: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	justify-content: flex-start;
	gap: 10px;
}

.control-button {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

.control-button:hover {
	background-color: var(--secondary-color);
}

.control-button.paused {
	background-color: #dc3545;
}

.font-controls {
	display: flex;
	align-items: center;
	gap: 5px;
}

.font-size-control {
	display: flex;
	align-items: center;
	gap: 5px;
	background-color: var(--secondary-color);
	padding: 5px 10px;
	border-radius: var(--border-radius);
}

.font-size-control button {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 5px 10px;
	border-radius: 3px;
	cursor: pointer;
	font-weight: bold;
	min-width: 30px;
}

.font-size-control button:hover {
	background-color: #1a7bc4;
}

.font-size-control span {
	color: white;
	min-width: 40px;
	text-align: center;
	font-size: 14px;
}

.color-control {
	display: flex;
	align-items: center;
	gap: 5px;
	background-color: var(--secondary-color);
	padding: 5px 10px;
	border-radius: var(--border-radius);
}

.color-control label {
	color: white;
	font-size: 12px;
}

.color-control input[type="color"] {
	width: 40px;
	height: 30px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
}

.audio-device-control {
	display: flex;
	align-items: center;
	gap: 5px;
	background-color: var(--secondary-color);
	padding: 5px 10px;
	border-radius: var(--border-radius);
}

.audio-device-control label {
	color: white;
	font-size: 12px;
}

.audio-device-control select {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 5px 10px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	min-width: 150px;
}

.audio-device-control select option {
	background-color: var(--secondary-color);
	color: white;
}

.welcome-audio-control {
	margin: 10px 0;
}

.welcome-audio-control select {
	min-width: 200px;
}

.error-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: #dc3545;
	color: white;
	padding: 10px;
	text-align: center;
	z-index: 10000;
	font-size: 16px;
	display: none;
}

.error-banner button {
	background-color: white;
	color: #dc3545;
	border: none;
	padding: 5px 10px;
	margin-left: 10px;
	border-radius: 4px;
	cursor: pointer;
}

.welcome-text {
	font-size: 60%;
	line-height: 1.4em;
}

.help-text {
	font-size: 30%;
	line-height: 1.4em;
}

@media (max-width: 768px) {
	.small-text-container {
		padding: 5px;
		margin-top: 5px;
	}
	
	.output {
		font-size: 2.2em;
		line-height: 1em;
		text-shadow: 0.03em 0.03em 0px rgba(0,0,0,1);
	}
	
	.output span {
		padding: 5px 5px 0px 5px;
	}
	
	body {
		padding: 0 5px;
		max-width: calc(100vw - 10px);
	}
	
	.control-button {
		padding: 8px 12px;
		font-size: 14px;
	}
	
	ol, ul {
		padding-left: 20px;
	}
	
	.small-text-container font {
		font-size: 40% !important;
	}
}

@media (max-width: 480px) {
	.output {
		font-size: 1.6em;
	}
	
	.small-text-container font {
		font-size: 50% !important;
	}
}

