:root {
  --bg-light: #ffffff;
  --text-light: #333333;
  --articles-light: #f0f0f0;
  --link-light: #0066cc;
  --bg-dark: #121212;
  --text-dark: #ffffff;
  --articles-dark: #1e1e1e;
  --link-dark: #4da6ff;
  --default-background: var(--bg-dark);
  --default-text: var(--text-dark);
  --articles: var(--articles-dark);
  --link-color: var(--link-dark);
}

[data-theme="light"] {
  --default-background: var(--bg-light);
  --default-text: var(--text-light);
  --articles: var(--articles-light);
  --link-color: var(--link-light);
}

body {
  background-color: var(--default-background);
  color: var(--default-text);
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.welcomer-subtitle a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.welcomer-subtitle a:hover {
  text-decoration: underline;
}

:root {
  --nav-text-light: #333333;
  --nav-hover-bg-light: #e0e0e0;
  --nav-hover-text-light: #000000;
  --nav-active-indicator-light: #333333;
  --nav-text-dark: white;
  --nav-hover-bg-dark: var(--bg-gradient2);
  --nav-hover-text-dark: white;
  --nav-active-indicator-dark: white;
  --nav-text: var(--nav-text-dark);
  --nav-hover-bg: var(--nav-hover-bg-dark);
  --nav-hover-text: var(--nav-hover-text-dark);
  --nav-active-indicator: var(--nav-active-indicator-dark);
}

[data-theme="light"] {
  --nav-text: var(--nav-text-light);
  --nav-hover-bg: var(--nav-hover-bg-light);
  --nav-hover-text: var(--nav-hover-text-light);
  --nav-active-indicator: var(--nav-active-indicator-light);
}

.article a {
  color: var(--default-text);
  text-decoration: none;
}

.article a:hover {
  text-decoration: none;
}

.article h2,
.article p,
.article footer {
  color: var(--default-text);
  font-weight:400; /*change this ! added:2025-10-16*/
}

.nav-links a,
.article,
.footer {
  color: var(--default-text);
}

.main-navbar,
.footer {
  background-color: var(--default-background);
}

.article {
  background-color: var(--articles);
  border-color: var(--articles);
}

#theme-toggle {
  background: none;
  border: none;
  color: var(--default-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px 10px;
  margin-left: 10px;
  transition: transform 0.2s ease;
}

#theme-toggle:hover {
  transform: scale(1.1);
}

#theme-toggle:active {
  transform: scale(0.95);
}

body,
.nav-links a,
.navbar-logo h3,
.footer::after {
  transition: color 0.3s ease, background-color 0.3s ease;
}

.navlinks-active-page {
  position: relative;
  width: max-content;
}

.navlinks-active-page::after {
  content: '';
  background: var(--default-text);
  height: 2px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: background-color 0.3s ease;
}

* {
  transition: background-color 0.3s ease, color 0.3s ease;
}

img,
svg,
iframe,
video {
  transition: none !important;
}

.hamburger-menu .bar {
  background-color: var(--default-text);
}

.zoomable-image img {
  border-color: var(--default-text);
}

.article-blog {
  background-color: var(--article-bg, #222);
  padding: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  border-radius: 5px;
  box-sizing: border-box;
  width: 100%;
  transition: all 0.235s ease;
}

[data-theme="light"] .article-blog {
  --article-bg: #f5f5f5;
  --article-text: #333;
  --article-border: #ddd;
  --article-shadow: rgba(100, 100, 100, 0.3);
  --article-footer: #777;
}

[data-theme="dark"] .article-blog {
  --article-bg: #222;
  --article-text: white;
  --article-border: white;
  --article-shadow: rgba(200, 200, 200, 0.5);
  --article-footer: #aaa;
}

[data-theme="light"] .code-snippet, code{
  color:#222;
  background:rgb(239,239,239);
  border-color:rgb(239,239,239);
}
[data-theme="dark"] code{
    background:var(--code);
    color:white;
}
[data-theme="light"] .post-meta time + .author::before{
  content:'•';
  color:#222;
}

.article-blog-link {
  text-decoration: none;
  color: var(--article-text);
  cursor: pointer;
  display: block;
}

.article-blog h2 {
  margin-top: 0;
  color: var(--article-text);
  font-size: 1.5em;
}

.article-blog p {
  color: var(--article-text);
  margin: 10px 0;
}

.article-blog footer {
  font-size: 11.7px;
  color: var(--article-footer);
}

.article-blog-preview img {
  border: 1px solid var(--article-border);
  border-radius: 3.5px;
  width: 100%;
  max-width: 240px;
  height: auto;
}
/*
.article-blog:hover {
  box-shadow: 4.7px 4.7px 4.7px var(--article-shadow);
}*/

.search-bar {
  color: var(--default-text);
}