body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  h1, h2 {
    color: #333;
  }
  /*#drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    margin: 20px 0;
    min-height: 100px;
    background: #f9f9f9;
    cursor: pointer;
  }*/
  .drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    margin: 20px 0;
    background: #f9f9f9;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    align-items: center;
    min-height: 100px;
    white-space: nowrap;
  }
  /*.file-item {
    padding: 10px;
    border: 1px solid #aaa;
    background: #f9f9f9;
    border-radius: 4px;
    cursor: grab;
    min-width: 150px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
  }*/
  .file-item {
    white-space: normal;
    word-break: break-word;
    font-size: 11px;
    padding: 6px;
    min-width: 110px;
    max-width: 120px;
    text-align: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  .file-item canvas {
    display: block;
    margin: 0 auto 5px;
    width: 100px;
    height: auto;
    border: 1px solid #eee;
  }
  .file-item button {
    font-size: 12px;
    padding: 2px 6px;
    margin-top: 4px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
  }
  .file-item button:hover {
    background-color: #c0392b;
  }

  .spinner {
    border: 2px solid #ccc;
    border-top: 2px solid #666;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 5px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  #drop-area.dragover {
    background: #e1e1e1;
    border-color: #007bff;
  }
  #file-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
  }
  #file-list li {
    padding: 10px;
    background: #f1f1f1;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
  }
  button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
  }
  button:hover {
    background: #0056b3;
  }
  .error {
    color: red;
    display: none;
  }
  .ad-container {
    margin: 20px 0;
    min-height: 90px;
  }
  @media (max-width: 600px) {
    body {
      padding: 10px;
    }
    button {
      width: 100%;
    }
  }