/* style.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    max-width: 100%;
    overflow-x: hidden;
}

.header {
    background-color: #003366;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    color: white;
    font-size: 24px;
}

/* Toggle switch for Dark Mode */
.toggle-switch {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.toggle-switch .sun-moon {
    font-size: 24px;
    margin-right: 5px;
}

/* Navigation Menu */
.nav-menu {
    background-color: #f8f8f8;
    overflow: hidden;
    text-align: left;
    padding-bottom: 10px;
    display: none; /* Hide by default */
    position: absolute;
    top: 0;
    left: -250px; /* Start off-screen */
    width: 250px; /* Adjust width to desired size */
    height: 100%;
    z-index: 999;
    transition: 0.5s;
}



.nav-menu.responsive {
    display: block;
    left: 0; /* Slide in to view */
}

.nav-menu a {
    padding: 10px;
    text-decoration: none;
    color: #333;
    display: block; /* Ensure menu items stack vertically */
    margin: 0 5px;
}


/* Hamburger icon */
.nav-icon {
    display: block; /* Always display */
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 1000;
}

.nav-icon div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
}

/* Responsive adjustments for desktop */
.nav-menu.responsive {
    
 display: block;
    position: absolute;
    width: 45%;
    height: 80vh;
    top: 50px; /* Adjust this value to the height of your header */
    left: 0;
    z-index: 999;
    background-color: #003366;
    transition: top 0.5s;
}

.nav-menu a {
    color: #FFFFFF; /* White text color */
}

.nav-menu a:hover {
    color: #ADD8E6; /* Light gray color for hover state */
}

.nav-icon.open .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-icon.open .bar2 {
    opacity: 0;
}

.nav-icon.open .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

table {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

th, td {
    padding: 5px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
}

th {
    background-color: #f2f2f2;
    color: #333;
    font-size: 12px;
}

td img {
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.asset-container {
    max-width: 100%;
    margin: 20px 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.asset-header {
    padding: 20px;
    background-color: #eaeaea;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-align: center;
}

.asset-header h1 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.asset-header p {
    margin: 10px 0 0;
    color: #666;
}

.asset-info {
    padding: 20px;
    max-width: 100%;
    word-wrap: break-word;
}

.asset-info img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.asset-info p {
    margin: 5px 0;
    line-height: 1.4;
    font-size: 12px;
}

.asset-info p strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.issuer-address {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}

.issuer-address:hover {
    color: #0056b3;
}
.search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#searchInput {
    padding: 8px;
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 5px;
}

#searchButton {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

/* Define the styles for positive percentage change */
.positive-change {
    color: green; /* Green color for positive change */
}

/* Define the styles for negative percentage change */
.negative-change {
    color: red; /* Red color for negative change */
}

/* Default styles (light mode) */
.asset-container {
    color: white;
    /* other styles */
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    .asset-container {
        color: black;
        /* other dark mode styles */
    }
}
/* Light Mode Styles */

.wallet-card {
    background: #fff; /* White background for cards in light mode */
    color: #333; /* Dark text for readability in light mode */
    /* Other necessary styles */
}

.wallet-card .wallet-info h3, 
.wallet-card .wallet-info p {
    color: #333; /* Dark text for titles and descriptions in light mode */
}

/* style.css */

.asset-container {
    background-color: #ffffff; /* Light background for the asset container */
    color: #000000; /* Dark text color for light mode */
}

.asset-container .asset-header h1,
.asset-container .asset-header p,
.asset-container .asset-body .asset-info p,
.asset-container .asset-body .asset-info .issuer-address {
    color: #000000; /* Dark text color for all text within the asset container */
}

.asset-container .asset-body .asset-info button {
    background-color: #e7e7e7; /* Light background for buttons */
    color: #000000; /* Dark text color for buttons */
    border: 1px solid #ccc; /* Border color for buttons */
}

/* If you have links or other elements, style them for light mode here */
.asset-container a {
    color: #0066cc; /* Standard blue color for links */
}

/* Additional light mode styles as needed */


.article-description 
@media (prefers-color-scheme: dark) {
    color: black; /* Black text color */
    /* other styles */
}

.watch-icon {
    cursor: pointer;
    color: grey; /* Default color */
}

.watch-icon.watched {
    color: gold; /* Color when watched */
}

.responsive-table {
    width: 100%;
    max-width: 100%;
    margin: auto;
    overflow-x: auto; /* Allows table to scroll horizontally if needed */
}

.responsive-table th, .responsive-table td {
    word-break: break-word; /* Ensures text breaks to prevent overflow */
}