SLM-RAG-Arena / static /styles.css
aizip-dev's picture
style for onboarding
f45441d verified
raw
history blame
27.1 kB
/* Base Variables */
:root {
--primary: #FF7D1E;
--primary-light: #FFF8F2;
--primary-selected: #FFE8D5;
--accent: #6B7280;
--text-dark: #333333;
--text-medium: #666666;
--border-light: #E6E6E6;
--background-light: #F9F9F9;
--background-main: #FFFFFF;
--highlight: #FFFBEB;
--model-a-color: #92B4F4;
--model-b-color: #F8ADA7;
--query-background: #F0F7FF;
--query-border: #D1E3F8;
--query-text: #2E5AAC;
--insufficient-alert-bg: #fff0f0;
--insufficient-alert-border: #f78989;
--insufficient-alert-text: #b92020;
--text-md: 17px; /* Adjusted from 17px to make everything slightly smaller */
}
/* Dark Mode */
@media (prefers-color-scheme: dark) {
:root {
--primary: #FF9542;
--primary-light: #3D3026;
--primary-selected: #4D3927;
--accent: #9CA3AF;
--text-dark: #E6E6E6;
--text-medium: #BBBBBB;
--border-light: #444444;
--background-light: #2A2A2A;
--background-main: #1A1A1A;
--highlight: #3D3825;
--model-a-color: #5A85C7;
--model-b-color: #C47A74;
--query-background: #2A3F5C;
--query-border: #3A5277;
--query-text: #A9C2E8;
--insufficient-alert-bg: #3D2525;
--insufficient-alert-border: #913F3F;
--insufficient-alert-text: #FF8A8A;
}
}
/* Global Styles */
body, .gradio-container {
background-color: var(--background-main);
font-size: 16px; /* Adjusted base font size */
overflow-x: hidden !important;
color: var(--text-dark);
}
/* Common Resets */
.gradio-container {
padding: 0 !important;
}
.gradio-column > *, .gradio-row > *,
.gradio-markdown, .gradio-markdown p {
margin-top: 0 !important;
margin-bottom: 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
/* Increase markdown text size */
.gradio-markdown p,
.gradio-markdown li,
.gradio-markdown ul,
.gradio-markdown ol {
font-size: var(--text-md) !important; /* Use the variable for markdown text */
line-height: 1.5 !important;
margin-bottom: 0.5em !important;
}
/* Special styles for intro instruction text */
.gradio-markdown p:has(em):has(strong) {
font-size: 1.3em !important; /* Slightly reduced from 1.4em */
line-height: 1.5 !important;
margin-bottom: 8px !important;
}
.gradio-row {
overflow: visible !important;
}
/* Tab Navigation */
.tabs {
margin-top: 0 !important;
}
.tab-nav {
background-color: var(--background-light) !important;
padding: 5px 10px !important;
border-radius: 8px 8px 0 0 !important;
border-bottom: 1px solid var(--border-light) !important;
}
.tab-nav button {
font-size: 1.15em !important; /* Reduced from 1.2em */
font-weight: 600 !important;
padding: 10px 25px !important;
margin: 0 6px !important;
border-radius: 6px 6px 0 0 !important;
border: none !important;
background-color: transparent !important;
color: var(--text-medium) !important;
transition: all 0.3s ease !important;
}
.tab-nav button.selected {
background-color: var(--background-main) !important;
color: var(--primary) !important;
border-bottom: 2px solid var(--primary) !important;
}
.tab-nav button:hover:not(.selected) {
background-color: rgba(255, 255, 255, 0.1) !important;
color: var(--text-dark) !important;
}
.tabitem {
border: none !important;
}
/* Common Typography */
h1 {
font-size: 1.7em !important; /* Reduced from 1.8em */
color: var(--primary) !important;
margin: 10px 0 5px 0 !important;
padding: 0 !important;
}
h3,
.section-heading {
font-size: 1.25em !important; /* Reduced from 1.3em */
font-weight: 600 !important;
margin: 5px 0 2px 0 !important;
padding: 0 !important;
color: var(--text-dark) !important;
}
.orange-title {
color: var(--primary) !important;
font-weight: bold !important;
}
/* Common Dividers */
hr {
margin: 5px 0 !important;
border: none !important;
height: 1px !important;
background-color: var(--border-light) !important;
}
.results-reveal-area hr {
margin: 25px 0 20px 0 !important;
width: 100% !important;
}
/* Query Section */
#query-title-row {
margin: 0 !important;
display: flex !important;
align-items: center !important;
overflow: visible !important;
min-height: 45px !important; /* Reduced from 48px */
white-space: normal !important;
}
#query-title-row h3 {
margin: 0 !important;
padding: 0 !important;
line-height: 1.3 !important;
flex-grow: 0 !important;
flex-shrink: 0 !important;
white-space: normal !important;
overflow: visible !important;
width: auto !important;
display: inline-block !important;
}
#query-container {
display: flex !important;
align-items: stretch !important;
gap: 10px !important; /* Reduced from 12px */
overflow: visible !important;
}
.query-box-row {
background-color: var(--query-background) !important;
padding: 12px 16px !important; /* Reduced from 14px 18px */
border-radius: 6px !important;
border: 1px solid var(--query-border) !important;
margin: 0 !important;
align-items: flex-start !important;
flex: 1 1 70% !important;
max-width: 70% !important;
overflow: visible !important;
display: flex !important;
min-height: 55px !important; /* Reduced from 60px */
height: auto !important;
}
.query-text {
padding: 0 !important;
margin: 0 !important;
background-color: transparent !important;
border: none !important;
overflow: visible !important;
width: 100% !important;
display: block !important;
text-align: left !important; /* Default left alignment for regular questions */
}
.empty-query {
text-align: center !important; /* Center alignment only for the initial question */
}
.query-text p {
font-size: 1.25em !important; /* Reduced from 1.3em */
font-weight: 600 !important;
color: var(--query-text) !important;
line-height: 1.4 !important;
margin: 0 !important;
padding: 0 !important;
background-color: transparent !important;
border: none !important;
overflow-wrap: break-word !important;
word-wrap: break-word !important;
word-break: normal !important;
hyphens: auto !important;
white-space: normal !important;
overflow: visible !important;
}
/* Buttons */
.query-button,
.context-toggle-button {
background-color: var(--background-light) !important;
color: var(--text-medium) !important;
border: 1px solid var(--border-light) !important;
border-radius: 6px !important;
font-weight: 500 !important;
transition: all 0.2s ease !important;
font-size: 1.05em !important; /* Reduced from 1.1em */
}
.query-button {
padding: 0 20px !important; /* Reduced from 0 24px */
flex: 0 0 auto !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
min-height: 55px !important; /* Reduced from 60px */
white-space: nowrap !important;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
.context-toggle-button {
padding: 5px 10px !important; /* Reduced from 6px 12px */
font-size: 0.95em !important; /* Reduced from 1.0em */
height: 32px !important; /* Reduced from 36px */
line-height: 1 !important;
width: auto !important;
min-width: 0 !important;
max-width: 160px !important; /* Reduced from 180px */
margin: 0 !important;
cursor: pointer !important;
}
.query-button:hover,
.context-toggle-button:hover {
background-color: var(--primary-light) !important;
color: var(--primary) !important;
border-color: var(--primary) !important;
}
/* Action Buttons */
#submit-button,
#try-another-btn {
background-color: var(--primary) !important;
color: white !important;
padding: 12px 30px !important; /* Reduced from 14px 36px */
border-radius: 6px !important;
font-weight: 600 !important;
font-size: 1.2em !important; /* Reduced from 1.25em */
transition: all 0.2s ease !important;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
border: none !important;
}
#submit-button {
margin-top: 15px !important; /* Reduced from 18px */
}
#try-another-btn {
width: 100% !important;
max-width: 100% !important;
margin: 10px auto !important; /* Reduced from 12px */
display: block !important;
}
#submit-button:hover,
#try-another-btn:hover {
background-color: #E56E0F !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
}
.control-buttons button {
margin: 0 10px !important; /* Reduced from 0 12px */
font-size: 1.05em !important; /* Reduced from 1.1em */
border-radius: 6px !important;
padding: 8px 16px !important; /* Reduced from 10px 19px */
transition: all 0.2s ease !important;
}
/* Context Section */
.context-description {
background-color: transparent !important;
font-style: normal !important;
color: var(--text-medium) !important;
font-size: 1.05em !important; /* Reduced from 1.1em */
}
.context-topic {
display: inline-flex !important;
align-items: center !important;
background-color: transparent !important;
padding: 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
}
.topic-label {
font-weight: 600 !important;
color: var(--text-medium) !important;
margin-right: 6px !important; /* Reduced from 7px */
}
#context-header-row {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
}
.context-title {
margin: 0 !important;
padding: 0 !important;
font-size: 1.25em !important; /* Reduced from 1.3em */
font-weight: 600 !important;
color: var(--text-dark) !important;
}
.context-items-container {
border-radius: 6px;
overflow: hidden;
}
.context-item {
border: 1px solid var(--border-light);
background-color: var(--background-light);
padding: 12px; /* Reduced from 14px */
border-radius: 6px;
margin-bottom: 8px; /* Reduced from 10px */
font-size: 1.05em; /* Reduced from 1.1em */
line-height: 1.5;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.primary-context {
border-left: 3px solid var(--model-a-color) !important;
}
.chunk-header {
font-weight: 600;
color: var(--query-text);
margin-bottom: 8px; /* Reduced from 10px */
padding-bottom: 5px; /* Reduced from 6px */
border-bottom: 1px solid var(--query-border);
}
.highlight {
background-color: #FFECB3 !important;
padding: 0.1em 0.3em !important;
border-radius: 3px !important;
font-weight: 600 !important;
color: #664500 !important;
}
/* Insufficient Alert */
.insufficient-alert {
border: 2px solid var(--insufficient-alert-border);
background-color: var(--insufficient-alert-bg);
color: var(--insufficient-alert-text);
padding: 12px; /* Reduced from 14px */
border-radius: 6px;
margin-bottom: 12px; /* Reduced from 14px */
font-size: 1.05em; /* Reduced from 1.1em */
}
.insufficient-alert strong {
display: inline-flex !important;
align-items: center !important;
margin-bottom: 5px; /* Reduced from 6px */
font-size: 1.15em !important; /* Reduced from 1.2em */
font-weight: 600 !important;
}
.insufficient-alert strong svg {
margin-right: 8px !important; /* Reduced from 10px */
width: 1.1em !important; /* Reduced from 1.2em */
height: 1.1em !important; /* Reduced from 1.2em */
}
.insufficient-alert p {
margin: 0;
font-size: 1.05em; /* Reduced from 1.1em */
}
/* Summary Cards */
.summary-card-wrapper {
height: 100% !important;
overflow-y: auto !important;
}
#summary-containers {
margin-top: 10px !important; /* Reduced from 12px */
}
#main-interface-area > div:nth-child(7) > div {
display: flex !important;
flex-direction: row !important;
align-items: stretch !important;
}
#main-interface-area > div:nth-child(7) > div > div {
flex: 1 !important;
display: flex !important;
flex-direction: column !important;
}
#main-interface-area > p:first-of-type {
font-size: var(--text-md) !important;
margin: 0 0 8px 0 !important; /* Reduced from 0 0 10px 0 */
padding: 0 !important;
line-height: 1.4 !important;
color: var(--text-medium) !important;
}
.summary-card {
border: 1px solid var(--border-light) !important;
border-radius: 6px !important;
background-color: var(--background-light) !important;
box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
margin: 0 !important;
padding: 12px !important; /* Reduced from 14px */
display: flex !important;
flex-direction: column !important;
height: auto !important;
min-height: 200px !important; /* Reduced from 220px */
overflow: visible !important;
}
.summary-card-a {
border-left: 3px solid var(--model-a-color) !important;
}
.summary-card-b {
border-left: 3px solid var(--model-b-color) !important;
}
.summary-card .gr-form,
.summary-card .gr-form > div {
margin: 0 !important;
padding: 0 !important;
flex: 1 !important;
display: flex !important;
flex-direction: column !important;
}
.summary-card .gr-input-label,
.feedback-section .gr-input-label {
font-size: 1.15em !important; /* Reduced from 1.2em */
font-weight: 600 !important;
color: var(--text-dark) !important;
}
.summary-card .gr-input-label {
margin: 0 0 5px 0 !important; /* Reduced from 0 0 6px 0 */
padding: 0 !important;
}
.feedback-section .gr-input-label {
margin-bottom: 0.6em !important; /* Reduced from 0.72em */
}
.summary-card .gr-textbox {
border: none !important;
background: transparent !important;
padding: 0 !important;
margin: 0 !important;
flex: 1 !important;
}
.summary-card textarea {
background-color: transparent !important;
border: none !important;
color: var(--text-dark) !important;
font-size: 1.15em !important; /* Reduced from 1.2em */
line-height: 1.4 !important;
height: auto !important;
min-height: 160px !important; /* Reduced from 180px */
padding: 0 !important;
margin: 0 !important;
width: 100% !important;
resize: none !important;
overflow-y: visible !important;
}
/* Voting Section */
.vote-button {
flex-grow: 1;
margin: 0 5px 5px 5px !important; /* Reduced from 0 6px 6px 6px */
font-size: 1.1em !important; /* Reduced from 1.15em */
padding: 12px 16px !important; /* Reduced from 14px 18px */
border-radius: 6px !important;
transition: all 0.2s ease !important;
background-color: var(--background-light) !important;
border: 1px solid var(--border-light) !important;
min-height: 55px !important; /* Reduced from 60px */
font-weight: 500 !important;
color: var(--text-dark) !important;
}
.vote-button:hover:not(.vote-button-neither) {
background-color: var(--primary-light) !important;
border-color: var(--primary) !important;
color: var(--primary) !important;
}
.vote-button-neither:hover {
background-color: var(--insufficient-alert-bg) !important;
border-color: var(--insufficient-alert-border) !important;
color: var(--insufficient-alert-text) !important;
}
.vote-button.selected:not(.vote-button-neither) {
border-width: 2px !important;
border-style: solid !important;
border-color: var(--primary) !important;
background-color: var(--primary-light) !important;
color: var(--primary) !important;
font-weight: 600 !important;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
.vote-button-neither.selected {
border-width: 2px !important;
border-style: solid !important;
border-color: var(--insufficient-alert-border) !important;
background-color: var(--insufficient-alert-bg) !important;
color: var(--insufficient-alert-text) !important;
font-weight: 600 !important;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
/* Feedback Section */
.feedback-section {
padding: 3px 0 !important; /* Reduced from 4px 0 */
background-color: transparent !important;
margin: 3px 0 !important; /* Reduced from 4px 0 */
font-size: 1.05em; /* Reduced from 1.1em */
border: none !important;
box-shadow: none !important;
}
.feedback-section .gr-check-radio {
font-size: 1.1em !important; /* Reduced from 1.15em */
}
.feedback-section .gr-check-radio span {
font-size: 1.1em !important; /* Reduced from 1.15em */
color: var(--text-dark) !important;
}
.feedback-section input[type="checkbox"] {
width: 18px !important; /* Reduced from 20px */
height: 18px !important; /* Reduced from 20px */
margin-right: 6px !important; /* Reduced from 7px */
}
.feedback-section input[type="checkbox"]:checked {
accent-color: var(--primary) !important;
border-color: var(--primary) !important;
background-color: var(--primary) !important;
}
/* Model Reveal */
.model-reveal {
font-size: 1.15em !important; /* Reduced from 1.2em */
text-align: center !important;
font-weight: 600 !important;
background-color: transparent !important;
padding: 0 !important;
border: none !important;
}
.model-reveal span {
font-size: 1.3em !important; /* Reduced from 1.4em */
display: flex !important;
align-items: center !important;
justify-content: center !important;
width: 100% !important;
padding: 25px 16px !important; /* Reduced from 30px 18px */
min-height: 55px !important; /* Reduced from 60px */
}
.model-a-reveal span {
background-color: rgba(146, 180, 244, 0.2) !important;
}
.model-b-reveal span {
background-color: rgba(248, 173, 167, 0.2) !important;
}
/* DataFrames and Tables */
.gr-dataframe table {
font-size: 1.05em !important;
border-collapse: separate !important;
border-spacing: 0 !important;
overflow: hidden !important;
}
.gr-dataframe th,
.gr-dataframe td {
padding: 8px 10px !important;
border: none !important;
border-bottom: 1px solid var(--border-light) !important;
}
.gr-dataframe th {
background-color: var(--background-light) !important;
color: var(--text-dark) !important;
font-weight: 600 !important;
}
.gradio-container .prose {
line-height: 1.4 !important;
margin: 0 !important;
padding: 0 !important;
}
/* Override any general prose table styles */
.gradio-container .prose table,
.gradio-container-5-28-0 .prose table {
border-collapse: separate !important;
border-spacing: 0 !important;
border: none !important;
width: 100% !important;
margin: 16px 0 !important; /* Reduced from 19px 0 */
overflow: hidden !important;
}
/* Leaderboard Styles */
.model-link {
color: var(--text-dark) !important;
text-decoration: none !important;
border-bottom: 1px dotted var(--border-light) !important;
transition: color 0.2s, border-color 0.2s !important;
padding: 2px 0 !important;
display: inline-flex !important;
align-items: center !important;
font-weight: 500 !important;
}
.model-link:hover {
color: #FF5500 !important;
border-color: #FF5500 !important;
}
.external-icon {
display: inline-block !important;
margin-left: 5px !important; /* Reduced from 6px */
opacity: 0.6 !important;
transition: opacity 0.2s !important;
}
.model-link:hover .external-icon {
opacity: 1 !important;
}
/* Special styling for the Elo ratings info box */
#leaderboard-info {
margin: 16px 0 !important; /* Reduced from 18px 0 */
padding: 0 !important;
background-color: rgba(255, 236, 224, 0.5) !important;
border: none !important;
}
#leaderboard-info > div {
margin: 0 !important;
padding: 12px 16px !important; /* REDUCED from 18px - less padding top/bottom for grey box */
background-color: var(--background-light) !important;
border: none !important;
}
#leaderboard-info h3 {
margin-top: 0 !important;
margin-bottom: 10px !important; /* Reduced from 12px */
color: var(--primary) !important;
font-size: 1.3em !important; /* Reduced from 1.35em */
}
#leaderboard-info p {
margin-bottom: 8px !important; /* Reduced from 10px */
line-height: 1.5 !important;
font-size: var(--text-md) !important;
}
#leaderboard-info ul {
margin-bottom: 10px; /* Reduced from 12px */
padding-left: 20px; /* Reduced from 24px */
}
#leaderboard-info li {
margin-bottom: 4px; /* Reduced from 5px */
line-height: 1.4;
font-size: var(--text-md) !important;
}
/* Leaderboard Table Specific Styles - Adjusted size */
.leaderboard-table {
width: 100% !important;
border-collapse: separate !important;
border-spacing: 0 !important;
font-size: 1.05em !important; /* Reduced from 1.1em */
margin-top: 16px !important; /* Reduced from 18px */
overflow: hidden !important;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
border-radius: 8px !important;
}
/* FIX: Override any table styles from Gradio or HF Spaces */
.leaderboard-table,
.leaderboard-table tbody,
.leaderboard-table thead,
.leaderboard-table tr {
border: none !important;
}
/* FIX: Explicitly set cell borders to override Gradio/HF styles */
.leaderboard-table th,
.leaderboard-table td {
border: none !important;
border-bottom: 1px solid var(--border-light) !important;
text-align: left !important;
padding: 10px 12px !important; /* Reduced from 12px 14px */
background-color: var(--background-main) !important;
font-size: var(--text-md) !important;
}
/* Header row styling */
.leaderboard-table th {
background-color: #FFF1E6 !important;
color: var(--text-dark) !important;
font-weight: 600 !important;
font-size: 1.05em !important; /* Reduced from 1.1em */
padding: 12px !important; /* Reduced from 14px */
border: none !important;
border-bottom: 1px solid var(--border-light) !important;
}
/* First column styling */
.leaderboard-table td:first-child,
.leaderboard-table th:first-child {
background-color: #FFF8F2 !important;
font-weight: 600 !important;
}
.leaderboard-table th.centered,
.leaderboard-table td.centered {
text-align: center !important;
}
.leaderboard-table td.elo-col {
font-weight: 600 !important;
color: var(--primary) !important;
}
.leaderboard-table .confidence-value {
color: var(--text-medium) !important;
font-size: 0.9em !important;
font-weight: normal !important;
}
/* Dark mode overrides for leaderboard */
@media (prefers-color-scheme: dark) {
.leaderboard-table th {
background-color: #3D3026 !important;
}
.leaderboard-table td:first-child,
.leaderboard-table th:first-child {
background-color: #2A2A2A !important;
}
}
/* Blockquote styling */
.gradio-container .prose blockquote,
.gradio-container-5-28-0 .prose blockquote {
margin: 3px 0 !important; /* Reduced from 4px 0 */
border-left: 12px solid var(--border-color-primary) !important; /* Reduced from 14px */
padding-left: calc(var(--size-2) * 1.1) !important; /* Reduced */
font-style: normal !important;
color: var(--text-dark) !important;
}
/* Spacing for Markdown content */
span.svelte-7ddecg p {
line-height: 1.7 !important; /* Reduced from 1.8 */
margin-top: 0 !important;
margin-bottom: 0.5em !important; /* Reduced from 0.6em */
}
.html-container.svelte-phx28p.padding {
padding: 0 !important;
}
/* Smooth scrolling for the entire page */
html {
scroll-behavior: smooth;
}
/* For the query section scroll margin */
#query-section {
scroll-margin-top: 20px; /* Reduced from 24px */
}
/* FAQ Section Styles - Improved left alignment */
#faq-toggle-row {
width: 100% !important;
margin-top: 8px !important; /* Reduced from 10px */
margin-bottom: 8px !important; /* Reduced from 10px */
padding-left: 0 !important;
margin-left: 0 !important;
text-align: left !important;
display: flex !important;
justify-content: flex-start !important;
align-items: center !important;
}
.faq-toggle-button {
color: var(--primary) !important;
background-color: transparent !important;
border: none !important;
padding: 6px 0 !important; /* Reduced from 8px 0 */
font-size: 1.1em !important; /* Reduced from 1.15em */
font-weight: 500 !important;
text-align: left !important;
justify-content: flex-start !important;
cursor: pointer !important;
transition: all 0.2s ease !important;
box-shadow: none !important;
margin: 0 !important;
padding-left: 0 !important;
margin-left: 0 !important;
width: auto !important;
display: inline-flex !important;
align-items: center !important;
}
/* Hover effect for FAQ toggle - just underline */
.faq-toggle-button:hover {
text-decoration: underline !important;
color: var(--primary) !important;
}
#faq-content {
background-color: var(--background-light) !important;
border-radius: 6px !important;
padding: 10px 16px !important; /* REDUCED from 16px 20px - less padding for the FAQ content box */
margin-top: 5px !important; /* Reduced from 6px */
margin-bottom: 15px !important; /* Reduced from 18px */
border: 1px solid var(--border-light) !important;
width: 70% !important;
}
.faq-text {
color: var(--text-medium) !important;
font-size: 1.05em !important; /* Reduced from 1.1em */
}
.faq-text p {
margin-bottom: 12px !important; /* Reduced from 14px */
line-height: 1.5 !important; /* Reduced from 1.6 */
color: var(--text-medium) !important;
font-size: var(--text-md) !important;
}
.faq-text ul {
margin-top: 8px !important; /* Reduced from 10px */
margin-bottom: 10px !important; /* Reduced from 12px */
padding-left: 25px !important; /* Reduced from 30px */
list-style-type: circle !important;
}
.faq-text li {
margin-bottom: 8px !important; /* Reduced from 10px */
color: var(--text-medium) !important;
font-size: var(--text-md) !important;
line-height: 1.5 !important;
}
/* Empty State and Initial State Styles */
.empty-state-message {
color: var(--text-medium) !important;
font-style: italic !important;
text-align: center !important;
padding: 20px !important; /* Reduced from 24px */
font-size: 1.15em !important; /* Reduced from 1.2em */
}
/* Get a Question Button - initially more prominent */
.initial-button {
background-color: var(--primary) !important;
color: white !important;
font-weight: 600 !important;
padding: 10px 20px !important; /* Reduced from 12px 24px */
border-radius: 6px !important;
transition: all 0.2s ease !important;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
font-size: 1.25em !important; /* Reduced from 1.3em */
}
.initial-button:hover {
background-color: #E56E0F !important;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
transform: translateY(-1px) !important;
}
/* When content is loaded, section visibility */
.content-loaded .context-section,
.content-loaded .model-comparison-section,
.content-loaded .voting-section {
display: block !important;
}
/* Responsive Styles */
@media screen and (max-width: 768px) {
#query-container {
flex-direction: column !important;
}
.query-box-row {
flex: 1 1 100% !important;
max-width: 100% !important;
margin-bottom: 10px !important; /* Reduced from 12px */
}
.query-button {
width: 100% !important;
}
.vote-button {
font-size: 1.05em !important; /* Reduced from 1.08em */
padding: 10px 8px !important; /* Reduced from 12px 10px */
}
.summary-card {
margin-bottom: 15px !important; /* Reduced from 18px */
}
#main-interface-area > div:nth-child(7) > div {
flex-direction: column !important;
}
}
@media screen and (max-width: 480px) {
#main-interface-area > div:nth-child(10) > div {
display: grid !important;
grid-template-columns: 1fr 1fr !important;
gap: 8px !important; /* Reduced from 10px */
}
.vote-button {
margin: 0 !important;
padding: 8px 5px !important; /* Reduced from 10px 6px */
}
}