body {
    margin: 0; /* remove default page margin */
  }
  h1, h2, h3, h4, p {
    font-family: Arial, Helvetica, sans-serif;
  }
  h2 {
    margin: 0; /* remove margin around h2 text */
  }
  .backButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-weight: 700;
    color: black;
    background: white;
    padding: 10px 10px;
    border-radius: 6px;
    border-color:#000000;
  }
  p {
    margin-block-start: 0em;
    margin-block-end: 0em;
  }

  /* Informational text in upper-right */
  #text-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.65);
    padding: 5px;
    border-radius: 5px;
    text-align: right;
  }

  /* The container for all sliders + shape buttons */

  #controls-box {
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    width: 240px;
    height: 100vh; /* Full screen height */
    overflow-y: auto; /* Enables scroll when needed */
    background-color: rgba(0, 0, 0, 0.65);
    padding: 15px;
    box-sizing: border-box;
    z-index: 10;
    }


  /*
  #controls-box {
    position: absolute;
    top: 30px; 
    left: 30px; 
    color: white;
    background-color: rgba(0, 0, 0, 0.65);
    padding: 10px 15px;
    border-radius: 6px;
    width: 220px; 
  }
    */

  /* Each label + slider stack */
  .controlBlock {
    margin-bottom: 8px;
  }

  label.sliderLabel {
    display: block; /* label above the slider */
    margin-bottom: 4px;
    font-family: Arial, sans-serif; /* ensure Arial font */
  }

  input.slider {
    display: block; /* keep below the label */
    width: 100%;    /* fill the container's width */
  }

  /* p5 shape buttons inside #controls-box */

  .button-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* Creates 2 equal columns */
      grid-template-rows: repeat(5, auto); /* Allows up to 5 rows */
      gap: 10px; /* Adds spacing between buttons */
      width: fit-content;
      /*margin: 20px;  Adjust margins to position it properly */
  }
  .shapeButton {
      background: white;
      border: 1px solid black;
      padding: 8px 12px;
      cursor: pointer;
      font-size: 14px;
      font-weight: bold;
      text-align: center;
      min-width: 100px; /* Ensures button width is consistent */
  }
  .shapeButton a:active {background: purple;}


  /*
  .shapeButton {
    display: block;
    width: 100%;
    background: white;
    border: 1px solid black;
    padding: 6px 10px;
    margin-top: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
  }
    */

  /* Checkbox for brightness-based sizing & volume-based sizing */
  .checkboxBlock {
    margin-bottom: 15px;
  }
  .checkboxLabel {
    font-family: Arial, sans-serif;
  }

  /* to differentiate shape buttons from other buttons*/ */
  #trianglesBtn, #hexagonsBtn, #circlesBtn {background:#bbb;}