#video > #videooverlay {
    position: absolute;
    top: 0;
    left: 0;
}

#videooverlay .detection {
    transform: translateX(calc(var(--x) * 100%)) translateY(calc(var(--y) * 100%));
}

#videooverlay .detection .detection-rect {
    fill: none;
    stroke-width: 2px;
    stroke: hsl(0 100% 60%);
    width: calc(var(--width) * 100%);
    height: calc(var(--height) * 100%);
}

#videooverlay .detection .text-background-rect {
    --box-height: calc(.7em + 2px);
    fill: hsl(0 100% 60%);
    transform: translateY(calc(var(--height) * 100% - var(--box-height)));
    height: var(--box-height);
    width: calc(1.5em + 2px);
}
#videooverlay .detection text {
    transform: translate(2px, calc(var(--height) * 100% - 2px));
    fill: white;
    font-family: arial;
    font-size: .7em;
}
