:root 
{
    --sat: env(safe-area-inset-top);
    --sar: env(safe-area-inset-right);
    --sab: env(safe-area-inset-bottom);
    --sal: env(safe-area-inset-left);
}

.root
{
	position: absolute;
	top: 40px;
	bottom: 0;
	left: 0;
	right: 0;
	overflow: hidden;
	transform: translate(0);
	background: black;
}
	.root .main #Frame_Main
	{
		all: unset;
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		background: black;
	}

[fullscreen="true"] .root
{
	top: 0;
}
.progressring#MainLoading
{
    position: absolute;
    top: 50%;
    left: 50%;
	transform: translate(-50%, -50%);
}

.titlebar .controls [ad-tooltip="Exit fullscreen"],
[fullscreen="true"] .titlebar .controls [ad-tooltip="Fullscreen"]
{
	display: none;
}
[fullscreen="true"] .titlebar .controls [ad-tooltip="Exit fullscreen"]
{
	display: block;
}