/* Dropdown content styles */
#mp3tv-dropdown,
#social-dropdown {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
    background-color: transparent;
    padding: 0 8px;
    margin: 0;
    will-change: max-height, opacity;
    border-radius: 4px;
}

#mp3tv-dropdown.expanded,
#social-dropdown.expanded {
    max-height: 500px; /* Adjust based on content */
    opacity: 1;
    padding: 8px 8px 12px;
    margin-top: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid #1100ff;
    margin-bottom: 8px;
}

@font-face {
    font-family: 'MrRobot';
    src: url('../fonts/MrRobot.woff2') format('woff2'),
         url('../fonts/MrRobot.woff') format('woff');
}

@font-face {
    font-family: 'daft Font';
    src: url('../fonts/daft Font.ttf') format('truetype');
}

@font-face {
    font-family: 'MainframeOpto';
    src: url('../fonts/mainframe-opto.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
}

canvas {
    display: block;
}

/* =====================================================
   BTC TIP JAR MODAL
   ===================================================== */

.btc-tipjar-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.btc-tipjar-modal.active {
    display: flex;
}

.btc-tipjar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.btc-tipjar-panel {
    position: relative;
    width: min(92vw, 720px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(26, 35, 50, 0.98), rgba(13, 17, 23, 0.98));
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.65);
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btc-tipjar-modal.active .btc-tipjar-panel {
    transform: translateY(0);
    opacity: 1;
}

.btc-tipjar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.btc-tipjar-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.btc-tipjar-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(244, 67, 54, 0.16);
    color: #f44336;
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btc-tipjar-close:hover {
    background: #f44336;
    color: #fff;
}

.btc-tipjar-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    padding: 16px;
}

.btc-tipjar-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
}

.btc-tipjar-qr img {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    background: #fff;
}

.btc-tipjar-address-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #c9d1d9;
}

.btc-tipjar-label {
    font-size: 13px;
    color: #9aa5b1;
}

.btc-tipjar-address {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.10);
    word-break: break-all;
}

.btc-tipjar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btc-tipjar-btn {
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: #2d8cf0;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btc-tipjar-btn:hover {
    background: #1c5fa8;
}

.btc-tipjar-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.btc-tipjar-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.btc-tipjar-hint {
    font-size: 12px;
    color: #9aa5b1;
}

@media (max-width: 640px) {
    .btc-tipjar-body {
        grid-template-columns: 1fr;
    }

    .btc-tipjar-qr img {
        width: 200px;
        height: 200px;
    }
}

/* Dropdown Styling */
.dropdown-header {
    cursor: pointer;
    user-select: none;
    padding: 8px;
    margin: 4px 0;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
    z-index: 1;
}

.dropdown-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    padding: 4px 8px;
    margin: 4px 0 12px 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a {
    display: block;
    color: #fff;
    padding: 8px 12px;
    margin: 4px 0;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
    border-left: 3px solid #4CAF50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message {
    margin: 10px 0;
    padding: 10px 16px;
    background: #4CAF50;
    border-radius: 16px 16px 4px 16px;
    max-width: 75%;
    margin-left: auto;
    margin-right: 12px;
    color: #fff;
    text-align: right;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    word-break: break-word;
}

.ai-message {
    margin: 10px 0;
    padding: 10px 16px;
    background: #2196F3;
    border-radius: 16px 16px 16px 4px;
    max-width: 75%;
    margin-right: auto;
    margin-left: 12px;
    color: #fff;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    word-break: break-word;
}

.user-message strong,
.ai-message strong {
    color: inherit;
    font-weight: bold;
}

.online-users-container {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  cursor: pointer;
  z-index: 5000;
}

.mid-section .online-users-label,
.mid-section .media-title,
.mid-section .AI-title,
.mid-section .podcast-title {
    position: relative;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    background: #2d8cf0;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
    font-size: 1rem;
    display: inline-block;
}

.mid-section .online-users-label:hover,
.mid-section .media-title:hover,
.mid-section .AI-title:hover,
.mid-section .podcast-title:hover,
.mid-section .online-users-label:focus,
.mid-section .media-title:focus,
.mid-section .AI-title:focus,
.mid-section .podcast-title:focus {
    background: #1b6cb8;
}

.online-users-tooltip {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.95em;
  white-space: nowrap;
  z-index: 5100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  pointer-events: none; /* Allows clicks to pass through tooltip */
}

.online-users-label:hover .online-users-tooltip,
.online-users-label:focus .online-users-tooltip {
  display: block;
}

/* User search styling */
.user-search-container {
  position: relative;
  margin: 10px 0;
  width: 100%;
}

.search-field-wrapper {
  display: flex;
  width: 100%;
}

#user-search {
  flex: 1;
  padding: 8px 10px;
  border-radius: 4px 0 0 4px;
  border: 1px solid #444;
  background: #222;
  color: #fff;
  font-size: 14px;
}

#search-button {
  background: #2d8cf0;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 12px;
  cursor: pointer;
}

#search-button:hover {
  background: #1b6cb8;
}

.dropdown-results {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: #222;
  border: 1px solid #444;
  border-top: none;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
}

.search-result-item {
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
  border-bottom: 1px solid #333;
}

.search-result-item:hover {
  background: #333;
}

.search-result-item.online {
  color: #4caf50;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #4caf50;
  border-radius: 50%;
  margin-left: 5px;
}

/* Direct Message Modal */
#direct-message-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

#direct-message-modal .modal {
  background-color: #181c24;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #fff;
}

#direct-message-modal .modal__title {
  margin-top: 0;
  color: #fff;
  font-size: 1.5rem;
}

.status-indicator {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

.dm-message-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.dm-social-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.social-button {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    margin: 2px 0;
}

.social-button.facebook {
    background-color: #3b5998;
}

.social-button.youtube {
    background-color: #ff0000;
}

.social-button.iheart {
    background-color: #c8222a;
}


.social-button.spotify {
    background-color: #1DB954;
}

.social-button.peacock {
    background-color: #00A4BD;
}
.social-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
#dm-message {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  background-color: #242933;
  color: #fff;
}

.dm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.dm-actions button {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

#dm-attach-image {
  background-color: #444;
  color: #fff;
}

#dm-send {
  background-color: #4285f4;
  color: white;
}

.preview-container {
  position: relative;
  display: inline-block;
  margin: 10px 0;
}

.remove-preview {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ff5252;
  color: white;
  border: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#direct-message-modal .modal__btn {
  background-color: #444;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  float: right;
  color: #fff;
}

#direct-message-modal .modal__btn:hover {
  background-color: #555;
}

.direct-message-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dm-messages {
  max-height: 260px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.direct-message-item {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.direct-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.direct-message-body {
  color: #fff;
  font-size: 0.95rem;
  word-break: break-word;
}

.dm-input {
  width: 100%;
  min-height: 80px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  color: #fff;
  margin-top: 12px;
  resize: vertical;
}

.direct-message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.users-modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 6000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(20, 20, 20, 0.7);
}

.users-modal-window {
  background: #181c24;
  color: #fff;
  padding: 32px 24px 24px 24px;
  border-radius: 10px;
  min-width: 300px;
  max-width: 90vw;
  box-shadow: 0 6px 32px rgba(0,0,0,0.4);
  position: relative;
}

.users-modal-close {
  position: absolute;
  top: 9px;
  right: 13px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8em;
  cursor: pointer;
}

.users-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
}

.users-list li {
  padding: 8px 0;
  border-bottom: 1px solid #222;
}

.users-list li.current-user {
  color: #00eaff;
  font-weight: bold;
}

    /* margin: 0;
    padding: 0;
    background: url('../img/chat_back.jpg') no-repeat center center fixed;
    background-size: cover; */
    /* background: #0d1117; */
}

h1 {
    font-weight: 100;
    font-family: 'Roboto Mono', monospace;
    font-size: 1em;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 50px);
    margin-top: 50px;
}

.chat-container {
    /*background: url('../img/chat_back.png') no-repeat center center fixed;*/
    background: url('../img/nyc_graffitti.jpg') no-repeat center center fixed; 
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.3);
    min-height: 100vh;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: none;
    width: min(90vw, 950px);
    height: 95%;
    max-height: 1500px;
    /*background-color: #161b22;  Discord-like dark gray */
    border: 1px solid #1100ff;
    /* Alternative options:
    background-color: #36393f; // Darker gray
    background-color: #40444b; // Medium gray
    background-color: #292b2f; // Deeper gray
    */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-bottom: 1px; /* Adjust padding-bottom to make it thinner */
    transition: height 0.5s ease-out; /* Add transition for height */
}

.chat-header {
    background-image: url('../img/ufo_banner.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    height: 100px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1100ff;
    padding-bottom: 5px;
    box-sizing: border-box;
    margin-bottom: 10px;
    border-radius: 10px;
}

.chat-header h1 {
    font-family: 'daft Font', sans-serif;
}

.chat-header a {
    text-decoration: none;
    color: inherit;
}

#toggle-section {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'MainframeOpto', sans-serif;
    color: #007bff;
    position: relative;
}

#toggle-section .triangle-up,
#toggle-section .triangle-down {
    font-size: 24px;
    margin: 0 5px;
}

#toggle-section .hover-text {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 5px;
    border: 1px solid black;
    border-radius: 3px;
    font-size: 14px;
}

#toggle-section:hover .hover-text {
    display: block;
}

#mid-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    grid-template-rows: 1fr 1fr; /* Two rows */
    gap: 10px; /* Adjust gap between sections as needed */
    font-family: 'MainframeOpto', sans-serif;
    color: black;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    max-height: 200px; /* Initially hidden */
    /* margin-top: 85px; */
    font-weight: 1em;
}

#mid-section.open {
    max-height: 177px; /* Adjust this value based on your content height */
    display: grid; /* Ensure grid display */
}

.mid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    font-family: 'MainframeOpto', sans-serif;
    color: #fff;
    padding: 10px;
    background: transparent;
} 

.chat-users, 
.media-section, 
.AI-section, 
.podcast-section {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
}

/* Hover effect for sections */
.chat-users:hover,
.media-section:hover, 
.AI-section:hover, 
.podcast-section:hover {
    border-color: rgba(0, 234, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.2);
}

/* Specific adjustment for spacing in chat-users */
.chat-users .chat-header {
    margin-bottom: 2px; /* Add space between chat-header and chat-messages 
}

.chat-users {
    grid-column: 1 / 2; /* First column */
    grid-row: 1 / 2; /* First row */
}

.media-section {
    grid-column: 2 / 3; /* Second column */
    grid-row: 1 / 2; /* First row */
}

.AI-section {
    grid-column: 1 / 2; /* First column */
    grid-row: 2 / 3; /* Second row */
}

.podcast-section {
    grid-column: 2 / 3; /* Second column */
    grid-row: 2 / 3; /* Second row */
}

.chat-users {
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'MainframeOpto', monospace;
    text-transform: none !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
}
.chat-time-user {
    font-family: 'MrRobot', monospace;
}

.ai-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    min-height: 44px;
    box-sizing: border-box;
}

.ai-item:hover,
.ai-item:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.ai-item:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.45);
}

.ai-button {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    background: rgba(255, 255, 255, 0.1);
}

.ai-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.chat-messages {
    background-image: url('../img/Grid_void.jpg');
    background-size: cover;
    background-position: center;
    font-family: 'MainframeOpto', Arial, sans-serif;
    text-transform: none !important;
    color: #00FF00;
    font-size: 16px;
    line-height: 1.5;
    flex: 1; /* Make it flexible to take up available space */
    overflow-y: auto;
    margin-top: 7px; 
    margin-bottom: 5px;
    padding: 10px 15px;
    border: 1px solid #1100ff;
    border-radius: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 20px 20px 0px 20px;
    max-width: 80%;
    word-wrap: break-word;
    margin-bottom: 10px;
    font-family: 'MainframeOpto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    display: inline-block;
    clear: both;
    border-radius: 10px;
    text-transform: none !important;
}

.chat-message span, 
.chat-message a, 
.chat-message p {
    font-family: Arial, sans-serif !important; /* Override the MainframeOpto font */
    text-transform: none !important;
}

:root {
    --user-chat-color: #09c7ec10; /* Default color for user chat bubbles */
}

.chat-message.user1 {
    background-color: #000801;
    color: red;
    float: right;
}

.chat-message.user2 {
    background-color: #000801;
    color: #FF33FF;
    float: left;
}

.chat-link {
    color: #0066cc;
    text-decoration: underline;
    word-break: break-all;
}

.chat-link:hover {
    color: #0044aa;
    text-decoration: none;
}

.chat-link:visited {
    color: #551A8B;
}

.chat-message img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    margin: 5px 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-message img:hover {
    transform: scale(1.05);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.chat-image {
    max-width: 100%;
    cursor: pointer;
}

.chat-input {
    width: 100%;
    max-width: 9000px;
    height: 60px;
    padding: 1px;
    font-size: 1.5rem;
    border: 1px solid white;
    background-color: #000;
    color: whitesmoke;
    display: block;
    margin: 10px auto;
    resize: none;
    border-radius: 5px;
    padding-bottom: 50px;
}

.send-button {
    background-color: blue;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.send-button:hover {
    background-color: blue;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 10px;
    border: 1px solid #1100ff;
    border-radius: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.button-container button {
    flex: 1;
    padding: 8px 20px;
    margin: 5px;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    cursor: pointer;
    color: #fff;
    background: transparent !important;
    box-shadow: none;
    opacity: 0.85;
    transition: background 0.2s, color 0.2s, border 0.2s, opacity 0.2s;
}

.button-container button:hover,
.button-container button:focus {
    background: rgba(255,255,255,0.10);
    color: #00eaff;
    border: 1.5px solid #00eaff;
    opacity: 1;
}

.button-container a,
a#modal-closed.link-1 {
    border: 1px solid #1100ff;
    border-radius: 100px;
    background: transparent !important;
    color: #fff;
    box-shadow: none;
    opacity: 0.85;
    transition: background 0.2s, color 0.2s, border 0.2s, opacity 0.2s;
    padding: 8px 20px;
    margin: 5px;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

a#modal-closed.link-1:hover,
a#modal-closed.link-1:focus {
    background: rgba(255,255,255,0.10) !important;
    color: #00eaff;
    border: 1.5px solid #00eaff;
    opacity: 1;
}

.button-container a.link-1 {
    flex: 1;
    padding: 8px 20px;
    margin: 5px;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 100px;
    cursor: pointer;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0.85;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s, opacity 0.2s;
}

.button-container a:hover,
.button-container a:focus,
.button-container a.link-1:hover,
.button-container a.link-1:focus {
    background: rgba(255,255,255,0.10) !important;
    color: #00eaff !important;
    border: 1.5px solid #00eaff !important;
    opacity: 1;
}



/* Style section headers to match ONLINE USERS label */
.chat-users h2,
.media-section h2,
.AI-section h2,
.podcast-section h2,
.mid-section > div > h2,
#mid-section > div > h2 {
    background: #2d8cf0;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: 6px;
    margin: 0 0 15px 0;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}

.chat-users h2:hover,
.media-section h2:hover,
.AI-section h2:hover,
.podcast-section h2:hover,
.mid-section > div > h2:hover,
#mid-section > div > h2:hover {
    background: #1b6cb8;
}

.send-button {
    background-color: transparent;
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
    color: #2ecc71;
}

.send-button:hover {
    background-color: rgba(46, 204, 113, 0.1) !important;
    border-color: #2ecc71 !important;
    color: #2ecc71;
}

.clear-chat-button {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff;
}

.clear-chat-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #00eaff !important;
    color: #00eaff;
}

.logout-button {
    background-color: transparent;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    color: #dc3545;
}

.logout-button:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: #ff6b6b !important;
    color: #ff6b6b;
}

#file-upload-form {
    margin-top: 10px;
}

#file-input {
    color: black;
    font-size: 16px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

#upload-button {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#upload-button:hover {
    background-color: #0056b3;
}


.image-container {
    text-align: center;
    border-radius: 24px;
    border: 2px solid #2ecc71;
}

.image-container img {
    display: inline-block;
}

button[onclick*="spacechat.php"] {
    border: 0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #2ecc71;
    padding: 14px 40px;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
    cursor: pointer;
}

/* .chat-users {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
} */

.chat-users h2 {
    color: #fffffff1;
    margin-bottom: 10px;
}

#online-users {
    list-style-type: none;
    padding: 0;
}

#online-users li {
    display: inline-block;
    margin-right: 10px;
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.chat-users {
    border-bottom: 1px solid #ccc;
    font-family: 'MainframeOpto', monospace;
    text-transform: none !important;
}

.online-user {
    cursor: pointer;
    transition: color 0.2s;
}

.online-user:hover {
    color: #00FF00;
}

#color-picker {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.current-user .online-user {
    color: var(--user-chat-color);
    font-weight: bold;
}

/* Login form styles */
.frame {
    width: 450px;
    padding: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #191919;
    text-align: center;
    font-family: BrunoAceSc-Regular;
    border-radius: 24px;
    border: 12px solid #3498db; /* Blue border */
}

.frame h1, h2, p {
    color: blue;
    font-size: 15px;
    text-transform: none;
    font-weight: normal;    
}

/* Common styles for text and password inputs for Login and Register forms */
.frame input[type="text"],
.frame input[type="password"] {
    border: 0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #3498db;
    padding: 14px 10px;
    width: 200px;
    outline: none;
    color: chartreuse;
    border-radius: 24px;
    transition: 1s;
}

/* Focus styles for text and password inputs */
.frame input[type="text"]:focus,
.frame input[type="password"]:focus {
    width: 280px;
    border-color: #2ecc71;
}

/* Styles for the submit button */
.frame input[type="submit"] {
    border: 0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    padding: 14px 40px;
    outline: none;
    color: white;
    background-color: #3498db;
    border-radius: 24px;
    transition: 0.25s;
    cursor: pointer;
}

/* Hover styles for the submit button */
.frame input[type="submit"]:hover {
    background: cornflowerblue;
}

/* Media section styles moved below - see line ~1174 */

.media-title {
    margin-bottom: 10px;
}

.void-link {
    text-decoration: none;
    color: #333;
    margin-bottom: 10px;
}

.social-buttons-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px; /* Reduced from 10px */
}

.social-button {
    display: inline-block;
    font-size: 0.65rem; /* Reduced from 0.875rem */
    font-weight: 400;
    padding: 0.4rem 1rem; /* Reduced from 0.625rem 1.25rem */
    text-align: center;
    border-radius: 0.4rem; /* Slightly reduced from 0.5rem */
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 4px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.social-button:hover {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.social-button.facebook {
    background-image: linear-gradient(to right, #3b82f6, #2563eb, #1d4ed8);
}

.social-button.youtube {
    background-image: linear-gradient(to right, #ef4444, #dc2626, #b91c1c);
}

/* Media Section */
.media-section {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 15px;
    margin-bottom: 0px;
    width: 100%;
    justify-content: space-between;
}

.dropdown-section {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    background-color: transparent;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: none;
    margin: 0;
    max-width: 48%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    border-radius: 4px;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.dropdown-header:hover {
    background-color: #3a3f4a;
}

.media-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
    color: #8a94a5;
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
    background-color: transparent;
    padding: 0 8px;
    margin: 0;
    will-change: max-height, opacity;
}

.dropdown-content.expanded {
    max-height: 500px; /* Adjust based on your content height */
    opacity: 1;
    padding: 8px 8px 12px;
    margin-top: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 13px;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: #333a47;
    color: #fff;
    padding-left: 25px;
    border-left-color: #2d8cf0;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 13px;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: #333a47;
    color: #fff;
    border-left-color: #4a90e2;
    padding-left: 25px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .dropdown-section {
        width: 100%;
    }
}
/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    .social-button {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    }
}
.captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

/* Specific styling for message text to prevent uppercase */
.message-text {
    font-family: Arial, sans-serif !important;
    text-transform: none !important;
    font-size: 16px;
}

/* ==============================================
   MOBILE RESPONSIVENESS - Tablet (768px)
   ============================================== */
@media (max-width: 768px) {
    .chat-container {
        width: 98%;
        padding: 10px;
        height: 98vh;
        max-height: none;
    }

    .chat-header {
        height: 60px;
        margin-bottom: 5px;
    }

    /* Convert mid-section from 2x2 grid to single column */
    #mid-section,
    .mid-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        max-height: 350px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 8px;
    }

    #mid-section.open,
    .mid-section.open {
        max-height: 350px;
    }

    /* Reset grid positions - stack vertically */
    .chat-users,
    .media-section,
    .AI-section,
    .stream-section-wrapper,
    .ai-section-wrapper,
    .podcast-section {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Chat users section - stack elements */
    .chat-users > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px;
    }

    /* Chat users container */
    .chat-users .online-users-container {
        margin-left: 0;
        width: 100%;
    }

    /* User search container */
    .chat-users .user-search-container {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Stream controls - vertical wrap */
    .stream-controls {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* Stream controls inner divs */
    .stream-controls > div {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Stream buttons */
    .stream-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    /* AI items container - wrap */
    .ai-items-container {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    /* AI item buttons */
    .ai-item {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
    }

    /* Button container - wrap */
    .button-container {
        flex-wrap: wrap;
        gap: 5px;
        padding: 8px;
    }

    /* Button container items */
    .button-container button,
    .button-container a {
        flex: 1 1 calc(50% - 10px) !important;
        min-width: 80px;
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    /* Chat input */
    .chat-input {
        height: 50px;
        font-size: 1.2rem;
        padding-bottom: 30px;
    }
}

/* ==============================================
   MOBILE RESPONSIVENESS - Phone (480px)
   ============================================== */
@media (max-width: 480px) {
    .chat-container {
        width: 100%;
        padding: 5px;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }

    .chat-header {
        height: 50px;
        border-radius: 5px;
    }

    /* Mid-section - more compact */
    #mid-section,
    .mid-section {
        max-height: 300px;
        padding: 5px;
        gap: 8px;
    }

    /* Sections - tighter padding */
    .chat-users,
    .media-section,
    .AI-section,
    .podcast-section {
        padding: 10px !important;
    }

    /* Online users label */
    .online-users-label {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
    }

    /* Search field */
    #user-search {
        font-size: 12px;
        padding: 6px 8px;
    }

    /* Media section dropdown */
    .dropdown-header {
        padding: 8px 10px;
    }

    .media-title {
        font-size: 12px !important;
    }

    /* Stream section - compact */
    .stream-header {
        flex-wrap: wrap;
        gap: 5px;
    }

    .stream-logo {
        max-width: 80px;
    }

    .stream-dj {
        font-size: 12px;
    }

    .stream-track {
        font-size: 11px;
    }

    .stream-controls > div {
        gap: 4px !important;
    }

    .stream-btn {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    /* AI section */
    .AI-title {
        font-size: 0.9rem !important;
        padding: 6px 12px !important;
    }

    .ai-item {
        padding: 6px 10px;
        font-size: 11px;
        min-height: 32px;
    }

    /* Chat messages */
    .chat-messages {
        padding: 8px 10px;
        font-size: 14px;
    }

    .chat-message {
        padding: 8px 12px;
        font-size: 14px;
        max-width: 90%;
    }

    /* Chat input */
    .chat-input {
        height: 45px;
        font-size: 1rem;
        padding-bottom: 25px;
    }

    /* Button container - stack on very small screens */
    .button-container {
        padding: 5px;
    }

    .button-container button,
    .button-container a {
        flex: 1 1 calc(50% - 5px) !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
        margin: 2px !important;
    }

    /* Toggle section */
    #toggle-section .triangle-up,
    #toggle-section .triangle-down {
        font-size: 18px;
    }
}

/* ==============================================
   TYPING INDICATOR
   ============================================== */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin: 5px 0;
    font-size: 16px;
    color: #4ade80;
    font-style: italic;
}

.typing-text {
    color: #22c55e;
}

.typing-dots {
    display: inline-flex;
    gap: 2px;
}

.typing-dots span {
    animation: typingDot 1.4s infinite ease-in-out;
    color: #22c55e;
    font-weight: bold;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* ==============================================
   A.I. MODE (G.R.I.O.T) - CONTAINER TUNNEL + TERMINAL
   ============================================== */

/* Page background */
body {
    background: #000;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Chat container base */
.chat-container {
    z-index: 1;
    position: relative;
}

/* Exclude overlay from z-index stacking */
.chat-container.ai-mode-bg > *:not(.ai-bg-overlay) {
    position: relative;
    z-index: 1;
}

/* Chat container with ai-mode background */
.chat-container.ai-mode-bg {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    width: 100vmin;
    margin: 0 auto;
    /* background: transparent; */
}

/* Chat messages styling for ai-mode terminal */
.chat-messages.ai-mode {
    position: relative;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace !important;
    color: #00ff00 !important;
    overflow: hidden;
}

/* Message styling overrides */
.chat-messages.ai-mode .user-message,
.chat-messages.ai-mode .ai-message,
.chat-messages.ai-mode .chat-message {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.55) !important;
    border: none !important;
    color: #00ff00 !important;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00 !important;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}

/* AI message border */
.chat-messages.ai-mode .ai-message {
    border-left: 3px solid #00ff41 !important;
}

/* User message border */
.chat-messages.ai-mode .user-message {
    border-right: 3px solid #00cc00 !important;
}

/* Username styling */
.chat-messages.ai-mode .chat-message .username {
    color: #00ff41 !important;
    text-shadow: 0 0 8px #00ff41 !important;
    font-weight: bold !important;
}

/* Message text font */
.chat-messages.ai-mode .chat-message .message-text {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace !important;
}

/* Tunnel movement animation */
@keyframes ai-moveTunnel {
    from {
        transform: translateZ(50vmin);
    }
    to {
        transform: translateZ(60vmin);
    }
}

/* Highlight wave animation */
@keyframes ai-highlight {
    99% {
        transform: translateZ(0) translateX(50%);
        opacity: 1;
    }
    100% {
        transform: translateX(0) translateX(50%);
        opacity: 0;
    }
}

/* Cursor blink effect */
.ai-mode-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: #00ff00;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    box-shadow: 0 0 5px #00ff00;
}

/* Blink animation */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    50.01%, 100% {
        opacity: 0;
    }
}

body, html, #app {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  touch-action: none;
}

#app {
  height: 100%;
  font-family: "Montserrat", serif;
}

#app a {
  text-decoration: none;
  color: #fff;
}

.hero {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

h1, h2, p {
  margin: 0;
  padding: 0;
  color: white;
  text-shadow: 0 0 20px rgba(0, 0, 0, 1);
  line-height: 100%;
  user-select: none;
}

h1 {
  font-size: 80px;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  font-size: 60px;
  font-weight: 500;
  text-transform: uppercase;
}

#canvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: -1;
}

