@font-face {
    font-family: "VCR OSD";
    src: url("/VCR_OSD.ttf");
}
@font-face {
    font-family: "DeaconFlock";
    src: url("/DeaconFlock.ttf");
}

* {
    box-sizing: border-box;
    pointer-events: none;
    cursor: default;
    user-select: none;
}

html, body {
    margin: 0;
    background: #000;
    overflow: hidden;
}

.main {
    width: min(100vw, calc(100vh * (4 / 3)));;
    height: auto;
    aspect-ratio: 4 / 3;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

#vid {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: 1;
}
.top-left {
    position: absolute;
    top: 3vmax;
    left: 3vmax;
    color: #fff;
    font-family: "VCR OSD", monospace;
    z-index: 2;

    div {
        display: inline-block;
        margin: 0;
        font-size: 5vmin;
        padding: .3vmax 1vmax;

        &.live {
            background: #444;
        }
        &.clock {
            background: #0009;
        }
    }
}

.preshow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;

    font-family: "DeaconFlock";
    color: #fff;
    
    display: none;
    &.active {
        display: flex;
    }

    justify-content: center;
    align-items: center;
    text-align: center;
    h2 {
        font-size: 6vw;
        margin: 0;
    }
    button {
        pointer-events: all;
        font-size: 3vw;
        font-family: "DeaconFlock";
        background: none;
        border: solid 9px #fff;
        color: #fff;
        padding: 1vw 3vw;
        cursor: pointer;
        display: none;
        &.active {
            display: inline-block;
        }
    }
}