.fullScreenOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    overflow-x: auto; /* Horizontal scrollbar will appear if content overflows */
    background-color: rgba(256, 256, 256, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9997; /* Make sure the overlay is on top of everything */
    padding-top: 40px; /* Pushes the overlay down to make space for the navigation bar */
}


/* Navigation Bar for Modify Protocol Overlay*/
.modifyProtocolNavBar {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    height: 55px;
    width: calc(100% - 20px);
    max-width: 540px;
    background: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 0.95) 0%,  /* Full opacity at the top */
        rgba(255, 255, 255, 0.95) calc(100% - 10px), /* Maintain opacity till 10px from the bottom */
        rgba(255, 255, 255, 0) 100%  /* Fade to transparent at the bottom */
    );
    padding: 0 10px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    box-sizing: border-box;
}

/* Child Elements */
.modifyProtocolNavBar__createPersonalRoutine,
.modifyProtocolNavBar__saveRoutine,
.modifyProtocolNavBar__closeButton {
    max-height: 70px;
    width: 100%;
    border: 2px solid var(--lightGrey);
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: absolute;
    font-size: 10px;
    color:black;
    top: -10px;
}

.modifyProtocolNavBar__createPersonalRoutine {
    max-width: 100px;
    aspect-ratio: 10/7;
    left: 30px;
    padding: 5px 0 0 0;
}
.modifyProtocolNavBar__createPersonalRoutine img {
    max-height: 100%;
    width: auto;
    display: block;
    padding: 5px;
    box-sizing: border-box;
}


.modifyProtocolNavBar__saveRoutine {
    max-width: 100px;
    aspect-ratio: 10/7;
    left: calc(30px + 100px + 10px); /* 10px from left + width of previous element + 10px gap */
    padding: 5px 0 0 0;
}
.modifyProtocolNavBar__saveRoutine img {
    max-height: 100%;
    width: auto;
    display: block;
    padding: 5px;
    box-sizing: border-box;
}
.modifyProtocolNavBar__saveRoutine__confirmation {
    /* Size and positioning */
    width: 80px;
    height: 80px;
    position: fixed;
    top: -90px; /* Hidden above the viewport */
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    
    /* Appearance */
    border-radius: 10px;
    background-color: var(--veryLightGreen);
    transition: top 0.25s ease;
    box-shadow: var(--grey-boxShadow);
    
    /* Text alignment */
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Aligns text to the bottom */
    padding-bottom: 10px;   /* Adds some spacing from the bottom edge */
    text-align: center;
    font-size: 14px;
    color: white;
}


.modifyProtocolNavBar__closeButton {
    max-width: 60px;
    aspect-ratio: 6/7;
    right: 30px;
    padding: 5px 0 0 0;
}
.modifyProtocolNavBar__closeButton img {
    max-height: 100%;
    width: auto;
    display: block;
    padding: 5px;
    box-sizing: border-box;
}




.pageMenuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: auto; /* Horizontal scrollbar will appear if content overflows */
    background-color: rgba(256, 256, 256, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9997; /* Make sure the overlay is on top of everything */
}
.pageMenuOverlay ul {
    margin: 20px;
    padding: 0px;
}
.pageMenuOverlay ul li {
    margin: 20px auto;
    padding: 0px;
    list-style: none;
    text-align: center;
    line-height: 50px;
}
.pageMenuOverlay ul li:hover {
    margin: 20 auto 20 auto;
    padding: 0px;
    list-style: none;
    text-align: center;
    background-color: var(--veryLightBlue);
}
.pageMenuOverlay a {
    color: black;
    text-decoration: none;
    font-size: 16px;
}