.header-bar {
    z-index: 4;
    transition: 0.3s ease-in-out;
}

@media (max-width:1440px) and (min-width:1024px) {
    .header-bar {
        display: flex;
        width: 100dvw;
        position: fixed;
        right: 0%;
        background-color: var(--bg-main);
        opacity: 0%;
        animation: header-bar-fadeout-feedback 3s normal 1;
    }

    @keyframes header-bar-fadeout-feedback {
        from {
            opacity: 100%;
        }

        to {
            opacity: 0%;
        }
    }

    .header-bar:hover {
        opacity: 100%;
    }

    .nav-bar {
        width: 100%;
    }

    .nav-list {
        display: flex;
        width: 100%;
        list-style: none;
        text-decoration: none;
        justify-content: space-evenly;
        padding: 0%;
    }

    .nav-component {
        flex-basis: 20%;
        max-width: fit-content;
        text-align: center;
        display: flex;
        flex-direction: column;
        column-gap: 1px;
        padding: 1%;
        border-radius: 5px;
        font-weight: 700;
        box-sizing: border-box;
        transition: 0.2s;
    }

    .nav-component:hover {
        scale: 1.1;
    }

    .nav-component a {
        text-decoration: none;
    }

    #form-section-link, #form-section-link a {
        background-color: var(--highlights);
        color: var(--bg-main);
    }
}

@media (max-width: 1024px) and (min-width: 770px) {
    .nav-component i{
        display: none;
    }
}

@media (max-width: 770px) {
    .header-bar {
        height: 100vh;
        position: fixed;
        right: 100%;
        transition: 0.5s ease-in-out;
    }

    #menu-exit-area {
        display: none;
        position: fixed;
        width: 15%;
        height: 100vh;

    }

    #nav-button {
        margin-top: 10px;
        position: fixed;
        z-index: 5;
        left: 2.5%;
        background-image: url(../images/menu.png);
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
        background-color: var(--highlights);
        width: 40px;
        height: 40px;
        transition: 0.2s ease-in-out;
        border-radius: 5px;
        box-shadow: 2px 5px 10px black;
    }

    #nav-button:active {
        background-color: #0F0F17;
    }

    .nav-bar {
        position: absolute;
        display: flex;
        right: 100%;
        padding-left: 0%;
        height: 100dvh;
        background-color: #1B1B33;
        width: 90vw;
        align-items: center;
    }

    .nav-list {
        flex-direction: column;
        align-items: first baseline;
        line-height: 30px;
        background-color: #1B1B33;
        padding: 5%;
        margin-top: 3%;
        display: flex;
    }

    .nav-list::before {
        content: "Menu";
        color: var(--letters);
        margin-bottom: 10%;
        font-size: 1.6rem;
        font-weight: 600;
    }

    .nav-list li a {
        text-decoration: none;
    }

    .nav-list li {
        list-style: none;
        display: flex;
        column-gap: 10px;
        justify-content: center;
        align-items: center;
    }

    .nav-list i {
        font-size: 20px;
        height: 20px;
        width: 20px;
    }

    .nav-component {
        height: 20%;
        padding: 2% 0%;
    }

}