

.header {
    z-index: 999;
    display: flex;
    align-items: center;
    /*justify-content: space-between; /* Distribute items between the left and right */
    background-color: var(--header-footer-bg-color);
    color: var(--header-text-color);
    width: 100%;
    top: 0;
    left: 0;
    height: 60px;
    position: sticky;
    font-family: var(--text-font);
}

.header-left {
    display: flex;
    /* Align the logo and page name together */
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    width: 20%;
}

.header-right {
    display: flex;
    /* Align the logo and page name together */
    align-items: center;
    padding-right: 10%;
    width: 80%;
    justify-content: space-between;
}

.header-right a {
    color: var(--header-text-color);
    text-decoration: none;
    text-align: center;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 19px;
    flex-grow: 1;
    /* Make the menu container take up remaining space */
    justify-content: space-evenly;
    /* Evenly space the links */
}

.header-right a:hover {
    background-color: var(--header-button-hover-color);
    border-radius: 15px;
}

.logo {
    height: 50px;
    margin-right: 15px;
    background-color: var(--content-box-bg-color);
    border-radius: 10px;
}

.logo-text-name {
    font-size: 26px;
    font-weight: bold;
    font-family: var(--logo-font);
    color: var(--header-text-color);
    text-decoration: none;
}


/* Menu Styles */
.header-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.header-menu div {
    color: var(--header-text-color);
    text-decoration: none;
    text-align: center;
    padding: 10px 15px;
    font-size: 18px;
    flex-grow: 1;
    /* Make the menu container take up remaining space */
    justify-content: space-evenly;
    /* Evenly space the links */
    cursor: pointer;
}

.header-menu-close {
    font-size: 40px; /* Size of the cross */
    background: none;
    border: none;
    color: var(--header-text-color);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}



/* Hide links on small screens and show menu */
@media (max-width: 665px) {
    .header-right a {
        display: none;
        /* Hide navigation links */
    }

    .header-menu {
        display: flex;
        /* Show menu */
        margin-right: 10px;
    }
}



/* Updated overlay */
.overlay {
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background: rgba(51, 51, 51, 0.95); /* semi-transparent background */
    backdrop-filter: blur(8px); /* glassmorphism effect */
    color: white;
    justify-content: flex-start;
    align-items: center;
    z-index: 999;
    padding-top: 30px;
    font-family: var(--text-font);
}

/* When active */
.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Updated mobile menu button */
.header-menu div {
    font-size: 20px;
    background-color: var(--button-color);
    padding: 8px 16px;
    border-radius: 12px;
    transition: background-color 0.3s;
}

.header-menu div:hover {
    background-color: var(--button-color-hover);
}

/* Mobile menu links */
.overlay a {
    display: flex;
    width: 80%;
    margin: 12px 0;
    height: 50px;
    font-size: 22px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.overlay a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-menu-close {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 8px;
}