/* Main wrapper for the animation component. */
.block-animation-wrapper {
    width: 100%;
    height: 100%;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 1.5rem;
    overflow: hidden;
}

/* The "stage" where the blocks will appear. */
.block-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 320px;
}

/* The style for each individual code block. */
.code-block {
    position: absolute;
    padding: 8px 14px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    opacity: 0; /* Starts invisible */
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth animation */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid rgba(0, 0, 0, 0.2);
}
