/* Simple white hamburger icon without an outline */
.navbar-toggler {
    background: none;
    border: none;
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-block;
    width: 24px;
    height: 24px;
    overflow: hidden;
}
.hamburger-icon {
    display: block;
    width: 30px;
    height: 2px;
    background-color: white;
    position: relative;
}
.hamburger-icon::before, .hamburger-icon::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 0;
}
.hamburger-icon::before {
    top: -8px;
}
.hamburger-icon::after {
    top: 8px;
}

/* Page overlay for locking out the rest of the page */
.page-overlay {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 998; /* Behind the menu but above other content */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show the overlay when active */
.page-overlay.active {
    visibility: visible;
    opacity: 1;
}
/* Overlay menu styles */
.overlay-menu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0; /* Start from the right */
    width: 100%;
    max-width: 400px; /* Set a width to control the menu size */
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.9);*/
	background-color: #333;
    transform: translateX(100%); /* Start off-screen to the right */
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    padding-top: 84px; /* Adjust as needed */
	padding-right: env(safe-area-inset-right); /* iOS notch padding */
}

/* Show the overlay when active */
.overlay-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0); /* Slide into view */
}

/* Close button (X) for overlay menu */
.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding-inline: 20px; /* Fine-tune this padding if needed */
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* Adjustments for mobile */
@media (max-width: 768px) {
    .close-btn {
        top: 0;
        right: 0;
    }
	/*
    .overlay-menu {
        padding-top: 60px;
    }
	*/
}
/* Menu item styles */
.overlay-menu-items {
    list-style: none;
    padding: 0 20px;
    margin: 0;
    text-align: left;
    position: relative;
}
.overlay-menu-items::before {
    content: "Web Tools";
    text-transform: uppercase;
    letter-spacing: .2rem;
    margin: 0 0 2rem;
    padding: 0 0 .75rem;
    border-bottom: 1px solid #666;
    color: #fff;
    display: block;
}
.overlay-menu-items li {
    margin: 1rem 0;
}
.overlay-menu-items .nav-link {
    font-size: 1.2rem;
    font-weight: normal;
    color: white;
    text-decoration: none;
}
.overlay-menu-items .nav-link.active {
    font-weight: bold;
    color: #007bff;
}