/* Define theme variables */
:root {
  --bg-color: #ffffff;
  --text-color: #222222;
  --accent-color: #222222;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #efefef;
  --accent-color: #efefef;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  transition: background 0.3s, color 0.3s;
}

button {
  cursor: pointer;
  padding: 5px 10px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
}

#main-title {
  display: flex;
  border-bottom: 2px solid var(--accent-color);
}

/* Styling the button itself */
#theme-toggle {
  background: transparent;
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  margin-left: auto;
}


#theme-toggle:hover {
  transform: scale(1.1);
}

/* Logic to hide/show icons */
/* Default (Light mode): Show Moon icon to suggest switching TO dark */
.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

/* Dark mode: Show Sun icon to suggest switching TO light */
[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

/* Ensure SVGs inherit the text color */
svg {
  stroke: var(--text-color);
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 20px 0;
}

li {
  margin-bottom: 10px;
}

p {
  margin: 2px;
}

#experience-tags {
  margin: 20px auto 30px;
}
