/* Default Styles */
.marquee-container {
    width: 100%; /* Adjust width as needed */
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    height: 7vh; /* Set height to 10% of the viewport height */
}

.marquee-content {
    display: flex;
    animation: marquee 15s linear infinite;
}

.marquee-item {
    min-width: 100px;
    height: 100px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 1.2rem;
    margin-right: 20px; /* Retain margin between items */
}

.marquee-item img {
    width: 120%; /* Make image larger while retaining aspect ratio */
    max-width: 150px; /* Limit maximum width to prevent overflow */
    height: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Space between items */
    margin-bottom: 20px;
}

/* Keyframes for smooth infinite scrolling from left to right */
@keyframes marquee {
    0% {
        transform: translateX(100); /* Start at the initial position */
    }
    100% {
        transform: translateX(-100%); /* Scroll the entire container off-screen */
    }
}

.marquee-container .marquee-content .marquee-item:last-child {
    margin-right: 20px; /* Maintain the gap after the last item */
}

.marquee-content {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    /* For tablets and smaller screens */
    .marquee-container {
        height: 5vh; /* Adjust height for smaller screens */
    }

    .marquee-item {
        min-width: 80px; /* Decrease width of items for smaller screens */
        height: 80px; /* Adjust item height */
        font-size: 1rem; /* Decrease font size */
    }

    .marquee-item img {
        max-width: 120px; /* Limit maximum width to maintain aspect ratio on smaller screens */
        height: auto; /* Maintain aspect ratio */
    }

    .marquee-container .marquee-content {
        animation: marquee 12s linear infinite; /* Speed up animation on smaller screens */
    }
}

@media (max-width: 480px) {
    /* For mobile screens */
    .marquee-container {
        height: 5vh; /* Further reduce height for mobile */
    }

    .marquee-item {
        min-width: 60px; /* Reduce item width */
        height: 60px; /* Adjust height of items for mobile */
        font-size: 0.9rem; /* Smaller font size for mobile */
    }

    .marquee-item img {
        max-width: 100px; /* Limit maximum width to maintain aspect ratio on mobile */
        height: auto; /* Maintain aspect ratio */
    }

    .marquee-container .marquee-content {
        animation: marquee 8s linear infinite; /* Increase speed for mobile */
    }
}