/* Apply the imported Google font to the entire page */
#infinite-horizontal-body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    display: flex;
    flex-direction: column; /* Allow for vertical stacking of content */
    align-items: center; /* Center items horizontally */
}

/* Set the margin-top using a variable */
#infinite-horizontal-scrolling {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    height: auto; /* Allow the height to adjust based on content */
    width: 100%;
    margin-top: 0px; /* Default margin; adjust this value as needed */
}

#infinite-horizontal-scrolling .container {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 90%;
    max-width: 800px;
    cursor: grab;
    user-select: none;
}

#infinite-horizontal-scrolling .link-group {
    display: flex;
    padding: 10px;
}

#infinite-horizontal-scrolling .link-group a {
    display: inline-block;
    text-align: center;
    padding: 12px 18px; /* Adjusted padding for a sleeker look */
    margin: 0 6px;
    text-decoration: none;
    background-color: #ffffff;
    color: #333;
    border-radius: 6px; /* Slightly smaller corners */
    white-space: nowrap;
    font-weight: 600;
    font-size: 14px; /* Slightly smaller font size */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for links */
#infinite-horizontal-scrolling .link-group a:hover {
    background-color: #4a90e2;
    color: #fff;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Active state when dragging */
.grabbing {
    cursor: grabbing;
}

/* Media Queries for Responsive Design */

/* For smaller tablets and large mobile devices */
@media (max-width: 768px) {
    #infinite-horizontal-scrolling {
        margin-top: 0px; /* Keep the same margin to avoid shifting */
    }

    #infinite-horizontal-scrolling .container {
        width: 95%; /* Increase the width to take up more screen space */
    }

    #infinite-horizontal-scrolling .link-group a {
        padding: 10px 16px; /* Slightly reduce padding */
        font-size: 13px; /* Smaller font size for smaller screens */
        margin: 0 5px;
    }
}

/* For mobile devices and smaller screens */
@media (max-width: 480px) {
    #infinite-horizontal-scrolling {
        margin-top: 0px; /* Keep the same margin to avoid shifting */
    }

    #infinite-horizontal-scrolling .container {
        width: 100%; /* Full width on mobile */
    }

    #infinite-horizontal-scrolling .link-group a {
        padding: 8px 12px; /* Smaller padding for mobile */
        font-size: 12px; /* Smaller font size for mobile */
        margin: 0 4px;
    }
}
