323 lines
No EOL
7.9 KiB
CSS
323 lines
No EOL
7.9 KiB
CSS
/* style.css
|
|
* Copyright (c) 2025 snfsx.xyz
|
|
* Licensed under the MIT License. See https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
|
|
/* Basic Reset & Font */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
/* Even Darker Theme Variables */
|
|
--bg-color: #0b1414; /* Almost black desaturated cyan */
|
|
--text-color: #a8c0bf; /* Further dimmed light grayish cyan */
|
|
--primary-color: #48bfae; /* Keep relatively bright */
|
|
--secondary-color: #4ca99d; /* Darkened secondary */
|
|
--accent-color: #f5a57f; /* Contrasting accent - kept */
|
|
--card-bg: #121f1f; /* Container background - KEEP THIS */
|
|
--border-color: #1f3a3a; /* Darker border */
|
|
--link-color: #50bbae; /* Adjusted link color */
|
|
--link-hover-color: #68d4c6; /* Adjusted link hover color */
|
|
--tag-bg: #1a423f; /* Darker tag background */
|
|
--tag-text: var(--text-color); /* Match text color */
|
|
--button-bg: var(--primary-color);
|
|
--button-text: #0b1414; /* Match darkest background for text on button */
|
|
--button-hover-bg: var(--secondary-color);
|
|
--code-bg: #182e2e; /* Darker code background */
|
|
/* --- CHANGE: Make section background same as container background --- */
|
|
--section-card-bg: var(--card-bg); /* #121f1f */
|
|
--music-card-bg: #101a1a; /* Slightly darker than section/container for music card */
|
|
--section-shadow: rgba(0, 0, 0, 0.3); /* Slightly darker shadow for better visibility */
|
|
--section-shadow-hover: rgba(0, 0, 0, 0.45); /* Shadow on hover */
|
|
|
|
|
|
/* Transitions & Animations */
|
|
--transition-speed: 0.3s;
|
|
--entry-animation-duration: 0.8s; /* Duration for entry animation */
|
|
}
|
|
|
|
/* --- Keyframes for Entry Animation --- */
|
|
@keyframes slideDownFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-2px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
|
|
/* Body uses the new default dark theme */
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
line-height: 1.6;
|
|
padding: 20px;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1000px;
|
|
margin: 40px auto;
|
|
padding: 20px; /* Padding around sections */
|
|
/* --- KEEP THIS BACKGROUND --- */
|
|
background-color: var(--card-bg); /* #121f1f */
|
|
border-radius: 10px;
|
|
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
|
|
border: 1px solid var(--border-color);
|
|
perspective: 1200px;
|
|
|
|
/* Apply Entry Animation */
|
|
opacity: 0;
|
|
animation: slideDownFadeIn var(--entry-animation-duration) ease-out forwards;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
margin-bottom: 30px; /* Space between header and first section */
|
|
padding-bottom: 20px; /* Space within header */
|
|
/* --- Make header blend with container, add border --- */
|
|
background-color: transparent; /* Header blends with container */
|
|
border-bottom: 1px solid var(--border-color);
|
|
position: relative;
|
|
/* No padding like sections, let container padding handle spacing */
|
|
}
|
|
|
|
header h1 {
|
|
color: var(--primary-color);
|
|
margin-bottom: 5px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--secondary-color);
|
|
font-size: 0.95em;
|
|
font-weight: 300;
|
|
}
|
|
|
|
/* --- Section as Card Styling & Animation --- */
|
|
section {
|
|
margin-bottom: 25px; /* Adjusted margin between section cards */
|
|
padding: 25px; /* Padding inside each section card */
|
|
/* --- CHANGE: Use darker background for section card --- */
|
|
background-color: var(--section-card-bg); /* #121f1f */
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: 0 4px 10px var(--section-shadow);
|
|
transition: transform var(--transition-speed) ease,
|
|
box-shadow var(--transition-speed) ease;
|
|
transform-style: preserve-3d;
|
|
}
|
|
|
|
section:hover {
|
|
transform: rotateY(3deg) scale(1.01);
|
|
box-shadow: 0 8px 25px var(--section-shadow-hover);
|
|
}
|
|
|
|
/* Remove bottom margin from the last section inside container */
|
|
.container > section:last-of-type {
|
|
margin-bottom: 0;
|
|
}
|
|
/* --- End Section Card Styling --- */
|
|
|
|
|
|
h2 {
|
|
color: var(--primary-color);
|
|
margin-top: 0;
|
|
margin-bottom: 20px; /* More space below heading */
|
|
font-weight: 600;
|
|
border-bottom: 2px solid var(--secondary-color);
|
|
padding-bottom: 8px; /* Slightly more padding */
|
|
display: inline-block;
|
|
}
|
|
|
|
a1 {
|
|
color: var(--link-color);
|
|
text-decoration: none;
|
|
transition: color var(--transition-speed) ease;
|
|
}
|
|
|
|
|
|
a {
|
|
color: var(--link-color);
|
|
text-decoration: none;
|
|
transition: color var(--transition-speed) ease;
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--link-hover-color);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding-left: 5px;
|
|
}
|
|
|
|
li {
|
|
margin-bottom: 10px; /* Increased spacing */
|
|
}
|
|
|
|
li strong {
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
/* Now Playing Section */
|
|
.music-card {
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: var(--music-card-bg); /* #101a1a */
|
|
padding: 15px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-color);
|
|
margin-top: 20px; /* More space above music card */
|
|
min-height: 100px;
|
|
}
|
|
|
|
.album-cover {
|
|
width: 80px;
|
|
height: 80px;
|
|
object-fit: cover;
|
|
border-radius: 4px;
|
|
margin-right: 15px;
|
|
background-color: var(--border-color);
|
|
flex-shrink: 0;
|
|
transition: opacity 0.5s ease;
|
|
opacity: 1;
|
|
}
|
|
.album-cover.error {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
|
|
.track-info {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
#now-playing-status {
|
|
font-style: italic;
|
|
color: var(--secondary-color);
|
|
font-size: 0.9em;
|
|
min-height: 1.2em;
|
|
}
|
|
#now-playing-status:not(:empty) + #now-playing-title {
|
|
display: none;
|
|
}
|
|
#now-playing-status:not(:empty) + #now-playing-title + #now-playing-artist {
|
|
display: none;
|
|
}
|
|
|
|
|
|
.track-title {
|
|
font-weight: 600;
|
|
font-size: 1.1em;
|
|
margin-bottom: 2px;
|
|
min-height: 1.2em;
|
|
}
|
|
|
|
.track-artist {
|
|
font-size: 0.95em;
|
|
color: var(--secondary-color);
|
|
min-height: 1.2em;
|
|
}
|
|
|
|
/* Track title link */
|
|
.track-title-link {
|
|
display: block;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
transition: color var(--transition-speed) ease;
|
|
min-height: 1.2em;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.track-title-link .track-title {
|
|
font-weight: 600;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.track-title-link:not(.inactive-link):hover {
|
|
color: var(--link-hover-color);
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.track-title-link.inactive-link {
|
|
pointer-events: none;
|
|
cursor: default;
|
|
}
|
|
|
|
.track-title-link.inactive-link .track-title {
|
|
color: var(--text-color);
|
|
}
|
|
.track-title-link:not(.inactive-link) .track-title {
|
|
color: inherit;
|
|
}
|
|
|
|
|
|
/* Donate Section */
|
|
.donate-address-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-top: 15px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
#ton-address {
|
|
background-color: var(--code-bg);
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
font-size: 0.9em;
|
|
word-break: break-all;
|
|
flex-grow: 1;
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
#copy-ton-button {
|
|
padding: 10px 18px;
|
|
background-color: var(--button-bg);
|
|
color: var(--button-text);
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform 0.1s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#copy-ton-button:hover {
|
|
background-color: var(--button-hover-bg);
|
|
}
|
|
#copy-ton-button:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
|
|
/* Footer */
|
|
footer {
|
|
text-align: center;
|
|
margin-top: 40px; /* Space above footer */
|
|
padding-top: 20px; /* Space within footer */
|
|
padding-bottom: 10px;
|
|
background-color: transparent;
|
|
border-top: 1px solid var(--border-color);
|
|
font-size: 0.85em;
|
|
color: var(--secondary-color);
|
|
opacity: 1;
|
|
animation: none;
|
|
} |