/* ========================================================================
   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-weight: 200;
    width: 100%;
    overflow-x: hidden;
    font-size: 1.2em !important;
}

/* body, html {
    padding-bottom: 2rem;
} */

p {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 30px;
    margin-top: 0px;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    line-height: 2.2;
}

h1 {
    font-size: 2.5em;
}

h2 {
    color: #0273be;
    font-size: 40px;
    /* margin: 2em 0 0.5em; */
}

h3 {
    color: #ffa500;
    font-size: 30px;
}

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

h5 {
    font-size: 1.1em;
    font-weight: 400;
    color: #222;
    margin-bottom: 0.2em;
}

.hidden {
    display: none;
}


/* ========================================================================
   Layout and Containers
   ======================================================================== */

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

/* Main fluid container */
.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;
}

/* NEW */
/* Fixed width container */
/* .wrap {
    max-width: 1200px;
    margin: 0 auto;
    
    padding: 0 20px;
} */

/* Container for non-index routes */
.non-index-route-container {
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    padding: 20px;
}


/* ========================================================================
   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
   ======================================================================== */

.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;
}


/* ========================================================================
   Main Content
   ======================================================================== */

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

    /* NEW - removing the padding from the child container and adding it to main-content to include divs below entry-content */
    /* 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-left: 1.7em; */
    margin-top: 2.5em;
}


/* ========================================================================
   Footer Styles
   ======================================================================== */

.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;
}


/* ========================================================================
   Logo Styles
   ======================================================================== */

.logo-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.logo-container img {
    width: 200px;
}

.header-logo {
    height: 60px;
}


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

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

.image-container-list {
    box-sizing: border-box;
    overflow: hidden; /* This prevents content from spilling out */
}

.main-content .image-container-list img {
    max-width: 100%;
    height: auto;
}

/* 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);
}




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

.tools-link {
    text-decoration: none;
    color: #ffa500;
    position: relative;
    top: 0.5em;
    transition: color 0.3s ease, transform 0.2s ease;
}

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

.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;
}

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

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

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

.chess-piece {
    display: inline-block;
    font-size: 1.3em;
    margin-left: 0.3em;
    position: relative;
    top: -0.1em;
}


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

.button {
    margin: 3em auto 0 !important;
    border-radius: 0.5em !important;
    display: block !important;
    width: fit-content !important;
    padding: 10px 20px !important;
    color: #fff !important;
    background-color: #ffa500 !important; 
    border: none !important;
    cursor: pointer !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease !important;
    box-shadow: 2px 2px 2px rgb(0, 0, 0, 0.3) !important;
}

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

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

.wrap .button {
    margin: 2.5em auto !important;
    border-radius: 0.5em !important;
    display: block !important;
    width: fit-content !important;
    padding: 10px 20px !important;
    color: #fff !important;
    background-color: #ffa500 !important; 
    border: none !important;
    cursor: pointer !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease !important;
    box-shadow: 2px 2px 2px rgb(0, 0, 0, 0.3) !important;
}


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


/* Add these specific styles for H2 tooltips */
.h2-tooltip .tooltip-header {
    background-color: rgba(139, 180, 45, 1);  /* Green header background */
    color: white;  /* White text for better contrast */
    position: relative;
    padding: 5px 15px;
    cursor: move;
    user-select: none;
    text-align: center;
    font-weight: 400;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.h2-tooltip .tooltip-header:before {
    content: "⋮⋮⋮";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: white;
}

.h2-tooltip .tooltip-body {
    background-color: rgba(162, 195, 89, 0.7);  /* Light green body background */
    padding: 10px 15px 15px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
    cursor: pointer !important;
}

/* Keep the existing custom-tooltip class for general tooltip styling */
.h2-tooltip.custom-tooltip {
    position: fixed;
    border-radius: 4px;
    color: #333;
    z-index: 10000;
    font-family: 'Ek Mukta', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    max-width: 400px;
    min-width: 100px;
    min-height: 50px;
    opacity: 1;
    transition: opacity 0.1s ease;
}



.vis-tooltip {
    position: absolute !important;
    width: calc(100vw - 80px);
    max-width: 300px;
    opacity: 1;
    background-color: rgba(255, 165, 0, 0.9);
    color: #333;
    font-size: 18px;
    padding: 8px;
    /* max-height: calc(100vh - 100px); */
    overflow: auto;
    z-index: 9000;
    cursor: grab;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: auto !important; /* Allow interaction */
}

.enhanced-tooltip {
    padding-top: 10px; /* Space for drag indicator */
    transition: none !important; /* Disable transitions to avoid lag */
}

.tooltip-drag-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
    text-align: center;
    line-height: 15px;
    font-size: 12px;
    color: #999;
    border-radius: 4px 4px 0 0;
    cursor: grab;
}

.vis-tooltip[style*="visibility: visible"] {
    display: block;
}

.info-icon {
    cursor: help !important;
    position: relative;
    display: inline-block;
    vertical-align: super;
    font-size: 0.5em;
    font-family: 'Ek Mukta', sans-serif;
    font-weight: 200;
    color: #8bb42d;
    padding: 2px;
    margin-left: 3px !important;
    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;
}

.info-tooltip .benchmark-name {
    background-color: rgba(139, 180, 45, 1) !important;  /* Green header background */
    color: white;                                       /* White text for better contrast */
}

.info-tooltip .benchmark-measures {
    background-color: rgba(162, 195, 89, 0.7) !important;  /* Light green body background */
}



/* ========================================================================
   Modal Styles
   ======================================================================== */

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px;
    border-radius: 10px;
    width: 1000px;  /* Fixed width instead of percentage */
    max-width: 1000px;
    max-height: 80vh;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.modal-content {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    border: 1px solid #F4F4F4;
    width: 100%;
    height: 100%;
    max-height: 80vh;
    overflow: auto;
    box-sizing: border-box;
}

.modal.d-block {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    border-bottom: 1px solid #ddd;
    background-color: #F4F4F4;
}
    
.modal-title {
    color: #0273be;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0;
    padding-left: 0.42em;
}

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal .close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 5px;
    outline: none !important;
    box-shadow: none !important;
    opacity: 1;
    margin-right: 0.002em;
}

.modal .close:hover {
    opacity: 0.75;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 25px;
    margin: 0;
    line-height: 1.2;
    color: #333;
}

.modal-body ul {
    margin: 1.2em 0;
    padding: 0 0 0 20px;
    line-height: 1.2;
}

.modal-body li {
    margin: 0 0 1.2em 0;
    line-height: 1.3;
    font-size: 18px;
}

.modal-body h4 {
    margin: 0;
}

.modal-body p {
    margin: 0 0 1.2em 0;
    line-height: 1.3;
    font-size: 18px;
}

/* Target p in benchmark descriptions and other areas */
.modal-body .col-md-3 p,
.modal-content .text-description {
    font-size: 18px !important;
    line-height: 1.3 !important;
}

.modal-footer {
    display: none;
}


/* ========================================================================
   Form Styles
   ======================================================================== */

#modelPickerForm {
    width: 100%;
    margin: 0 auto;
    background: #f8f9fa;
    font-size: 1.8rem;
    padding: 1.4rem;
    border: 1px solid rgba(221, 221, 221, 0.5);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    width: 100%;
    margin-bottom: 2rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}


/* ========================================================================
   Search and Filter Styles
   ======================================================================== */

.highlight {
    background-color: #ffa500 !important;
    color: white !important;
    padding: 0 1px !important;
    border-radius: 2px !important;
    display: inline !important;
    margin: 0 !important;
    font-weight: normal !important;
}

#network-search {
    width: 300px;
    height: 38px;
    padding-left: 7px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'ek mukta', sans-serif;
    font-weight: 200;
    font-size: 1em;
    margin: 0;
}

#network-search::placeholder {
    font-family: 'ek mukta', sans-serif;
    color: #333; 
    opacity: 1;
}

#clear-search {
    position: absolute;
    right: 0.6em;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    margin: 0;
    z-index: 5;
}

.clearable-input {
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.clearable-input input {
    padding-right: 30px;
    width: 300px;
}

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

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

.search-controls {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch label {
    font-family: 'Ek Mukta', sans-serif;
    font-size: 1.2em;
    color: #333;
    cursor: pointer;
    margin-bottom: 0;
    margin-right: -5px;
}

.toggle-switch .switch {
    position: relative;
    width: 50px;
    height: 28px;
    background-color: #e4e4e4;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch input:checked + .switch {
    background-color: #8bb42d;
}

.toggle-switch .slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .switch .slider {
    transform: translateX(22px);
}

.toggle-switch input {
    display: none;
}


/* ========================================================================
   Network Graph Container
   ======================================================================== */

.network-wrapper {
    position: relative;
}

.network-container {
    position: relative;
    width: 100%;
    height: var(--network-height-lg);
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    padding: 2rem;
    margin: 0 auto;
    border: 1px solid rgba(221, 221, 221, 0.5);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 2rem 2rem 0 2rem;       
}

#network-container {
    width: 100%;
    height: calc(100% - 3px);
    transition: height 0.2s ease;
    background-color: #f8f9fa;
}

.vis-network {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    font-size: 1em;
    line-height: 1.35em;
    margin-bottom: 0.8em;
}

.vis-network canvas {
    width: 100% !important;
    height: 100% !important;
    min-height: 200px;
    object-fit: contain;
}

.vis-network .vis-node {
    cursor: pointer !important;
}

canvas.vis-network-canvas:hover {
    cursor: pointer;
}

.vis-network .vis-node.selected {
    border-color: #ffa500 !important;
    border-width: 3px !important;
}

.vis-network .vis-label {
    cursor: pointer;
    font-family: 'Ek Mukta', sans-serif;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2px 4px;
    border-radius: 4px;
    color: #333333;
    text-align: center;
}


/* ========================================================================
   Loading Spinner
   ======================================================================== */

#spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}

#spinner-overlay.hidden {
    display: none;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #8bb42d;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ========================================================================
   Angle Slider 
   ======================================================================== */

/* Wrapper to control open/closed states */
.angle-slider-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

/* Main container */
.angle-slider-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative; /* Changed from absolute to relative */
    width: 250px;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Minimize icon */
.minimize-icon {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.2s;
}

.minimize-icon:hover {
    opacity: 1;
}

/* Tab that shows when slider is closed */
.angle-slider-tab {
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: transform 0.2s ease, opacity 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.angle-slider-tab:hover {
    transform: scale(1.05);
}

/* Fixed angle icon styles */
.angle-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
    stroke: #FFA500;
    fill: none;
}

.angle-slider-tab:hover .angle-icon {
    opacity: 1;
}

/* Open and closed states */
.angle-slider-wrapper.closed .angle-slider-container {
    transform: translateX(calc(100% + 1rem));
    opacity: 0;
    pointer-events: none;
}

.angle-slider-wrapper.closed .angle-slider-tab {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Label styles */
.angle-label {
    width: 100%;
    padding-top: 0.5rem;
    display: block;
    color: #a3a5a8;
    font-size: 1em;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 300;
}

/* Slider track */
.slider-track {
    position: relative;
    height: 4px;
    width: 100%;
    margin-bottom: 1.5em;
}

.zero-line {
    z-index: 0;
    position: absolute;
    left: 50%;
    height: 0.8em;
    top: 1px;
    width: 2px;
    background-color: #D1D4DC;
    transform: translateX(-50%);
}

.zero-line::after {
    z-index: 0;
    content: "0°"; 
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-32%);
    color: #D1D4DC;
    font-weight: 400;
}

/* Angle input */
.angle-input {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.angle-number {
    width: 3.5rem;
    padding: 0.25rem 0.5rem;
    text-align: left;
    border-radius: 0.25rem;
    margin-right: 0.25rem;
    font-size: 14px;
    color: #4b5563;
    background: #f9fafb;
}

/* Slider styles */
.angle-slider {
    z-index: 1;
    position: relative; 
    width: 100%;
    height: 4px;
    appearance: none;
    background: linear-gradient(to right, #ffa500 50%, #d1d5db 50%);
    border-radius: 2px;
    outline: none;
}

#angle-slider-mount {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 50;
}

/* Slider thumb styles */
.angle-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffa500;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.angle-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffa500;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ========================================================================
   Watermark
   ======================================================================== */

.watermark {
    height: 40px;
    position: absolute; 
    bottom: 0;          
    left: 0; 
    margin: 2em 1.4em;          
}


/* ========================================================================
   Resizer
   ======================================================================== */

#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%);
}


/* ========================================================================
   Error Message Styling
   ======================================================================== */

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================================================
   Responsive Styles
   ======================================================================== */

/* =============================================
    MODALS
    ============================================ */
  
/* ===============================
    2 Col Modals (600-1023px)
   ============================== */

/* Adjusted breakpoint for the two-column layout */
@media (min-width: 600px) and (max-width: 767px) {
    .modal {
        width: 90vw;
    }
    
    /* Reset flex properties that might be interfering */
    .modal-body .row {
        display: block !important;
        overflow: hidden !important; /* Contain floats */
    }
    
    /* Leaderboard (left-top) */
    .modal-body .col-md-3:first-child {
        width: 40% !important;
        float: left !important;
        margin-bottom: 20px !important;
    }
    
    /* Benchmarks (left-bottom) */
    .modal-body .col-md-3:last-child {
        width: 40% !important;
        float: left !important;
        clear: left !important;
    }
    
    /* Tips (right column) */
    .modal-body .col-md-6 {
        width: 60% !important;
        float: right !important;
    }
}

/* Handle the 768px-1023px range specifically */
@media (min-width: 768px) and (max-width: 1023px) {
    .modal {
        width: 90vw;
    }

    /* Force the row to use display: flex with proper wrapping */
    .modal-body .row {
        display: block !important;
        overflow: hidden !important; /* Contain floats */
    }
    
    /* Create two columns - one 40% left column and one 60% right column */
    .modal-body .col-md-3:first-child {
        width: 40% !important;
        max-width: 40% !important;
        float: left !important;
        margin-bottom: 20px !important;
    }
    
    .modal-body .col-md-6 {
        width: 60% !important;
        max-width: 60% !important;
        float: right !important;
        padding-left: 15px !important;
    }
    
    /* Force Benchmarks to be below Leaderboard in the left column */
    .modal-body .col-md-3:last-child {
        width: 40% !important;
        max-width: 40% !important;
        float: left !important;
        clear: left !important;
        margin-left: 0 !important;
    }
    
}
   
/* ===============================
    1 Col Modals (<600px)
   ============================== */

   @media (max-width: 599px) {
    .modal-body .row {
        display: flex;
        flex-direction: column;
    }
    
    /* Order: Leaderboard, Tips, Benchmarks */
    .modal-body .col-md-3:first-child {
        width: 100%;
        order: 1;
    }
    
    .modal-body .col-md-6 {
        width: 100%;
        order: 2;
    }
    
    .modal-body .col-md-3:last-child {
        width: 100%;
        order: 3;
    }

    .modal-body h4 {
        margin-bottom: -20px;
    }
}


/* =============================================
    Everything Else
    ============================================ */

/* ===============================
    Large Devices (>1024px)
    ============================== */

@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;
    }
}


/* ===============================
    Medium Devices (801-1023px)
   ============================== */

@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 */

    .toggle-switch label {
        font-size: 1em;
    }

    #network-search {
        width: 250px;
        font-size: 0.8em;
    }

    .network-container {
        position: relative;
        height: var(--network-height-med);
        width: 100%;
        border: 1px solid #ddd;
        background-color: #f8f9fa;
        margin: 0 auto;
        border: 1px solid rgba(221, 221, 221, 0.5);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        overflow: hidden;
        padding: 10px;      
    }

   
}


/* ===============================
    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;
        margin-top: 20px;
    }

    h3 {
        font-size: 25px;
        margin: 0 0 19px 0;
        line-height: 1.2;
    }

    #resizer {
        height: 20px;
    }

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


    /* APP SPECIFIC */

    .angle-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .angle-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    /* Form steps container */
    .form-steps {
        background: #f9f9f9;
        transition: opacity 0.3s ease;
        margin: 0 !important;
        padding: 1em 2em;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.11);
        border: 1px solid rgba(221, 221, 221, 0.5);
    }

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

    .footer-nav {
        margin-top: 20px;
        padding-top: 25px;
    }

    toggle-switch { 
        font-size: 18px;
    }

    /* Nudge the H2 up a bit to align */
    .d-flex h2 {
        margin-bottom: 15px; 
    }

    #modelPickerForm {
        margin-bottom: 20px;
    }

    #network-search {
        width: 150px;
        font-size: 0.8em;
    }

    .toggle-switch label {
        font-family: 'Ek Mukta', sans-serif;
        font-size: 18px;
        color: #333;
        cursor: pointer;
        margin-bottom: 0;
        margin-right: -5px;
    }
    
    .search-controls {
      align-self: flex-end;
      margin: 0 0 20px 0px;
    }

    .network-container {
        position: relative;
        width: 100%;
        height: var(--network-height-sm);
        border: 1px solid #ddd;
        background-color: #f8f9fa;
        margin: 0 auto;
        border: 1px solid rgba(221, 221, 221, 0.5);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        overflow: hidden;
        padding: 10px;       
    }

    .angle-slider-tab {
        padding: 0.7rem;
    }
    
    .angle-icon {
        width: 24px;
        height: 24px;
    }

    .slider-track {
        height: 15px;
    }

    .angle-slider {
        height: 8px;
        margin-top: 3px;
        margin-bottom: 3px;
        -webkit-tap-highlight-color: transparent;
    }

    .angle-slider::-webkit-slider-thumb {
        width: 26px !important;
        height: 26px !important;
    }
    
    .angle-slider::-moz-range-thumb {
        width: 26px !important;
        height: 26px !important;
    }
    
    .angle-slider-container .angle-slider {
        height: 4px; /* Scale down from 4px */
    }

    /* Adjust zero line to match the larger slider */
    .zero-line {
        height: 18px;
        width: 4px;
    }

    .modal {
        width: 90vw;
        max-width: 90vw;
    }

    .custom-tooltip {
        max-width: 75vw !important;
        min-width: 200px !important;
        font-size: 14px !important;
        cursor: pointer !important;
    }

    /* Static content - center images in bullets */
    .main-content .image-container-list {
        width: 90% !important;
        max-width: 90% !important;
        margin: 1em auto; /* Center it on small screens */
    }
}

/* ===============================
    Very Small Devices (<500px)
   ============================== */

@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 */
    }







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

    
    
    /* APP SPECIFIC */

    .network-wrapper {
        margin-bottom: 20px;        /* Add space below graph */
    }
    
    /* Target the flex container */
    .d-flex.justify-content-between.align-items-baseline {
        flex-direction: column;
        align-items: center;
    }
    
    /* Target the search controls container */
    .search-controls {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin: 20px 0 0 0;
    }

    .container-fluid h2 {
        text-align: left;
        /* margin: 0 auto; */
    }
    
    /* Change the order of the search input */
    .clearable-input {
        order: 0; /* Lower number appears earlier */
    }
    
    .network-wrapper {
        margin-top: 20px;
    }

    #network-search {
        width: 150px;
        /* min-width: 250px; */
        font-size: 0.8em;
    }

    .search-controls {
        margin: 0;
        width: 100%;
    }

    .toggle-switch {
        order: 0;
        width: auto;
        min-width: unset;
        height: auto;
    }

    .toggle-switch label {
        font-size: 14px;
    }
}


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

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