  /* Hand Section */
  .hand-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
  }
  
  /* EMG Sections */
  .emg-section {
    margin-top: 20px;
  }
  
  .emg-container {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
  }
  
  .emg-label {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .electrode-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
  }
  
  .electrode-indicator.red {
    background: #ff0000;
  }
  
  .electrode-indicator.blue {
    background: #3498db;
  }
  
  /* Electrodes & Fingers */
  .electrode {
    stroke: #2d3436;
    stroke-width: 2;
    transition: all 0.3s ease;
  }
  
  .electrode#electrode1 {
    fill: #ff0000;
  }
  
  .electrode#electrode2 {
    fill: #3498db;
  }
  
  .electrode.active {
    filter: url(#glow);
  }
  
  .electrode-label {
    font-size: 12px;
    fill: #ffffff;
    font-weight: bold;
    text-anchor: middle;
  }
  
  .wrist {
    fill: #ffeaa7;
    stroke: #2d3436;
    stroke-width: 0.5;
  }
  
  .finger {
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .finger:hover {
    stroke: #3498db;
  }
  
  /* Initially, show combined chart (for narrow screens) */
  .combined-charts {
    display: block;
  }
  
  .separate-charts {
    display: none;
  }

  @media (min-width: 800px) {
    .container {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
    }

    .combined-charts {
        display: none;
      }
  
    .hand-section {
      flex: 0 0 auto;
      width: 40%; /* Hand on the left takes 40% */
      padding: 10px;
    }
  
    .separate-charts {
      display: flex;
      flex-direction: column; /* Stack electrode charts vertically on the right */
      flex: 1;
      gap: 20px;
    }
  
    .emg-container {
      flex: 1;
    }
  }
  