/* Default styles */
:root {
  --background-color: #000;
  --text-color: #fff;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes footer to the bottom */
  align-items: center;
  min-height: 100vh; /* Ensures body covers at least viewport height */
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: Arial, sans-serif;
}

header {
  text-align: center;
  padding: 50px;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 24px;
}

.bio {
  text-align: center;
  padding: 20px;
}

.links {
  text-align: center;
  padding: 20px;
}

.additional-links {
  margin-top: 20px;
}

.additional-links a {
  font-size: 14px;
  color: #888;
  text-decoration: none;
  margin-right: 10px;
}

a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 10px;
}

/* Footer styles */
footer {
  text-align: center;
  font-size: 14px;
  color: #888;
  padding: 10px;
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
  header {
    padding: 30px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 18px;
  }

  .bio {
    padding: 10px;
  }

  .links {
    padding: 10px;
  }
}

/* RTL Adjustments */
html[dir="rtl"] body {
  /* Flexbox main axis is vertical, cross axis alignment (center) is fine.
     Text alignment within body context is not directly set, so this is okay. */
}

html[dir="rtl"] header {
  /* text-align: center; is fine for RTL */
}

html[dir="rtl"] .bio {
  /* text-align: center; is fine for RTL */
}

html[dir="rtl"] .links {
  /* text-align: center; is fine for RTL */
}

html[dir="rtl"] .additional-links a {
  margin-right: 0; /* Reset original margin-right */
  margin-left: 10px; /* Apply margin to the left instead */
}

html[dir="rtl"] footer {
  /* text-align: center; is fine for RTL */
}

/* If there were any specific LTR text alignments, they would be overridden here.
   For example:
   html[dir="rtl"] .some-element-previously-left-aligned {
     text-align: right;
   }
*/

/* General rule for text alignment if needed, but most elements are centered */
html[dir="rtl"] p,
html[dir="rtl"] h1,
html[dir="rtl"] h2 {
    /* If any of these were specifically text-align: left or right,
       they would need to be flipped. However, they inherit center or are set to center.
       If a global flip is desired for non-centered text:
       text-align: right; (use with caution, verify elements)
    */
}

/* Footer Language Switcher Styles */
.language-switcher-footer {
  padding-top: 10px; /* Spacing above the switcher */
  text-align: center; /* Ensure it's centered like other footer content */
}

.language-switcher-footer a {
  text-decoration: underline;
  margin: 0 5px; /* Spacing around the links */
  color: var(--text-color); /* Ensure links use the theme's text color */
}

.language-switcher-footer a:hover {
  text-decoration: none; /* Optional: remove underline on hover */
}

.language-switcher-footer span {
  margin: 0 5px; /* Spacing around the separator */
  color: #888; /* Match color of other footer text like copyright */
}
