﻿.no_style {
    background-color: transparent !important;
}

    .no_style tr {
        background-color: transparent !important;
    }

    .no_style td {
        background-color: transparent;
    }

html {
    scroll-behavior: smooth;
}

body {
    font-size: 14pt;
    font-family: 'Inter', sans-serif;
    color: black;
    /*background-color: #f4e6c4;*/
    /*background-image: linear-gradient(to bottom right, #f4e6c4, #aaa189);*/
    background-image: url("/Pictures/ohio_background_opaque.png");
    background-repeat: repeat;
    background-size: auto;
    background-position: 0 0;
    margin: 0;
}

h2 {
    font-family: Montserrat;
    border-bottom: 2px solid #b8860b;
}

p {
    line-height: 1.6; /* Gives the text room to breathe */
    margin-top: 0;
    margin-bottom: 1.2rem; /* Consistent spacing between paragraphs */
    /*max-width: 75ch;*/ /* Limits width to ~75 characters for optimal reading speed */
    color: #333333; /* Slightly softer than pure black to reduce eye strain */
}

ul, ol {
    line-height: 1.6; /* Matches the paragraph line height */
    margin-top: 0;
    margin-bottom: 1.2rem; /* Matches the paragraph bottom spacing */
    /*max-width: 75ch;*/ /* Keeps lists constrained for optimal reading */
    color: #333333; /* Matches the softer paragraph text color */
    padding-left: 2rem; /* Ensures bullets/numbers indent cleanly */
}

li {
    /*margin-bottom: 0.5rem;*/ /* Gives each list item a little breathing room */
}

    /* Prevents nested lists from adding too much extra empty space below them */
    li ul, li ol {
        margin-top: 0.5rem;
        margin-bottom: 0;
    }

a:not(.no_style) {
    color: #3366cc;
    font-style: normal;
    text-decoration: none;
}

    a:not(.no_style):hover {
        text-decoration: underline;
        transition: .3s linear;
    }

#page_container {
    /*    border-left: 3px solid #000000;
    border-right: 3px solid #000000;
    border-bottom: 3px solid #000000;*/
    margin: 0 auto;
    width: 100%;
    min-width: 320px;
    max-width: 1500px;

    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    background-color: white;
}

#Header {
    background-color: white;
}

#Logo {
    background-image: url("/Pictures/banner2.png");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 auto;
    max-width: 100%;
    height: 0;

    padding-bottom: 16.66%;
}

#Navbar {
    font-size: 14pt;
    color: white;
    background-color: #083e6a;
    border-bottom: 3px solid #b9953d;
    padding: 0 5px;
    z-index: 1000;
    transition: .3s;
    height: 55px;
}

    #Navbar a {
        color: white;
        text-decoration: none;
        line-height: 55px;
        padding: 0 10px;
        transition: .3s;
    }

        #Navbar a:hover {
            color: #C79E34;
            cursor: pointer;
        }

/* collapsed state hides the links (mobile) */
#Navbar.collapsed a {
    display: none;
}

/* expanded state shows links stacked for mobile */
#Navbar.expanded a {
    display: block;
    line-height: 40px;
    padding: 8px 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: left;
    background-color: #083e6a;
}

    /* Ensure Home link when expanded remains easily tapped */
    #Navbar.expanded a#Home {
        border-top: none;
        font-weight: 700;
    }

/* Mobile toggle button (hidden by default) */
#nav_toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.6rem;
    padding: 8px 10px;
    cursor: pointer;
    position: absolute;
    left: 8px;
    top: 10px;
}

#content_container {
    display: flex;
    background-color: white;
/*    opacity: .98;*/
}

#page_nav_container {
    margin-left: 25px;
    flex: 15%;
}

#page_nav {
    list-style-type: none;
    padding: 0px;
    margin-top: 5px;
}

    #page_nav li {
        margin-bottom: 5px;
    }

#selected_rep_cotainer {
    /*margin-left: 25px;*/
}

#Content {
    padding: 8px;
    flex: 90%;
    background-color: rgba(248, 248, 248, 0.95);
    border-left: 1px solid #d6d6d6;
    /*    border-left: 1px solid #7f7f7f;*/
    /*    opacity: 0.9;*/
}

.hidden_column {
    display: none;
}

.data_container {
    /*border: 1px solid black;*/
    padding: 10px;
    margin: auto;
/*    max-height: 600px;*/
}

.filter_container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: solid 1px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0px auto 20px auto;

}

.filter_item {
    flex: 1;
    min-width: 200px;
}

    .filter_item span {
        margin-bottom: 5px;
        font-size: 12pt;
/*        color: #555;*/
    }

.filter_item select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    outline: none;
    width: 100%;
}

.filter_search_container {
    display: flex;
    border: 2px solid #002b54;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;
}

.search_box {
    flex-grow: 1;
    border: none;
    padding: 12px 15px;
}
    .search_button {
        /*    background: #ddd;
    vertical-align: middle;*/
        height: 24px;
        width: 24px;
        cursor: pointer;
        margin-left: 10px;
        transition: transform 0.2s;
    }

    .search_button:hover {
        transform: scale(1.1);
    }

.data_body {
    /*    margin-top: 25px;*/
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /*    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));*/
/*    gap: 16px;*/
    gap: 24px;
/*    align-items: start;*/
    align-items: stretch;
    width: 100%;
    padding: 10px 0;
}

.data_body>tbody>tr>td {
/*    text-align: center;*/
    padding-left: 40px;
}

.splt_data_list {
    width: 100%;
    table-layout: fixed;
}
    
    .splt_data_list td {
        width: 50%;
    }

.data_detail {
    /*    margin: 0;
    padding: 15px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);*/
    max-width: 500px;
    /*width: 100%;
    text-align: left;
    background-color: #fbfbfb;
    box-sizing: border-box;*/

    display: flex;
    flex-direction: column; /* Stacks inner content vertically */
    margin: 0;
    padding: 20px;
    border: 1px solid #e0e0e0; /* Softer border */
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    box-sizing: border-box;
    width: 100%; /* Let the parent grid dictate the width, remove max-width */
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease
}

.data_detail_p {
    display: flex;
    flex-direction: row;
    gap: 15px; /* Replaces right margins */
    align-items: center; /* Vertically centers the text with the image */
    margin-bottom: 15px;
}

    .data_detail:hover {
        /*        cursor: pointer;
            border: 1px solid #666666;
            transition: .5s;*/

        cursor: pointer;
        transform: translateY(-4px); /* Gently lifts the card up */
        box-shadow: 0 8px 16px rgba(0,0,0,0.1); /* Deepens the shadow */
        border-color: #b9953d;
    }

.data_detail_picture {
    /*        width: 20%;
        margin-right: 20px;*/

    /*    margin-right: 10px;
    text-align: center;*/

    flex-shrink: 0;
}

    .data_detail_picture img {
        /*        width: 80px;
        height: 120px;
        border: 2px solid #323232;
        border-radius: 3px 3px;*/

        width: 80px;
        height: 120px;
        object-fit: cover; /* Ensures images don't stretch weirdly */
        border: 1px solid #cccccc; /* Softer border than the heavy #323232 */
        border-radius: 4px;
    }

        .data_detail_text {
            /*            width: 100%;*/
            flex-grow: 1;
        }

        .data_detail_name {
            font-size: 16pt;
            font-weight: bold;
            border-bottom: 2px solid #d8d8d8;
            /*margin-bottom: 8px;*/
            /* === NEW TWO-LINE CUTOFF STYLES START HERE === */
            display: -webkit-box; /* 1. Enables the -webkit properties */
            -webkit-line-clamp: 2; /* 2. The core property: limits text to 2 lines */
            -webkit-box-orient: vertical; /* 3. Stacks content vertically */
            overflow: hidden; /* 4. Hides the overflow */
        }

        .data_detail table {
            width: 100%;
/*            table-layout: fixed;*/
        }

        .data_detail tr {
            background-color: transparent !important;
            height: 25px;
        }

            .data_detail td {
                padding: 5px 0px 5px 0px;
            }

                .data_detail td:nth-of-type(2n+1) {
                    color: #191919;
                    font-size: 12pt;
                    font-weight: 600;
                }

                .data_detail td:nth-of-type(2n) {
                    font-family: 'Roboto Mono', monospace;
                    text-align: center;
                    font-size: 13pt;
                }

.data_table tr:not(:first-child):not(.table_pager):hover {
    cursor: pointer;
    /*font-weight: bold;*/
    background-color: yellow !important;
    border-bottom: 2px solid black;
    transition: .3s linear;
}

.data_table > tbody > tr > td:first-child:not(td:has(> table)) {
    display: none;
}

.data_table th:first-child {
    display: none;
}

.data_table_selected_row {
    background-color: yellow;
}

.pagination_container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
}

.pagination_button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #002b54; /* Institutional Navy */
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .pagination_button:hover {
        border-color: #002b54;
        background-color: #f0f4f8;
    }

.page_label {
    font-size: 18pt;
    font-weight: bold;
/*    color: #757575;*/
    margin: 0 15px;
}

#quote {
    background-color: white;
    /*border-radius: 3px;*/
    border: none;
    padding: 5px;
    margin: -8px;
    margin-top: 5px;
    overflow: auto;
    transition: .2s;
    transition-timing-function: ease-in-out;
}

    #quote a {
        color: black;
        height: 100%;
        transition: .5s;
    }

    #quote:hover a {
    }

    #quote img {
        margin: 5px;
    }

#Title {
    font-family: Arial;
}


#Footer {
    /*font-family: Bradley Hand, cursive;*/
    font-family: 'Inter', sans-serif;
    color: white;
    text-align: center;
    padding: 8px 0;
    background-color: #083e6a;
    border-top: 3px solid #b9953d;
    margin: 0;
    /*float: left;*/
}

.system-identity {
    font-family: 'Roboto Mono', 'Consolas', monospace; /* The "Terminal" look */
    font-size: 0.75rem; /* Small and discrete */
    color: rgba(255, 255, 255, 0.5); /* Faded white so it doesn't distract */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2); /* Subtle dark background pill */
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.software-name {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #b8860b; /* Gold accent for the Ohio Identity */
}

.version-tag {
    color: #a0aec0; /* Cool gray */
}

/* The "Live" Status Dot */
.status-indicator {
    width: 6px;
    height: 6px;
    background-color: #4caf50; /* Green */
    border-radius: 50%;
    box-shadow: 0 0 5px #4caf50; /* Glowing effect */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.committee_place_holder {
    border: 2px solid black;
    border-radius: 10px;
    background-color: white;
    width: 250px;
    height: 100px;
    /*margin-bottom: 20px;*/
    margin: 10px auto;
    transition: .3s;
}

    .committee_place_holder:hover {
        /*border: 2px dashed #c20b3a;*/
        /*color: #c20b3a;*/
        /*text-shadow: 1px 2px #c20b3a;*/
        border-radius: 0px;
    }

        .committee_place_holder:hover .committee_name {
            border-radius: 0px;
            /*color: black;*/
            background-color: #c20b3a;
        }

.committee_name {
    border-bottom: 1px solid black;
    padding: 5px;
    background-color: #001b56;
    border-radius: 5px 5px 0px 0px;
    color: white;
    height: 25px;
    text-align: center;
    white-space: nowrap;
    transition: border-radius.3s, background-color .3s;
}

.election_date_container {
    width: 250px;
    margin: 0 20px;
}

.election_date_header {
    text-align: center;
}

.election_date_progress_container {
    /*    width: 500%;
    background-color: #ddd;
    border-radius: 5px;*/

    width: 100%;
    background-color: #e0e0e0;
    border-radius: 4px; /* Slightly rounded, not a pill shape */
    border: 1px solid #ccc;
    overflow: hidden;
    margin: 20px 0 0 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.election_date_progress_bar {
    height: 35px;
    background: linear-gradient(90deg, #003366 0%, #0056b3 100%);
    color: white;
    text-align: right;
    padding-right: 15px;
    line-height: 35px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-size: 0.9em;
    transition: width 0.5s ease-in-out;
}

.election_date_description {
    font-size: 11pt;
    text-align: center;
    font-family: 'Segoe UI';
}

/* Container for the list */
dl {
    /* Use Grid for easy column definition */
    display: grid;
    /* Define two columns: one narrow for the title, one flexible for the description */
    grid-template-columns: 200px 1fr;
    /* Spacing between the "rows" (position/description pairs) */
    gap: 10px 20px;
    padding: 0;
    margin: 20px 0;
}

    /* Style the position title */
    dl dt {
        /* Place the term in the first column */
        grid-column: 1;
        font-weight: bold;
        /* Align the text to the right for a clean look */
        text-align: right;
        padding-right: 10px;
    }

    /* Style the description */
    dl dd {
        /* Place the definition in the second column */
        grid-column: 2;
        margin-left: 0; /* Remove default margin */
        /* Add a light bottom border to separate entries, similar to a table row */
        /*border-bottom: 1px solid #eee;*/
        border-bottom: 1px solid #d6d6d6;
        padding-bottom: 10px;
    }

        /* Remove the border from the last item */
        dl dd:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

    dd li {
        padding: 10px;
    }

.feature-row {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    min-width: 200px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #002b54; /* Navy Accent */
}

    .feature-card .icon {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 10px;
    }

#LogoImg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px; /* desktop cap */
    object-fit: contain;
}

/* 3. MOBILE LAYOUT (Phones & Tablets under 900px) */
@media screen and (max-width: 900px) {

    body {
        font-size: 12pt !important;
    }

    /* Stack the Sidebar and Content vertically */
    #content_container {
        flex-direction: column;
    }

    /* Make Sidebar full width and reset borders */
    #page_nav_container {
        /*width: 100% !important;*/ /* Force override */
        border-right: none;
        border-bottom: 2px solid #b9953d; /* Separator line */
        padding: 15px;
        margin: 0; /* Remove margin */
    }

    /* Make Main Content full width */
    #Content {
        /*width: 100% !important;*/
        margin-left: 0 !important; /* overrides JS if it tries to run */
        border-left: none;
        padding: 10px;
    }

    /* Allow Navbar to grow taller if links wrap */
    #Header, #Navbar {
        position: relative !important;
        overflow: visible !important;
    }

        #Navbar.expanded {
            height: auto !important;
            padding-bottom: 8px;
        }

        #Navbar.collapsed {
            height: 48px !important;
            min-height: 48px !important;
            padding-top: 6px !important;
            padding-bottom: 6px !important;
        }

    /* Show the mobile toggle */
    #nav_toggle {
        display: inline-block !important;
        visibility: visible !important;
        z-index: 100000 !important;
        min-width: 36px !important;
        min-height: 36px !important;
        line-height: 1 !important;
        text-align: center !important;
        cursor: pointer !important;
    }

    /* Make nav links inline-block when not expanded (so they wrap nicely) */
    #Navbar a {
        font-size: 16px !important;
    }

    #Navbar > a {
        display: none !important;
    }

    /* Ensure the collapsed state truly hides links on mobile */
    #Navbar.collapsed > a {
        display: none !important;
    }

    /* When the nav is expanded show links stacked */
    #Navbar.expanded a {
        display: block;
        text-align: left;
    }

    #Navbar.expanded > a {
        display: block !important;
        text-align: left !important;
        padding: 10px 14px !important;
        line-height: 1.4 !important;
        border-top: 1px solid rgba(255,255,255,0.05) !important;
        background-color: #083e6a !important;
    }

    /* Adjust Logo height for mobile */
    #Logo {
        height: 120px; /* Smaller than the desktop 250px */
        padding-bottom: 0 !important; /* remove the spacer that creates the white gap */
        background-size: contain !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
    }

    #LogoImg {
        max-height: 120px; /* smaller on phones */
    }

    .data_detail {
        box-sizing: border-box;
        overflow: hidden;
        padding-left: 12px; /* reduce any internal left padding that can cause overflow */
        padding-right: 12px;
        width: 100%;
        max-width: 100%;
        scale: 0.85; /* Slightly reduce size to help fit content */
    }

    /* Stack the inner area of data_detail for small screens */
        .data_detail > div {
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
            gap: 8px;
        }

            /* Override inline widths (e.g. width: 10% / 90%) set in templates */
            .data_detail > div > div {
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }

    .data_detail_picture {
/*        width: 100% !important;
        margin: 0 auto 8px !important;*/
        text-align: center !important;
    }

        .data_detail_picture img {
            max-width: 120px !important;
            width: 100% !important;
            height: auto !important;
            display: inline-block !important;
        }

    .data_detail_text {
        width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    /* Make any inner tables wrap content instead of forcing width */
    .data_detail table {
        /*        width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse;*/
        display: block !important;
        width: 100% !important;
    }

    .data_detail tbody {
        display: block !important;
        width: 100% !important;
    }

    .data_detail tr {
        display: flex !important;
        /*flex-wrap: wrap !important;*/
        align-items: center !important;
        width: 100% !important;
        margin: 0 0 6px 0 !important;
        border-bottom: none !important;
    }

    .data_detail td {
        display: block !important;
        width: 50% !important;
        box-sizing: border-box !important;
        padding: 6px 8px !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        text-align: left !important;
    }

        /* styling for label vs value columns */
        .data_detail td:nth-of-type(2n+1) {
            font-weight: 600 !important;
            color: #191919 !important;
            /*width: 85px !important;*/
            width: 25% !important;
        }

        .data_detail td:nth-of-type(2n) {
            text-align: center !important;
            font-family: 'Roboto Mono', monospace !important;
            font-size: 11.5pt !important;
/*            width: 150px !important;*/
            width: 75% !important;
        }

    .political_party img {
        scale: 0.75 !important;
    }

    #Footer table td {
        scale: 0.85 !important;
    }

    /* Mobile-friendly definition list layout */
    dl {
        display: block !important;
        margin: 12px 0 !important;
        padding: 0 !important;
    }

        /* Make terms and descriptions full-width stacked items */
        dl dt,
        dl dd {
            display: block !important;
            width: 100% !important;
            box-sizing: border-box !important;
            margin: 0 !important;
            padding: 8px 12px !important; /* larger tap area */
            word-break: break-word !important;
        }

        /* Visual contrast for labels (terms) */
        dl dt {
            text-align: left !important;
            font-weight: 700 !important;
            color: #001b56 !important; /* consistent with site header/nav */
            background: transparent !important;
        }

        /* Values (descriptions) with clear separation */
        dl dd {
            padding-left: 0 !important;
            color: #222 !important;
            border-bottom: 1px solid #e6e6e6 !important;
            padding-top: 6px !important;
            padding-bottom: 10px !important;
        }

            /* Remove bottom border on last description for cleanliness */
            dl dd:last-child {
                border-bottom: none !important;
                padding-bottom: 0 !important;
            }

    /* Responsive misc-details: stack columns and make media responsive */
    #misc_details_container {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        max-height: none !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

        /* Force each column to full width on narrow screens */
        #misc_details_container > div {
            width: 100% !important;
        }

    /* Make the district map fluid */
    #district_map_container {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

        /* Target the server-side Image output for the map */
        #district_map_container img {
            width: 100% !important;
            height: auto !important;
            max-height: 420px !important;
            object-fit: contain !important;
            border: 2px solid #000 !important;
            display: block !important;
            margin: 0 auto !important;
        }

    /* Remove the inline transform scale and let the chart wrapper size itself */
    #misc_details_container div[style*="transform"] {
        transform: none !important;
        transform-origin: initial !important;
        width: 100% !important;
        max-width: 480px !important;
        margin: 0 auto !important;
        height: auto !important;
    }

    /* ASP.NET Chart renders an IMG; target by id fragment to make it responsive */
    img[id*="crtVote_Breakout"] {
        width: 100% !important;
        height: auto !important;
        max-width: 800px !important;
        display: block !important;
        margin: 0 auto !important;
    }
}