  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  body {
      font-family: 'Poppins', sans-serif;
      background-color: #f8f9fa;
      color: #333;
      line-height: 1.6;
  }

  .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
  }

  header {
      text-align: center;
      margin-bottom: 12px;
  }

  h1 {
      font-size: 2.5rem;
      margin-bottom: 0px;
      color: #2c3e50;
  }

  h2 {
      font-size: 2rem;
      margin-bottom: 30px;
      text-align: center;
      color: #2c3e50;
  }

  h3 {
      font-size: 1.2rem;
      margin: 10px 0;
      color: #2c3e50;
  }

  /* Puzzle Container */
  .puzzle-container {
      width: 80vw;
      /* Scale with viewport width */
      max-width: 400px;
      /* Maximum size for larger screens */
      min-width: 300px;
      /* Minimum size for small screens */
      aspect-ratio: 1 / 1;
      /* Maintain square shape */
      margin: 0 auto;
      background-color: #e9ecef;
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      position: relative;
      overflow: visible;
      /* Allow pieces to move outside */
  }

  #puzzlecontainer {
      width: 100%;
      /* Fill parent container */
      height: 100%;
      /* Fill parent container */
      overflow: visible;
      /* Ensure SVG does not clip pieces */
  }

  #puzzlecontainer path {
      transition: stroke-width 0.2s;
  }

  #puzzlecontainer path:hover {
      stroke-width: 0;
  }

  /* Puzzle Grid */
  .puzzle-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
      margin-bottom: 40px;
  }

  .puzzle-box {
      background-color: white;
      border-radius: 15px;
      overflow: hidden;
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .puzzle-box:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }

  .puzzle-box img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      transition: transform 0.5s ease;
  }

  .puzzle-box:hover img {
      transform: scale(1.05);
  }

  .play-btn {
      background-color: #3498db;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 30px;
      margin: 15px 0;
      cursor: pointer;
      font-family: 'Poppins', sans-serif;
      font-weight: 500;
      transition: background-color 0.3s ease;
  }

  .play-btn:hover {
      background-color: #2980b9;
  }

  footer {
      text-align: center;
      margin-top: 40px;
      padding: 20px 0;
      border-top: 1px solid #dee2e6;
      color: #6c757d;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
      .puzzle-grid {
          grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
          gap: 20px;
      }

      h1 {
          font-size: 2rem;
      }

      h2 {
          font-size: 1.5rem;
      }

      .puzzle-container {
          width: 80vw;
          /* Slightly smaller for tablets */
          max-width: 500px;
          min-width: 280px;
      }
  }

  @media (max-width: 480px) {
      .puzzle-grid {
          grid-template-columns: 1fr;
      }

      .container {
          padding: 10px;
      }

      h1 {
          font-size: 1.8rem;
      }

      .puzzle-container {
          width: 95vw;
          /* Use more viewport width for small screens */
          max-width: 350px;
          min-width: 250px;
      }
  }