document.addEventListener('DOMContentLoaded',()=>{
  let gameSpans = document.querySelectorAll(".game-name-span");

  gameSpans.forEach((span)=>{
    let containerWidth= span.parentElement.offsetWidth;
    let textWidth = span.offsetWidth

    // console.log(containerWidth,textWidth,span.textContent)
    if (textWidth > containerWidth) {
        span.classList.add("game-name-slide");
      }
  })
})
