*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Nunito', sans-serif;

  @media (max-width: 768px) {  /* PARA A SCROLL-BAR SUMIR NO MOBILE [FIREFOX]*/
    scrollbar-width: none;
  }
}
  /* Game categorie */
  .games {
    width: 100%;
    height: 100vh;
    
  
    
    
  }
  
  .games-container {
    max-width: 100vw;
    max-height: 100vh; /* Garante que a lista não ultrapasse a altura da tela */
    overflow-y: auto; /* Habilita rolagem vertical se o conteúdo ultrapassar */
    padding: 0px 20px 0 80px;
  
    
  }
  .games-container h2 {
    padding-top: 20px;
  
    
  }
  
  .games-container::-webkit-scrollbar {
     display: none;
     }
  
  .game-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 jogos por linha */
    gap: 20px;
    @media (max-width: 768px) {
        grid-template-columns: repeat(2, 1fr); /* 2 jogos por linha */
      }
  }
  
  .game-item {
    position: relative;
    width: 100%;
    max-width: 350px;
    padding: 5px;
    @media (max-width: 768px) {
      max-width: 100%;
      padding: 10px;
    }
  }
  
  .Item {
    width: 100%;
    height: 200px; /* Padroniza a altura de todas as imagens */
    object-fit: cover; /* Garante que a imagem ocupe todo o espaço sem distorcer */
    border-radius: 5px;
    transition: all 150ms ease-in-out;
    @media (max-width: 768px) {
  
      width: 100%;
      height: 100px; /* Ajuste de altura para visualização em dispositivos móveis */
      margin-left: -30px;
  
    }
  }
  
  .Item:hover {
    box-shadow: -5px 5px 1px #3391e8;
  }
  
  .Current-Item:hover {
    transform: translate(5px, -5px);
    cursor: pointer;
  }
  
  /* Alteração aqui: Garanta que a classe "Current-Item" esteja em ".game-item" e não nas imagens diretamente */
  .game-item:hover .game-title {
    opacity: 1; /* Exibe o título quando o item é hoverado */
    transform: translate(10px, -15px);
  }
  
  .game-title {
    color: #FFF;
    background-color: #16253d;
    width: 97.14%;
    border-radius: 0 0 5px 5px;
    height: 30px;
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Inicialmente invisível */
    pointer-events: none;
    transition: all 150ms ease-in-out;
  }
  
  h2 {
    color: #fff;
    margin-left: 20px;
    margin-bottom: 10px;
    font-size: 28px;
    @media (max-width: 768px) {
  
      font-size: 24px; /* Ajuste do tamanho do título em dispositivos móveis */
      
    }
  }
  
  
  
  
  
  @media (max-width: 768px) {
    .Item:hover {
      box-shadow: -5px 5px 1px #3391e8;
      transform: translate(5px, -5px);
    
    }
    
  .game-list{
    margin-bottom: 100px;
  }
  
    /* Alteração aqui: Garanta que a classe "Current-Item" esteja em ".game-item" e não nas imagens diretamente */
    .game-item:hover .game-title {
      opacity: 1; /* Exibe o título quando o item é hoverado */
      transform: translate(-30px, -20px);
    }
  
    .game-title{
      font-size: 12px;
    }
  
    .Item {
      width: 130px;
      gap: 20px;
      height: 100px; /* Padroniza a altura de todas as imagens */
      object-fit: cover; /* Garante que a imagem ocupe todo o espaço sem distorcer */
      margin-left: -42px;
      
    }
  
    .games-container h2 {
      color: #fff;
      text-align: center;
      margin-right: 80px;
      margin-bottom: 10px;
      font-size: 20px;
    }
    .game-title {
      color: #FFF;
      background-color: #16253d;
      width: 110%;
      margin-left: 2px;
  }
  }
  