style.css•5.35 kB
/* Modern Dark Theme Variables */
:root {
--bg-primary: #0d1117;
--bg-secondary: #161b22;
--bg-tertiary: #21262d;
--text-primary: #e6edf3;
--text-secondary: #8b949e;
--accent-blue: #58a6ff;
--accent-green: #3fb950;
--accent-red: #f85149;
--accent-yellow: #f0883e;
--accent-purple: #bc8cff;
--border-color: #30363d;
--hover-bg: #1f2937;
--shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
--flower-pink: #ff7eb9;
--flower-yellow: #ffd166;
--flower-blue: #118ab2;
--flower-purple: #9656a1;
--flower-red: #ef476f;
}
/* Base styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
line-height: 1.6;
color: var(--text-primary);
background: var(--bg-primary);
padding: 20px;
/* Subtle grid background */
background-image:
linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
background-size: 20px 20px;
background-position: -1px -1px;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
/* Modern scrollbar */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
background: var(--bg-tertiary);
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--border-color);
}
/* Header styles */
header {
text-align: center;
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 1px solid var(--border-color);
}
h1 {
color: var(--flower-pink);
margin-bottom: 10px;
letter-spacing: 0.5px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.subtitle {
color: var(--text-secondary);
font-style: italic;
}
/* Section styles */
.flower-section {
background: var(--bg-secondary);
border-radius: 12px;
padding: 20px;
margin-bottom: 30px;
box-shadow: var(--shadow);
border: 1px solid var(--border-color);
transition: all 0.2s ease;
/* Glass morphism effect */
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
background: rgba(22, 27, 34, 0.8);
}
.button-container {
display: flex;
justify-content: center;
margin-bottom: 30px;
}
.btn {
padding: 12px 24px;
background: linear-gradient(135deg, var(--flower-pink), var(--flower-purple));
color: var(--text-primary);
border: none;
border-radius: 30px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
font-size: 16px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
text-transform: uppercase;
letter-spacing: 1px;
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
filter: brightness(1.1);
}
.btn:active {
transform: translateY(1px);
}
/* Flowers container */
.flowers-container {
background-color: var(--bg-tertiary);
padding: 20px;
border-radius: 10px;
border: 1px solid var(--border-color);
}
.flowers-container h2 {
color: var(--flower-yellow);
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid var(--border-color);
text-align: center;
}
.flower-list {
list-style-type: none;
padding: 0;
}
.flower-list li {
padding: 15px;
margin-bottom: 10px;
border-radius: 8px;
background-color: var(--bg-secondary);
border-left: 4px solid;
transition: all 0.2s ease;
display: flex;
align-items: center;
}
.flower-list li:hover {
transform: translateX(5px);
background-color: var(--hover-bg);
}
.flower-list li:nth-child(5n+1) {
border-left-color: var(--flower-pink);
}
.flower-list li:nth-child(5n+2) {
border-left-color: var(--flower-yellow);
}
.flower-list li:nth-child(5n+3) {
border-left-color: var(--flower-blue);
}
.flower-list li:nth-child(5n+4) {
border-left-color: var(--flower-purple);
}
.flower-list li:nth-child(5n+5) {
border-left-color: var(--flower-red);
}
.flower-list li::before {
content: "🌸";
margin-right: 10px;
font-size: 20px;
}
.flower-list li:nth-child(5n+2)::before {
content: "🌼";
}
.flower-list li:nth-child(5n+3)::before {
content: "🌷";
}
.flower-list li:nth-child(5n+4)::before {
content: "🌹";
}
.flower-list li:nth-child(5n+5)::before {
content: "🌺";
}
.placeholder {
color: var(--text-secondary);
text-align: center;
font-style: italic;
border-left: none !important;
background-color: transparent !important;
}
.placeholder::before {
content: "" !important;
margin-right: 0;
}
.loading {
text-align: center;
padding: 20px;
font-style: italic;
color: var(--flower-yellow);
}
.hidden {
display: none;
}
/* Footer styles */
footer {
text-align: center;
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid var(--border-color);
color: var(--text-secondary);
}
/* Responsive adjustments */
@media (max-width: 768px) {
body {
padding: 10px;
}
.container {
padding: 10px;
}
.flower-section {
padding: 15px;
}
.btn {
padding: 10px 20px;
font-size: 14px;
}
}