/* Estilos já existentes */
body {
    background-color: #121212; /* Fundo escuro */
    color: #e0e0e0; /* Texto em cinza claro */
    margin: 0;
    padding: 0;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  /* Grid responsivo dos cards */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Em telas pequenas: cards mínimos de 320px */
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;  /* Limita a largura máxima do grid */
    margin: 0 auto;     /* Centraliza o grid horizontalmente */
  }
  
  /* Estilização do card das partidas */
  .match-card {
    position: relative;
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #1f1f1f, #2c2c2c);
    color: #f5f5f5;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 100%;
  }
  
  /* Efeito de hover para dar destaque */
  .match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  }
  
  /* Título com os nomes dos times */
  .match-card h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #00c853;
    white-space: normal;
    word-break: break-word;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  /* Botão principal do card */
  .match-card button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #00c853;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
  }
  
  .match-card button:hover {
    background-color: #00a844;
    transform: scale(1.05);
  }
  
  /* Informação do pote de apostas (se disponível) */
  .pot-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 8px;
    color: #f5f5f5;
  }
  
  .pot-info strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #00c853;
  }
  
  .pot-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .pot-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #555;
  }
  
  .pot-info li:last-child {
    border-bottom: none;
  }
  
  /* Estilização das opções de aposta */
  .bet-options {
    display: none;
    margin-top: 1rem;
  }
  
  .bet-options.active {
    display: block;
  }
  
  /* Formulário de aposta e suas animações */
  .bet-options,
  .bet-form {
    display: none;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease-in-out;
  }
  
  .bet-form {
    text-align: left;
  }
  
  .bet-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00c853;
  }
  
  .bet-form input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #2c2c2c;
    color: #f5f5f5;
    margin-bottom: 1rem;
  }
  
/* Área de opções – mesma estrutura para mobile e desktop */
.options {
    display: flex;
    justify-content: space-evenly; /* Distribui os botões uniformemente */
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  .options button {
    flex: none;                 /* Evita expansão automática */
    max-width: 125px;           /* Limita a largura máxima */
    padding: 0.4rem 0.6rem;     /* Padding compacto */
    font-size: 0.75rem;         /* Fonte menor */
    background-color: #00c853;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    white-space: nowrap;        /* Texto em uma linha */
    overflow: hidden;
    text-overflow: ellipsis;    /* Adiciona reticências se necessário */
  }
  
  .options button:hover {
    background-color: #00a844;
    transform: translateY(-2px);
  }
  
  /* Modal Overlay para login */
  #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 11000;
    text-align: center;
    color: #fff;
  }
  
  #overlay .overlay-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 auto;
  }
  
  #overlay h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
  }
  
  #overlay button {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
    background-color: #00c853;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  #overlay button:hover {
    background-color: #00a844;
  }
  
  /* Animação de Fade In */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Ajustes para telas menores (mobile) */
  @media screen and (max-width: 600px) {
    .grid {
      grid-template-columns: 1fr; /* Exibe um card por linha */
      padding: 1rem;
      gap: 1rem;
      max-width: 100%;
    }
    
    .match-card {
      margin: 0 auto;
      width: 100%;
      padding: 1.5rem;
    }
    
    .match-card h2 {
      font-size: 1.2rem;
    }
    
    .match-card button {
      padding: 0.6rem 1.2rem;
      font-size: 0.9rem;
    }
    
    .pot-info strong {
      font-size: 1rem;
    }
    
    /* .options button {
      padding: 0.6rem;
      font-size: 0.9rem;
    } */
  }
  
  /* Ajustes para telas maiores (desktop) */
  @media screen and (min-width: 900px) {
    .grid {
      grid-template-columns: repeat(2, 1fr); /* Força 2 cards por linha */
      gap: 2rem;
      padding: 1rem;
    }
    
    /* Opcional: ajuste um pouco os cards para deixá-los maiores */
    .match-card {
      padding: 2.5rem;
      min-height: 300px;
    }
    
    .match-card h2 {
      font-size: 1.6rem;
    }
    
    .match-card button {
      padding: 0.85rem 1.8rem;
    }
  }
  
