<style >
.tab-btn {
    position: relative;
}

.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.messages-wrap {
    display: flex;
    gap: 12px;
    height: calc(100dvh - 200px);
}

/* Keep the sidebar accessible above chat panels */
#sidebar {
    position: sticky;
    top: 0;
    z-index: 2000;
}

.chat {
    position: relative;
    z-index: 10;
}

/* Stage area layout */
#stageArea {
    position: relative;
    min-height: 320px;
}

#stageArea .stage-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6px;
    z-index: 20;
}

.overlay-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    z-index: 30;
}

/* Show chat pane in messages tab content */

/* Legacy letterbox removed */

:root { --chrome-offset: 200px; }

#chatStage .chat {
    max-width: 100%;
    /* Stretch to viewport height minus top chrome; keep sane bounds */
    height: clamp(460px, calc(100vh - var(--chrome-offset)), 96vh);
}

@media (min-width: 1200px) {
    :root { --chrome-offset: 180px; }
}

/* Compact chat mode (toggle via header button) */
#chatStage.compact-chat .chat-log {
    gap: 6px;
    padding: 8px;
}
#chatStage.compact-chat .bubble {
    max-width: 68%;
    padding: 6px 10px;
    font-size: 0.95rem;
    line-height: 1.25;
}
#chatStage.compact-chat .composer .composer-row textarea,
#chatStage.compact-chat .composer .composer-row input {
    font-size: 0.95rem;
}

#chatStage .chat-log {
    background: #0b0b0c0a;
}

.messages-sidebar {
    width: 280px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

    .search-box input {
        flex: 1;
    }

.dm-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: auto;
}

.dm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

    .dm-item:hover {
        background: #f4f4f5;
    }

.pending-badge {
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.unread-badge {
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Inbox collapse toggle */
#inboxExpandBtn {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 25;
    font-size: 12px;
}

/* Dark theme visibility for expand button */
body.persephone #inboxExpandBtn {
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #374151;
}

/* Subtle stage fade/slide animations */
.fade-in { animation: fadeIn 200ms ease forwards; }
.fade-out { animation: fadeOut 200ms ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(6px); }
}

/* Stream chat panel in stage area */
#streamChatStage.stream-chat {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: min(380px, 38vw);
  height: min(480px, 60vh);
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  z-index: 24;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.stream-chat-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 10px; border-bottom:1px solid #eee; font-weight:600;
}
.stream-chat-log {
  flex:1; overflow:auto; padding:10px; display:flex; flex-direction:column; gap:6px; background:#fafafa;
}
.stream-chat-composer { display:flex; gap:6px; padding:8px; border-top:1px solid #eee; }
.stream-chat-composer input { flex:1; }

/* Dark theme for stream chat */
body.persephone #streamChatStage.stream-chat { background:#0b1220; border-color:#374151; }
body.persephone .stream-chat-header { background:#111827; color:#e5e7eb; border-bottom-color:#374151; }
body.persephone .stream-chat-log { background:#0a0f1a; }
body.persephone .stream-chat-composer { background:#0b1220; border-top-color:#374151; }
body.persephone .stream-chat-composer input { background:#111827; color:#e5e7eb; border:1px solid #374151; }

.chat {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}
/* Light theme readability */
.chat-header .peer { color: #111; font-weight: 600; }
.chat-header .chat-actions i { color: #374151; }
.messages-sidebar { background: #fff; }
.search-box input {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #111;
  border-radius: 8px;
  padding: 6px 8px;
}
.composer { background: #fff; }
.composer-row textarea,
.composer-row input[type="text"] {
  background: #fff;
  color: #111;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
}
.composer-row textarea:focus,
.composer-row input[type="text"]:focus,
.search-box input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.15); }
.attach i { color: #6b7280; }
.attach:hover i { color: #111; }
.composer-row .emoji, .composer-row .send { background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 8px; }
.composer-row .emoji:hover, .composer-row .send:hover { background: #e5e7eb; }
.chat-log { background: #fafafa; }

.chat-log {
    flex: 1;
    overflow: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fafafa;
}

.bubble {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 14px;
    line-height: 1.35;
}

    .bubble.me {
        align-self: flex-end;
        background: #dbeafe;
    }

    .bubble.them {
        align-self: flex-start;
        background: #f1f5f9;
    }

.meta {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

.composer {
    border-top: 1px solid #eee;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.composer-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.composer-row textarea {
    flex: 1 1 auto;
    min-width: 0;
}

.composer-row .emoji,
.composer-row .send {
    flex: 0 0 auto;
}

/* Dark theme overrides */
body.persephone #stageArea .stage-overlay { background: rgba(0,0,0,0.6); }

body.persephone .messages-sidebar {
  background: #111827; /* slate-900 */
  border-color: #374151; /* slate-700 */
  color: #e5e7eb; /* slate-200 */
}
body.persephone .sidebar-header { color: #e5e7eb; }
body.persephone .search-box input {
  background: #1f2937; /* slate-800 */
  border: 1px solid #374151;
  color: #e5e7eb;
}
body.persephone .dm-item { color: #e5e7eb; }
body.persephone .dm-item:hover { background: #1f2937; }

body.persephone .chat {
  background: #0b1220; /* deep navy-ish */
  border-color: #374151;
}
body.persephone .chat-header {
  background: #111827;
  border-bottom-color: #374151;
  color: #e5e7eb;
}
body.persephone #chatStage .chat-log,
body.persephone #messagesTabContent .chat-log {
  background: #0a0f1a;
}
body.persephone .bubble.me { background: #1e3a8a; color: #e5e7eb; }
body.persephone .bubble.them { background: #1f2937; color: #e5e7eb; }
body.persephone .meta { color: #9ca3af; }

body.persephone .composer {
  background: #0b1220;
  border-top-color: #374151;
}
body.persephone .composer-row textarea,
body.persephone .composer-row input[type="text"] {
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #374151;
}
body.persephone .composer-row textarea::placeholder { color: #9ca3af; }
body.persephone .composer-row .send,
body.persephone .composer-row .emoji {
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #374151;
}
/* Emoji picker */
.emoji-picker {
  position: absolute;
  z-index: 60;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  display: none;
  max-width: 320px;
  max-height: 260px;
  overflow: auto;
}
.emoji-picker .controls { display:flex; flex-direction:column; gap:6px; margin-bottom:6px; }
.emoji-picker .tabs { display:flex; gap:6px; flex-wrap:wrap; }
.emoji-picker .tabs .emoji-tab { border:1px solid #d1d5db; background:#f3f4f6; border-radius:8px; padding:4px 8px; cursor:pointer; font-size:13px; }
.emoji-picker .tabs .emoji-tab.active { background:#e5e7eb; border-color:#6366f1; }
.emoji-picker .search { border:1px solid #d1d5db; border-radius:8px; padding:6px 8px; }
.emoji-picker .grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.emoji-picker button { border: none; background: transparent; font-size: 18px; line-height: 1; padding: 6px; cursor: pointer; }
.emoji-picker button:hover { background: #f3f4f6; border-radius: 6px; }

body.persephone .emoji-picker { background:#0b1220; border-color:#374151; }
body.persephone .emoji-picker .tabs .emoji-tab { background:#1f2937; border-color:#374151; color:#e5e7eb; }
body.persephone .emoji-picker .tabs .emoji-tab.active { background:#111827; border-color:#6366f1; }
body.persephone .emoji-picker .search { background:#111827; color:#e5e7eb; border-color:#374151; }
body.persephone .emoji-picker button:hover { background:#1f2937; }
.emoji-picker .grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.emoji-picker button { border: none; background: transparent; font-size: 18px; line-height: 1; padding: 6px; cursor: pointer; }
.emoji-picker button:hover { background: #f3f4f6; border-radius: 6px; }
body.persephone .emoji-picker { background:#0b1220; border-color:#374151; }
body.persephone .emoji-picker button:hover { background:#1f2937; }
body.persephone .attach { color: #e5e7eb; }

/* Badges readable in dark */
body.persephone .unread-badge { background: #3b82f6; color: #fff; }
body.persephone .pending-badge { background: #ef4444; color: #fff; }

.recipient {
    width: 220px;
}

.composer-tools {
    display: flex;
    gap: 8px;
    align-items: center;
}

.attach {
    cursor: pointer;
}

.send {
    padding: 8px 14px;
}

.typing {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 4px;
}

.active-tab {
    outline: 2px solid #6366f1;
    border-radius: 8px;
}

</style >


#backgroundCanvas {
    border: 2px solid #444;
    background-color: #e0f7fa;
}

.token-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffcc00;
    color: #000;
    text-align: center;
    padding: 10px;
    z-index: 2000;
    display: none;
}

#imageGallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#imageGallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

    #imageGallery img:hover {
        transform: scale(1.05);
    }

.vote-button {
    padding: 5px 10px; /* Smaller padding for compact look */
    background-color: #ffcc00;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 0.9em; /* Smaller font size for the button */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    align-self: center;
    max-width: 80%; /* Keep button width relative to image */
}

    .vote-button:hover {
        background-color: #ffaa00;
    }

    .vote-button:active {
        background-color: #ff8800;
    }


/* legacy letterbox css removed */


.hidden {
    display: none !important;
}

body.persephone {
  color: #E0E0E0;
}

body.persephone h1 {
  color: #FFD700; 
}

body.persephone article {
  background-color: #1f4068; 
  color: #bbe1fa;
}

body.persephone input[type="text"], 
body.persephone input[type="date"], 
body.persephone select {
  border-color: #6a2c70;
  background-color: #252526;
  color: #E0E0E0;
}

body.persephone input[type="text"]:focus, 
body.persephone input[type="date"]:focus, 
body.persephone select:focus {
  border-color: #541f58;
}

body.persephone #chessboard {
    border: 2px solid #9932CC;
    display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

body.persephone .zodiac {
  border: 1px solid #1E90FF;
  text-align: center;
  vertical-align: middle;
  line-height: 100px;
  position: relative;
  flex: 0 0 50%;
  color: #E0E0E0;
}

body.persephone .zodiac:nth-child(1), body.persephone .zodiac:nth-child(3),
body.persephone .zodiac:nth-child(6), body.persephone .zodiac:nth-child(8),
body.persephone .zodiac:nth-child(9), body.persephone .zodiac:nth-child(11),
body.persephone .zodiac:nth-child(14), body.persephone .zodiac:nth-child(16) {
    background-color: #1F2933;
    color: #bbe1fa;
}

body.persephone .zodiac:nth-child(2), body.persephone .zodiac:nth-child(4),
body.persephone .zodiac:nth-child(5), body.persephone .zodiac:nth-child(7),
body.persephone .zodiac:nth-child(10), body.persephone .zodiac:nth-child(12),
body.persephone .zodiac:nth-child(13), body.persephone .zodiac:nth-child(15) {
    background-color: #252526; /* Even darker for contrast */
    color: #bbe1fa;
}

button {
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: 'Cinzel Decorative', sans-serif;
  border: 2px solid #ccc;
  line-height: 1;
  font-size: 33px;
}

#imageTabContent {
  position: relative;
}

#silphiumCount {
    text-align: right;
    position: relative;
    top: 10px;
    right: 10px;
    font-weight: bold;
}

#imageTabContent form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#generatedImage {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
}

#imageInfo {
  width: 100%;
  margin-top: 5px;
  font-size: 0.8em;
  white-space: pre-wrap;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #555;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

#imageLoading {
  width: 40px;
  height: 40px;
  margin-top: 10px;
  display: none;
}

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


#buttonMain {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#tabButtons {
  display: flex;
  gap: 10px;
}


#wallet {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#ui {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-direction: row;
}

.login-button {
}

#loginWithWallet {
  align-self: center; 
}


#userInput {
  cursor: text;
}

input[type="text"] {
  cursor: text;
}

.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

#assistantSelector, #logoutButton {
  flex-grow: 0;
  margin: 5px;
}

input[type="text"], input[type="date"], input[type="password"] {
  padding: 10px 20px;
  border-radius: 20px;
  cursor: text;
  transition: background-color 0.3s;
  font-family: 'Cinzel Decorative', sans-serif;
  border: 2px solid #ccc;
  font-size: 18px;
}

select {
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 20px;
  transition: background-color 0.3s;
  font-family: 'Cinzel Decorative', sans-serif;
  border: 2px solid #ccc;
  font-size: 18px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.processing-animation {
    display: inline-block;
    margin-left: 5px;
}

.processing-animation span {
    animation: blink 1.4s infinite both;
    display: inline-block;
    margin-right: 2px;
    opacity: 1;
}

.processing-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.processing-animation span:nth-child(3) {
    animation-delay: 0.4s;
}


body.assistant {
    background-color: #f5f5f5;
    color: #333;
}

body.assistant header, footer {
    background-color: #ddd;
    color: #333;
}

body.assistant section {
    background-color: #fff;
    color: #333;
}

body.assistant nav {
    background-color: #e0e0e0;
}

body.assistant select {
    background-color: #4a7c59;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

body.assistant select hover {
    background-color: #3a5a43;
}

#APIAssistants {
    background-color: #ede7f6;
    padding: 20px;
    border-radius: 8px;
}

body.assistant article {
    background-color: #ede7f6;
}

body.assistant input[type="text"] {
    width: calc(100% - 110px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-right: 10px;
}

body.assistant button {
    background-color: #4a7c59;
    color: white;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

body.assistant button:hover {
    background-color: #3a5a43;
}

#chat {
    background-color: #ede7f6;
    border: none;
    padding: 10px;
    height: 450px;
    overflow-y: auto;
    border-radius: 8px;
}

.processing-animation {
    display: inline-block;
}

    .processing-animation span {
        animation: blink 1s infinite;
    }

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

#responseArea {
    margin-top: 2px;
    padding: 40px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 100px;
    word-wrap: break-word;
}

::placeholder {
    color: #bbb;
}

.tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  border: 2px solid #9932CC; 
  background-color: #FF0000; 
  color: #1E90FF; 
  border-radius: 10px;
  white-space: nowrap;
}

input[type="text"]:focus, input[type="date"]:focus, select:focus, button:focus {
  border-color: #333;
}

.art-container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

.art-container img {
    width: 100%;
    height: auto;
}

.scroll-container img {
    width: 100%; 
    height: auto; 
}

.temple-of-sun button {
  background-color: #d4af37;
  color: white;
}

.temple-of-sun button:hover {
  background-color: #b29600;
}

.gypsy-caravan button {
  background-color: #e3b23c;
  color: #3d405b;
}

.gypsy-caravan button:hover {
  background-color: #c19735;
}

.persephone button {
  background-color: #6a2c70;
  color: #e0e0e0;
}

.persephone button:hover {
  background-color: #541f58;
}

.serapeum button:hover {
  background-color: #5a5340;
}

.gypsy-caravan input[type="text"], 
.gypsy-caravan input[type="date"], 
.gypsy-caravan select {
  border-color: #e3b23c;
  background-color: #fff4e1;
}

.gypsy-caravan input[type="text"]:focus, 
.gypsy-caravan input[type="date"]:focus, 
.gypsy-caravan select:focus {
  border-color: #c19735;
}

#footer {
    width: 100%;
    height: auto;
}

#banner1, #banner2, #banner3, #banner4, #banner5 {
    width: 100%;
    height: auto;
}

#img1, #img2, #img3, #img4 {
    width: 100%;
    height: auto;
}

#chessboard {
    border: 2px solid #9932CC; /* Cheshire Cat Purple */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    grid-template-rows: repeat(4, 1fr); /* 4 rows */
    width: 100%; /* Adjust width as necessary */
    height: 100%; /* Adjust height as necessary */
    margin: 0 auto; /* Center the chessboard */

}

#persephoneTabButton, #seedTabButton {
    display: flex;
    margin: 0 auto; /* Center the chessboard */
    align-items: center;
}

.zodiac, .blank {
    border: 1px solid #1E90FF; /* Alice's Blue */
    text-align: center;
    vertical-align: middle;
    line-height: 100px; /* Adjust as needed */
    position: relative;
}

.energy-marker {
  width: 30px; /* Adjust size as needed */
  height: 30px;
  position: absolute;
}

.element {
  position: relative; /* Ensure the markers can be positioned absolutely within the element */
  font-weight: bold;
}

.blank {
    background-color: #f0f0f0; /* Light gray for blank spaces */
}

.zodiac:nth-child(1), .zodiac:nth-child(3),
.zodiac:nth-child(6), .zodiac:nth-child(8),
.zodiac:nth-child(9), .zodiac:nth-child(11),
.zodiac:nth-child(14), .zodiac:nth-child(16) {
    background-color: #FFFFFF; /* White */
    color: #9932CC; /* Cheshire Cat Purple */
}

.zodiac:nth-child(2), .zodiac:nth-child(4),
.zodiac:nth-child(5), .zodiac:nth-child(7),
.zodiac:nth-child(10), .zodiac:nth-child(12),
.zodiac:nth-child(13), .zodiac:nth-child(15) {
    background-color: #000000; /* Black */
    color: #9932CC; /* Cheshire Cat Purple */
}


.planet {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
}

* {
  box-sizing: border-box;
}

#tarot-results-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 10px;
}

.tarot-result {
  text-align: center;
}

.tarot-result img {
  max-width: 15%;
  height: auto;
}

#progress-bar {
  width: 100%;
  height: 20px;
  display: none; 
}

#seed-bar {
  width: 100%;
  height: 20px;
  display: none; 
}

#tarot-bar {
  width: 100%;
  height: 20px;
  display: none; 
}

#persephone-bar {
  width: 100%;
  height: 20px;
  display: none; 
}

#serapeum-bar {
  width: 100%;
  height: 20px;
  display: none; 
}

body {
  font-family: cinzel decorative, sans-serif;
}

header {
  background-color: #FFFFFF; 
  width: 100%;
  overflow: hidden; 
  text-align: center;
  font-size: 35px;
  color: white;
}

h1 {
  color: #9932CC; 
}

.container {
  display: flex;
  flex-direction: row;
}

nav {
  flex: 1; /* Takes up 1 fraction of the available space */
  background: #1E90FF;
  padding: 10px;
  box-sizing: border-box;
  font-size: 20px;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0; /* Added to ensure ul starts from the top */
}

article {
  flex: 2; /* Takes up 4 fractions of the available space, making article wider than nav */
  padding: 10px;
  background-color: #1E90FF;
  color: #9932CC;
  box-sizing: border-box;
  font-size: 20px;
}

section::after {
  content: "";
  display: table;
  clear: both;
}

footer {
  background-color: #FFFFFF; 
  text-align: center;
  color: white;
}

body.persephone {
  font-family: cinzel decorative, sans-serif;
  background-color: #1b1b2f;
  color: #c0a7dd;
}

body.persephone header {
  background-color: #4e4e50; 
  color: #c0a7dd; 
}

body.persephone nav {
  background: #162447; 
  color: #e0e0e0; 
}

body.persephone footer {
  background-color: #1b1b2f;
  color: #c0a7dd; 
}

body.gypsy-caravan {
  font-family: 'Cinzel Decorative', sans-serif;
  background-color: #f4e9cd;
  color: #5c3c92; 
}

body.gypsy-caravan header {
  background-color: #c14953;
  color: #fefae0; 
}

body.gypsy-caravan h1 {
  color: #3c415c; 
}

body.gypsy-caravan nav {
  background: #e3b23c; 
  color: #3d405b; 
}

body.gypsy-caravan article {
  background-color: #9d0208; 
  color: #fefae0; 
}

body.gypsy-caravan footer {
  background-color: #f4e9cd; 
  color: #5c3c92;
}

.body.serapeum {
  font-family: 'Cinzel Decorative', sans-serif;
  background-color: #f5f0e1; 
  color: #5a5340;
}

body.serapeum header {
  background-color: #c2a878; 
  color: #3e3a30; 
}

body.serapeum h1 {
  color: #9932CC; 
}

body.serapeum nav {
  background: #a89968; 
  color: #1c1c1c; 
}

body.serapeum article {
  background-color: #e0d4b7; 
  color: #3e3a30;
}

body.serapeum footer {
  background-color: #f5f0e1; 
  color: #5a5340; 
}

.serapeum button, .serapeum input[type="text"], .serapeum input[type="date"], .serapeum select {
  background-color: #e0d4b7; 
  border-color: #8c7851; 
  color: #3e3a30; 
}

.serapeum button:hover, .serapeum input[type="text"]:focus, .serapeum input[type="date"]:focus, .serapeum select:focus {
  border-color: #5a5340; 
}

.scroll-container {
    width: 80%; 
    height: auto; 
    background-color: #f5f0e1; 
    overflow-y: scroll; 
    background: ivory; 
    border: 1px solid #c0a080; 
    padding: 20px;
    margin: auto; 
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3); 
    position: relative; 
}

.scroll-container:before,
.scroll-container:after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    height: 20px;
}

.scroll-container:before {
    top: -20px;
}

.scroll-container:after {
    bottom: -20px;
}

.scroll-content {
}

.persephone-glow {
  text-shadow: 0 0 5px #c0a7dd;
}

.gypsy-caravan-decor {
  border: 2px solid #3d405b; 
  box-shadow: 0 0 10px #c14953;
}

@media (max-width: 1080px) {
  .container {
    flex-direction: column;
  }



  header {
    margin: 0;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 7px;
    font-size: 22px;
  }
  nav, article {
    width: 100%; /* Each takes full width of the container */
    margin: 0; /* Reset any margins that might be affecting layout */
    padding: 5px;
    border: 2px solid #ccc;
    border-radius: 7px;
    font-size: 22px;
    transition: border-color 0.5s ease;
  }

  #banner5, #banner1 {
      display: none;
  }

  nav {
    order: 2; /* Optionally, make nav appear below the article on small screens */
  }

  article {
    order: 1;
  }
}

@media (max-width: 720px) { /* Adjust breakpoint as needed */
  .article-header {
    flex-direction: column; /* Stack elements vertically on small screens */
    align-items: stretch; /* Stretch elements to fill the container width */
  }

    #light, #dark {
        width: 100%; /* Ensure full width on small screens */
        margin: 5px 0; /* Adjust margin for vertical stacking */
        flex-direction: row;
    }

#votingTabButton, #profileTabButton {
    width: 100%; /* Ensure full width on small screens */
    margin: 5px 0; /* Adjust margin for vertical stacking */
    flex-direction: row;
}


} 
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 70px;
  height: 100vh;
  background-color: #2c3e50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

main {
  margin-left: 70px;
  padding: 20px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

#ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#ui button {
  background: none;
  border: none;
  color: #ecf0f1;
  font-size: 20px;
  cursor: pointer;
  margin: 10px 0;
}

#ui button:hover {
  color: #bdc3c7;
}

#streamTabContent {
  text-align: center;
}

#userStream {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border: none;
}

#streamSettings {
  margin-top: 20px;
}

#streamSettings .form-group {
  margin-bottom: 10px;
}

#streamList {
  list-style: none;
  padding: 0;
  margin: 10px auto;
  max-width: 200px;
}

#streamList li {
  cursor: pointer;
  padding: 5px;
  color: #1e90ff;
}

/* Active tab highlight */
#sidebar #ui button.active-tab {
  background: rgba(107, 33, 168, 0.25); /* purple-800 at low alpha */
  border-radius: 8px;
}
