#navigationBarHeader {
    position: absolute;
    transform: translateX(-50%);
    width: fit-content;
    width: -moz-fit-content;
    display: flex;
    justify-content: start;
    align-items: stretch;
    gap: 16px;
    color: var(--blueBorder);
    font-family: IRANSansWeb_Medium;
}

#navigationBarHeader>.navheader {
    text-align: center;
    transition: .3s;
    text-decoration: none;
    color: var(--menuItmeBlueMid);
}

@media (min-width:980px) {
    #navigationBarHeader {
        bottom: 120px;
        left: 50%;
    }
    .navigationBox .navigation {
        position: absolute;
        bottom: 256px;
        border: 5px solid var(--blueBorder);
        color: var(--blueBorder);
        border-radius: 30px;
        padding: 4px 48px;
        text-decoration: none;
    }
    .navigationBox .navigation:hover {
        color: #fff;
        background: var(--blueBorder)
    }
    .navigationBox .navigation:hover::after {
        animation: widthAnimation .3s ease-in-out;
    }
    @keyframes widthAnimation {
        0% {
            width: 0;
        }
        100% {
            width: 100%;
        }
    }
    .navigationBox .navigation:nth-child(1) {
        right: calc(50vw - 40vh);
        transform: translateX(50%);
    }
    .navigationBox .navigation::after {
        display: inline-block;
        content: "";
        position: absolute;
        background-color: var(--blueBorder);
        top: 50%;
        width: calc(50vw - 40vh - 50%);
        height: 5px;
        transform: translateY(-50%);
    }
    .navigationBox .navigation:nth-child(1)::after {
        left: 100%;
    }
    .navigationBox .navigation:nth-child(2)::after {
        right: 100%;
    }
    #LowAbuotUsSection .navigationBox .navigation {
        left: 128px;
        /* left: calc(50vw - 40vh); */
        right: unset !important;
        transform: translateX(-50%);
    }
    #searchSection .navigationBox .navigation {
        right: 128px
    }
    #LowAbuotUsSection .navigationBox .navigation::after {
        right: 100%;
    }
    .navigationBox .navigation:nth-child(2) {
        left: calc(50vw - 40vh);
        transform: translateX(-50%);
    }
    #navigationBarHeader>.navheader {
        /* border-bottom: 5px solid var(--blueBorder);
        border-radius: 5px; */
        padding-bottom: 8px;
        display: inline-block;
        min-width: 32px;
        position: relative;
    }
    #navigationBarHeader>.navheader::after {
        position: absolute;
        top: 100%;
        left: 0%;
        display: inline-block;
        content: "";
        width: 100%;
        height: 5px;
        background: var(--menuItmeBlueMid);
        border-radius: 5px;
    }
    #navigationBarHeader>.navheader span {
        opacity: 0;
        transition: .3s;
    }
    #navigationBarHeader>.navheader.selected {
        width: 150px;
    }
    #navigationBarHeader>.navheader.selected span,
    #navigationBarHeader>.navheader:hover span {
        opacity: 1;
    }
}

@media (max-width:980px) {
    .navigationBox {
        display: none;
    }
    #navigationBarHeader {
        left: 0;
        right: 0;
        transform: translateX(0);
        top: 64px;
        background: #fff;
        width: 100vw;
        height: 42px;
        justify-content: space-between;
        align-items: center;
        z-index: 98;
        box-shadow: 0 8px 5px #0003;
        padding: 0 24px;
        position: fixed;
        transition: .3s;
    }
    #navigationBarHeader.hid {
        transform: translateY(-100%);
    }
    #navigationBarHeader .navheader {
        height: 100%;
        width: 100%;
        line-height: 42px;
        vertical-align: middle;
        /* display: flex;
        align-items: center;
        justify-content: center; */
        white-space: nowrap;

    }
    #navigationBarHeader .navheader:not(.selected) {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #navigationBarHeader>.navheader.selected,
    #navigationBarHeader>.navheader:hover {
        border-bottom: 3px solid red;
        padding: 0 24px;
    }
}

@media (max-height:900px) {
    .navigationBox .navigation {
        bottom: 164px;
    }
}

@media (max-height:800px) and (min-width:980px) {
    #navigationBarHeader {
        bottom: 92px;
    }
    .navigationBox .navigation {
        font-size: 14px;
        padding: 2px 32px;
        border-width: 3px;
    }
    .navigationBox .navigation::after {
        height: 3px;
    }
}

@media (max-height:700px) and (min-width:980px) {
    #navigationBarHeader {
        bottom: 64px;
    }
}