.container {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.item {
    border-radius: 5px;
    width: 100px;
    height: 100px;
    position: absolute;
}

.item-1 {
    background-color: #1c5ddc;
    top: 0;
    left: 0;
    z-index: 1;
    animation: item-1_move 1.8s cubic-bezier(.6, .01, .4, 1) infinite;
}

.item-2 {
    background-color: #feb52b;
    top: 0;
    right: 0;
    animation: item-2_move 1.8s cubic-bezier(.6, .01, .4, 1) infinite;
}

.item-3 {
    background-color: #fc351c;
    bottom: 0;
    right: 0;
    z-index: 1;
    animation: item-3_move 1.8s cubic-bezier(.6, .01, .4, 1) infinite;
}

.item-4 {
    background-color: #19ae5d;
    bottom: 0;
    left: 0;
    animation: item-4_move 1.8s cubic-bezier(.6, .01, .4, 1) infinite;
}

@keyframes item-1_move {

    0%,
    100% {
        transform: translate(0, 0)
    }

    25% {
        transform: translate(0, 100px)
    }

    50% {
        transform: translate(100px, 100px)
    }

    75% {
        transform: translate(100px, 0)
    }
}

@keyframes item-2_move {

    0%,
    100% {
        transform: translate(0, 0)
    }

    25% {
        transform: translate(-100px, 0)
    }

    50% {
        transform: translate(-100px, 100px)
    }

    75% {
        transform: translate(0, 100px)
    }
}

@keyframes item-3_move {

    0%,
    100% {
        transform: translate(0, 0)
    }

    25% {
        transform: translate(0, -100px)
    }

    50% {
        transform: translate(-100px, -100px)
    }

    75% {
        transform: translate(-100px, 0)
    }
}

@keyframes item-4_move {

    0%,
    100% {
        transform: translate(0, 0)
    }

    25% {
        transform: translate(100px, 0)
    }

    50% {
        transform: translate(100px, -100px)
    }

    75% {
        transform: translate(0, -100px)
    }
}


/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 300px) {
    .swiper {
        margin-top: 50px;
        width: 95%;
    }
}

@media only screen and (min-width: 350px) {
    .swiper {
        margin-top: 90px;
        width: 95%;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .swiper {
        width: 100%;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .swiper {
        margin-top: 50px;
        width: 80%;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 800px) {
    .swiper {
        margin-top: 80px;
        width: 85%;
    }
}

@media only screen and (min-width: 850px) {
    .swiper {
        margin-top: 20px;
        width: 80%;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .swiper {
        margin-top: 0;
        width: 435px;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1440px) {
    .swiper {
        width: 650px;
    }
}


.swiper-slide img {
    width: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}