body {
    background-color: #fcf3b1;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    padding: 1rem;
  }

  .pokemon-box {
    background: rgba(241, 248, 233, 0.8);;
    border: 4px solid #333;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
  }

  .hp-bar {
    height: 20px;
    border-radius: 10px;
  }

  .sprite {
    width: 150px;
    height: 150px;
  }

  .menu-button {
    width: 100%;
    margin: 0.5rem 0;
    font-size: 1.2rem;
  }
  .menu-button {
    font-size: 1rem;
    padding: 0.75rem;
  }
  
  @media (max-width: 576px) {
    .menu-button {
      font-size: 0.9rem;
      padding: 0.5rem;
    }
  }

  #main-menu,
  #submenu-ataques {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  #main-menu button,
  #submenu-ataques button {
    flex: 1 1 calc(50% - 1rem);
  }

  .trainer-sprite {
    position: absolute;
    left: -100px;
    bottom: 0;
  }

  .victory-count {
    font-weight: bold;
  }

  @keyframes hit-shake {
    0% {
      transform: translateX(0);
    }

    25% {
      transform: translateX(-8px);
    }

    50% {
      transform: translateX(8px);
    }

    75% {
      transform: translateX(-8px);
    }

    100% {
      transform: translateX(0);
    }
  }

  .hit-effect {
    animation: hit-shake 0.3s ease;
  }

  .impacto-nube {
    display: none;
    /* Se oculta por defecto */
    width: 60px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('../img/text.png');
    /* Asegúrate de que este archivo existe */
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 10;
    pointer-events: none;
  }

  .mostrar-impacto {
    animation: impactoAnim 0.5s ease forwards;
  }

  @keyframes impactoAnim {
    0% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0;
    }

    30% {
      transform: translate(-50%, -50%) scale(1.3);
      opacity: 1;
    }

    100% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0;
    }
  }

  @keyframes impactoAnim {
    0% {
      transform: scale(1) translate(-50%, -50%);
      opacity: 1;
    }

    100% {
      transform: scale(1.5) translate(-50%, -50%);
      opacity: 0;
    }
  }

  .impactoAnim {
    animation: impactoAnim 0.4s ease-out;
  }

  .title {
    width: 100%;
    max-width: 100%;
    font-size: 2.5rem;;
    font-weight: bold;
    color: #333;
    text-align: center;
    text-shadow: 2px 2px 0px #fff;
  }

  .responsive-button {
    width: 100%;
    max-width: 120px;
    font-size: 1rem;
  }
  
  @media (max-width: 576px) {
    .responsive-button {
      font-size: 0.85rem;
      max-width: 100%;
    }
    .title {
      font-size: 1.5rem;
      max-width: 100%;
      
    }

  }