* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(#ffaaec 53%, #004061 55%);
    overflow: hidden;
}

section {
    position: absolute;
    width: 260px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 2px solid black;
    animation: move linear forwards; */
}

section:nth-child(1) {
    transform: translateX(-720px);
}

section:nth-child(2) {
    transform: translateX(-265px);
}

section:nth-child(3) {
    transform: translateX(45px);
}

section:nth-child(4) {
    transform: translateX(260px);
}

section:nth-child(5) {
    transform: translateX(390px);
}

section:nth-child(6) {
    transform: translateX(425px);
}

.div1 {
    position: absolute;
    width: 250px;
    height: 200px;
    padding: 20px;
    /* border: 3px solid blue; */
    visibility: hidden;
    animation: move linear forwards;
}

@keyframes move {
    0% {
        visibility: visible;
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(180deg);
    }
}

section:nth-child(1) .div1 {
    width: 630px;
    animation-duration: 3s;
    animation-delay: 0s;
}

section:nth-child(2) .div1 {
    width: 450px;
    animation-duration: 2s;
    animation-delay: 3s;
}

section:nth-child(3) .div1 {
    width: 350px;
    animation-duration: 1.8s;
    animation-delay: 5s;
}

section:nth-child(4) .div1 {
    width: 250px;
    animation-duration: 1.5s;
    animation-delay: 6.8s;
}

section:nth-child(5) .div1 {
    width: 190px;
    animation-duration: 1s;
    animation-delay: 8.3s;
}

section:nth-child(6) .div1 {
    width: 50px;
    /* animation-duration: 2.3s;
    animation-delay: 9.3s; */
    animation: move1 2.3s linear forwards;
    animation-delay: 9.3s;
}

@keyframes move1 {
    0% {
        visibility: visible;
        transform: translateX(5px);
    }
    100% {
        transform: translateX(350px);
    }
}

.div2 {
    position: absolute;
    width: 200px;
    height: 150px;
    /* border: 3px solid darkred; */
    transform: rotateZ(-35deg);
}

.ball {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(orange 40%, black);
}