/* General Reset */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

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

.header h1 {
    flex-grow: 1;
    text-align: center;
    margin: 0;
}

/* Asset Details Container */
.asset-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    padding: 20px;
    width: calc(100% - 40px);
    max-width: 800px;
    box-sizing: border-box;
}

/* Asset Header Styling */
.asset-header {
    background-color: #eaeaea;
    padding: 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Asset Information Styling */
.asset-info {
    padding: 20px;
}

.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: 14px;
}

/* Chart Container Styling */
.chart-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    padding: 20px;
    width: calc(100% - 40px);
    max-width: 800px;
    box-sizing: border-box;
    height: 400px; /* Fixed height to limit container expansion */
    overflow: hidden; /* Prevents content from overflowing */
}

#assetChart {
    width: 100%;
    height: 450px; /* Adjust chart height to fit within the container */
}
/* Price and Percentage Change Styling */
.price-container {
    text-align: center;
    margin-bottom: 20px;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
}

.percentage-change {
    font-size: 18px;
    color: #4caf50; /* Or red if the value is negative */
}

/* Timeframe Buttons Styling */
.timeframe-buttons {
    text-align: center;
    margin-top: 20px;
}

.timeframe-buttons button {
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    margin-right: 5px;
    font-size: 16px;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .chart-container,
    .asset-container {
        width: calc(100% - 20px);
    }
    #assetChart {
        height: 350px; /* Adjusted height for smaller screens */
    }
}

.positive-change {
    color: green; /* Color for positive percentage change */
}

.negative-change {
    color: red; /* Color for negative percentage change */
}

/* ... other styles ... */