  .chart-container {
    position: relative;
    margin: 20px auto;
    /* Center horizontally */
    width: 510px;
    /* Default width, updated dynamically */
    height: 660px;
    /* Default height, updated dynamically */
  }

  .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
  }

  canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
  }

  button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    cursor: pointer;
  }