@font-face {
    font-family: 'Streamberry Sans';
    src: url('fonts/streamberrysans-regular.woff2') format('woff2'),
         url('fonts/streamberrysans-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Streamberry Sans';
    src: url('fonts/streamberrysans-bold.woff2') format('woff2'),
         url('fonts/streamberrysans-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}
body {
    --margin: 48px;
    margin: 0;
    background-color: black;
    color: white;
    font-family: 'Streamberry Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
}
.frame {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
header {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.menu-button {
    background-color: rgba(229, 9, 20, 0.7);
    transition: background-color .2s ease-in-out;
    border: 0;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
}
.menu-button:hover {
    background-color: rgba(192, 8, 17, 0.9);
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
main > h2 {
    font-size: clamp(36px, 5vw, 67px);
    letter-spacing: -.37px;
    margin: 0 0 10px;
    line-height: 1;
}
main > p, 
.main-button {
    font-size: clamp(14px, 3vw, 21px);
}
main > p {
    letter-spacing: -.13px;
    margin: 0;
}
.main-button {
    background-color: #E50914;
    transition: background-color .2s ease-in-out;
    border: 0;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    padding: 18px 40px;
    text-decoration: none;
    margin: clamp(20px, 5vw, 50px) 0;
}
.main-button:hover {
    background-color: #c00811;
}
main > .error {
    border-left: 3px solid red;
    padding-left: 10px;
}
main > .error > .code {
    font-weight: bold;
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}
main > * {
    z-index: 2;
}
main > video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.glitch {
    position: relative;
}
  
@keyframes glitch {
    2%,64%{
        transform: translate(2px,0) skew(0deg);
    }
    4%,60%{
        transform: translate(-2px,0) skew(0deg);
    }
    62%{
        transform: translate(0,0) skew(5deg); 
    }
}
  
.glitch:before,
.glitch:after {
    content: attr(title);
    position: absolute;
    left: 0;
}
  
.glitch:before {
    animation: glitchTop 1s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
  
@keyframes glitchTop{
    2%,64%{
        transform: translate(2px,-2px);
    }
    4%,60%{
        transform: translate(-2px,2px);
    }
    62%{
        transform: translate(13px,-1px) skew(-13deg); 
    }
}
  
.glitch:after {
    animation: glitchBotom 1.5s linear infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}
  
@keyframes glitchBotom{
    2%,64%{
        transform: translate(-2px,0);
    }
    4%,60%{
        transform: translate(-2px,0);
    }
    62%{
        transform: translate(-22px,5px) skew(21deg); 
    }
}

@media screen and (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
    }
}