/* Base styles for all screen sizes */
.tag-list {
    display: flex;
    flex-direction: column;
    gap: 1rem 0;
    position: relative;
    padding: 1.5rem 0;
    overflow: hidden;
    margin-top: 1rem;
    width: 20rem; /* Default width for smaller screens */
    max-width: 100vw; /* Ensure it doesn't overflow the viewport */
  }
  
  .loop-slider .inner {
    display: flex;
    width: fit-content;
    animation-name: loop;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: var(--direction);
    animation-duration: var(--duration);
  }
  
  .tag {
    display: flex;
    align-items: center;
    gap: 0 0.2rem;
    color: #fff;
    font-size: 0.9rem;
    background-color: #282829;
    border-radius: 0.4rem;
    padding: 0.15rem 2rem;
    margin-right: 1rem;
    box-shadow: 
      0 0.1rem 0.2rem rgb(0 0 0 / 20%),
      0 0.1rem 0.5rem rgb(0 0 0 / 30%),
      0 0.2rem 1.5rem rgb(0 0 0 / 40%);
    transition: transform 0.3s ease-in-out;
  }
  
  .tag span {
    font-size: 1.2rem;
    color: #80B75B;
  }
  
  .tag:hover {
    transform: scale(1.2);
  }
  
  .fade {
    pointer-events: none;
    background: linear-gradient(90deg, #1E1E1F, transparent 50%, transparent 70%, #1E1E1F);
    position: absolute;
    inset: 0;
  }
  
  @keyframes loop {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  /* Media queries for different breakpoints */
  @media (min-width: 350px) {
    .tag-list {
      width: 20rem; /* Adjust width for screens wider than 350px */
    }
  }
  
  @media (min-width: 500px) {
    .tag-list {
      width: 30rem; /* Adjust width for screens wider than 500px */
    }
  }
  
  /* Additional media query for screens wider than 768px (if needed) */
  @media (min-width: 768px) {
    .tag-list {
      width: 53.5rem; /* Adjust width for screens wider than 768px */
    }
    
  }
 