:root {
    --brand-primary: var(--affm);
    --brand-primary-hover: var(--signal);
    --brand-primary-darken: var(--affm-darken);
    --brand-secondary: #fff;
    --mud-typography-body1-size: 15px;
    --mud-drawer-width: 100%;
    --mud-default-borderradius: 4px !important;
    --mud-palette-primary-hover: var(--affm) !important;
    --mud-palette-primary: var(--brand-primary) !important;
    --mud-palette-primary-darken: var(--brand-primary-darken) !important;
    --mud-palette-secondary: var(--brand-secondary) !important;
    --mud-typography-button-text-transform: capitalize !important;
    --mud-typography-button-weight: 700 !important;
    --mud-typography-button-size: .9375rem !important;
    --mud-palette-dark: rgba(66, 66, 66, 1);
    --mud-palette-dark-rgb: 66, 66, 66;
    --mud-palette-dark-text: rgba(255, 255, 255, 1);
    --mud-palette-dark-darken: rgb(46, 46, 46);
    --mud-palette-dark-lighten: rgb(87, 87, 87);
    --mud-palette-dark-hover: rgba(66, 66, 66, 0.058823529411764705);
    --mud-palette-text-primary: rgba(66, 66, 66, 1);
    --mud-palette-text-secondary: rgba(0, 0, 0, 0.5372549019607843);
    --mud-palette-text-disabled: rgba(0, 0, 0, 0.3764705882352941);
    --mud-palette-action-default: rgba(0, 0, 0, 0.5372549019607843);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
 /*   overflow-x: hidden; //breaks go to Top  */
}

body {
    display: flex;
    flex-direction: column;
    color: rgba(0, 0, 0, 0.87);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.714;
    font-family: var(--sans);
    background-color: #eeeeee !important;
   
}

.mud-popover {
    position: absolute;
    z-index: 1400;
}

/* These classes fix the portal rendering of tooltips and popovers */
.mud-popover-provider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500; 
}

.mud-layout {
    display: flex;
    flex-direction: column;
/*    min-height: 100vh;*/
    width: 100%;
}

main {
    flex: 1 0 auto; /* Changed from flex-grow:1 to flex: 1 0 auto for better support */
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Fix for pages with minimal content */
.page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Fix for MudContainer to participate in flex layout */
.mud-container {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    width: 100%;
}

/* Fix specifically for nested containers in strategies page */
.strategies-tabs .mud-container {
    flex: 0 0 auto;
}

/* Prevent unnecessary height on tab panels */
.mud-tabs-panels {
    flex: 1 0 auto;
}

.table-panel {
    flex: 1 0 auto;
}

/* Ensure footer stays at bottom */
.mud-layout-footer {
    flex-shrink: 0;
    margin-top: auto;
}

body .mud-typography-body1 {
    font-size: 15px;
}

.mud-button {
    padding: 8px 22px !important;
    box-shadow: none !important;
}

.mud-table-root .mud-table-head .mud-table-cell {
    background-color: var(--affm) !important; /* #343434 !important;*/
    height: 40px;
    outline: 0 !important;
    color: white !important;
    line-height: 1.5rem;
    font-family: var(--sans);
    display: table-cell;
    vertical-align: inherit;
    text-align: left;
    padding: 6px 16px;
    color: rgba(0, 0, 0, 0.87);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
}

.chart-container {
    overflow: hidden;
    border: 1px solid var(--brand-primary);
    padding: 30px;
    display: flex;
    align-items: center;
}

.disclaimer {
    font-size: 14px;
    background-color: #f8f8f8;
    padding: 5px 15px;
    border-radius: 4px;
    margin-right: 20px;
}

/* Fund Data Section */
.fund-data {
    padding: 80px 20px;
}

    .fund-data h2 {
        text-align: center;
        font-size: 2rem;
        color: #333;
        margin-bottom: 40px;
        position: relative;
        padding-bottom: 15px;
    }

        .fund-data h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background-color: var(--signal);
        }

.data-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-button {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

    .tab-button:hover {
        background-color: #e0e0e0;
    }

    .tab-button.active {
        background-color: var(--signal);
        color: #fff;
    }

.tab-content {
    display: none;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .tab-content.active {
        display: block;
    }

.chart-container {
    max-width: 100%;
    overflow-x: auto;
}

    .chart-container img {
        max-width: 100%;
    }

/* SEO-friendly Media Queries for site-wide responsive design */
@media only screen and (min-width: 1200px) {
    body {
        font-size: 16px;
    }
}

@media only screen and (max-width: 1199px) {
    body {
        font-size: 15px;
    }
}

@media only screen and (max-width: 900px) {
    body {
        font-size: 14px;
    }
}

@media only screen and (max-width: 600px) {
    body {
        font-size: 13px;
    }
}

@media only screen and (max-width: 480px) {
    body {
        font-size: 12px;
    }
}

