/* Source code: https://codepen.io/loktar00/pen/DdWxwL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000;
    height: 100dvh;
    color: #fff;
    overflow: hidden;
    font-size: 16px;
    font-family: "Open Sans", "Poppins", "Helvetica", sans-serif;
}

canvas {
    position: absolute;
    top: 0;
    left: 0
}

.text-404 {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.text-404 .headline {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.text-404 .subline {
    font-size: 2em;
    text-align: center;
}

.text-404 h1 {
    padding: 0 15px;
    font-size: 13em;
    font-family: monospace;
    -webkit-animation: Anim-404 ease-in-out infinite;
    -o-animation: Anim-404 ease-in-out infinite;
    animation: Anim-404 ease-in-out infinite;
}

.text-404 h1:nth-child(1) {
    animation-duration: 5s;
}

.text-404 h1:nth-child(2) {
    animation-duration: 10s;
}

.text-404 h1:nth-child(3) {
    animation-duration: 8s;
}

@keyframes Anim-404 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 768px) {
    .text-404 h1 {
        font-size: 8em;
    }
}