@keyframes custom-rotation {
    0% {
        transform: rotateX(51deg) rotateZ(38deg) rotate(10deg);
    }

    25% {
        transform: rotateX(51deg) rotateZ(38deg) rotate(-10deg);
    }
    50% {
        transform: rotateX(51deg) rotateZ(38deg) rotate(10deg);
    }
    75% {
        transform: rotateX(51deg) rotateZ(38deg) rotate(-10deg);
    }
    100% {
        transform: rotateX(51deg) rotateZ(38deg) rotate(10deg);
    }
}

.image-container {
    transform: rotateX(51deg) rotateZ(43deg);
    display: grid;
    object-fit: contain;
    grid-gap: 8px;
    grid-template-columns: 1fr 1fr;
    animation: custom-rotation 80s linear infinite;
    background-color: rgba(255, 255, 255, 0.1);
}

.tile {
    display: grid;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.tile > img {
    top: 0;
    left: 0;
    transition: 0.6s ease-in-out top, 0.6s ease-in-out left,
        0.6s ease-in-out transform, 0.6s ease-in-out box-shadow;
    width: 400px;
    height: 400px;
    object-fit: cover;
    opacity: 1;
}

.tile:nth-child(1) > img {
    box-shadow: 3px 3px rgba(192, 37, 162, 0.4);
}

.tile:nth-child(2) > img {
    box-shadow: 3px 3px rgba(253, 219, 90, 0.4);
}

.tile:nth-child(3) > img {
    box-shadow: 3px 3px rgba(41, 153, 192, 0.4);
}

.tile:nth-child(4) > img {
    box-shadow: 3px 3px rgba(192, 37, 162, 0.4);
}

.container {
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 10px;
    background-color: #3f396f;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-top: 32px;
    max-width: 500px;
    background-image: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: cover;
}
