
  body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f0f0f0;
  }
  h1, h2 {
    text-align: center;
    color: #333;
  }
  #file-input {
    display: none;
  }
  .btn {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
  }
  .btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
  }
  #preview-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
  }
  .layer-preview {
    margin: 10px;
    text-align: center;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .layer-preview canvas {
    width: 150px;
    height: 150px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
  }
  #original-image, #merged-preview {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .input-group {
    margin-bottom: 10px;
  }
  .input-group label {
    display: inline-block;
    width: 180px;
  }
  #image-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  #image-container > div {
    flex: 1;
    margin: 0 10px;
    text-align: center;
  }
  #layers-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
  }
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  input:checked + .slider {
    background-color: #2196F3;
  }
  input:checked + .slider:before {
    transform: translateX(26px);
  }
  #3d-container {
    width: 100%;
    height: 500px;
    margin: 20px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
  }
  .layer-controls {
    display: flex;
    align-items: center;
    margin-top: 10px;
  }
  .layer-controls input[type="range"] {
    margin: 0 10px;
    width: 100px;
  }
  .layer-controls input[type="checkbox"] {
    margin-right: 10px;
  }
  .border-group {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
  }
  .border-group label {
    min-width: 50px;
  }
  .border-group input[type="number"] {
    width: 60px;
  }
  .border-group input[type="color"] {
    width: 40px;
    padding: 0;
    height: 25px;
  }
  #toggle-all-layers {
    margin-bottom: 10px;
  }
  #start-recording, #stop-recording {
    margin: 10px 5px;
  }
  #recording-time {
    font-family: monospace;
  }
  #start-3d-recording, #stop-3d-recording {
    margin: 10px 5px;
  }
  #recording-3d-time {
    font-family: monospace;
  }
