#nav-fwd,
#nav-fwd-dom-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 5rem;
    height: 100%;
}

#nav-fwd {
    position: fixed;
    background-color: white;
    z-index: 99;
    transition: width 0.1s;
    overflow: auto;
}

#nav-fwd:hover {
    box-shadow: 0px 4px 20px 0px #0000001A;
}

#nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgb(115, 119, 145);
    padding: 0.3rem;
    display: none;
}

/* the dom-block is to take up dom space since the actual nav is fixed position */
#nav-fwd-dom-block {
    visibility: hidden;
}

.logo-container-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo-container {
    width: 96%;
    height: 4rem;
    position: relative;
    display: flex;
    justify-content: center;
}

.logo-container.expanded {
    width: 200px;
    position: relative;
    display: flex;
    justify-content: end;
}

.logo-container img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
}

.logo-expanded {
    opacity: 0;
    transition: opacity 0.5s;
}

.logo-collapsed {
    transition: opacity 0.5s;
}

.nav-menu-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.nav-menu-item a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 2.8rem;
    height: 2.8rem;
    color: #737791;
    padding: 0.8rem;
    box-sizing: border-box;
    border-radius: 1.2rem;
    transition: width 0.1s;
}

.nav-item-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-item-label.visible {
    position: static;
    width: auto;
    height: auto;
}

.nav-menu-item a.current-page {
    background-color: var(--theme-color-primary);
    color: white;
}

.nav-icon-container {
    display: flex;
    width: fit-content;
    height: 100%;
}

.nav-icon-container svg {
    width: auto;
    height: 100%;
}

@media only screen and (max-width: 55rem) {

    #nav-fwd,
    #nav-fwd-dom-block {
        display: none;
    }
}

@media only screen and (max-height: 53rem) {

    #nav-fwd {
        gap: 1.3rem;
    }

    .logo-container {
        height: 3.5rem;
    }

    .nav-menu-items {
        gap: 0.6rem;
    }

    .nav-menu-item a {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.7rem;
        border-radius: 1rem;
    }
}

