html {
    border: 0;
    margin: 0;
    padding: 0;
  }

  body {
    border: 0;
    margin: 0;
    font-size: 12px;
    text-align: center;
    padding: 0 42px 0 10px;
    font-family: Helvetica, sans-serif;
  }

  .toolbar {
    width: 100%;
    background-color: #f0f0f0;
    padding: 10px 0;
    display: flex;
    justify-content: center;
  }

  .toolbar table {
    width: auto;
  }

  .toolbar td {
    padding: 0 10px;
    cursor: pointer;
  }

  .loader {
    display: none;
  }

  .content, .content1, .content2 {
    width: 95%;
    margin: 20px 0;
    display: flex;
    justify-content: center;
  }

   .content3 {
    width: 100%;
    margin: 20px 0;
    
  }

  .content table, .content1 table, .content2 table, .content3 table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
  }

  .content .data, .content1 .data, .content2 .data, .content3 .data {
    padding: 10px;
    border: 1px solid #ccc;
  }

  .content .input, .content1 .input, .content2 .input, .content3 .input {
    padding: 10px;
    border: 1px solid #ccc;
  }

  .content1 .input input {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
  }

  .content2 .input label {
    cursor: pointer;
    display: block;
  }

  .content2 .input input[type="radio"] {
    margin-right: 10px;
  }

  .content3 .input label {
    cursor: pointer;
    display: block;
  }

  .content3 .input input[type="radio"] {
    margin-right: 10px;
  }

  table thead .button,
  table thead .data {
    color: #000;
    padding: 10px 0;
    font-size: 15px;
    font-weight: bold;
    user-select: none;
    text-align: center;
    background-color: transparent;
    font-family: Helvetica, sans-serif;
  }

  @media (max-width: 480px) {
    table thead .button,
    table thead .data {
      color: #777;
      padding: 10px 0;
      font-size: 8px;
      user-select: none;
      text-align: center;
      background-color: transparent;
      font-family: Helvetica, sans-serif;
    }
  }

  @media (max-width: 500px) {
    .content1 table {
        margin-top: 30px !important;
    }
}

  table tbody .button,
  table tbody .data {
    color: #555;
    padding: 7px 0;
    font-size: 12px;
    user-select: none;
    font-family: monospace;
    background-color: transparent;
    border: solid 1px rgba(0, 0, 0, 0.1);
  }

  table tbody .data {
    font-weight: 600;
  }

  table tbody .button {
    cursor: pointer;
    font-size: 12px;
    transition: 300ms ease all;
  }

  table tbody .button:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  table tbody .input {
    color: #555;
    height: 32px;
    font-size: 12px;
    min-height: 32px;
    max-height: 32px;
    line-height: 32px;
    text-align: center;
    font-family: Helvetica, sans-serif;
    background-color: transparent;
    border: solid 1px rgb(33, 150, 243);
  }

  table tbody .input input {
    border: 0;
    margin: 0;
    outline: 0;
    padding: 0;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    background: #fff;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
  }

  table tbody .input label {
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: inline-block;
  }

  table tbody .input input[type="radio"] {
    cursor: pointer;
  }

  table tbody .sensitivity-factor {
    background-color: transparent;
  }

  table tbody .sensitivity-factor div {
    border: 0;
    margin: auto;
    display: flex;
    padding: 10px;
    align-items: center;
    box-sizing: border-box;
    justify-content: center;
  }

  table tbody .sensitivity-factor div label {
    margin: 0;
    color: #555;
    font-size: 11px;
    overflow: hidden;
    font-weight: 600;
    user-select: none;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    text-overflow: ellipsis;
    font-family: Helvetica, sans-serif;
  }

  table tbody .sensitivity-factor div input[type="range"] {
    width: 100%;
    margin: 0 10px;
    max-width: 850px;
    vertical-align: middle;
  }

  table tbody .sensitivity-factor div output {
    margin: 0;
    width: 48px;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    user-select: none;
    vertical-align: middle;
    font-family: monospace;
  }

  table tbody .input input[type="number"] {
    width: 100%;
    height: 100%;
  }

  .content {
    border: 0;
    margin: 0;
    padding: 0;
  }

  .content table {
    width: 100%;
    margin: auto;
    table-layout: fixed;
    border-spacing: 5px;
    margin-top: 30px !important;
  }

  .content table tr td {
    margin: 0;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .content .canvas {
    border: 0;
    margin: 0;
    padding: 0;
    font-size: 12px;
  }

  .content canvas {
    margin: auto;
    height: 500px;
  }









  .content1 {
    border: 0;
    margin: 0;
    padding: 0;
  }

  .content1 table {
    width: 100%;
    margin: auto;
    table-layout: fixed;
    border-spacing: 5px;
    margin-top: 30px !important;
  }

  .content1 table tr td {
    margin: 0;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .content1 .canvas {
    border: 0;
    margin: 0;
    padding: 0;
    font-size: 12px;
  }

  .content1 canvas {
    margin: auto;
    height: 500px;
  }











  .content2 {
    border: 0;
    margin: 0;
    padding: 0;
  }

  .content2 table {
    width: 100%;
    margin: auto;
    table-layout: fixed;
    border-spacing: 5px;
    margin-top: 30px !important;
  }

  .content2 table tr td {
    margin: 0;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .content2 .canvas {
    border: 0;
    margin: 0;
    padding: 0;
    font-size: 12px;
  }

  .content2 canvas {
    margin: auto;
    height: 500px;
  }






  .content3 {
    border: 0;
    margin: 0;
    padding: 0;
  }

  .content3 table {
    width: 100%;
    margin: auto;
    table-layout: fixed;
    border-spacing: 5px;
    margin-top: 30px !important;
  }

  .content3 table tr td {
    margin: 0;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .content3 .canvas {
    border: 0;
    margin: 0;
    padding: 0;
    font-size: 12px;
  }

  .content3 canvas {
    margin: auto;
    height: 500px;
  }







  .loader {
    top: 0;
    left: 0;
    height: 200%;
    position: fixed;
    width: calc(100% - 42px);
    background-color: rgba(0, 0, 0, 0.5);
  }

  .loader p {
    left: 0;
    top: 45%;
    margin: 0;
    width: 100%;
    color: #fff;
    font-size: 14px;
    position: fixed;
    text-align: center;
    font-weight: normal;
    font-family: monospace;
  }

  .toolbar {
    top: 0;
    right: 0;
    z-index: 11;
    position: absolute;
  }

  .toolbar table {
    border-spacing: 0;
    table-layout: fixed;
  }

  .toolbar table tr td {
    padding: 0;
    width: 42px;
    height: 42px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    transition: 300ms ease all;
  }

  .toolbar table tr td svg {
    fill: #777;
    pointer-events: none;
    vertical-align: middle;
  }

  .toolbar table tr td:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  #db {
    border: 0;
    font-size: 16px;
    font-weight: normal;
  }

  #level {
    color: #555;
    padding: 20px 0;
    font-size: 28px;
    user-select: none;
    text-align: center;
    font-weight: normal;
    font-family: monospace;
    background-color: transparent;
  }

  #noise {
    border: 0;
    font-size: 16px;
    font-weight: normal;
  }

  @media (max-width: 500px) {
    body {
      padding: 0 5px;
    }

    .toolbar {
      display: none !important;
    }

    table tbody .button,
    table tbody .data {
      padding: 10px 0;
    }

    .loader p {
      font-size: 14px;
    }

    .content table {
      border-spacing: 2px;
    }

    .content canvas {
      height: 300px;
    }

    .content1 table {
      border-spacing: 2px;
    }

    .content1 canvas {
      height: 300px;
    }

    .content2 table {
      margin-top: 30px !important;
    }

    .content2 canvas {
      height: 300px;
    }

    .content3 table {
        margin-top: 30px !important;
      }
  
      .content3 canvas {
        height: 300px;
      }
  }

  html[context="popup"] body {
    overflow: hidden;
  }

  html[context="popup"] .content table {
    border-spacing: 1px;
  }

  html[context="popup"] .content canvas {
    max-height: 400px;
  }

  html[context="webapp"] .toolbar {
    display: none;
  }

  html[context="webapp"] .loader {
    width: 100%;
  }