/*****************************************************************************
#                                                                            #
#    KVMD - The main PiKVM daemon.                                           #
#                                                                            #
#    Copyright (C) 2018-2024  Maxim Devaev <mdevaev@gmail.com>               #
#                                                                            #
#    This program is free software: you can redistribute it and/or modify    #
#    it under the terms of the GNU General Public License as published by    #
#    the Free Software Foundation, either version 3 of the License, or       #
#    (at your option) any later version.                                     #
#                                                                            #
#    This program is distributed in the hope that it will be useful,         #
#    but WITHOUT ANY WARRANTY; without even the implied warranty of          #
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           #
#    GNU General Public License for more details.                            #
#                                                                            #
#    You should have received a copy of the GNU General Public License       #
#    along with this program.  If not, see <https://www.gnu.org/licenses/>.  #
#                                                                            #
*****************************************************************************/


div#navbar-stream-info {
	font-size: 0.8em;
	font-family: monospace;
}

div#stream-window {
	min-width: 400px;
	min-height: 200px;
}

div#stream-ocr-window {
	cursor: crosshair;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1;
	background-color: unset !important;
	border-radius: unset !important;
	border: unset !important;
	padding: 0px !important;
	background: radial-gradient(transparent 15%, black);
}
div#stream-ocr-selection {
	position: relative;
	background-color: #5b90bb50;
	box-shadow: inset 0 0 0px 1px #e8e8e8cd;
}

div#stream-box {
	width: 100%;
	height: 100%;
	object-fit: contain;
	position: relative;
	display: inline-block;
	border: var(--border-window-default-thin);
	margin: -1px -1px -1px -1px; /* See pikvm/kvm#86, pikvm/pikvm#599 */
}
div.stream-box-offline {
	-webkit-filter: grayscale(100%) brightness(75%) sepia(75%);
	filter: grayscale(100%) brightness(75%) sepia(75%);
}
div.stream-box-offline::after {
	cursor: wait;
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: inline-block;
	background: radial-gradient(transparent 20%, black);
}
div.stream-box-mouse-dot {
	cursor: url("../../svg/stream-mouse-cursor.svg") 5 5, pointer;
}
div.stream-box-mouse-none {
	cursor: none;
}

div#stream-keyboard-magic {
	position: absolute;
	padding: 4px;
}
div#stream-keyboard-magic span {
	border: 4px solid #00d953;
	outline: 1px solid black;
	padding: 2px 6px;
	margin: 2px;
	display: inline-block;
	border-radius: 6px;
	background-color: black;
	color: #00d953;
}

img#stream-image,
video#stream-video,
canvas#stream-canvas {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background-color: black;
}
