/* Theme Variables */

:root {
  --bg-color: #ffffff;
  --text-color: #121212;
  --border-color: #141414;
}

[data-theme="dark"] {
  --bg-color: #1f1f1f;
  --text-color: #f2f2f2;
  --border-color: #f2f2f2;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.25s ease, color 0.25s ease;
}


/* Icons */

.right-arrow-icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.footer-icon {
  width: 20px;
  height: 20px;
}

a.icon-link {
  transition: transform 200ms ease-in-out;
}

a.icon-link:hover {
  cursor: pointer;
  stroke-width: 5;
  margin: 0;
  transform: rotate(15deg);
}

/* Icons are black-stroke SVGs loaded via <img>, so currentColor can't
   pick up the page theme -- invert them instead when in dark mode */
[data-theme="dark"] .footer-icon,
[data-theme="dark"] .right-arrow-icon {
  filter: invert(1);
}


/* Navbar Styling */

.navbar {
  width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
}

.nav-title-link {
  color: var(--text-color);
  text-decoration: none;
}

.nav-title-link:hover {
  text-decoration: underline;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Small devices (portrait tablets and large phones, 800px and below) */
@media only screen and (max-width: 800px) {
  .navbar {
    padding: 20px 20px;
    background-color: var(--bg-color);
  }
}


/* Button Styling */

a.button {
  padding: 8px 16px;
  border: 3px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-color);
  text-decoration: none;
  width: fit-content;
  display: flex;
  gap: 5px;
  align-items: center;
}

a.button:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  cursor: pointer;
}


/* Theme Toggle Switch */

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.theme-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  width: 42px;
  height: 22px;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  position: relative;
  transition: border-color 0.25s ease;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background-color: var(--text-color);
  border-radius: 50%;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.theme-toggle input:checked+.toggle-track .toggle-thumb {
  transform: translateX(20px);
}


/* Footer Styling */

#footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px 50px;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.6;
}

/* Link Styling */
a.no-underline {
  text-decoration: none;
  color: var(--text-color);
}

a.no-underline:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* Small devices (portrait tablets and large phones, 800px and below) */
@media only screen and (max-width: 800px) {
  #footer {
    padding: 20px 20px;
  }
}