body {
      font-family: 1, sans-serif;
      display: flex;
      justify-content: center;
      gap: 40px;
      margin-top: 30px;
      background-color: #1e1e1e;
      color: #fff;
    }


    .rarity-text {
      color: #9e9e9e;
    }

    .table-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }


    table {
      border-collapse: collapse;
      width: 320px;
      background-color: #111;
      border: 1px solid #333;
      text-wrap-mode: nowrap;
    }


    th,
    td {
      width: 250px;
      border: 1px solid #333;
      padding: 0;
      text-align: left;
    }


    th {
      position: sticky;
      top: 0;
      z-index: 2;
      background: linear-gradient(to right, #666, #999);
      color: white;
      padding: 8px;
      text-align: center;
    }


    td {
      height: 40px;
    }


    input[type="text"] {
      width: 100%;
      height: 100%;
      border: none;
      background-color: #1c1c1c;
      color: #e6e6e6;
      font-size: 15px;
      text-align: center;
      padding: 10px;
      box-sizing: border-box;
    }


    input[type="text"]:focus {
      outline: none;
      background-color: #2a2a2a;
    }


    .add-button {
      margin-top: 10px;
      width: 40px;
      height: 40px;
      background-color: #1c1c1c;
      border: 1px solid #555;
      color: #fff;
      font-size: 24px;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: background-color 0.2s;
    }


    .add-button:hover {
      background-color: #2a2a2a;
    }


    .remove-button {
      margin-top: 10px;
      width: 40px;
      height: 40px;
      background-color: #1c1c1c;
      border: 1px solid #555;
      color: #fff;
      font-size: 24px;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: background-color 0.2s;
    }
    .remove-button:hover {
      background-color: #2a2a2a;
    }

    
    th:first-child,
    #ambrosia-table td:first-child,
    #nihilium-table td:first-child {
      white-space: nowrap;
    }


    th:nth-child(2),
    td:nth-child(2) {
      width: 2000px;
    }

  /* Depth Column */
    th:nth-child(3),
    td:nth-child(3) {
      width: 700px; 
    }


    .table-scroll {
      max-height: 500px;
      overflow-y: auto;
      width: fit-content;
      margin-bottom: 10px;
    }


    .table-header {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 8px;
      gap: 12px;
    }


    .table-header img {
      width: 48px;
      height: 48px;
      image-rendering: pixelated;
    }


    /* Reset Finds Button */
    .reset-finds-button {
      position: fixed;
      bottom: 24px;
      left: 24px;
      background: #222;
      color: #fff;
      border: 1px solid #555;
      border-radius: 6px;
      padding: 12px 24px;
      font-size: 16px;
      cursor: pointer;
      z-index: 100;
      transition: background 0.2s;
    }


    .reset-finds-button:hover {
      background: #444;
    }

    /* Modal Styles */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
    }


    .modal-content {
      background: #222;
      color: #fff;
      padding: 32px 24px;
      border-radius: 10px;
      box-shadow: 0 4px 32px #000a;
      text-align: center;
      min-width: 300px;
    }


    .modal-confirm,
    .modal-cancel {
      margin: 16px 8px 0 8px;
      padding: 8px 20px;
      border: none;
      border-radius: 4px;
      font-size: 16px;
      cursor: pointer;
    }


    .modal-confirm {
      background: #d33;
      color: #fff;
    }


    .modal-cancel {
      background: #444;
      color: #fff;
    }


    .modal-confirm:hover {
      background: #b22;
    }


    .modal-cancel:hover {
      background: #222;
    }

    /* Home Button */
    #home-btn {
      position: fixed;
      top: 16px;
      right: 16px;
      z-index: 100;
      padding: 10px 22px;
      background: #222;
      color: #fff;
      border: none;
      border-radius: 6px;
      font-size: 1.1em;
      cursor: pointer;
      box-shadow: 0 2px 8px #0003;
      transition: background 0.2s;
    }

    #home-btn:hover {
      background: #444;
    }