
body {
    #background: #447;
    #color: #bbd;
    #position: relative;
    #font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    font-size: 14px;
}
a:link {
    text-decoration: none;
}
.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.page-content {
    flex: 1;
}


.top-header {
    #position: fixed;
    top: 0;
    width: 100%;
    height: 58px;
    #background: rgba(255, 255, 255, 0.92); /* slightly shaded */
    background: rgba(240, 240, 240, 0.95);
    backdrop-filter: blur(10px); /* glassy effect */
    border-bottom: 1px solid #eee;
    margin: 0px 0px 5px 0px;
    #z-index: 999;
}

.header-content {
    #max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.header-title {
    padding-left: 20px;
    font-size: 24px;
    font-weight: 600;
}
.top-intro {
    #border: 1px solid black;
    margin-left: auto;
    padding: 0px 30px 0px 0px;
}

/* Position container in top-right */
.menu-container {
    position: relative;
    top: 0;
    right: 0;
}

.menu-container.active .menu-dropdown {
    display: block;
}

/* Airbnb-like menu button */
.menu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #ddd;
    padding: 8px 14px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.menu-button:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.menu-icon {
    font-size: 26px;
}

/* Dropdown floating island */
.menu-dropdown {
    position: absolute;
    top: 52px;
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 10px 0;
    width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid #eee;

    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-dropdown a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: black;
    font-size: 15px;
}

.menu-dropdown a:hover {
    background: #f7f7f7;
}

.sub-menu {
    display: none; /* Hide sub-menu initially */
    background-color: #f9f9f9;
    border-left: 1px solid #ddd;
    padding-left: 10px;
}

.sub-menu a {
    padding: 8px;
    margin-left: 20px;  /* Indent the sub-menu items */
    text-decoration: none; /* Remove underline from links */
    color: #333;
}

/* When the "open" class is added, show the sub-menu */
.sub-menu.open {
    display: block;
}

.holderouter {
    #display:inline-block;
    display: flex;
    #flex-direction: column;
    align-items: flex-start;
    gap: 60px;
    #border: 1px solid #000;
    padding: 10px 1px 1px 1px;
}

.divdividendouter {
    align-items: flex-start;
    gap: 10px;
    #border: 1px solid #000;
}
.divdividend {
    flex:1;
    flex-grow: 0;
    #border: 1px solid #000;
}
.tbdividends {
    border-collapse: collapse;
    min-width:700px;
    max-width:700px;
}
.thdividends {
    background: #eeeeee;
    border-top: 1px solid #ccc;
    border-right: 0px solid #ccc;
    border-left: 0px solid #ccc;
    padding: 3px 3px 3px 3px;
    text-align:center;
}
.thdividendssel {
    background: #cccccc;
    border-top: 1px solid #ccc;
    border-right: 0px solid #ccc;
    border-left: 0px solid #ccc;
    padding: 3px 3px 3px 3px;
    text-align:center;
}
.tbdividends tr {
    border-bottom: 1px solid #ccc;
}
.tbdividends td {
    border-right: 1px solid #fff;
    border-left: 0px solid #ccc;
    padding: 3px 3px 3px 3px;
    min-width:60px;
    text-align:left;
    font-size: 14px;
}

.divalerts {
    #flex:1;
    #flex-grow: 0;
    #border: 1px solid #000;
}
.tbalerts {
    border-collapse: collapse;
    min-width:300px;
    max-width:600px;
}
.tbalerts tr {
    border-bottom: 1px solid #ccc;
}
.tbalerts td {
    border-right: 0px solid #ccc;
    border-left: 0px solid #ccc;
    padding: 3px 3px 3px 3px;
    min-width:60px;
    text-align:left;
    font-size: 14px;
}
.help-body {
    margin-left: 10px;
}
.hidden {
    display: none;
}
.clickable {
    color: #0066cc;
    cursor: pointer;
    #text-decoration: underline;
    #font-weight: bold;
    margin: 0px 20px 0px 20px;
    vertical-align: bottom;
}

.clickable:hover {
    color: #0052a3;
}

.pvf-bar-container {
    width: 80px;
    height: 14px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}
.pvf-shaded-bar {
    height: 100%;
    #background: linear-gradient(to right, #4CAF50, #8BC34A);
    #background: linear-gradient(to right, #2196F3, #64B5F6);
    background: linear-gradient(to right, #FF9800, #FFC107);
    border-radius: 5px;
}
.vwp-shaded-bar {
    height: 100%;
    #background: linear-gradient(to right, #4CAF50, #8BC34A);
    background: linear-gradient(to right, #2196F3, #64B5F6);
    #background: linear-gradient(to right, #FF9800, #FFC107);
    border-radius: 5px;
}
.slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
}
.sliders-container {
    display: flex;
    justify-content: left;
    gap: 20px;
    width: 100%;
    height:40px;
    margin-left: 5px;
    max-width: 700px;
}
.horizontal-elements {
    display: flex;
    align-items: center;
    #justify-content: space-between;
    #width: 100%;
}
.slider {
    width: 100%;
    cursor: pointer;
}
.footer {
    display:inline-block; vertical-align: center; horiz-align: right;
    top: 3;
    right: 9;
    font-size: 14px;
}
.site-footer {
    background: #f1f1f1;          /* slightly darker than header */
    border-top: 1px solid #ddd;
    padding: 20px 0;
    #margin-top: 20px;
    font-size: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    flex-direction: column;   /* stack items vertically */
    align-items: center;      /* center horizontally */
    justify-content: center;
    text-align: center;       /* center text */
    gap: 10px;                /* spacing between lines */
}

.footer-links {
    #margin-bottom: 0.75rem;
}

.footer-link {
    #color: #cbd5e1;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #22c55e; /* green hover */
}



.footer-right a {
    margin-left: 20px;
    text-decoration: none;
    color: #444;
}

.footer-right a:hover {
    text-decoration: underline;
}

@media all and (max-width:800px) {
    .holderouter {
        flex-direction: column;
    }
    .tbdividends {
        min-width: 400px;
    }
    .slider-wrapper {
        width: 200px;
    }
    .sliders-container {
        max-width: 500px;
    }
    .top-intro {
        paddin-right: 0px 5px 0px 0px;
    }
    .header-title {
        padding-left: 5px;
    }
}