.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #707070;
    background-color: #fff;
    padding: 10px 20px;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-link {
    box-sizing: border-box;
    color: #000;
    text-decoration: none;
    font-size: 30px;
    margin-right: 20px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}
.nav-link.active {
    color: #F88037 !important;
}

.nav-link.active:hover {
    color: #fff !important;
}
.nav-link:hover {
    color: #7798cd;
    padding: 5px 9px;
    transform: scale(1.05);
}
.nav-home:hover {
    background-color: #f99659;
    color: #fff;
}

.nav-about:hover {
    background-color: #f5dd68;
    color: #fff;
}

.nav-events:hover {
    background-color: #ade47a;
    color: #fff;
}

.nav-join:hover {
    background-color: #7798cd;
    color: #fff;
}

.nav-donate:hover {
    background-color: #f99659;
    color: #fff;
}

.nav-gallery:hover {
    background-color: #f5dd68;
    color: #fff;
}
.nav-faq:hover {
    background-color: #ade47a;
    color: #fff;
}
.nav-reach:hover {
    background-color: #7798cd;
    color: #fff;
}

.facebook-icon {
    color: #f99659;
    font-size: 40px;
}

.facebook-icon:hover {
    color: #7798cd;
}
/* Hide hamburger menu on larger screens */
.hamburger-menu {
    display: none; /* Hidden by default */
}
/* Overlay Fullscreen Style */
.overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1; /* Above other content */
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Enable scrolling if content overflows */
    box-sizing: border-box;
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.5s ease; /* Smooth slide in/out */
}
.overlay.active {
    transform: translateX(0); /* Slide in to view */
}

.overlay-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.closebtn {
    display: none;
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 2;
    color: #818181;
    font-size: 30px;
}
.overlay.active .closebtn {
    display: block; /* Show only when the overlay is active */
}
@media (max-width: 1365px) {
    .nav-left, .nav-right {
        display: none;
    }
    .hamburger-menu {
        display: block;
        margin: 0 auto;
        font-size: 30px;
        cursor: pointer;
    }
    .main-nav {
        justify-content: center;
    }
    .closebtn {
        right: calc(100% - ((100% - 600px) / 2) - 50px);
    }
}

/* Responsive adjustments for the hamburger menu icon */
@media (max-width: 1200px) {
    .hamburger-menu {
        font-size: 28px;
    }
    .closebtn {
        right: calc(100% - ((100% - 90%) / 2) - 50px); /* Adjusted dynamically */
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        font-size: 25px;
    }
    .overlay-content {
        max-width: 90%;
    }
    .closebtn {
        right: 20px;
        top: 20px;
        font-size: 30px;
    }
}
@media (max-width: 480px) {
    .overlay-content {
        padding-top: 40px;
    }
    .closebtn {
        right: 15px;
        top: 15px;
        font-size: 25px;
    }
}