Compare commits

...

9 Commits

Author SHA1 Message Date
52e305bcad remove soccer 2025-08-17 20:00:08 -07:00
ba5a232484 added soccer schedule 2025-08-17 19:48:37 -07:00
bdf94ca421 changed mobile menu 2025-08-17 18:34:41 -07:00
5d5ed1155b added dark mode 2025-08-13 13:14:32 -07:00
ee13a3a316 resized icon 2025-07-10 10:57:27 -07:00
e7ce5452ba adjust favicon 2025-07-10 10:30:13 -07:00
5a9953f502 backup favicon sizes 2025-07-10 10:25:09 -07:00
6425724f76 fix favicon size 2025-07-10 10:22:44 -07:00
04f04f0371 fix favicon size 2025-07-10 10:22:24 -07:00
9 changed files with 345 additions and 83 deletions

BIN
public/Icon_full.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
public/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
public/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1020 B

BIN
public/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

View File

@@ -2,7 +2,7 @@
// Header.astro // Header.astro
--- ---
<header> <header>
<nav> <nav class="nav-container">
<ul class="main-menu"> <ul class="main-menu">
<li><a href="/">Home</a></li> <li><a href="/">Home</a></li>
<li class="has-dropdown"> <li class="has-dropdown">
@@ -47,5 +47,11 @@
<li><a href="/about">About</a></li> <li><a href="/about">About</a></li>
<li><a href="/contact">Contact</a></li> <li><a href="/contact">Contact</a></li>
</ul> </ul>
<!-- Theme toggle button -->
<button class="theme-toggle" id="themeToggle" aria-label="Toggle dark mode">
<span id="themeIcon">🌙</span>
<span id="themeText">Dark</span>
</button>
</nav> </nav>
</header> </header>

View File

@@ -17,7 +17,37 @@ const { title } = Astro.props;
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{title} - juchatz.com</title> <title>{title} - juchatz.com</title>
<link rel="icon" type="image/webp" href="/favicon.webp" /> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<meta name="theme-color" content="#f8f9fa" id="theme-color-meta" />
<!-- Theme initialization script (runs before page renders to prevent flash) -->
<script is:inline>
(function() {
function getInitialTheme() {
const savedTheme = localStorage.getItem('theme');
if (savedTheme) {
return savedTheme;
}
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
return 'dark';
}
return 'light';
}
const theme = getInitialTheme();
document.documentElement.setAttribute('data-theme', theme);
// Update theme-color meta tag
const metaThemeColor = document.getElementById('theme-color-meta');
if (metaThemeColor) {
metaThemeColor.content = theme === 'dark' ? '#1a202c' : '#f8f9fa';
}
})();
</script>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
@@ -29,5 +59,84 @@ const { title } = Astro.props;
</section> </section>
</main> </main>
</div> </div>
<!-- Theme manager script -->
<script>
class ThemeManager {
constructor() {
this.themeToggle = document.getElementById('themeToggle');
this.themeIcon = document.getElementById('themeIcon');
this.themeText = document.getElementById('themeText');
this.currentTheme = this.getCurrentTheme();
this.init();
}
getCurrentTheme() {
return document.documentElement.getAttribute('data-theme') || 'light';
}
init() {
// Update button display
this.updateToggleButton();
// Listen for toggle clicks
if (this.themeToggle) {
this.themeToggle.addEventListener('click', () => this.toggleTheme());
}
// Listen for system theme changes
if (window.matchMedia) {
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e) => {
// Only auto-switch if user hasn't manually set a preference
if (!localStorage.getItem('theme')) {
this.currentTheme = e.matches ? 'dark' : 'light';
this.applyTheme(this.currentTheme, false);
}
});
}
}
toggleTheme() {
this.currentTheme = this.currentTheme === 'dark' ? 'light' : 'dark';
this.applyTheme(this.currentTheme, true);
}
applyTheme(theme, saveToStorage = false) {
document.documentElement.setAttribute('data-theme', theme);
if (saveToStorage) {
localStorage.setItem('theme', theme);
}
this.updateToggleButton();
this.updateMetaThemeColor(theme);
}
updateToggleButton() {
if (this.themeIcon && this.themeText) {
if (this.currentTheme === 'dark') {
this.themeIcon.textContent = '☀️';
this.themeText.textContent = 'Light';
} else {
this.themeIcon.textContent = '🌙';
this.themeText.textContent = 'Dark';
}
}
}
updateMetaThemeColor(theme) {
const metaThemeColor = document.getElementById('theme-color-meta');
if (metaThemeColor) {
metaThemeColor.content = theme === 'dark' ? '#1a202c' : '#f8f9fa';
}
}
}
// Initialize theme manager when DOM is loaded
document.addEventListener('DOMContentLoaded', () => {
new ThemeManager();
});
</script>
</body> </body>
</html> </html>

View File

@@ -13,6 +13,72 @@
--light-accent4: #dd6b20; --light-accent4: #dd6b20;
--light-border: #cbd5e0; --light-border: #cbd5e0;
--light-shadow: rgba(0, 0, 0, 0.1); --light-shadow: rgba(0, 0, 0, 0.1);
/* Current theme variables (will be overridden by dark mode) */
--current-bg: var(--light-bg);
--current-bg-soft: var(--light-bg-soft);
--current-bg-alt: var(--light-bg-alt);
--current-fg: var(--light-fg);
--current-fg-alt: var(--light-fg-alt);
--current-primary: var(--light-primary);
--current-secondary: var(--light-secondary);
--current-accent1: var(--light-accent1);
--current-accent2: var(--light-accent2);
--current-accent3: var(--light-accent3);
--current-accent4: var(--light-accent4);
--current-border: var(--light-border);
--current-shadow: var(--light-shadow);
/* Dark theme color palette */
--dark-bg: #1a202c;
--dark-bg-soft: #2d3748;
--dark-bg-alt: #4a5568;
--dark-fg: #f7fafc;
--dark-fg-alt: #e2e8f0;
--dark-primary: #63b3ed;
--dark-secondary: #90cdf4;
--dark-accent1: #4299e1;
--dark-accent2: #68d391;
--dark-accent3: #b794f6;
--dark-accent4: #f6ad55;
--dark-border: #4a5568;
--dark-shadow: rgba(0, 0, 0, 0.3);
}
/* Dark theme overrides when explicitly set */
[data-theme="dark"] {
--current-bg: var(--dark-bg);
--current-bg-soft: var(--dark-bg-soft);
--current-bg-alt: var(--dark-bg-alt);
--current-fg: var(--dark-fg);
--current-fg-alt: var(--dark-fg-alt);
--current-primary: var(--dark-primary);
--current-secondary: var(--dark-secondary);
--current-accent1: var(--dark-accent1);
--current-accent2: var(--dark-accent2);
--current-accent3: var(--dark-accent3);
--current-accent4: var(--dark-accent4);
--current-border: var(--dark-border);
--current-shadow: var(--dark-shadow);
}
/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--current-bg: var(--dark-bg);
--current-bg-soft: var(--dark-bg-soft);
--current-bg-alt: var(--dark-bg-alt);
--current-fg: var(--dark-fg);
--current-fg-alt: var(--dark-fg-alt);
--current-primary: var(--dark-primary);
--current-secondary: var(--dark-secondary);
--current-accent1: var(--dark-accent1);
--current-accent2: var(--dark-accent2);
--current-accent3: var(--dark-accent3);
--current-accent4: var(--dark-accent4);
--current-border: var(--dark-border);
--current-shadow: var(--dark-shadow);
}
} }
* { * {
@@ -23,19 +89,20 @@
body { body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--light-bg); background-color: var(--current-bg);
color: var(--light-fg); color: var(--current-fg);
line-height: 1.6; line-height: 1.6;
transition: background-color 0.3s ease, color 0.3s ease;
} }
a { a {
color: var(--light-primary); color: var(--current-primary);
text-decoration: none; text-decoration: none;
transition: color 0.3s; transition: color 0.3s;
} }
a:hover { a:hover {
color: var(--light-accent1); color: var(--current-accent1);
} }
.container { .container {
@@ -48,15 +115,17 @@ a:hover {
min-height: 100vh; min-height: 100vh;
max-width: 1200px; max-width: 1200px;
margin: 0 auto; margin: 0 auto;
box-shadow: 0 0 20px var(--light-shadow); box-shadow: 0 0 20px var(--current-shadow);
transition: box-shadow 0.3s ease;
} }
/* Header styles */ /* Header styles */
header { header {
grid-area: header; grid-area: header;
background-color: var(--light-primary); background-color: var(--current-primary);
padding: 1rem; padding: 1rem;
box-shadow: 0 2px 4px var(--light-shadow); box-shadow: 0 2px 4px var(--current-shadow);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
} }
/* Navigation Menu with Dropdowns */ /* Navigation Menu with Dropdowns */
@@ -98,7 +167,7 @@ header {
} }
.main-menu > li > a:hover { .main-menu > li > a:hover {
color: var(--light-bg-soft); color: var(--current-bg-soft);
} }
/* Make sure hover state is properly triggered */ /* Make sure hover state is properly triggered */
@@ -111,10 +180,10 @@ header {
/* Dropdown menu */ /* Dropdown menu */
.dropdown, .submenu { .dropdown, .submenu {
position: absolute; position: absolute;
background-color: white; background-color: var(--current-bg);
border: 1px solid var(--light-border); border: 1px solid var(--current-border);
min-width: 180px; min-width: 180px;
box-shadow: 0 8px 16px var(--light-shadow); box-shadow: 0 8px 16px var(--current-shadow);
z-index: 100; z-index: 100;
opacity: 0; opacity: 0;
visibility: hidden; visibility: hidden;
@@ -142,8 +211,8 @@ header {
.dropdown > li > a, .submenu > li > a { .dropdown > li > a, .submenu > li > a {
padding: 0.7rem 1rem; padding: 0.7rem 1rem;
font-size: 0.95rem; font-size: 0.95rem;
border-bottom: 1px solid var(--light-bg-soft); border-bottom: 1px solid var(--current-bg-soft);
color: var(--light-fg); color: var(--current-fg);
} }
.dropdown > li:last-child > a, .submenu > li:last-child > a { .dropdown > li:last-child > a, .submenu > li:last-child > a {
@@ -151,8 +220,8 @@ header {
} }
.dropdown > li > a:hover, .submenu > li > a:hover { .dropdown > li > a:hover, .submenu > li > a:hover {
background-color: var(--light-bg-soft); background-color: var(--current-bg-soft);
color: var(--light-primary); color: var(--current-primary);
} }
/* Submenu (third level) */ /* Submenu (third level) */
@@ -179,9 +248,10 @@ header {
/* Sidebar styles */ /* Sidebar styles */
.sidebar { .sidebar {
grid-area: sidebar; grid-area: sidebar;
background-color: var(--light-bg-soft); background-color: var(--current-bg-soft);
padding: 1.5rem; padding: 1.5rem;
border-right: 1px solid var(--light-border); border-right: 1px solid var(--current-border);
transition: background-color 0.3s ease, border-color 0.3s ease;
} }
.sidebar-section { .sidebar-section {
@@ -189,16 +259,18 @@ header {
} }
.sidebar-section h2 { .sidebar-section h2 {
color: var(--light-primary); color: var(--current-primary);
margin-bottom: 1rem; margin-bottom: 1rem;
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
border-bottom: 1px solid var(--light-border); border-bottom: 1px solid var(--current-border);
transition: color 0.3s ease, border-color 0.3s ease;
} }
.news-item { .news-item {
margin-bottom: 1rem; margin-bottom: 1rem;
padding-bottom: 1rem; padding-bottom: 1rem;
border-bottom: 1px dashed var(--light-border); border-bottom: 1px dashed var(--current-border);
transition: border-color 0.3s ease;
} }
.news-item:last-child { .news-item:last-child {
@@ -207,7 +279,8 @@ header {
.news-date { .news-date {
font-size: 0.8rem; font-size: 0.8rem;
color: var(--light-accent2); color: var(--current-accent2);
transition: color 0.3s ease;
} }
.news-title { .news-title {
@@ -229,32 +302,37 @@ header {
content: '»'; content: '»';
position: absolute; position: absolute;
left: 0; left: 0;
color: var(--light-accent4); color: var(--current-accent4);
transition: color 0.3s ease;
} }
/* Main content styles */ /* Main content styles */
main { main {
grid-area: main; grid-area: main;
padding: 2rem; padding: 2rem;
background-color: white; background-color: var(--current-bg);
transition: background-color 0.3s ease;
} }
.main-content h1 { .main-content h1 {
color: var(--light-primary); color: var(--current-primary);
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
font-size: 2rem; font-size: 2rem;
transition: color 0.3s ease;
} }
.main-content h2 { .main-content h2 {
color: var(--light-accent1); color: var(--current-accent1);
margin: 1.5rem 0 1rem; margin: 1.5rem 0 1rem;
font-size: 1.5rem; font-size: 1.5rem;
transition: color 0.3s ease;
} }
.main-content h3 { .main-content h3 {
color: var(--light-secondary); color: var(--current-secondary);
margin: 1.2rem 0 0.8rem; margin: 1.2rem 0 0.8rem;
font-size: 1.2rem; font-size: 1.2rem;
transition: color 0.3s ease;
} }
.main-content p { .main-content p {
@@ -271,64 +349,70 @@ main {
} }
.highlight { .highlight {
color: var(--light-accent1); color: var(--current-accent1);
font-weight: 600; font-weight: 600;
transition: color 0.3s ease;
} }
.cta-button { .cta-button {
display: inline-block; display: inline-block;
background-color: var(--light-primary); background-color: var(--current-primary);
color: white; color: white;
padding: 0.7rem 1.5rem; padding: 0.7rem 1.5rem;
border-radius: 4px; border-radius: 4px;
margin-top: 1.5rem; margin-top: 1.5rem;
font-weight: 600; font-weight: 600;
transition: background-color 0.3s; transition: all 0.3s ease;
} }
.cta-button:hover { .cta-button:hover {
background-color: var(--light-accent1); background-color: var(--current-accent1);
color: white; color: white;
transform: translateY(-1px);
} }
.service-card { .service-card {
background-color: var(--light-bg-soft); background-color: var(--current-bg-soft);
border-radius: 4px; border-radius: 4px;
padding: 1.5rem; padding: 1.5rem;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
border-left: 3px solid var(--light-primary); border-left: 3px solid var(--current-primary);
position: relative; position: relative;
transition: all 0.3s ease;
} }
.service-card h3 { .service-card h3 {
color: var(--light-accent2); color: var(--current-accent2);
margin-top: 0; margin-top: 0;
transition: color 0.3s ease;
} }
.learn-more-link { .learn-more-link {
display: inline-block; display: inline-block;
margin-top: 1rem; margin-top: 1rem;
color: var(--light-primary); color: var(--current-primary);
font-weight: 600; font-weight: 600;
text-decoration: none; text-decoration: none;
padding: 0.3rem 0.8rem; padding: 0.3rem 0.8rem;
border: 1px solid var(--light-primary); border: 1px solid var(--current-primary);
border-radius: 4px; border-radius: 4px;
transition: all 0.3s ease; transition: all 0.3s ease;
} }
.learn-more-link:hover { .learn-more-link:hover {
background-color: var(--light-primary); background-color: var(--current-primary);
color: white; color: white;
transform: translateY(-1px);
} }
/* Contact page styles */ /* Contact page styles */
.contact-info-section { .contact-info-section {
margin-bottom: 2rem; margin-bottom: 2rem;
padding: 1.5rem; padding: 1.5rem;
background-color: var(--light-bg-soft); background-color: var(--current-bg-soft);
border-radius: 5px; border-radius: 5px;
border-left: 4px solid var(--light-primary); border-left: 4px solid var(--current-primary);
transition: all 0.3s ease;
} }
.contact-form-container { .contact-form-container {
@@ -347,19 +431,28 @@ main {
display: block; display: block;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
font-weight: bold; font-weight: bold;
color: var(--light-fg-alt); color: var(--current-fg-alt);
transition: color 0.3s ease;
} }
.form-group input, .form-group input,
.form-group textarea { .form-group textarea {
width: 100%; width: 100%;
padding: 0.75rem; padding: 0.75rem;
border: 1px solid var(--light-border); border: 1px solid var(--current-border);
border-radius: 4px; border-radius: 4px;
font-family: inherit; font-family: inherit;
font-size: 1rem; font-size: 1rem;
background-color: white; background-color: var(--current-bg);
color: var(--light-fg); color: var(--current-fg);
transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--current-primary);
box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.2);
} }
.form-group textarea { .form-group textarea {
@@ -368,39 +461,41 @@ main {
.submit-button { .submit-button {
padding: 0.75rem 1.5rem; padding: 0.75rem 1.5rem;
background-color: var(--light-primary); background-color: var(--current-primary);
color: white; color: white;
border: none; border: none;
border-radius: 4px; border-radius: 4px;
cursor: pointer; cursor: pointer;
font-size: 1rem; font-size: 1rem;
transition: background-color 0.3s; transition: all 0.3s ease;
} }
.submit-button:hover { .submit-button:hover {
background-color: var(--light-accent1); background-color: var(--current-accent1);
transform: translateY(-1px);
} }
.form-status { .form-status {
margin-top: 1rem; margin-top: 1rem;
padding: 1rem; padding: 1rem;
border-radius: 4px; border-radius: 4px;
transition: all 0.3s ease;
} }
.form-status.sending { .form-status.sending {
background-color: var(--light-bg-soft); background-color: var(--current-bg-soft);
color: var(--light-primary); color: var(--current-primary);
border-left: 4px solid var(--light-primary); border-left: 4px solid var(--current-primary);
} }
.form-status.success { .form-status.success {
background-color: var(--light-bg-soft); background-color: var(--current-bg-soft);
color: var(--light-accent2); color: var(--current-accent2);
border-left: 4px solid var(--light-accent2); border-left: 4px solid var(--current-accent2);
} }
.form-status.error { .form-status.error {
background-color: var(--light-bg-soft); background-color: var(--current-bg-soft);
color: #e53e3e; color: #e53e3e;
border-left: 4px solid #e53e3e; border-left: 4px solid #e53e3e;
} }
@@ -410,9 +505,10 @@ main {
font-size: 1.2rem; font-size: 1.2rem;
margin: 1.5rem 0; margin: 1.5rem 0;
padding: 1.5rem; padding: 1.5rem;
background-color: var(--light-bg-soft); background-color: var(--current-bg-soft);
border-radius: 5px; border-radius: 5px;
border-left: 4px solid var(--light-primary); border-left: 4px solid var(--current-primary);
transition: all 0.3s ease;
} }
.service-description { .service-description {
@@ -422,23 +518,26 @@ main {
.service-feature { .service-feature {
margin: 1.5rem 0; margin: 1.5rem 0;
padding: 1.5rem; padding: 1.5rem;
background-color: var(--light-bg-soft); background-color: var(--current-bg-soft);
border-radius: 5px; border-radius: 5px;
box-shadow: 0 2px 4px var(--light-shadow); box-shadow: 0 2px 4px var(--current-shadow);
transition: all 0.3s ease;
} }
.service-feature h3 { .service-feature h3 {
color: var(--light-accent2); color: var(--current-accent2);
margin-top: 0; margin-top: 0;
transition: color 0.3s ease;
} }
.service-cta { .service-cta {
margin: 2rem 0; margin: 2rem 0;
padding: 1.5rem; padding: 1.5rem;
background-color: var(--light-bg-soft); background-color: var(--current-bg-soft);
border-radius: 5px; border-radius: 5px;
text-align: center; text-align: center;
box-shadow: 0 2px 4px var(--light-shadow); box-shadow: 0 2px 4px var(--current-shadow);
transition: all 0.3s ease;
} }
.service-cta .cta-button { .service-cta .cta-button {
@@ -449,21 +548,22 @@ main {
.intro-section, .mission-section, .services-highlight { .intro-section, .mission-section, .services-highlight {
margin-bottom: 2rem; margin-bottom: 2rem;
padding: 1.5rem; padding: 1.5rem;
background-color: var(--light-bg-soft); background-color: var(--current-bg-soft);
border-radius: 5px; border-radius: 5px;
box-shadow: 0 2px 4px var(--light-shadow); box-shadow: 0 2px 4px var(--current-shadow);
transition: all 0.3s ease;
} }
.intro-section { .intro-section {
border-left: 4px solid var(--light-primary); border-left: 4px solid var(--current-primary);
} }
.mission-section { .mission-section {
border-left: 4px solid var(--light-accent3); border-left: 4px solid var(--current-accent3);
} }
.services-highlight { .services-highlight {
border-left: 4px solid var(--light-accent2); border-left: 4px solid var(--current-accent2);
} }
.cta-container { .cta-container {
@@ -473,45 +573,82 @@ main {
} }
.cta-button.secondary { .cta-button.secondary {
background-color: var(--light-secondary); background-color: var(--current-secondary);
} }
.cta-button.secondary:hover { .cta-button.secondary:hover {
background-color: var(--light-accent1); background-color: var(--current-accent1);
} }
/* About page specific styles */ /* About page specific styles */
.vision-mission-section, .privacy-section, .concepts-section { .vision-mission-section, .privacy-section, .concepts-section {
margin: 2rem 0; margin: 2rem 0;
padding: 1.5rem; padding: 1.5rem;
background-color: var(--light-bg-soft); background-color: var(--current-bg-soft);
border-radius: 5px; border-radius: 5px;
box-shadow: 0 2px 4px var(--light-shadow); box-shadow: 0 2px 4px var(--current-shadow);
transition: all 0.3s ease;
} }
.vision-mission-section { .vision-mission-section {
border-left: 4px solid var(--light-accent4); border-left: 4px solid var(--current-accent4);
} }
.privacy-section { .privacy-section {
border-left: 4px solid var(--light-accent3); border-left: 4px solid var(--current-accent3);
} }
.concepts-section { .concepts-section {
border-left: 4px solid var(--light-primary); border-left: 4px solid var(--current-primary);
} }
.concept-card { .concept-card {
margin-bottom: 1rem; margin-bottom: 1rem;
padding: 1rem; padding: 1rem;
background-color: white; background-color: var(--current-bg);
border-radius: 4px; border-radius: 4px;
box-shadow: 0 1px 3px var(--light-shadow); box-shadow: 0 1px 3px var(--current-shadow);
transition: all 0.3s ease;
} }
.concept-card h3 { .concept-card h3 {
color: var(--light-accent2); color: var(--current-accent2);
margin-top: 0; margin-top: 0;
transition: color 0.3s ease;
}
/* Theme toggle button */
.theme-toggle {
background: none;
border: 2px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 0.5rem 0.75rem;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 0.5rem;
margin-left: 1rem;
}
.theme-toggle:hover {
border-color: rgba(255, 255, 255, 0.6);
background-color: rgba(255, 255, 255, 0.1);
transform: translateY(-1px);
}
.theme-toggle:active {
transform: translateY(0);
}
/* Navigation container for header layout */
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
} }
/* Back to Top Button */ /* Back to Top Button */
@@ -519,7 +656,7 @@ main {
position: fixed; position: fixed;
bottom: 2rem; bottom: 2rem;
right: 2rem; right: 2rem;
background-color: var(--light-primary); background-color: var(--current-primary);
color: white; color: white;
width: 3rem; width: 3rem;
height: 3rem; height: 3rem;
@@ -533,7 +670,7 @@ main {
opacity: 0; opacity: 0;
visibility: hidden; visibility: hidden;
transition: all 0.3s ease; transition: all 0.3s ease;
box-shadow: 0 2px 5px var(--light-shadow); box-shadow: 0 2px 5px var(--current-shadow);
z-index: 1000; z-index: 1000;
} }
@@ -543,9 +680,10 @@ main {
} }
.back-to-top:hover { .back-to-top:hover {
background-color: var(--light-accent1); background-color: var(--current-accent1);
transform: translateY(-3px); transform: translateY(-3px);
} }
@media (max-width: 768px) { @media (max-width: 768px) {
.container { .container {
grid-template-columns: 1fr; grid-template-columns: 1fr;
@@ -557,10 +695,14 @@ main {
.sidebar { .sidebar {
border-right: none; border-right: none;
border-top: 1px solid var(--light-border); border-top: 1px solid var(--current-border);
}
/*
.nav-container {
flex-direction: column;
gap: 1rem;
} }
/* Mobile menu adjustments */
.main-menu { .main-menu {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@@ -571,7 +713,6 @@ main {
width: 100%; width: 100%;
text-align: center; text-align: center;
} }
.dropdown { .dropdown {
position: static; position: static;
width: 100%; width: 100%;
@@ -589,7 +730,7 @@ main {
width: 100%; width: 100%;
display: none; display: none;
box-shadow: none; box-shadow: none;
border-left: 2px solid var(--light-accent2); border-left: 2px solid var(--current-accent2);
opacity: 1; opacity: 1;
visibility: visible; visibility: visible;
} }
@@ -601,4 +742,10 @@ main {
.cta-container { .cta-container {
flex-direction: column; flex-direction: column;
} }
.theme-toggle {
margin-left: 0;
margin-top: 0.5rem;
}
*/
} }