#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(51, 102, 153, 0.5);
    color: #fff;
    font-size: 1.2em;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: all 1s ease-in-out;
    opacity: 0;
}

.loading-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #ef5526;
    padding: 10px;
    border: #8a8a8a;
    border-radius: 5px;
}

.loading-text {
    display: none;
    margin-left: 10px;
    font-size: 1.5rem;
    text-transform: uppercase;
    animation: color-change 5s infinite ;
}

/* Animation for each letter */
.wave-text span {
    font-size: 2rem;
    display: inline-block;
    animation: wave-animation 2s infinite cubic-bezier(0.36, 0.45, 0.63, 0.53);
    animation-delay: calc(0.1s * var(--i));
}

@keyframes wave-animation {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(10px);
    }
    75% {
        transform: translateY(-5px);
    }
}