* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #960ac1, #05679a 100%);
}

.position {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.imgBox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 300px;
    height: 400px;
    border-radius: 20px;
    transition: transform 0.3s ease-in-out; /* Added transition for scaling */
}

.imgBox::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background-image: conic-gradient(
        transparent,
        transparent,
        transparent,
        transparent,
        #00ccff
    );
    animation: rotate 4s linear infinite; 
}

.imgBox::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background-image: conic-gradient(
        transparent,
        transparent,
        transparent,
        transparent,
        #f32bf3
    );
    animation: rotate 4s linear infinite;
    animation-delay: -2s;
}

.imgBox img {
    position: absolute;
    inset: 5px;
    width: 290px;
    height: 390px;
    object-fit: cover;
    border-radius: 16px;
    z-index: 1;
}

.imgBox:hover {
    transform: scale(1.4); 
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 600px) {
    .position {
        flex-direction: column;
    }

    .imgBox {
        margin-bottom: 20px; /* Add some space between the cards in mobile */
    }
}