.header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #57BD91;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    box-sizing: border-box;
    z-index: 1000;
    margin: 0; /* Remove any gap */
}

body {
    margin: 0; /* Remove default body margin to avoid gaps */
    /* padding-top: 80px; Add padding to prevent content overlap with the fixed header */
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

.logo-x {
    color: #fff;
    font-weight: bold;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-icon {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.menu-icon:hover {
    transform: scale(1.1);
}

.game-icon {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-icon:hover {
    transform: scale(1.1);
}

.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 25%;
    height: 100%;
    color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    background-color: white !important; /* Ensure background is always white */
    z-index: 1101; /* Ensure menu-bar is above the header */
}

.menu-bar.open {
    transform: translateX(0);
    background-color: white;
    z-index: 1101; /* Explicitly set z-index for open state */
}

.menu-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #57BD91; /* Updated green background */
    border-bottom: 1px solid #555;
}

.menu-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.menu-title {
    font-size: 20px;
    color: #fff;
    margin: 0;
}

.menu-options {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: white;
}

.menu-options li {
    margin: 10px 0;
}

.menu-options a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

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

.menu-item {
    margin: 10px 0;
}

.menu-item a {
    color: #333; /* Updated to dark text color */
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: white; /* Ensure menu item background is always white */
}

.menu-divider {
    border: none;
    border-top: 1px solid #ddd; /* Light gray line */
    margin: 5px 0;
}

@media (max-width: 768px) {
    .menu-bar {
        width: 50%;
    }

    .header-icons {
        gap: 15px;
    }
}


