.dark-mode {
    background: black;
    color: white;
}

footer {
    margin: 3em 0 3em 0;
}

h1, h2 {
    text-align: center;
}

h3 {
    margin-top: 3em;
}

p {
    text-indent: 2em;
}

a {
    text-decoration: none;
    color: rgb(120, 150, 255);
}

a:hover {
    text-decoration: underline;
}

li {
    margin: 0.4em;
}

.menu {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    background: red;
    height: auto;
    align-items: center;
}

.menu>li {
    margin: 1em;
}

.menu-li>a {
    text-decoration: none;
    color: white;
}

.menu-li>a:hover {
    text-decoration: underline;
}

.about-photo {
  text-align: center;
  margin-top: 3em;
}

.about-photo>img {
  max-width: 600px;
  width: 100%;
  border-radius: 1em;
  box-shadow: 0 0 3em rgba(255, 200, 100, 0.3);
}

.preferences-bar {
    display: flex;
    justify-content: space-between; /* Theme left, Language right */
    align-items: center;
    margin-top: 1.5rem;             /* relative unit instead of px */
    width: 100%;
    padding: 0 1.5rem;   /* add horizontal space from screen edge */
    box-sizing: border-box;
}

/* Optional: spacing between label and select */
.preferences-left,
.preferences-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;                    /* relative-ish feel (depends on root font size) */
}

/* Fixed width for language label so text changes don't shift layout */
#language-label {
    display: inline-block;
    width: 6rem;                    /* adjust as needed */
    white-space: nowrap;            /* prevent wrapping */
}
