body {
    margin: 0;
    padding: 0;
    background-color: #131626;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.container {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
}

#cubs {
    width: 100vmin;
    height: 100vmin;
    max-width: 100vh;
    max-height: 100vw;
}

#S,
#C_1,
#H,
#C_2,
#A_1,
#C_3,
#Y,
#C_4,
#A_2,
#C_5,
#N {
    animation: waveAnimation 1.4s ease-in-out alternate infinite;
    animation-fill-mode: forwards;
}

polygon {
    fill-opacity: 0.8;
}

@keyframes waveAnimation {
    to {
        transform: translateY(30vh);
    }
}

#S {
    animation-delay: 0.2s;
}

#C_1 {
    animation-delay: 0.4s;
}

#H {
    animation-delay: 0.6s;
}

#C_2 {
    animation-delay: 0.8s;
}

#A_1 {
    animation-delay: 1s;
}

#C_3 {
    animation-delay: 1.2s;
}

#Y {
    animation-delay: 1.4s;
}

#C_4 {
    animation-delay: 1.6s;
}

#A_2 {
    animation-delay: 1.8s;
}

#C_5 {
    animation-delay: 2s;
}

#N {
    animation-delay: 2.2s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    @keyframes waveAnimation {
        to {
            transform: translateY(20vh);
        }
    }
    
    #cubs {
        width: 120vmin;
        height: 120vmin;
    }
}

@media (max-width: 480px) {
    @keyframes waveAnimation {
        to {
            transform: translateY(15vh);
        }
    }
    
    #cubs {
        width: 140vmin;
        height: 140vmin;
    }
}