body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    padding-top: 50px;
    user-select: auto !important; /* Ensure global user-select does not interfere */
    pointer-events: auto !important; /* Ensure global pointer-events do not interfere */
}

header {
    background-color: #333333;
    color: grey;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.header-title {
    font-size: 20px;
    font-weight: bold;
    color: #aaaaaa;
    text-decoration: none;
}

.header-title:hover {
    color: white;
}

.nav-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin-right: 100px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #aaaaaa;
    font-size: 16px;
    font-weight: normal;
}

.nav-links a:hover {
    color: white;
}

.nav-links a.active {
    background-color: black;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
}

.mempool-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    width: 100%;
    padding-top: 40px;
}

.mempool-box {
    width: 100%;
    height: 500px;
    background-color: #333333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.mempool-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.mempool-title {
    font-size: 24px;
    color: black;
    font-weight: bold;
    margin-left: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.mempool-block {
    width: 100%;
    max-width: 1350px;
    height: 500px;
    background-color: #FFEE99;
    margin: 0 auto;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #D3D3D3;
    color: white;
    position: relative;
    padding: 20px;
    margin-top: 10px;
}

.mempool-heading {
    font-size: 24px;
    color: black;
    font-weight: bold;
    margin-bottom: 10px;
    margin-left: 10px;
}

.mempool-table-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: relative;
    z-index: 0; /* Ensure the container does not interfere with child elements */
    pointer-events: auto; /* Ensure container is interactive */
    user-select: auto; /* Allow text selection within the container */
}

.mempool-table {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    pointer-events: auto; /* Ensure table is interactive */
    user-select: auto; /* Allow text selection within the table */
}

.mempool-table table {
    width: 100%;
    max-width: 1000px;
    min-width: 800px;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: center;
    font-family: Cambria, serif;
    font-size: 16px;
    margin-left: 150px;
    border: none;
    overflow: hidden;
}

.mempool-table th, .mempool-table td {
    border: 1px solid lightgray;
    padding: 8px;
    color: black;
    text-align: center;
    width: 180px;
    height: 60px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mempool-table th {
    border: none;
    background-color: transparent;
}

.mempool-table td {
    background-color: #f0f0f0;
}

.mempool-table td[contenteditable="true"] {
    background-color: white;
    min-width: 180px;
    min-height: 60px;
    max-width: 180px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    user-select: text !important; /* Ensure text selection is allowed */
    pointer-events: auto; /* Ensure pointer events are enabled */
    outline: none; /* Ensure no outline is shown */
    position: relative;
    z-index: 1; /* Ensure the cell is above other elements */
    -webkit-user-select: text !important; /* Ensure compatibility with WebKit browsers */
    -moz-user-select: text !important; /* Ensure compatibility with Firefox */
    -ms-user-select: text !important; /* Ensure compatibility with older IE */
}

.mempool-table td[contenteditable="true"]:hover {
    overflow-x: auto; /* Show horizontal scrollbar on hover */
}

.mempool-table td[contenteditable="true"]::-webkit-scrollbar {
    height: 2px; /* Thin scrollbar */
    border-radius: 1px; /* Rounded edges */
}

.mempool-table td[contenteditable="true"]::-webkit-scrollbar-track {
    background: transparent; /* Transparent track */
    margin-left: px; /* Align with the left border of the rectangle */
    margin-right: px; /* Align with the right border of the rectangle */
    padding-bottom: 6px; /* Align with the bottom border of the rectangle */
}

/* Scrollbar styling for Rectangle 4 in Block 2 */
.mempool-table td[contenteditable="true"]::-webkit-scrollbar {
    height: 2px; /* Thin scrollbar */
}

.mempool-table td[contenteditable="true"]::-webkit-scrollbar-thumb {
    background-color: #aaa; /* Light grey scrollbar thumb */
    border-radius: 1px; /* Rounded edges */
}

.mempool-table td[contenteditable="true"]::-webkit-scrollbar-track {
    background: transparent; /* Transparent track */
}

.mempool-table td[contenteditable="true"]:focus {
    outline: 2px solid #007BFF; /* Dark blue outline */
    outline-offset: -2px; /* Align the outline perfectly with the cell edges */
    box-shadow: 0 0 5px #007BFF; /* Add a shining effect */
    z-index: 2; /* Ensure the focused cell is above others */
}

.mempool-table::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: none;
    pointer-events: none; /* Prevent interference with editable cells */
    z-index: -1; /* Ensure it is behind the table */
}

.mempool-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin-top: 20px;
    margin-left: 150px;
}

.mempool-buttons button:first-child {
    margin-left: 0;
}

.mempool-buttons button {
    flex: none;
    width: auto;
    min-width: 200px;
    padding: 12px 18px;
    font-size: 16px;
    font-family: Cambria, serif;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
        border: none;
    border-radius: 5px;
    transition: 0.3s;
    text-align: center;
}

.mempool-buttons button:hover {
    background-color: #0056b3;
}

#sendTrxToBlock {
    background-color: #007BFF;
    cursor: pointer;
}

#sendTrxToBlock:hover {
    background-color: #0056b3;
}

.trx-label {
    position: absolute;
    left: 48px; /* Align horizontally with the PKR cell */
    top: 55px; /* Align vertically with the PKR cell */
    width: 48px; /* Match the width of the PKR cell */
    height: 60px; /* Match the height of the PKR cell */
    font-size: 16px;
    color: black;
    font-family: Cambria, serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: normal; /* Ensure proper vertical alignment */
}

body, html {
    user-select: auto !important; /* Ensure global user-select does not interfere */
    pointer-events: auto !important; /* Ensure global pointer-events do not interfere */
}