@font-face {
	font-family: 'Material';
	font-style: normal;
	font-weight: 400;
	src: url(font/MaterialIcons-Regular.ttf);
	src: local('Material Icons'),
	local('MaterialIcons-Regular'),
	url(font/MaterialIcons-Regular.ttf) format('truetype');
}

.material-icons {
	font-family: 'Material';
	font-weight: normal;
	font-style: normal;
	font-size: 16px;
	display: inline-block;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	word-wrap: normal;
	white-space: nowrap;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	-moz-osx-font-smoothing: grayscale;
}

*{
	box-sizing: border-box;
}
html{
	margin: 0;
	padding: 0;
}
body{
	margin: 0;
	padding: 0;
	height: 100vh;
	background: #333;
	color: #131313;
	font-family: Helvetica, Arial , sans-serif;
	font-size: 14px;
}
#app{
	--pad: 8px;
	height: 100vh;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	user-select: none;
}
nav{
	height: 100%;
	width: 60px;
}
main{
	height: 100%;
	flex: 1;
	position: relative;
}
.topbar{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 32px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 8px;
	z-index: 100;
}
#cam-selector{
	height: 24px;
	width: 150px;
	background: #121212;
	color: #fff;
	border: none;
	font-weight: 600;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 14px;
	border-radius: 6px;
}
#cam-selector:active, #cam-selector:focus{
	outline: none;
}
.highTemp{
	color: #fff;
	padding: 4px;
	border-radius: 6px;
	display: none;
}
@keyframes blink {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
.warning{
	display: block;
	animation: blink 1s infinite;
	background: #c71616;
}
.ok{
	background: #0e9454;
}
.medium{
	background: #cc7513;
}
.states{
	display: flex;
	gap: var(--pad);
	height: 100%;
	align-items: center;
}

.batt, .wifi{
	display: flex;
	align-items: center;
	padding: 4px;
	border-radius: 6px;
}
.hd-btn{
	display: none;
	align-items: center;
	padding: 4px;
	border-radius: 6px;
	border: 1px solid #fff;
	color: #fff;
	font-weight: 600;
}
.hd-btn.active{
	border: 1px solid #0a7393;
	background: #0a7393;
	color: #fff;
}

#mainPlayer{
	overflow: hidden;
	flex: 1;
	width: 100%;
}
#mainPlayer > .iframe-box{
	position: absolute;
	inset: 0;
	z-index: 1;
	transition: .3s;
	height: 100%;
	width: 100%;
}
#mainPlayer iframe{
	height: 100%;
	width: 100%;
	border: none;
	pointer-events: none;
}
#mainPlayer > .iframe-box.active{
	z-index: 10;
}
.sticks{
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 50px;
}
.stick{
	height: 150px;
	width: 150px;
	border-radius: 50%;
	border: 2px solid #fffa;
}
.actions-modal{
	position: absolute;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transition: .3s;
	left: calc(100% - 60px);
	width: 100%;
}
.actions-modal.active{
	left: calc(100% - 60px - 260px);
}
.actions{
	height: 230px;
	max-height: calc(100% - 40px);
	width: calc(100% - 40px);
	border-radius: 6px;
	background: #f9f9f9;
	pointer-events: all;
	box-shadow: 0 0 4px 1px #0007;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	color: #212121;
	gap: 8px;
}
.fast-actions{
	width: 40px;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	padding: 8px 0;
	justify-content: center;
}
.action{
	height: 36px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ccc;
	border-radius: 6px;
	cursor: pointer;
	user-select: none;
}
.action.text{
	aspect-ratio: auto;
	width: 100%;
	padding: 0 8px;
}
.action.active{
	border: 1px solid #0a7393;
	background: #0a7393;
	color: #fff;
}
.action-col{
	align-items: center;
	padding: 8px 0;
	justify-content: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 120px;
}
.restart{
	position: absolute;
	inset: 0;
	background: #0009;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	font-weight: 600;
	color: #fff;
}
.restart.active{
	display: flex;
}
.low-battery{
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: #0000009e;
	display: none;
	align-items: center;
	justify-content: center;
}
.low-battery.visible{
	display: flex;
}
.low-battery-alert{
	padding: 14px;
	background: #8b2222;
	animation: blink 1s infinite;
	border-radius: 9px;
	display: flex;
	align-items: center;
	color: #fff;
	font-size: 16px;
}
.alert-icon{
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.alert-icon .material-icons{
	font-size: 40px !important;
}
.alert-msg-title{
	font-size: 18px;
	font-weight: 700;
}

@media (min-width: 1000px){
	#mainPlayer .iframe-box:not(.active){
		width: 210px;
		aspect-ratio: 16 / 9;
		z-index: 100;
		height: auto;
		bottom: 15px;
		top: auto;
		outline: 3px solid #fff;
	}
}
