:root {
	--primary-color: #4f5391;
	--secondary-color: #222;
	--app-logo-size: 30px;

	--bg-body-color: #000;
	--text-color: #ddd;
	--border-color: #444;

	--menu-head-height: 30px;
	--channel-label-size: 30px;

	--channel-data-height: 80px;
	--channel-data-text-color: #ddd;
	--channel-overlay-bg: #4f5391e0;
	--channel-logo-height: 70px;
}

body {
	margin: 0;
	background: var(--bg-body-color);
	color: var(--text-color);
	font-family: Helvetica;
	overflow: hidden;
}

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

/* -- MENU / HEADER -- */
#menu-header {
	padding: 5px 10px;
	min-height: var(--menu-head-height);
	background-color: var(--secondary-color);
}

#menu-header-wrapper {
	display: inline-block;
	vertical-align: middle;
}

#menu-header-left {
	float: left;
}

#home-button {
	margin-right: 8px;
	text-decoration: none;
}

#home-button,
#home-button img {
	height: var(--menu-head-height);
	width: var(--menu-head-height);
	vertical-align: middle;
}

#home-button img {
	position: relative;
	top: 0;
}

@media (max-width: 875px) {
	#home-button img {
		top: -3px;
	}

	button#filters-btn {
		display: inline-block;
	}

	div#filters {
		display: none;
		margin-top: 5px;
		border-top: 1px solid var(--border-color);
		top: 0px;
		width: 100%;
	}

	#filters .filter-element {
		margin-top: 5px;
	}

	.header-btn {
		top: +3px;
	}

	#menu-side {
		border-top: 3px solid var(--primary-color);
		bottom: 0;
	}

	#channel-name {
		font-size: large !important;
	}
}

@media (min-width: 875px) {
	.header-btn {
		top: 0;
	}
}

#filters-btn {
	display: none;
}

#filters,
#filters .filter-element {
	display: inline-block;
}

#filters {
	float: left;
	position: relative;
	top: +3px;
}

#filters .filter-element select {
	padding-left: 5px;
	margin-right: 2px;
	height: 24px;
	background-color: var(--secondary-color);
	border-color: var(--border-color);
	border-radius: 3px;
	border-width: 0px;
	font-size: 12px;
	color: var(--text-color);
}

#btn-list {
	position: absolute;
	top: 3px;
	right: 10px;
}

.header-btn {
	position: relative;
	height: 34px;
	width: 34px;
	background: none;
	border: none;
	font-size: 20px;
	color: var(--primary-color);
}

.header-btn:hover {
	cursor: pointer;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
	margin: 10% auto;
	padding: 20px;
	width: 50%;
	background-color: var(--secondary-color);
	border: 1px solid var(--primary-color);
	border-radius: 5px;
}

.close {
	color: var(--text-color);
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

/* -- MENU / SIDE -- */
#menu-side {
	padding: 10px 0;
	position: absolute;
	right: 0;
	overflow-x: hidden;
	overflow-y: auto;
	background-color: var(--secondary-color);
	border-left: 3px solid var(--primary-color);
}

#menu-side .channel-button {
	padding: 3px 2px;
	width: 100%;
	border-bottom: 1px solid var(--border-color);
	opacity: 0.6;
	font-size: small;
	transition: font-size 0.3s ease;
	transform-origin: left center;
}

#menu-side .channel-button:hover,
#menu-side .channel-selected {
	opacity: 1;
	font-size: large;
	font-weight: bold;
}

#menu-side .channel-button:not(.channel-selected):hover {
	transform: scale(1.1);
}

#menu-side .channel-selected {
	background-color: var(--primary-color);
	color: var(--text-color);
}

#menu-side .channel-button .radio-channel {
	display: none;
}

#menu-side .channel-button:nth-child(2n) {
	border-top: none;
}

#menu-side .channel-button:last-child {
	border-bottom: none;
}

#menu-side .channel-button label {
	display: block;
	padding-left: 5px;
	width: 100%;
	height: 100%;
	white-space: nowrap;
}

#menu-side .channel-button label:hover {
	cursor: pointer;
}

#menu-side .channel-button label img {
	display: inline-block;
	margin-right: 5px;
	width: var(--channel-label-size);
	max-height: var(--channel-label-size);
	vertical-align: middle;
}

#menu-side .channel-button .channel-label {
	display: inline-block;
	vertical-align: middle;
	line-height: var(--channel-label-size);
}

/* -- CHANNEL -- */
#channel-container {
	border-top: 3px solid var(--primary-color);
	float: left;
}

#channel-data {
	display: none;
	z-index: 2;
	position: absolute;
	padding: 2px 0;
	height: var(--channel-data-height);
	background-color: var(--channel-overlay-bg);
	font-size: small;
	color: var(--channel-data-text-color);
	overflow: hidden;
	pointer-events: none;
}

.channel-data-box {
	float: left;
	padding: 5px 10px;
	width: 50%;
	height: 100%;
	box-sizing: border-box;
}

.channel-data-box:first-child {
	width: 40%;
}

.channel-data-box:last-child {
	width: 60%;
}

#channel-logo {
	text-align: center;
}

#channel-logo-img {
	position: relative;
	height: var(--channel-logo-height);
	max-height: var(--channel-logo-height);
	max-width: 100%;
}

#channel-info {
	padding: 2px 10px;
}

#channel-info .channel-category {
	font-size: large;
	opacity: 0.6;
}

#channel-name {
	display: inline-block;
	margin: 0 0 5px 0;
	font-size: xx-large;
	font-weight: bold;
	white-space: nowrap;
}

#channel-stream {
	justify-content: center;
	align-items: center;
	height: 100%;
}

#stream-error {
	text-align: center;
	font-size: x-large;
	color: var(--primary-color);
	top: 50%;
	position: relative;
}

#video-player {
	width: 100%;
	height: 100%;
}

.video-js .vjs-control-bar {
	background-color: var(--channel-overlay-bg) !important;
}

.vjs-modal-dialog-content {
	padding-top: 100px !important;
	background-color: var(--bg-body-color) !important;
}

.icon-stream-off {
	margin-top: 20%;
	font-size: 20vh;
	color: var(--channel-overlay-bg);
}

#map {
	position: absolute;
	top: 45px;
	width: 0;
	height: 0;
	z-index: 3;
}

.leaflet-container {
	background-color: var(--secondary-color);
}

.leaflet-bar a {
	background: var(--primary-color);
	border-color: var(--secondary-color);
}