video {
    display: block;
    margin: 0 auto;
    max-width: 100vw;
    max-height: 100vh;
    height: 100%;
    width: 100%;
    position: relative;
}

#output {
    text-align: center;
    margin-top: 20px;
}

.frame-block {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
    top: 0;
    left: 0;
    pointer-events: none;
}

.frame-block::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.frame-block::after {
    content: "";
    position: absolute;
    width: 75%;
    aspect-ratio: 1 / 1;
    background: transparent;
    z-index: 0;
    box-shadow: 0 0 100px 9999px rgba(0, 0, 0, 0.4);
    border-radius: 14%;
}

.frame {
    border-radius: 15%;
    width: 75%;
    height: auto;
    aspect-ratio: 1 / 1;
    position: relative;
    z-index: 1;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.05);
    border: 5px dashed rgba(255, 255, 255, 0.85);
}

.frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15%;
    z-index: 2;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.rainbow-background {
    position: absolute;
    display: none;
    aspect-ratio: 1 / 1;
    top: -3000px;
    left: -3000px;
    width: 5000px;
    height: 5000px;
    background: conic-gradient(red, orange, yellow, green, blue, indigo, violet, red);
    animation: rotateBackground 10s infinite ease-in-out;
    transform-origin: center;
    border-radius: 50%;
    z-index: 10;
    transition: transform 1s ease-in-out, background 1s ease-in-out;
}

@keyframes rotateBackground {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

body {
    margin: 0 !important;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: block;
    overflow: hidden;
}

#video {
    width: 105%;
    height: 105%;
    object-fit: cover;
    position: relative;
}

h1 {
    position: absolute;
    top: 0;
    text-align: center;
    width: 100%;
    margin-top: 5rem;
    color: rgba(255, 255, 255, 1);
    -webkit-text-stroke: .25px black;
    text-shadow: .25px .25px .25px rgba(0, 0, 0, 0.7);
    font-weight: 600;
    font-size: xx-large;
    z-index: 11;
}

@media (max-width: 400px) {
    h1 {
        margin-top: 2.5rem !important;
    }
}

#canvas {
    position: absolute;
    z-index: 999;
    display: none;
}

html {
    height: 100vh;
    width: 100vw;
}

.rotate-warning {
    display: none;
    text-align: center;
    height: 100vh;
    width: 100vw;
    z-index: 998;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.rotate-warning-block {
    display: block;
}

.rotate-warning svg {
    width: 100px;
}

@media screen and (orientation: portrait) {
    .rotate-warning {
        display: none !important;
    }
}

@media screen and (orientation: landscape) {
    .rotate-warning {
        display: flex !important;
    }
}

.phone-warning {
    display: none;
    text-align: center;
    height: 100vh;
    width: 100vw;
    z-index: 999;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.phone-warning-block {
    display: block;
}

.phone-warning svg {
    width: 100px;
}

.white-background {
    background-color: white;
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 10;
    top: 0;
    left: 0;
    pointer-events: none;
}

video::-webkit-media-controls {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none;
}

@media (max-width: 768px) {
    .phone-warning {
        display: none !important;
    }

    .video-block .animation {
        display: none;
    }

    .video-block .video {
        display: none;
    }

    .frame-block {
        display: none;
    }
}

@media (min-width: 769px) {
    .phone-warning {
        display: flex !important;
    }
}