Files
BTCforPlebs.com/public/assets/css/main.css
2025-11-21 16:44:51 -05:00

679 lines
15 KiB
CSS

/* General Variables (Light Mode by Default) */
:root {
--background-color: #f4f4f4;
--text-color: #333;
--container-background: #e6e6e6;
--button-bg-top: #ffffff;
--button-bg-bottom: #e6e6e6;
--button-border: #aaa;
--button-hover-bg-top: #f9f9f9;
--button-hover-bg-bottom: #d9d9d9;
--btt-button:#aaa;
--price-banner-bg-top: #ffd149;
--price-banner-bg-bottom: #d7ac00;
--button-bg-top-active: #ffd149;
--button-bg-bottom-active: #d7ac00;
--section-background: #f7f7f7;
}
/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
:root {
--background-color: #666;
--text-color: #f4f4f4;
--container-background: rgba(26, 26, 26, 0.5);
--button-bg-top: #444;
--button-bg-bottom: #555;
--button-border: #666;
--button-hover-bg-top: #555;
--button-hover-bg-bottom: #666;
--btt-button: #afafaf;
--price-banner-bg-top: #ffd149;
--price-banner-bg-bottom: #d7ac00;
--button-bg-top-active: #ffd149;
--button-bg-bottom-active: #d7ac00;
--section-background: #777777;
}
}
/* General Page Style */
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: "Lucida Grande", Arial, sans-serif;
text-align: center;
margin: 0;
padding: 0px 0;
padding-top: 0px;
padding-bottom: 4%;
box-sizing: border-box;
}
.container {
margin: auto;
padding: 10px;
padding-top: 10px;
box-sizing: border-box;
text-align: center;
background: var(--container-background);
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Mobile styles */
@media (max-width: 768px) {
.container {
max-width: 96%; /* Full width for mobile */
padding-top: 10px;
}
}
/* Desktop styles */
@media (min-width: 769px) {
.container {
max-width: 70%; /* Different width for desktop */
margin: 20px auto; /* Center the container */
}
}
.dropdown select {
display: block;
width: 250px;
margin: 21px auto;
padding: 15px 15px;
font-size: 16px;
background: linear-gradient(to bottom, var(--button-bg-top), var(--button-bg-bottom));
color: #F7931A;
font-weight: bold;
border: 1px solid var(--button-border);
border-radius: 8px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
cursor: pointer;
line-height: 1.5em;
transition: all 0.2s ease-in-out;
}
.dropdown select:hover {
background: linear-gradient(to bottom, var(--button-hover-bg-top), var(--button-hover-bg-bottom));
border-color: var(--button-border-hover, #888);
}
.dropdown select:focus {
outline: none;
background: linear-gradient(to bottom, var(--button-bg-top), var(--button-bg-bottom));
border-color: #333;
}
section {
margin: 50px auto;
position: relative;
padding: 10px;
padding-bottom: 60px;
max-width: 100%;
text-align: center;
border-radius: 12px;
background: var(--section-background);
box-shadow: 4px 4px 4px 4px rgba(0.1, 0.1, 0.1, 0.1);
}
h1 {
font-size: 32px;
font-weight: bold;
margin-bottom: 20px;
}
h2 {
font-size: 26px;
font-weight: bold;
margin-bottom: 20px;
}
h3 {
font-size: 20px;
font-weight: normal;
margin-bottom: 20px;
}
p {
margin-bottom: 20px;
color: var(--text-color);
font-size: 18px;
}
small {
font-size: 12px;
}
.profile-picture {
width: 120px;
height: 120px;
border-radius: 50%;
border: 2px solid var(--button-border);
margin: 0 auto 15px;
display: block;
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}
/* Button Style (Common for All Buttons) */
.button {
display: block;
background: linear-gradient(to bottom, var(--button-bg-top), var(--button-bg-bottom));
border: 1px solid var(--button-border);
border-radius: 8px;
text-decoration: none;
color: var(--text-color);
padding: 10px 0;
font-size: 16px;
cursor: pointer;
margin: 21px auto;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
width: 80%;
text-align: center;
line-height: 1.5em;
transition: all 0.2s ease-in-out;
}
.button.active {
background: linear-gradient(to bottom, var(--button-bg-top-active), var(--button-bg-bottom-active)); /* Subtle gold gradient */
border-color: #333; /* Darker border for active state */
font-weight: bold; /* Make text bold */
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); /* Add a stronger shadow */
}
.button:hover {
background: linear-gradient(to bottom, var(--button-hover-bg-top), var(--button-hover-bg-bottom));
border-color: var(--button-border-hover, #888);
}
.button-container {
display: flex;
justify-content: center; /* Center buttons horizontally */
gap: 10px; /* Add space between buttons */
flex-wrap: wrap; /* Ensure buttons wrap if they don't fit in one row */
}
.video-container {
max-width: 70%;
margin: auto;
}
.video-container-live {
position: relative;
padding-bottom: 56.25%; /* 16:9 aspect ratio (9 / 16 = 0.5625) */
height: 0;
overflow: hidden;
}
.video-container-live iframe {
position: absolute;
top: 0;
left: 0;
height: 100%;
}
/* Mobile styles */
@media (max-width: 768px) {
.video-container {
max-width: 100%; /* Full width for mobile */
}
}
.links {
display: none; /* Hidden by default */
margin-top: 10px;
text-decoration: none;
text-align: center; /* Center folder items */
}
.links a {
display: block;
background: linear-gradient(to bottom, var(--button-bg-top), var(--button-bg-bottom));
color: var(--text-color);
text-decoration: none;
padding: 10px 0;
border: 1px solid var(--button-border);
border-radius: 6px;
width: 75%;
margin: 5px auto;
font-size: 14px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
text-align: center;
line-height: 1.5em;
}
.links a:hover {
background: linear-gradient(to bottom, var(--button-hover-bg-top), var(--button-hover-bg-bottom));
border-color: var(--button-border-hover, #888);
}
/* Align the logo-container to the left */
.logo-container {
text-align: center; /* Align content to the left */
margin-bottom: 0px; /* Add spacing below the logo */
}
.logo-container a {
display: inline-block; /* Ensure the link and image behave properly */
}
/* Header Logo Styling */
.header-logo {
width: 40px; /* Smaller size for better fit in the header */
height: auto; /* Maintain aspect ratio */
border-radius: 6px; /* Slightly rounded corners for aesthetics */
cursor: pointer; /* Indicate it's clickable */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
position: left;
}
.header-logo:hover {
opacity: 0.8; /* Slight hover effect */
}
/* Social Icons Container */
.social-icons {
display: flex;
justify-content: center; /* Center the icons */
gap: 20px; /* Add spacing between icons */
margin: 20px 0; /* Add spacing around the section */
}
/* Individual Social Icon Links */
.social-icons a {
display: inline-block;
color: #999; /* Default color */
font-size: 24px; /* Icon size */
transition: color 0.3s ease, transform 0.3s ease; /* Smooth hover effect */
}
/* Hover Effect for Icons */
.social-icons a:hover {
color: #d7ac00; /* Hover color */
transform: scale(1.2); /* Slightly enlarge on hover */
}
/* Social Icons Font Fix */
.social-icons i {
font-family: 'Font Awesome 6 Brands', 'Font Awesome 6 Free'; /* Cover multiple sets */
font-weight: 900;
}
#back-to-top {
position: sticky; /* Position the button relative to the section */
bottom: 20px; /* Space from the bottom of the section */
left: 20px; /* Space from the right of the section */
background-color: var(--btt-button);
border: 1px solid var(--button-border);
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 50px;
height: 50px;
justify-content: center;
align-items: center;
cursor: pointer;
transition: all 0.3s ease-in-out;
z-index: 10; /* Ensures it stays above other content */
}
/* Wrap the <a> around the button area */
#back-to-top a {
display: flex; /* Ensures the link fills the button */
justify-content: center;
align-items: center;
width: 100%; /* Make the link fill the button's width */
height: 100%; /* Make the link fill the button's height */
text-decoration: none; /* Removes underline from the link */
font-size: 24px; /* Size of the 🔝 emoji */
color: #ffffff; /* Set emoji color to white */
}
#back-to-top:hover {
background-color: var(--btt-button); /* Changes color on hover */
transform: scale(1.1); /* Slight zoom on hover */
}
#chat-window {
bottom: 0 !important;
right: 0 !important;
width: 100vw !important;
height: 100vh !important;
border-radius: 0 !important;
max-width: 100% !important;
}
#chat-header {
border-radius: 0 !important;
}
#chat-input {
border-radius: 0 0 0 0 !important;
}
#chat-bubble {
bottom: 16px !important;
right: 16px !important;
width: 50px;
height: 50px;
}
/* Safe area for mobile devices with notches */
.safe-area-bottom {
padding-bottom: env(safe-area-inset-bottom);
}
html {
scroll-behavior: smooth;
}
#btc-price-banner {
background: linear-gradient(to bottom, var(--price-banner-bg-top), var(--price-banner-bg-bottom));
color: var(--text-color);
font-size: 14px;
font-weight: bold;
padding: 10px;
margin-bottom: 20px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
text-align: center;
max-width: 90%;
margin: 20px auto;
}
.qr-button {
display: inline-block;
background: linear-gradient(to bottom, var(--button-bg-top), var(--button-bg-bottom));
border: 1px solid var(--button-border);
border-radius: 8px;
text-decoration: none;
color: #F7931A;
padding: 10px 10px;
font-size: 16px;
cursor: pointer;
margin: auto auto auto 10px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
text-align: center;
line-height: 1.5em;
transition: all 0.2s ease-in-out;
}
.qr-button:hover {
background: linear-gradient(to bottom, var(--button-hover-bg-top), var(--button-hover-bg-bottom));
border-color: var(--button-border-hover, #888);
}
#qrCodes img {
margin-top: 10px; /* Spacing above the QR code */
width: 150px; /* Set a width for the QR code */
height: auto; /* Maintain aspect ratio */
}
footer {
padding: 10px;
text-align: center;
font-size: 12px;
margin-top: 20px;
color: var(--text-color);
}
/* Nostr Chat Widget Styles */
/* Widget positioning and z-index management */
#chat-widget-root > div {
pointer-events: auto !important;
position: fixed !important;
bottom: 1.5rem !important;
right: 1.5rem !important;
z-index: 99999 !important;
}
/* Chat bubble button */
#chat-bubble {
position: fixed !important;
bottom: 24px !important;
right: 24px !important;
width: 60px;
height: 60px;
background: #fdad01;
border: 2px solid #fdad01;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transition: transform 0.2s;
z-index: 999999 !important;
}
#chat-bubble:hover {
transform: scale(1.1);
}
#chat-bubble.hidden {
display: none !important;
}
/* Chat window container */
#chat-window {
position: fixed !important;
bottom: 24px !important;
right: 24px !important;
width: 380px;
height: 600px;
background: white;
border: 2px solid #fdad01;
border-radius: 12px;
display: none;
flex-direction: column;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
z-index: 999999 !important;
}
#chat-window.open {
display: flex !important;
}
/* Chat header */
#chat-header {
background: linear-gradient(to right, #fdad01, #ff9500);
color: white;
padding: 16px;
border-radius: 10px 10px 0 0;
display: flex;
justify-content: space-between;
align-items: center;
}
#status {
font-size: 12px;
opacity: 0.9;
margin-top: 4px;
}
#close-btn {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 32px;
height: 32px;
border-radius: 6px;
cursor: pointer;
font-size: 18px;
}
/* Messages container */
#messages {
flex: 1;
overflow-y: auto;
padding: 16px;
background: #f9fafb;
}
/* Message bubbles */
.message {
margin-bottom: 12px;
display: flex;
}
.message.user {
justify-content: flex-end;
}
.message.cs,
.message.system {
justify-content: flex-start;
}
.message-bubble {
max-width: 75%;
padding: 10px 14px;
border-radius: 12px;
font-size: 14px;
}
.message.user .message-bubble {
background: #fdad01;
color: white;
}
.message.cs .message-bubble {
background: white;
border: 1px solid #e5e7eb;
color: #1f2937;
}
.message.system .message-bubble {
background: #dbeafe;
color: #1e40af;
font-size: 13px;
}
.message-time {
font-size: 11px;
opacity: 0.7;
margin-top: 4px;
}
/* Input area */
#chat-input {
padding: 16px;
border-top: 1px solid #e5e7eb;
background: white;
border-radius: 0 0 10px 10px;
}
#input-container {
display: flex;
gap: 8px;
}
#message-input {
flex: 1;
padding: 10px 14px;
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 14px;
outline: none;
}
#message-input:focus {
border-color: #fdad01;
}
#send-btn {
background: #fdad01;
color: white;
border: none;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
}
#send-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Connecting animation */
.connecting {
animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* Navbar Styles */
.navbar {
background: linear-gradient(to bottom, var(--button-bg-top), var(--button-bg-bottom));
border-bottom: 1px solid var(--button-border);
padding: 10px 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.navbar-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.navbar-logo {
display: flex;
align-items: center;
text-decoration: none;
color: var(--text-color);
font-weight: bold;
font-size: 1.2rem;
}
.navbar-logo img {
height: 40px;
margin-right: 10px;
border-radius: 6px;
}
.navbar-menu {
display: flex;
gap: 20px;
}
.navbar-item {
text-decoration: none;
color: var(--text-color);
font-weight: 500;
padding: 8px 12px;
border-radius: 6px;
transition: background-color 0.2s, color 0.2s;
}
.navbar-item:hover {
background-color: rgba(0, 0, 0, 0.05);
color: #F7931A; /* Bitcoin Orange */
}
/* Mobile Navbar */
@media (max-width: 768px) {
.navbar-container {
flex-direction: column;
gap: 10px;
}
.navbar-menu {
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}
}