:root {
    --primary-bg: #000000;
    --primary-text: #ffffff;
    --accent-color: gold;
    --warning-bg: rgb(40, 40, 40);
    --table-header-bg: #222;
    --table-even-row: rgb(20, 20, 20);
    --table-odd-row: rgb(30, 30, 30);
    --border-color: rgb(40, 40, 40);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    background-color: var(--primary-bg);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover, a:active { 
    text-decoration: underline; 
}
    
body {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    transition: background-color 0.3s, color 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    padding: 1rem;
    min-height: 100vh;
}

/* Button style */
button {
    padding: 0.625rem;
    cursor: pointer;
    border: none;
    background-color: var(--accent-color);
    color: var(--primary-bg);
    border-radius: 4px;
    transition: opacity 0.3s;
}

button:hover {
    opacity: 0.8;
}

/* Make all divs inherit from body */
body div {
    background-color: inherit;
    color: inherit;
}   

.full_h_div {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    width: 100%;
    background-color: var(--warning-bg);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

#Members {
    margin-bottom: 1rem;
    background-color: var(--primary-bg);
}

#Members table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: var(--primary-bg);
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--primary-bg);
}

@media (min-width: 1200px) {
    .main-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .left-column {
        flex: 0 0 200px;
    }

    .center-column {
        flex: 0 0 500px;
        margin: 0 0.1rem;
    }

    .right-column {
        flex: 1;
        min-width: 600px;
    }
}

.youtube_player {
    width: 100%;
    max-width: 580px;
    aspect-ratio: 16/9;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    margin: 0 auto;
    background-color: var(--primary-bg);
}

.major_items, .testimony_items {
    overflow-y: auto;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 2px;
    background-color: var(--table-even-row);
}

.major_items {
    height: min(70vh, 370px);
}

.testimony_items {
    height: min(80vh, 500px);
}

.members-table {
    margin-bottom: 1rem;
    background-color: var(--primary-bg);
}

.members-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 0.8rem;
}

.members-table td {
    padding: 0.25rem 0.5rem;
    line-height: 1.2;
}

.timestamp {
    font-size: 0.8rem;
    color: #888;
}

.testimony_Support {
    color: #4CAF50;
    font-weight: bold;
}

.testimony_Oppose {
    color: #f44336;
    font-weight: bold;
}

.testimony_Information {
    color: #9e9e9e;
    font-weight: bold;
}

.testimony_hr {
    height: 2px;
    background-color: var(--border-color);
    margin: 1rem 0;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--primary-bg);
}

table thead tr th {
    text-align: left;
    position: sticky;
    top: 0;
    background-color: var(--table-header-bg);
    color: var(--primary-text);
    padding: 0.5rem;
    font-weight: 600;
}

table tbody tr:nth-child(even) {
    background-color: var(--table-even-row);
}

table tbody tr:nth-child(odd) {
    background-color: var(--table-odd-row);
}

td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
}

/* Testimony List Styles */
dl {
    margin: 0;
}

dt {
    font-weight: bold;
    margin-top: 1rem;
}

dd {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}
        
.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--warning-bg);
    color: var(--primary-text);
    text-align: center;
    border-radius: 4px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Thin scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--warning-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        padding: 0.5rem;
    }
    
    .major_items, .testimony_items {
        padding: 0.5rem;
    }
    
    table thead th {
        padding: 0.5rem;
    }
    
    td {
        padding: 0.5rem;
    }
    
    .youtube_player {
        margin-bottom: 1rem;
    }
}

#billSearch, .ui-autocomplete {
    font-size: 0.7em;
}
