html, body {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    animation: changeBg 5s infinite alternate;
    background-size: 300% 300%;

}


@keyframes changeBg {

  
    0% { background-color: #ff0000; } /* Red */
    25% { background-color: #00ff00; } /* Green */
    50% { background-color: #0000ff; } /* Blue */
    75% { background-color: #ffff00; } /* Yellow */
    100% { background-color: #ff00ff; } /* Magenta */
}






.leSnake span {
    font-size: 100px;
    display: inline-block;
    animation: leSnake 1s ease-in-out infinite;
}

/* Stagger the animation for each letter */
.leSnake span:nth-child(1) { animation-delay: 0s; }
.leSnake span:nth-child(2) { animation-delay: 0.1s; }
.leSnake span:nth-child(3) { animation-delay: 0.2s; }
.leSnake span:nth-child(4) { animation-delay: 0.3s; }
.leSnake span:nth-child(5) { animation-delay: 0.4s; }
.leSnake span:nth-child(6) { animation-delay: 0.5s; }
.leSnake span:nth-child(7) { animation-delay: 0.6s; }
.leSnake span:nth-child(8) { animation-delay: 0.7s; }
.leSnake span:nth-child(9) { animation-delay: 0.8s; }
.leSnake span:nth-child(10) { animation-delay: 0.9s; }
.leSnake span:nth-child(11) { animation-delay: 1.0s; }
.leSnake span:nth-child(12) { animation-delay: 1.1s; }
.leSnake span:nth-child(13) { animation-delay: 1.2s; }
.leSnake span:nth-child(14) { animation-delay: 1.3s; }
.leSnake span:nth-child(15) { animation-delay: 1.4s; }
.leSnake span:nth-child(16) { animation-delay: 1.5s; }
.leSnake span:nth-child(17) { animation-delay: 1.6s; }

@keyframes leSnake {
    from, to { transform: translateY(0px); }
    50% { transform: translateY(50px); }
}
