/* ========================================================================
   Variables
   ======================================================================== */

   :root {

    /* ===============================
        Text
        ============================== */
    
        /* Font Family */
        --font-family-main: "EkMukta-Light", Helvetica, sans-serif;
    
        /* Paragraph Size */
        --font-size-p: 20px;
    
        /* Font Weights */
        --font-weight-normal: 200;
        --font-weight-bold: 400;
        --font-weight-bolder: 600;
    
        /* Heading Sizes: Large */
        --h1-size-lg: 48px;
        --h2-size-lg: 40px;
        --h3-size-lg: 30px;
        --h4-size-lg: 27px;
        --h5-size-lg: 23px;
        
        /* Heading Sizes: Medium */
        --h1-size-md: 45px;
        --h2-size-md: 37px;
        --h3-size-md: 27px;
        --h4-size-md: 25px;
        
        /* Heading Sizes: Small */
        --h1-size-sm: 42px;
        --h2-size-sm: 34px;
        --h3-size-sm: 24px;
        --h4-size-sm: 21px;
    
        /* Heading Sizes: Very Small */
        --h1-size-sm: 39px;
        --h2-size-sm: 31px;
        --h3-size-sm: 21px;
    
        /* Line Height */
        --line-height-tight: 1.25;
        --line-height-normal: 1.5;
        --line-height-loose: 1.75;
    
    
    /* ===============================
        Colors
        ============================== */
    
        /* Brand Colors */
        --color-brand-orange: #FFA500;
        --color-brand-orange-light: #FFC04D;
        --color-brand-green: #8BB42D;
        --color-brand-green-light: #A2C359;
        --color-brand-blue: #0273BE;
        --color-brand-blue: #4E9DD2;
        --color-brand-fuscia: #E90555;
        --color-dark-gray: #333;
        --color-light-gray: ##DEDEDE;
        --color-app-bg: #F8F9FA;
    
        /* Heading Colors */
        --color-h2: #0273BE;
        --color-h3: #FFC04D;
        --color-h4: #8BB42D;
    
        
    /* ===============================
        Containers
        ============================== */
    
       /* Network */ 
        --network-height-lg: 800px;
        --network-height-med: 600px;
        --network-height-sm: 500px;
    
    }


/* ========================================================================
   Base Styles
   ======================================================================== */

body {
    font-family: 'Ek Mukta', sans-serif;
    color: #333;
    font-size: 0.9em;
    font-weight: 200;
    width: 100%;
    overflow-x: hidden;
}


/* ========================================================================
   Layout for App Containers
   ======================================================================== */

.container-fluid {
    margin: 0 auto;
    width: 100%;
    margin-top: 30px !important;
    position: relative;
    padding: 60px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.timeline-container {
    position: relative;
    background-color: #fff;
    padding: 30px;
    margin-top: -15px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.11);
    border: 1px solid rgba(221, 221, 221, 0.5);
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
    max-width: 100%; /* Ensure it doesn't exceed parent width */
}

.table-container {
    position: relative;
    background-color: #f8f9fa;
    padding: 30px !important;
    margin-top: -15px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.11);
    border: 1px solid rgba(221, 221, 221, 0.5);
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
    max-width: 100%; /* Ensure it doesn't exceed the parent width */
}

/* NEW */

/* Add this pseudo-element for proper spacing 
.table-container::after {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    position: sticky;
    right: 0;
    bottom: 0;
    pointer-events: none;
}
*/

/* Add this rule if the pseudo-element approach doesn't work */
.dataTables_scrollBody {
    padding-right: 30px !important;
}

.table-container .dataTables_scrollBody {
    padding-right: 30px !important;
}

/* END NEW */



/* Ensure the table maintains full width inside the scrollable container */
.table-container table {
    width: 100% !important;
    margin-bottom: 0; /* Remove bottom margin to prevent scrollbar issues */
}

/* NEW */

/* Ensure table stays within bounds and scrolls properly */
#eventsTable_wrapper {
    padding-right: 0; /* Remove any right padding in the wrapper */
    width: 100% !important; /* Ensure full width */
}

/* ========================================================================
   Header Styles
   ======================================================================== */

/* ========================================================================
   Header Styles
   ======================================================================== */

/* ===============================
    All Page Headers
   ============================== */
/* 
.site-header {
    background-color: #000;
    display: flex; 
    align-items: center;
    justify-content: space-between;
    height: auto; 
    min-height: 100px; 
    padding: 15px; 
}

.header-logo {
    margin: 0 !important;
    width: 100% !important;  
    max-width: 250px !important; 
    height: auto !important; 
} */


/* ===============================
    Index Page Specific Headers
   ============================== */

/* .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px;
    margin-bottom: 30px;
}

.header-title {
    margin: 0;
    font-size: 4em;
    font-weight: 200;
} */

h1, h2, h3, h4, h5, h6 {
    font-weight: 200;
    line-height: 1.2;
    margin: 1em 0 0.2em;
}

h1 {
    font-size: 2.5em;
}

h2 {
    color: #0273be;
    font-size: 40px;
    margin-bottom: 0.7em;
}

h3 {
    color: #ffa500;
    font-size: 1.8em;
}

h4 {
    color: #8bb42d;
    font-size: 1.4em;
}

h5 {
    font-size: 0.8em;
    color: #333;
}

.hidden {
    display: none !important;
}


/* ========================================================================
   Header Styles
   ======================================================================== */

/* ===============================
    All Pages
   ============================== */

   .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px;
    margin-bottom: 30px;
}

.header-title {
    margin: 0;
    font-size: 4em;
}

.site-header {
    background-color: #000;
    width: 100%;
    z-index: 999;
    padding: 15px;
}

.title-area {
    float: left;
    padding: 25px 0;
}

.header-logo {
    margin: 0 !important;
    width: 100% !important;  
    max-width: 250px !important; 
    height: auto !important; 
}


/* ===============================
    Index Page Only
   ============================== */

/* Specific adjustments for the index page with wrap-fluid */
.site-header .wrap-fluid {
    padding: 0 60px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Logo alignment on index page */
.site-header .wrap-fluid .title-area {
    padding-left: 0;
    margin-left: 0;
}

/* Keep the regular wrap class unchanged for other pages */
.site-header .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ========================================================================
   Navigation - Updated 3/22/35 to match other apps
   ======================================================================== */

.nav-primary {
    position: relative;
}

/* Primary navigation menu */
.nav-primary .menu {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    line-height: 1;
    float: right;
}

/* Menu item container */
.nav-primary .menu li {
    position: relative;
    margin: 0;
}

/* Menu link styling */
.nav-primary .menu a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 200;
    padding: 5px 0;
    transition: color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-bottom: 2px solid transparent;       
}

/* Menu link hover state */
.nav-primary .menu a:hover {
    color: #0273be;
    text-decoration: underline;
}

/* Menu item underline hover effect */
/* .nav-primary .menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    width: calc(100% + 20px);
    bottom: -38px;
    height: 3px;
    background-color: white;
    transform: translateX(-50%) scaleX(0); 
    transition: transform 0.2s ease-in-out;
} */

/* Show underline on hover */
/* .nav-primary .menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
} */



/* NEW - 3/22/25 */

/* Hamburger menu toggle button */
.menu-toggle {
    background: #000;
    color: #fff;
    border: none;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    text-transform: uppercase;
    display: none;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;

    /* NEW - 3/22 @ 5:03PM */
    position: relative;
    z-index: 1001; /* Higher than the menu */
}

.menu-toggle::before {
    content: "☰";
    margin-right: 10px;
}

/* Remove outline and border when clicked */
.menu-toggle:focus, 
.menu-toggle:active,
.menu-toggle.activated {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* END NEW */


/* ========================================================================
   Main Content - Updated 3/22/25 to match other apps
   ======================================================================== */

/* Custom content container */
.entry-content {
    max-width: 100%;
    margin: 0 auto;
    /* padding: 0 20px; */
}

/* Lists in entry content */
.entry-content ul {
    padding: 0;
    margin-left: 60px;
    margin-top: -15px;
}

/* List items in entry content */
.entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
    font-size: 18px;
}

/* Entry header and footer alignment */
.entry-header, .entry-footer {
    text-align: center;
}

/* Entry title styling */
.entry-title {
    font-size: 48px;
    font-weight: 200;
    margin-top: 55px;
}

/* Decorative line after entry header */
.entry-header::after {
    border-bottom: 1px solid #000;
    content: "";
    display: block;
    margin: 0 auto;
    padding-bottom: 30px;
    width: 25%;
}

/* Main content area */
.main-content {
    background: white;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 90px); 
}

.main-content p {
    font-size: 20px;
}

.main-content li {
    font-size: 18px;
}

/* Image credit text */
.image-credit {
    font-size: 14px;
    font-style: italic;
    margin-top: 2.5em;
}



/* ========================================================================
   Footer Styles - Updated 3/22/25 to match other apps
   ======================================================================== */

.footer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.footer::before {
    content: '';
    position: absolute;
    margin: 0 0 2rem 0; 
    top: 0;
    width: 225px;  
    height: 1px;
    background-color: #dee2e6;
}

.footer-nav {
    display: flex;
    justify-content: space-evenly;
    max-width: 800px;
    margin-top: 2em;
}

.footer-link {
    color: #666;
    font-size: 20px;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: #0273be;
}



/* ========================================================================
   Filter Styles
   ======================================================================== */

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.filter-section {
    background-color: #f8f9fa;
    padding: 30px;
    margin-bottom: 30px;
    margin-top: -1em;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.11);
    border: 1px solid rgba(221, 221, 221, 0.5);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-controls select,
.filter-controls input {
    font-family: 'ek mukta', sans-serif;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    margin: 0 10px;
    font-size: 1.2em;
    color: #333 !important;
}


/* ========================================================================
   Image Styles
   ======================================================================== */

/* Container for images */
.image-container {
    max-width: 100%;
    margin: 2em 0;
}

/* Images within container */
.image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Image credit text */
.image-credit {
    font-size: 14px;
    font-style: italic;
    margin-top: 2.5em;
    padding: 0;
}


/* ========================================================================
   Button Styles
   ======================================================================== */

.wrap .button,
.button {
    border-radius: 0.5em;
    height: 48px;
    padding: 10px 20px;
    color: #fff;
    background-color: #ffa500;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    box-shadow: 0.5px 0.5px 0.5px rgb(0, 0, 0, 0.3);
    margin-left: 1em;
}

.button:hover {
    background-color: #0273be;
    border: none;
}

.button:focus {
    outline: none;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}


/* ========================================================================
   Link Styles
   ======================================================================== */

.link-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.hire-me-link {
    text-decoration: none;
    color: #ffa500;
    font-size: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.hire-me-link:hover {
    color: #0273be;
    text-decoration: underline;
}

.chess-piece {
    font-size: 1.3em;
    margin-left: 0.3em;
}

.tools-link-no-padding {
    text-decoration: none;
    color: #ffa500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.tools-link-no-padding:hover {
    color: #0273be;
}


/* ========================================================================
   Table Styles
   ======================================================================== */

.dataTables_wrapper {
    width: 100%;
}

table.dataTable {
    width: 100% !important;
    min-width: 800px;
}

#eventsTable {
    width: 100% !important;
    font-size: 1.3em;
    border: 1px solid #ddd;
}

#eventsTable th {
    background-color: rgba(255, 165, 0, 0.7);
    color: #000;
    font-weight: 500;
    padding: 12px 8px;
}

#eventsTable td {
    padding: 10px 8px;
    line-height: 1.4;
    vertical-align: top;
}

#eventsTable td:nth-child(4) {
    text-align: center;
    vertical-align: top;
}

#eventsTable, 
.dataTables_wrapper .dataTables_scroll {
    margin-right: 0 !important;     /* Changed it from 30px to 0 */
}

/* Also apply to the internal wrapper that DataTables creates */
.dataTables_wrapper .dataTables_scrollBody {
    padding-right: 30px !important; /* Reset any padding */
}

.highlight {
    background-color: #ffa500;
    color: white;
    padding: 2px 4px;
    border-radius: 2px;
}

/* I think these are table styles - I moved them into this section 3/22/25 @ 6:57pm as part of my cleanup */

.row p {
    font-size: 20px;
}

.row li {
    font-size: 18px;
}

.row .button {
    margin: 0 auto !important;
}



/* ========================================================================
   Timeline Styles 
   ======================================================================== */

#timeline {
    width: 100%;
    min-height: 300px;
    min-width: 800px; /* Minimum width to ensure consistent layout */
    height: 50vh;
}

.timeline-event {
    padding: 8px;
    border-radius: 4px;
}

.event-title {
    font-weight: bold;
    color: #0273be;
    margin-bottom: 4px;
}

.vis-item {
    border-radius: 8px !important;
    border-color: #0273be9e !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

.vis-item .vis-item-content {
    padding: 10px !important;
}

.vis-item.vis-selected {
    border-color: #ffa500 !important;
    border-width: 1.5px !important;
}

.vis-item.vis-selected .vis-line {
    border-width: 1px !important;
    border-color: #ffa500 !important;
}

.vis-panel.vis-background.vis-vertical .vis-grid {
    border: none !important;
    border-right: 0.8px solid #e5e5e5 !important;
}

.vis-panel.vis-bottom,
.vis-time-axis {
    border-top: 0.2px solid #e5e5e5 !important;
}


/* ========================================================================
   Timeline Zoom Controls
   ======================================================================== */

.timeline-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: flex;
    gap: 10px;
}

/* Zoom buttons */
.timeline-controls button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #DEDEDE;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-controls button:hover {
    background-color: #e9ecef;
}

.timeline-controls button:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}


/* ========================================================================
   Resizer  - Updated 3/22/35 to match other apps
   ======================================================================== */

#resizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    cursor: row-resize;
    user-select: none;
    transition: background-color 0.2s ease, height 0.2s ease;
    border-top: 1px solid #e0e0e0;
}

#resizer::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 4px;
    background-image: radial-gradient(circle, #999 1px, transparent 1.5px);
    background-size: 8px 8px;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#resizer:hover {
    height: 10px;
    background-color: #e8e8e8;
}

#resizer:hover::before {
    opacity: 1;
}

#resizer:active {
    background-color: #e0e0e0;
    height: 12px;
}

#resizer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), transparent 100%);
}


/* ========================================================================
   Tooltip Styles
   ======================================================================== */

.info-icon {
    cursor: help;
    position: relative;
    display: inline-block;
    vertical-align: super;
    font-size: 0.6em;
    font-family: 'Ek Mukta', sans-serif;
    font-weight: 200;
    color: #8bb42d;
    padding: 2px 6px;
    border-radius: 50%;
}

.info-icon:hover {
    color: #025a93;
}

.info-icon[data-tooltip]:before {
    content: attr(data-tooltip);
    white-space: pre-wrap;
    position: absolute;
    top: -20px;
    left: 100%;
    transform: translate(5px, -5%);
    background: rgba(255, 165, 0, 0.9);
    color: #444;
    padding: 8px 12px;
    border-radius: 10px;
    width: max-content;
    max-width: 400px;
    font-size: 1em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 9999;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-icon[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}


/* ========================================================================
   Tag and Company Pill Styles
   ======================================================================== */

.company-pill,
.tag-pill {
    display: inline-block;
    background-color: rgba(2, 115, 190, 0.2);
    color: #0273be;
    padding: 4px 12px;
    border-radius: 16px;
    margin: 2px;
    font-size: 0.9em;
    border: 1px solid rgba(2, 115, 190, 0.3);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.company-pill:hover,
.company-pill:focus,
.tag-pill:hover,
.tag-pill:focus {
    background-color: rgba(2, 115, 190, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(2, 115, 190, 0.2);
}


/* ========================================================================
   Search Field Styles
   ======================================================================== */

.clearable-input {
    position: relative;
    height: 50px;
}

.clearable-input input {
    padding: 10px 30px 10px 10px;
}

.clear-input {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    visibility: hidden;
}

.clearable-input input:valid + .clear-input {
    visibility: visible;
}

.clear-input:hover {
    color: #666;
}


/* ========================================================================
   Small Screen Notice
   ======================================================================== */

.small-screen-notice {
    display: none;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
}


/* ========================================================================
   Wrap and Container Styles
   ======================================================================== */

.wrap-fluid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    overflow-x: visible;
}




/* ========================================================================
   Responsive Design
   ======================================================================== */

/* ===============================
    Headers on Med Devices (1023-2000px)
   ============================== */

/* @media only screen and (max-width: 2000px) and (min-width: 1023px) {
    h2 {
        font-size: 36px;
    }
} */

/* ===============================
    Large Devices (>1024px)  - Updated 3/22/35 to match other apps
   ============================== */

@media only screen and (min-width: 1024px) {

    /* REUSABLE */

    .site-header {
        padding: 0;
        height: 76px;
    }
    
    .site-header .wrap-fluid {
        padding: 0 60px;
        max-width: 100%;
        height: 76px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-header .wrap {
        height: 76px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-header .title-area {
        width: auto;
        padding: 8px 0;
        margin-left: 0;
    }
    
    .site-header .header-logo {
        height: 60px;
    }
    
    .site-header .nav-primary .menu {
        height: 76px;
        align-items: center;
        margin-right: 0;
    }

    .main-content .wrap {
        max-width: 1200px;
        margin: 0 auto;
        /* padding: 0 20px; */
    }
    
    .menu-toggle {
        display: none;
    }
    
    #watermark-overlay {
        display: block;
    }

}


/* ===============================
    Filters (1024px - 1200px)
   ============================== */

@media only screen and (max-width: 1200px) and (min-width: 1024px) {
/* Timeline app specific adjustments */
    .filter-controls {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    /* Make all filter inputs consistent width */
    .filter-controls select,
    .filter-controls .clearable-input,
    .filter-controls input {
        width: 100%;
        max-width: 400px;
        margin: 0;
    }
}


/* ===============================
    Medium Devices (801-1023px)  - Updated 3/22/35 to match other apps
   ============================== */

@media only screen and (max-width: 1023px) and (min-width: 801px) {

    /* REUSABLE */

    .container-fluid {
        padding: 40px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 30px;
    }

    .site-header .wrap,
    .site-header .wrap-fluid {
        display: block;
    }

    .menu-toggle {
        display: none !important;
    }
    
    .title-area {
        width: 100%;
        text-align: center;
        float: none;
        padding: 15px 0;
    }
    
    .header-logo {
        margin: 0 auto;
    }
    
    .nav-primary {
        width: 100%;
        display: block;
    }
    
    .nav-primary .menu {
        float: none;
        justify-content: center;
        margin: 0 auto;
    }

    .nav-primary .menu a {
        font-size: 16px;
    }

    .watermark {
        height: 25px;
        position: absolute; 
        bottom: 0;          
        left: 0; 
        margin: 1.3em 1em;          
    }


    /* APP SPECIFIC */

    .filter-section {
        padding: 25px 20px;
    }
    
    /* Global filters */
    .filter-controls {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

     /* Make all filter inputs consistent width */
    .filter-controls select,
    .filter-controls .clearable-input,
    .filter-controls input {
        width: 100%;
        max-width: 400px;
        margin: 0;
    }
    
    /* Style for the clear all filters button */
    .filter-controls .button {
        margin: 10px auto 0;
        min-width: 200px;
        max-width: 400px;
        width: 100%;
        display: block;
        text-align: center;
    }

    /* Fix clearable input alignment */
    .clearable-input {
        width: 100%;
        max-width: 400px;
    }

    /* Fix clear input (X) button position */
    .clear-input {
        right: 10px;
    }

    .table-container,
    .timeline-container 
    {
        padding: 15px; /* Reduce padding to maximize available space */
    }
    
    /* Ensure text doesn't overflow cells on smaller screens */
    #eventsTable td {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    #timeline {
        min-width: 800px;
    }
    
    /* Adjust the zoom controls position for scrollable container */
    .timeline-controls {
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 10;
    }
}


/* ===============================
    Small Devices (<800px)
   ============================== */

@media only screen and (max-width: 800px) {

    /* REUSABLE */

    .container-fluid {
        padding: 20px;
    }
    
    .header-logo {
        margin: 0 auto;
    }
    
    /* Center the logo */
    .title-area {
        width: 100%;
        text-align: center;
        float: none;
        padding: 15px 0;
    }




    /* NEW - 3/22/25 */

    /* Hamburger menu styles */

    /* Position nav-primary properly */
    .nav-primary {
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    /* Hide regular menu and show menu toggle */
    .nav-primary .menu {
        display: none;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Style menu */
    .nav-primary .menu.visible,
    .nav-primary.genesis-responsive-menu .menu {
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        background-color: black;
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        letter-spacing: 0.5px;

        /* NEW - 3/22 @ 5:03PM */
        z-index: 1000;
    } 

    .nav-primary .menu li {
        margin-bottom: -40px;
        text-align: center;
    }
    
    .nav-primary .menu a {
        color: white;
        padding: 15px;
        display: block;
        text-align: left;
    }
    
    /* Show menu toggle button */
    .menu-toggle {
        display: block;
        width: 100%;
        margin-bottom: 0;
    }

    .nav-primary {
        width: 100%;
        padding: 0;
        margin-top: 10px !important;
    }


    /* END NEW - 3/22/25 */




    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 25px;
    }

    .watermark {
        height: 25px;
        position: absolute; 
        bottom: 0;          
        left: 0; 
        margin: 1.3em 1em;          
    }

    /* APP SPECIFIC */

    #eventsTable,
    .dataTables_wrapper .dataTables_scroll {
        margin-right: 15px !important;
    }

    .table-container::after {
        width: 15px;
    }
    
    #timeline {
        min-width: 800px;
        height: 40vh;
    }

    .timeline-controls button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        -webkit-tap-highlight-color: transparent; /* Remove touch highlight */
    }
    
    /* Taller resizer for easier touch */
    #resizer {
        height: 20px;
    }

    /* Timeline app specific adjustments */
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls select,
    .filter-controls input {
        width: 100%;
        margin: 5px 0;
    }

    .timeline-controls button {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: bold;
        color: rgb(51, 51, 51);
        background-color: rgb(248, 249, 250);
        border: 1px solid rgb(222, 222, 222);
        border-radius: 8px;
        cursor: pointer;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
    }

    .link-container {
        margin-top: 10px;
        align-self: flex-start;
    }
    
    .button {
        margin-left: 0;
        margin-top: 10px;
        align-self: center;
    }
    
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Additional responsive styles for smaller screens */
@media only screen and (max-width: 600px) {
    .container-fluid {
        margin-left: 1em;
        margin-right: 1em;
        padding-left: 15px;
        padding-right: 15px;
        width: auto; /* Override width:100% to respect margins */
        box-sizing: border-box;
    }
    
    .timeline-container, 
    .table-container, 
    .filter-section {
        padding: 15px;
    }

    .filter-controls select,
    .filter-controls .clearable-input,
    .filter-controls input,
    .filter-controls .button {
        max-width: 100%; /* Full width on very small screens */
    }

    #eventsTable {
        font-size: 1em;
    }
}


@media only screen and (max-width: 500px) {

    /* REUSABLE */

    /* Card-like footer links for small screens */
    .footer-link {
        display: block;
        width: 120px;
        padding: 12px 10px;
        background-color: rgba(248, 249, 250, 0.9);
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: box-shadow 0.3s, transform 0.3s, color 0.3s;
        text-align: center;
        margin: 6px;
        font-size: 16px;
        color: #666;
    }

    .footer-link:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        transform: translateY(-3px);
        /* color: #0273be; */
        color: white;
        background-color: var(--color-brand-orange);
        text-decoration: none;
    }

    .footer {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 20px 20px;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Create 2 columns */
        gap: 15px; /* Even spacing between items */
        width: 100%;
        max-width: 300px;
        justify-items: center; /* Center items horizontally */
        align-items: center; /* Center items vertically */
    }


    /* APP SPECIFIC */
    
    .filter-section,
    .timeline-container, 
    .table-container {
        padding: 10px !important;
    }
 
    #eventsTable,
    .dataTables_wrapper .dataTables_scroll {
        margin-right: 10px !important;
    }

    .table-container::after {
        width: 10px;
    }
}


/* ========================================================================
   Diagnostic
   ======================================================================== */

/* Outline all elements with red border for weird margin issues */
/* * {
    outline: 1px solid red !important;
} */

