body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Special Elite', monospace;
    background: url('/images/mainBackground.png') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px; /* Adjust based on header height */
    padding-bottom: 80px; /* Ensure space above footer */
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 200px;
    background-color: #333;
    padding: 20px;
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
}

.sidebar h2 {
    margin-top: 0;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-content {
    flex: 1;
    padding: 20px;
}

.side-section {
    width: 300px;
    padding: 20px;
}

.section-background {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

h1, h2, h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.network-tab {
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.contract-details, .account-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.contract-details div, .account-details div {
    text-align: center;
}

.contract-details p:first-child, .account-details p:first-child {
    font-weight: bold;
}

/* Shadowed box for each info section */
.info-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

#token-usd-value {
    font-size: 0.9em; /* Slightly smaller than other text */
    color: #FFD700; /* Gold color for USD to stand out */
    margin-top: 2px; /* Tight spacing */
}

.info-box:hover {
    transform: translateY(-2px);
}

.account-details .account-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.exchange-service {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.exchange-service h3 {
    margin-top: 0;
}

.exchange-section {
    margin-bottom: 20px;
}

.exchange-section .currency-img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.exchange-section h3 {
    display: inline;
    margin-left: 10px;
}

.exchange-section .purple-box {
    margin-top: 10px;
}

.exchange-section .purple-box input {
    width: 90%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: background-color 0.3s;
}

.exchange-section .purple-box input:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.exchange-section .exchange-button {
    text-align: center;
    margin-top: 10px;
}

.section-divider {
    border: none; /* Remove default HR border */
    height: 2px; /* Thicker line */
    background: linear-gradient(to right, #4CAF50, #2196F3); /* Gradient from green to blue */
    margin: 15px 0; /* Spacing above and below */
    opacity: 0.8; /* Slightly translucent for subtlety */
    border-radius: 2px; /* Subtle rounding */
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .section-divider {
        height: 1.5px; /* Slightly thinner on tablets */
        margin: 10px 0; /* Reduced spacing */
    }
}

@media screen and (max-width: 480px) {
    .section-divider {
        height: 1px; /* Thinnest on mobile */
        margin: 8px 0; /* Minimal spacing */
    }
}

/* Unified button styles */
.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    min-width: 120px;
    text-align: center;
}

.action-btn:hover {
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Specific button colors */
.buy-btn, .withdraw-btn, .compound-btn, .referral-btn {
    background-color: #4CAF50; /* Green, matching Buy */
}

.buy-btn:hover, .withdraw-btn:hover, .compound-btn:hover, .referral-btn:hover {
    background-color: #45a049;
}



.sell-btn {
    background-color: #eb4d4b; /* Red, matching Sell */
}

.sell-btn:hover {
    background-color: #d43f3d;
}



/* Responsive Design */

/* Up to 1200px */
@media screen and (max-width: 1200px) {
    .container {
        flex-direction: column;
        padding-bottom: 100px; /* Extra padding for footer on smaller screens */
    }
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    .main-content, .side-section {
        width: 100%;
        padding: 15px;
    }
}

/* Up to 768px (Tablet) */
@media screen and (max-width: 768px) {
    body, html {
        background-attachment: fixed;
    }
    .container {
        padding: 10px;
        padding-top: 60px;
        padding-bottom: 120px; /* More padding for footer visibility */
        max-width: 100%;
    }
    .contract-details, .account-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .main-content, .side-section {
        padding: 10px;
    }
    .exchange-section .purple-box input {
        font-size: 14px;
        padding: 8px;
        
    }
    .action-btn {
        font-size: 14px;
        min-width: 100px;
        padding: 10px 15px;
    }
    .info-box {
        padding: 10px;
    }
}

/* Up to 480px (Mobile) */
@media screen and (max-width: 480px) {
    .container {
        padding: 5px;
        padding-top: 50px;
        padding-bottom: 150px; /* Ensure footer doesn't overlap content */
        text-align: center;
    }
    .contract-details, .account-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .account-details .account-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .exchange-section .purple-box input {
        font-size: 12px;
        padding: 6px;
    }
    .action-btn {
        font-size: 12px;
        min-width: 90px;
        padding: 8px 12px;
    }
    .exchange-section .currency-img {
        width: 15px;
        height: 15px;
    }
    .info-box {
        padding: 8px;
    }
    .section-background {
        padding: 15px;
    }
    h1, h2, h3 {
        font-size: 1.2em;
        margin-top: 15px;
        margin-bottom: 10px;
    }
}

/* Animation for updates */
@keyframes updateAnimation {
    0% {
        background-color: rgba(76, 175, 80, 0.5);
    }
    100% {
        background-color: transparent;
    }
}

.update-animation {
    animation: updateAnimation 2s ease-out;
}