body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;    
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;   
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #007bff;
    color: #ffffff;
    padding: 10px 20px;
    position: relative;
}

#logo {
    margin-right: 20px;
}

#logo img {
    width: 0.5in; /* Adjust the width to make the logo smaller */
    height: auto;
}

nav {
    flex-grow: 1;
}

#menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    width: auto; /* Set the width of the menu to 20% */
    background-color: #007bff;
}

#menu li {
    position: relative;
    margin-left: 1px;
    margin-right: 1px;
    display: inline-block; /* Ensure menu items are displayed inline */
}

#menu li a {
    color: #ffffff; /* Menu item text color */
    background-color: #007bff; /* Menu item background color */
    text-decoration: none;
    font-weight: bold;
    padding: 20px 2px 10px; /* Add padding to menu items */
}

#menu li a:hover {
    text-decoration: underline; /* Underline text on hover */
}

.dropdown {
    display: inline-block;
}

.dropbtn {
    background-color: #007bff; /* Dropdown button background color */
    color: white; /* Dropdown button text color */
    padding: 10px 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #007bff; /* Dropdown menu background color */
    color: #007b00; /* Dropdown menu item text color on hover */
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    text-align: left;
}

.dropdown-content a {
    color: #007b00; /* Dropdown menu item text color on hover */
    background-color: #007bff; /* Dropdown menu item background color on hover */
    padding: 12px 50px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    color: #007bff; /* Dropdown menu item text color on hover */
    background-color: #007bff; /* Dropdown menu item background color on hover */
}

.dropdown:hover .dropdown-content {
    display: block;
}

#search-container {
    display: flex;
    align-items: center;
    min-width: 60%;
}

#search-field {
    padding: 5px;
    font-size: 16px;
    flex-grow: 1;
    min-width: 2px; /* Set the minimum width */
    max-width: 100%; /* Optional: Set the maximum width */
}

#search-button {
    padding: 5px 10px;
    margin-left: 10px;
    font-size: 16px;
    background-color: #ffffff;
    color: #007bff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-button:hover {
    background-color: #e0e0e0;
}

main {
    padding: 20px;
}

footer {
    text-align: center;
    padding: 10px;
    background: #007bff;
    color: #ffffff;
}

#block-info {
    margin-top: 20px;
}

nav {
    margin: 20px 0;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #007bff;
}

nav a:hover {
    text-decoration: underline;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

h1, h2, h3 {
    font-family: Arial, sans-serif;
    color: #333;
}

.block-detail, .transaction-detail, .address-detail {
    background: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.footer {
    text-align: center;
    padding: 10px 0;
    background: #007bff;
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    background-color: #333;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

#content {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

#main-content {
    width: 70%;
}

#sidebar {
    width: 25%;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#transactions-list {
    list-style: none;
    padding: 0;
}

#transactions-list li {
    margin-bottom: 10px;
}

#transaction-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

#inputs, #outputs {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#inputs h3, #outputs h3 {
    margin-top: 0;
}

#input-list li, #output-list li {
    text-align: right;
}

#input-list li div, #output-list li div {
    display: inline-block;
    width: 50%;
}

#blocks-and-transactions {
    display: flex;
    align-items: stretch; /* Ensure both tables stretch to the same height */
    gap: 20px; /* Add space between the two tables */
}

#blocks-container, #transactions-container {
    flex: 1; /* Ensure both containers take equal height */
    display: flex;
    flex-direction: column; /* Ensure the content inside stretches properly */
    margin: 0;
    padding: 0;
    min-height: 400px; /* Set a minimum height for both containers */
}

#transactions-container {
    width: 100%; /* Ensure the transactions container takes full width */
}
#blocks-container {
    width: 100%; /* Ensure the blocks container takes full width */
}

#blocks-table, #transactions-table {
    width: 400px;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#blocks-table th, #blocks-table td, #transactions-table th, #transactions-table td {
    padding: 5px 10px; /* Adjust column spacing */
    border: 1px solid #ddd;
    text-align: left;
    line-height: 1.0; /* Adjust line spacing */
}

#blocks-table th, #transactions-table th {
    background-color: #f4f4f4;
    white-space: nowrap; /* Prevent text wrapping in headers */
}

#blocks-table td.size, #transactions-table td.size {
    width: 20%; /* Adjust column width */
    text-align: right;
}

#button-container {
    display: flex;
    justify-content: flex-start; /* Align buttons to the left */
    margin-top: 0px;
}

/* Styles for block information table */
#block-info-table {
    width: 30%;
    border-collapse: collapse;
    margin-top: 20px;
}

#block-info-table th, #block-info-table td {
    padding: 5px 10px;
    border: 1px solid #ddd;
}

#block-info-table th {
    text-align: left;
    background-color: #f4f4f4;
}

#block-info-table td {
    text-align: right;
}

/* Styles for transaction information table */
#transaction-info-table {
    width: 80%;
    border-collapse: collapse;
    margin-top: 20px;
}

#transaction-info-table th, #transaction-info-table td {
    padding: 5px 10px;
    border: 1px solid #ddd;
}

#transaction-info-table th {
    text-align: left;
    background-color: #f4f4f4;
}

#transaction-info-table td {
    text-align: right;
}

/* Styles for transaction history table */
#transaction-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#transaction-history-table th, #transaction-history-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

#transaction-history-table th {
    background-color: #f4f4f4;
    text-align: left;
}

#transaction-history-table td {
    text-align: right;
}

/* Remove bullet points from inputs and outputs lists */
.no-bullets {
    list-style-type: none;
    padding-left: 0;
}

/* Add space between input items */
.input-item {
    margin-bottom: 10px;
}

/* Add space between output items */
.output-item {
    margin-bottom: 10px;
}

/* Styles for hex data */
.hex-data {
    font-size: 12px; /* Match this to the base font size of your project */
    font-family: 'Roboto Mono', monospace; /* Use Roboto Mono for consistent width */
    white-space: pre-wrap; /* Ensure hex string wraps within the cell */
    word-wrap: break-word; /* Ensure long words are wrapped */
    overflow-wrap: break-word; /* Ensures long words break correctly */
    max-width: 100%; /* Ensures the hex data does not overflow the container */
}

/* Styles for transaction details */
.transaction-detail {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.transaction-detail h3, .transaction-detail h4 {
    margin: 10px 0;
}

.transaction-detail p {
    margin: 5px 0;
}

/* Style positive amounts in green */
.positive-amount {
    color: green;
}

.block-hash {
    display: flex;
    align-items: center;
}

.block-hash a {
    margin-right: 10px;
}

.block-hash span {
    margin-right: 10px;
}

#copy-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #007bff;
    font-size: 1em;
}

#copy-button:hover {
    color: #007bff;
}

.transaction-id {
    display: flex;
    align-items: center;
}

.transaction-id span {
    margin-right: 10px;
}

.history-table {
    border-collapse: collapse;
    width: 80%;
    margin-top: 20px;
}

.history-table th, .history-table td {
    padding: 5px 10px;
    border: 1px solid #ddd;
}

.history-table th {
    text-align: left;
    background-color: #f4f4f4;
}

.history-table td {
    text-align: right;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
}

.confirmations {
    text-align: right;
    color: grey;
}

.vin {
    text-align: right;
    color: red;
}

.vout {
    text-align: right;
    color: green;
}

.greyed-out {
    color: grey;
}

.black-text {
    color: black;
}

.spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination button {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: #f4f4f4;
    cursor: pointer;
}

.pagination button.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.small-table {
    width: auto; /* Adjust the width to fit content */
    margin: 0 auto; /* Center the table */
    border-collapse: collapse;
    table-layout: auto; /* Allow table to adjust based on content */
}

.small-table th, .small-table td {
    padding: 5px 10px;
    border: 1px solid #ddd;
    word-wrap: break-word; /* Ensure content wraps within cells */
}

.small-table th {
    text-align: left;
    background-color: #f4f4f4;
}

.small-table td {
    text-align: right;
}

.hex-data {
    text-align: left;
    white-space: pre-wrap; /* Ensure hex string wraps within the cell */
    word-wrap: break-word; /* Ensure long words are wrapped */
}

/* Example styles for the table */
.styled-table {
    width: 100%;
    border-collapse: collapse;
}
.styled-table thead tr {
    background-color:#007bff;
    color: #ffffff;
    text-align: left;
}
.styled-table th,
.styled-table td {
    padding: 12px 15px;
}
.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}
.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}
.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #007bff;
}
.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}
.styled-table td.address {
    text-align: left;
}
.styled-table td.balance {
    text-align: right;
}

.styled-table thead th {
    background-color: #f2f2f2;
    color: #333;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.styled-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.styled-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.styled-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Add this to your existing CSS file */
#page-input {
    width: 80px; /* Adjust the width as needed */
    text-align: center; /* Center the text inside the input */
}

/* Existing styles... */

/* When the screen width is enough, put search at the right of the menu */
@media (min-width: 1050px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #search-container {
        margin-top: 0;
    }
}

/* When the screen width is narrow, put search below the menu */
@media (max-width: 1050px) {
    nav {
        display: flex;
        flex-direction: column;
    }
    #search-container {
        display: flex;        
        margin-left: 12px;
        margin-top: 10px;
    }
}

/* When the screen width is narrow, stack the tables vertically */
@media (max-width: 768px) {
    #blocks-and-transactions {
        flex-direction: column; /* Stack the tables vertically */
    }

    #transactions-container {
        margin-top: 20px; /* Add spacing between the two tables */
    }
}

.address-type {
    display: inline-block;
    padding: 2px 5px;
    margin-left: 10px;
    border: 1px solid grey;
    border-radius: 5px;
    color: grey;
    background-color: #f0f0f0;
    font-size: small;
}
.hidden {
    display: none;
}

.label {
    color: grey;
}

.overview-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px 10px; /* Reduce space between rows and columns */
}

.overview-table td {
    padding: 5px; /* Reduce padding in table cells */
}

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    padding: 5px 10px;
    cursor: pointer;
    border: none;
    background-color: #f1f1f1;
    margin-right: 5px;
    transition: background-color 0.3s;
}

.tab-button.active {
    background-color: #007bff;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.balance-container {
    display: flex;
    align-items: center;
}
/* Add spacing between balance, tokens, and tokens(V2) */
.balance-container p span {
    margin-left: 10px;
    margin-right: 0px; /* Adjust the spacing as needed */
}

.balance-container select {
    margin-left: 0px; /* Add spacing between the label and dropdown */
}
.right-align {
    text-align: right;
}

.monospace {
    font-family: 'Roboto Mono', monospace; /* Use Roboto Mono for consistent width */
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.sub-row {
    background-color: #f9f9f9; /* Light background for sub-rows */
}