.menuLogo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 0 20px;*/
    box-sizing: border-box;
    z-index: 1004;
    transition: background-color 0.5s ease;
}

/*logoContainer for logo from Philipe
.logoContainer {
    position: fixed;
    right: 5px;
    top: 5px;
    width: 3.5%;
    height: auto;
}*/

.logoContainer {
    position: fixed;
    right: 4px;
    top: 5px;
    width: 6%;
    height: auto;
}

.logo {
    width: 100%;
    /* Prevent user selection on the logo */
    user-select: none;
    -webkit-user-select: none; /* For Safari */
    -moz-user-select: none; /* For Firefox */
    -ms-user-select: none; /* For IE/Edge */

    /* Optionally, disable pointer events to prevent any interactions */
    pointer-events: none;

    z-index: 1005;
}

.menu-icon span {
    display: block;
    width: 100%; /* Ensures the span takes the full width of the parent */
    height: 15%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}


#menuToggle {
    display: none;
}

.menu {
    position: fixed;
    right: 0;
    width: 20%;
    height: 100%;
    background-color: rgba(60, 63, 65, 0.9);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    top: 0;
    /*top: 100px; !* Adjust to match the height of the header *!*/
    /*overflow-y: auto; !* Add scrollbar if menu content exceeds height *!*/
}

.menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.menu ul li {
    margin: 25px 0;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 25px;
}

#menuToggle:checked + .menuLogo + .menu {
    transform: translateX(0);
}

#menuToggle:checked + .menuLogo span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle:checked + .menuLogo span:nth-child(2) {
    opacity: 0;
}

#menuToggle:checked + .menuLogo span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#menuToggle:checked + .menu-icon + .menu {
    transform: translateX(0);
}

#menuToggle:checked + .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
}

#menuToggle:checked + .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 600px){
    .menu-icon {
        position: fixed;
        top: 1.5%;
        right: 6%;
        cursor: pointer;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 8%; /* Increase the width to make the bars longer */
        height: 3%;
        z-index: 1000;
    }

    .menu-icon span {
        display: block;
        width: 100%; /* Ensures the span takes the full width of the parent */
        height: 18%;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 40%;
        height: 100%;
        background-color: rgba(60, 63, 65, 0.9);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
}
