* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container.IIId{
    overflow: hidden;
    display: flex;
    justify-content: flex-start; /* Align the carousel to the left */
    align-items: center;
    height: 500px;
}

.IIId .carousel-container {
    position: relative;
    perspective: 1000px;
    width: 90vw;
    max-width: 300px;
    height: 400px;
}

.IIId .carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.IIId .card {
    position: absolute;
    width: 200px;
    height: 300px;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s;
}

.IIId .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.IIId .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    z-index: 1;
}

.IIId .prev {
    left: 10px;
}

.IIId .next {
    right: 10px;
}

/* Media query for mobile devices */
@media (max-width: 500px) {
    .IIId .carousel-container {
        width: 90vw;
        max-width: none;
        height: 300px; /* Adjust height for smaller screens */
    }

    .IIId .card {
        width: 150px; /* Adjust card size for smaller screens */
        height: 225px;
        margin: 0 92px;
    }

    .IIId .prev, .next {
        font-size: 12px; /* Adjust button font size for smaller screens */
    }
}