body {
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', cursive;
    background: radial-gradient(circle, #580876, #1c5899, #127186);
    color: #fff;
    text-align: center;
     overflow-y: auto;
     overflow-x: auto;
    
  }
  
  @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
  
  .game-container {
    padding: 40px;
  }
  
  h1 {
    font-size: 28px;
    text-shadow: 0 0 10px #0ff;
    color: #0ff;
  }
  
  .instructions {
    margin-bottom: 10px;
    color: #ccc;
  }
  
  .level-select {
    margin: 20px;
  }
  
  .level-select select {
    padding: 8px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    font-family: inherit;
  }
  
  .grid {
    display: grid;
    gap: 15px;
    justify-content: center;
    margin: 30px auto;
  }
  
  .card {
    background-color: #1a002b;
    border: 2px solid cyan;
    border-radius: 8px;
    box-shadow: 0 0 10px cyan;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
  }
  
  
  .card-grid {
    display: grid;
    gap: 20px;
    justify-content: center;
    align-content: center;
    margin: 40px auto;
    max-width: 90vw;
    max-height: 80vh;
  }
  
  .card.flipped {
    background-color: #00ffff;
    color: #140033;
    transform: scale(1.1);
    box-shadow: 0 0 15px #00f0f0;
  }
  
  button {
    margin: 10px;
    padding: 12px 25px;
    background: #00ffff;
    color: #140033;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 10px #00ffff;
  }
  
  button:hover {
    background-color: #0ff;
    color: #000;
  }
  
  #play-again-btn {
    background: #ff00ff;
    box-shadow: 0 0 15px #ff00ff;
    color: white;
  }
  #level-complete {
    margin-top: 20px;
    animation: fadeIn 1s ease-in-out;
  }
  
  #level-complete button {
    font-family: 'Press Start 2P', cursive;
    background: #00f7ff;
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 10px;
    margin: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 0 15px #00f7ff;
    transition: transform 0.2s;
  }
  
  #level-complete button:hover {
    transform: scale(1.1);
  }
  
  .hidden {
    display: none;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  #tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
    background: transperant;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', cursive;
    background: radial-gradient(circle, #580876, #1c5899, #127186);

    overflow-x: hidden;
  }
  
  .game-container {
    position: relative;
    z-index: 2; /* Make sure content sits above the particles */
    text-align: center;
    padding: 2rem;
  }
  