/* header.css */
header {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    display: flex;
    height: 84px;
}

.header-text {
    position: relative;
    top: 8px;
    left: 16px;
}

.logo-container {
    display: flex;
    align-items: center;
    /* Vertically centers the flex items */
    justify-content: center;
    /* Horizontally centers the flex items (optional) */
}

.header-logo {
    width: 37px;
    height: 37px;
    padding: 9px;
}

.menu-buttons {
    display: flex;
    justify-content: space-between;
    padding-right: var(--side-padding);
}

.menu-buttons div {
    text-decoration: none;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-mode .menu-buttons div {
    color: var(--black-100);
}

body.light-mode .menu-buttons div a.persist {
    color: var(--brown-100);
}

body.dark-mode .menu-buttons div {
    color: var(--gray-100);
}

body.dark-mode .menu-buttons div a.persist {
    color: var(--white-100);
}

.menu-buttons div a.persist::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 21px;
    transform: translateX(-50%);
    width: 10px;
    height: 2px;
    transform: translateX(-50%) scaleX(1);
    /* Show the underline by default */
    transition: transform 0.3s ease;
}

.menu-buttons div a:not(.persist)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 21px;
    transform: translateX(-50%);
    width: 10px;
    height: 2px;
    background-color: var(--black-100);
    transform: translateX(-50%) scaleX(0);
    /* Start with no underline */
    transition: transform 0.3s ease;
}

.menu-buttons div a:not(.persist):hover::after {
    transform: translateX(-50%) scaleX(1);
    /* Show the centered underline on hover */
}

body.light-mode .menu-buttons div a::after {
    background-color: var(--brown-100);
}

body.dark-mode .menu-buttons div a::after {
    background-color: var(--white-100);
}

.menu-buttons div+div {
    margin-left: 32px;
}