/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* =================================================================
 * one page navigation
   ================================================================= */

.one-page-nav-wrapper {
    position: fixed;
    z-index: 9999;
    top: 50%;
    right: -76px;
    padding: 32px 12px 32px 16px;
    -webkit-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    border-radius: 22px 0 0 22px;
    background: white;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);


    &.one-page-nav-wrapper--open {
        right: 0;
    }

    ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 16px;
    }

    a {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    img {
        max-height: 22px;
        -o-object-fit: contain;
        object-fit: contain;
    }

    .one-page-nav-toggle {
        position: absolute;
        top: 50%;
        right: 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: end;
        width: 100px;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);

        .one-page-nav-toggle-button {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            width: 16px;
            height: 80px;
            padding: 2px;
            cursor: pointer;
            -webkit-transition: all 0.4s ease-in-out;
            -o-transition: all 0.4s ease-in-out;
            transition: all 0.4s ease-in-out;
            background: white;
        border-radius: 4px 0 0 4px;

            &.hovered {
                width: 24px;
            }

            i.rotated {
                -webkit-transform: rotate(180deg);
                -ms-transform: rotate(180deg);
                transform: rotate(180deg);
            }
        }
    }

}

.page-nav-item-link {
    svg {
        height: 100%;
    }

    i {
        color: white;
    }
}