/* ===============  NAV  =============== */

#mobile {
    align-self: stretch; 
    display: flex;
    z-index: 9999;
    position: fixed;
}

#medium {
    align-self: stretch;
    padding: 2% 6%;
    display: none;
    justify-content: space-between;
    align-items: center;

}

.nav-link-container {
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    display: flex;
}

#nav-container {
    justify-content: flex-start; 
    align-items: center; 
    gap: 48px; 
    display: flex;
}

#hamburger {
    width: 40px; 
    height: 40px; 
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2;
}

#menu {
    width: 100%; 
    height: 100%; 
    background-color: rgba(0.79, 0.79, 0.79, 0.9);
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    display: none;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
}

#menu.active {
    pointer-events: auto;
    display: inline-flex;
}

#overlay {
    width: 100vw; 
    height: 100vh; 
    padding-top: 100px; 
    padding-bottom: 40px; 
    padding-left: 50px; 
    padding-right: 40px; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: flex-end; 
    gap: 60px; 
    display: flex;
}

#overlay-container {
    align-self: stretch; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: flex-start; 
    gap: 24px;
    display: flex;
}

.overlay-link-container {
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    display: inline-flex;
}

.overlay-link {
    color: var(--white);
    font-size: 20px; 
    font-family: IBM Plex Mono; 
    font-weight: 500; 
    word-wrap: break-word;
}


/* ===============  HAMBURGER  =============== */

#nav-icon3 {
    width: 75%;
    position: absolute;
    right: 8px;
    top: 8px;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

#nav-icon3 span {
    display: flex;
    position: absolute;
    height: 5px;
    width: 100%;
    background: var(--white);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

#nav-icon3 span:nth-child(1) {top: 0px;}
#nav-icon3 span:nth-child(2),#nav-icon3 span:nth-child(3) {top: 12px;}
#nav-icon3 span:nth-child(4) {top: 24px;}
#nav-icon3.open span:nth-child(2) {transform: rotate(45deg);}
#nav-icon3.open span:nth-child(3) {transform: rotate(-45deg);}

#nav-icon3.open span:nth-child(4), #nav-icon3.open span:nth-child(1) {
    top: 18px;
    width: 0%;
    left: 50%;
}