@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 0;
        transform: scale(0);
    }

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

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*, *:after, *:before {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

body, html {
    overflow: hidden;
}

body {
    background: #111;
    margin: 0;
    font-family: Tahoma, sans-serif;
}

#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    opacity: 0;
    animation: fadeOut 7s ease-out 1;
}

#audio {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

#text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Lovers Quarrel", cursive;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    font-size: 30vw;
    animation: fadeIn 7s ease-out 1;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#text.grey {
    font-family: "Arial",sans-serif;
    color: #aaa;
}

#text h1 {
    font-size: 1em;
    margin: 0;
    font-weight: normal;
}

.rainbow :nth-child(12n-1) {
    -webkit-animation: rainbow 3s linear infinite;
    -webkit-animation-delay: -2.2s;
    animation: rainbow 3s linear infinite;
    animation-delay: -2.2s;
}

.rainbow :nth-child(12n) {
    -webkit-animation: rainbow 3s linear infinite;
    -webkit-animation-delay: -2s;
    animation: rainbow 3s linear infinite;
    animation-delay: -2s;
}

.rainbow :nth-child(12n+1) {
    -webkit-animation: rainbow 3s linear infinite;
    -webkit-animation-delay: -1.8s;
    animation: rainbow 3s linear infinite;
    animation-delay: -1.8s;
}

.rainbow :nth-child(12n+2) {
    -webkit-animation: rainbow 3s linear infinite;
    -webkit-animation-delay: -1.6s;
    animation: rainbow 3s linear infinite;
    animation-delay: -1.6s;
}

.rainbow :nth-child(12n+3) {
    -webkit-animation: rainbow 3s linear infinite;
    -webkit-animation-delay: -1.4s;
    animation: rainbow 3s linear infinite;
    animation-delay: -1.4s;
}

.rainbow :nth-child(12n+4) {
    -webkit-animation: rainbow 3s linear infinite;
    -webkit-animation-delay: -1.2s;
    animation: rainbow 3s linear infinite;
    animation-delay: -1.2s;
}

.rainbow :nth-child(12n+5) {
    -webkit-animation: rainbow 3s linear infinite;
    -webkit-animation-delay: -1s;
    animation: rainbow 3s linear infinite;
    animation-delay: -1s;
}

.rainbow :nth-child(12n+6) {
    -webkit-animation: rainbow 3s linear infinite;
    -webkit-animation-delay: -0.8s;
    animation: rainbow 3s linear infinite;
    animation-delay: -0.8s;
}

.rainbow :nth-child(12n+7) {
    -webkit-animation: rainbow 3s linear infinite;
    -webkit-animation-delay: -0.6s;
    animation: rainbow 3s linear infinite;
    animation-delay: -0.6s;
}

.rainbow :nth-child(12n+8) {
    -webkit-animation: rainbow 3s linear infinite;
    -webkit-animation-delay: -0.4s;
    animation: rainbow 3s linear infinite;
    animation-delay: -0.4s;
}

.rainbow :nth-child(12n+9) {
    -webkit-animation: rainbow 3s linear infinite;
    -webkit-animation-delay: -0.2s;
    animation: rainbow 3s linear infinite;
    animation-delay: -0.2s;
}

.rainbow :nth-child(12n+10) {
    -webkit-animation: rainbow 3s linear infinite;
    -webkit-animation-delay: 0s;
    animation: rainbow 3s linear infinite;
    animation-delay: 0s;
}