@font-face {
  font-family: 'vcr_osd_monoregular';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/vcrosd.woff') format('woff'), /* most browsers late 2022 */
       url('fonts/vcrosd.ttf') format('truetype'); /* Safari Android iOS */
}

html, body {
    background: #00308F;
    margin: 0;
    padding: 0;
}

body {
    font: 64px 'vcr_osd_monoregular', sans-serif;
    color: #FFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: -4px -4px 0 #000, 4px -4px 0 #000, -4px 4px 0 #000, 4px 4px 0 #000;
    text-transform: uppercase;
}

canvas {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #777;
    z-index: 1;
}

@keyframes fade {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes jerk {
    50% {
        left: 1px;
    }
    51% {
        left: 0;
    }
}

main {
    z-index: 2;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: fade 30ms infinite, jerk 50ms infinite;
}

@keyframes syncloss {
    40% {
        opacity: 1;
        transform: skew(0, 0);
    }
    41% {
        opacity:0.8;
        transform: skew(50deg, 0);
    }
    42% {
        opacity:0.8;
        transform: skew(-80deg, 0)
    }
    43% {
        opacity:1;
        transform: skew(0, 0)
    }
}

#channel-number, #channel-name, #message {
    position: absolute;
    animation: syncloss 5s infinite;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

#channel-number {
    top: 30px;
    left: 60px;
}

#channel-name {
    top: 30px;
    right: 60px;
}

#message {
    bottom: 30px;
    left: 60px;
    width: calc(100% - 120px);
}

body::after {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0px, transparent 1px, transparent 2px, rgba(0, 0,0, 0.4) 3px);
}

@media (max-width: 767px) {
    body {
        font-size: 42px;
        text-shadow: -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000;
    }
    
    #channel-number, #message {
        left: 40px;
    }

    #channel-name {
        right: 40px;
    }
}