/* Full Screen Menu Container */
.fullscreen-menu-container {
    display: flex;
    position: relative;
    z-index: 9999;
}

/* Burger Menu Icon */
.burger {
    position: relative;
    cursor: pointer;
    display: block;
    z-index: 100000; /* Higher z-index to ensure it stays above the overlay */
    width: 30px; /* Default width */
    height: 22px; /* Default height - adjusted for proportions */
}

.burger input {
    display: none; /* Hide the checkbox */
    position: absolute;
}

.burger span {
    display: block;
    width: 100%;
    height: 3px; /* Fixed height for the lines */
    margin-bottom: 6px; /* Fixed spacing between lines */
    transition: all 0.3s;
    position: absolute;
    left: 0;
    border-radius: 1px;
}

/* Position the three lines */
.burger span:nth-child(2) {
    top: 0;
}

.burger span:nth-child(3) {
    top: 9px; /* Positioned at 1/3 of container height */
}

.burger span:nth-child(4) {
    top: 18px; /* Positioned at 2/3 of container height */
}

/* Create X animation when checked */
.burger input:checked + span {
    transform: rotate(45deg);
    top: 9px; /* Center position */
}

.burger input:checked + span + span {
    opacity: 0;
}

.burger input:checked + span + span + span {
    transform: rotate(-45deg);
    top: 9px; /* Center position */
}

/* Fullscreen Overlay */
.fullscreen-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.fullscreen-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-menu-content {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

/* Menu Styling */
.fullscreen-menu-overlay .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fullscreen-menu-overlay .menu li {
    margin-bottom: 20px;
}

.fullscreen-menu-overlay .menu a {
    font-family: inherit; /* Inherit font from the website */
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
}

/* Body class when menu is open */
body.menu-opened {
    overflow: hidden;
}