/*==========================================================================
# Fullscreen menu style - begin
========================================================================== */

/* Fullscreen general style - begin
========================================================================== */

.edge-dark-header .edge-page-header > div:not(.edge-sticky-header):not(.fixed) .edge-fullscreen-menu-opener,
.edge-dark-header .edge-top-bar .edge-fullscreen-menu-opener {
    color: $header-dark-color !important; //Color can be set inline from widget opener
    
    &:hover,
    &.edge-fm-opened {
        color: $header-dark-hover-color !important; //Color can be set inline from widget opener
    }
}

.edge-light-header .edge-page-header > div:not(.edge-sticky-header):not(.fixed) .edge-fullscreen-menu-opener,
.edge-light-header .edge-top-bar .edge-fullscreen-menu-opener {
    color: $header-light-color !important; //Color can be set inline from widget opener
    
    &:hover,
    &.edge-fm-opened {
        color: $header-light-hover-color !important; //Color can be set inline from widget opener
    }
}

.edge-fullscreen-fade-in{
    .edge-social-sidebar-holder{
        display: none;
    }
}

.edge-fullscreen-menu-opener {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    
    .edge-fm-lines {
        position: relative;
        display: inline-block;
        vertical-align: middle;
        width: 20px;
        height: 10px;
        
        .edge-fm-line {
            position: absolute;
            left: 0;
            height: 1px;
            width: 100%;
            background-color: currentColor;
            -webkit-transition: -webkit-transform .3s ease, top .2s ease-out, background-color .2s ease-out;
            -moz-transition: -moz-transform .3s ease, top .2s ease-out, background-color .2s ease-out;
            transition: transform .3s ease, top .2s ease-out, background-color .2s ease-out;
            
            &.edge-line-1 {
                top: 0;
                outline: transparent solid 1px;
            }
            
            &.edge-line-2 {
                top: 50%;
                outline: transparent solid 1px;
            }
            
            &.edge-line-3 {
                top: 100%;
                outline: transparent solid 1px;
            }
        }
    }
    
    &:hover {
        color: $first-main-color !important; //Color can be set inline from widget opener
        
        .edge-fm-lines {
            
            .edge-fm-line {
                
                &.edge-line-1,
                &.edge-line-3 {
                    top: 50%;
                }
                
                &.edge-line-2 {
                    @include edgeTransform(rotate(90deg));
                }
            }
        }
    }
    
    &.edge-fm-opened {
        color: $first-main-color !important; //Color can be set inline from widget opener
        
        .edge-fm-lines {

            &:before{
                content: "CLOSE";
                font-family: $heading-font;
                font-size: 14px;
                color: $first-main-color;
                position: relative;
                left: -40px;
                top: -9px;
                display: none;
            }
            
            .edge-fm-line {
                background-color: $first-main-color;
                
                &.edge-line-1 {
                    display: none;
                }
                
                &.edge-line-2 {
                    top: 50%;
                    @include edgeTransform(rotate(45deg));
                }
                
                &.edge-line-3 {
                    top: 50%;
                    @include edgeTransform(rotate(-45deg));
                }
            }
        }
    }
}

.edge-fullscreen-menu-opened {
    .edge-page-header{
        > div:not(.fixed):not(.edge-sticky-header){
            .edge-logo-wrapper{
                .edge-light-logo{
                    opacity: 1;
                }
            }
        }
    }

    .edge-page-header,
    .edge-top-bar {
        visibility: hidden;
    }

    .edge-fullscreen-menu-opener,
    .edge-logo-wrapper {
        visibility: visible;
    }

    .edge-fullscreen-menu-holder-outer {
        visibility: visible !important;
        opacity: 1 !important;
    }

    #multiscroll-nav{
        visibility: hidden;
    }
}

.edge-fullscreen-menu-holder-outer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden !important;
    visibility: hidden;
    opacity: 0;
    z-index: 105; /* this has to be between header z-index and content z-index */
}

.edge-fullscreen-menu-holder {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: $default-background-color;
    display: table;
    background-repeat: repeat;
    background-position: 0 0;
}

.edge-fullscreen-menu-holder-inner {
    display: table-cell;
    vertical-align: middle;
}

.touch {

    .edge-fullscreen-menu-holder-outer {
        display: none;
    }

    .edge-fullscreen-menu-opened .edge-fullscreen-menu-holder-outer {
        display: block;
    }
}

nav.edge-fullscreen-menu {
    position: relative;
    top: 0;
    margin: 0;
    text-align: left;
    float: right;
    width: 50%;
    padding-left: 25px;
    box-sizing: border-box;
    height: 50%;
    display: table;

    &:before{

        content: '';
        position: absolute;
        width: 1px;
        height: 100%;
        left: 0;
        top: 0;
        background-color: #bfbfbf;
        @include edgeTransition(height 0.3s ease-in-out);

    }


    ul {
        position: relative;
        list-style: none;
        padding: 0;
        margin: 0;

        li {
            margin: 0;
            padding: 0;
            text-align: left;

            a {
                position: relative;
                display: inline-block;
	            vertical-align: middle;
                margin: 7px 0;
	            font-size: 16px;
	            line-height: 17px;
                text-transform: capitalize;
                color: $additional-color;
                font-family: $heading-font;
                font-weight: 400;

                &:hover{
                    color: $first-main-color;
                    span{
                        border-color: $first-main-color;
                    }
                }

                span {
                    position: relative;
                    display: inline-block;
                    vertical-align: top;
                    border-bottom: 1px solid transparent;
                }

                .edge-fullscreen-menu-arrow {
                    position: relative;
                    top: -2px;
                    display: inline-block;
                    vertical-align: middle;
                    margin: 0 0 0 10px;
                    font-size: 0.65em;
                    line-height: inherit;
                }
            }

            ul {
                padding: 5px 0 10px;

                &.sub_menu {
                    display: none;
                }

                li {

                    &.current-menu-ancestor > a,
                    &.current-menu-item > a {
                        color: $first-main-color;

                        span{
                            border-color: $first-main-color;
                        }
                    }

                    ul {

                        li {

                            a {
                                font-size: 22px;
                            }
                        }
                    }
                }
            }
        }
    }

    > ul {
        display: block;
        overflow:hidden;

        > li {

            > a {
                font-size: 22px;
                letter-spacing: 0.1em;
                color: $additional-color;
                font-weight: 400;
                padding: 3px 0;
                line-height: 1em;
                text-transform: uppercase;

                span{
                    border-bottom: 1px solid transparent;
                }
            }

            &.edge-active-item > a {
                color: $first-main-color;
                span{
                    border-color: $first-main-color;
                }
            }
        }
    }
}

.edge-fullscreen-below-menu-widget-holder {
    text-align: right;
    position: absolute;
    bottom: 25%;
    width: 50%;
    padding-right: 25px;
    box-sizing: border-box;
    border-right: 1px solid #bfbfbf;
    margin-left: 1px;

    .textwidget {
        color: #a5a5a5;
        font-size: 12px;
        letter-spacing: 0.1em;
    }

    .widget_text {
        padding-bottom: 12px;
    }

    .edge-social-icon-widget-holder {
        .edge-social-icon-widget {
            color: #fff;
            font-size: 15px;
        }
    }

    .widget_nav_menu{
        font-family: $heading-font;
        font-size: 14px;
        font-weight: 400;
        color: #616161;
    }

    ul{
        li{
            list-style: none;

            a{
                &:hover{
                    border-bottom: 1px solid $first-main-color;
                }
            }
        }
    }
}

.edge-fullscreen-above-menu-widget-holder {
    text-align: right;
    position: absolute;
    top: 10%;
    width: 50%;
    padding-right: 24px;
}

/* Fullscreen general style - end
========================================================================== */

/* Fullscreen fade animations general - begin
========================================================================== */

@-webkit-keyframes fade_out {
    0% {
        opacity: 1;
        visibility: visible
    }
    100% {
        opacity: 0;
        visibility: hidden
    }
}

@-moz-keyframes fade_out {
    0% {
        opacity: 1;
        visibility: visible
    }
    100% {
        opacity: 0;
        visibility: hidden
    }
}

@keyframes fade_out {
    0% {
        opacity: 1;
        visibility: visible
    }
    100% {
        opacity: 0;
        visibility: hidden
    }
}

@-webkit-keyframes fade_in {
    0% {
        opacity: 0;
        visibility: hidden
    }
    100% {
        opacity: 1;
        visibility: visible
    }
}

@-moz-keyframes fade_in {
    0% {
        opacity: 0;
        visibility: hidden
    }
    100% {
        opacity: 1;
        visibility: visible
    }
}

@keyframes fade_in {
    0% {
        opacity: 0;
        visibility: hidden
    }
    100% {
        opacity: 1;
        visibility: visible
    }
}

.edge-fade-push-text-right .edge-fullscreen-menu-holder-outer,
.edge-fade-push-text-top .edge-fullscreen-menu-holder-outer,
.edge-fade-text-scaledown .edge-fullscreen-menu-holder-outer {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    visibility: hidden;
    overflow: hidden !important;
    z-index: 105;
    opacity: 0;
}

.edge-fullscreen-fade-out .edge-fullscreen-menu-holder-outer {
    -webkit-animation: fade_out .25s linear both;
    -moz-animation: fade_out .25s linear both;
    animation: fade_out .25s linear both;
}

.edge-fullscreen-menu-opened.edge-fullscreen-fade-in .edge-fullscreen-menu-holder-outer {
    -webkit-animation: fade_in .25s linear both;
    -moz-animation: fade_in .25s linear both;
    animation: fade_in .25s linear both;
}

/* Fullscreen fade animations general - end
========================================================================== */

/* Fullscreen animation push text right - begin
========================================================================== */

@-webkit-keyframes push_text_right {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateX(0);
    }
}

@-moz-keyframes push_text_right {
    0% {
        opacity: 0;
        -moz-transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        -moz-transform: translateX(0);
    }
}

@keyframes push_text_right {
    0% {
        opacity: 0;
        transform: translateX(-60px)
    }
    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

@-webkit-keyframes push_nav_right {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateX(0);
    }
}

@-moz-keyframes push_nav_right {
    0% {
        opacity: 0;
        -moz-transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        -moz-transform: translateX(0);
    }
}

@keyframes push_nav_right {
    0% {
        opacity: 0;
        transform: translateX(-60px)
    }
    100% {
        opacity: 1;
        transform: translateX(0)
    }
}

.edge-fullscreen-menu-opened.edge-fade-push-text-right .edge-fullscreen-menu-holder-outer nav > ul > li > a,
.edge-fullscreen-menu-opened.edge-fade-push-text-right .edge-fullscreen-menu-holder-outer .edge-fullscreen-below-menu-widget-holder > div,
.edge-fullscreen-menu-opened.edge-fade-push-text-right .edge-fullscreen-menu-holder-outer .edge-fullscreen-above-menu-widget-holder > div {
    @include edgeAnimation(push_text_right .4s cubic-bezier(0.175, 0.885, 0.32, 1) both);
}

.edge-fade-push-text-right.edge-push-nav-right .edge-fullscreen-menu-holder-outer nav,
.edge-fade-push-text-right.edge-push-nav-right .edge-fullscreen-menu-holder-outer .edge-fullscreen-below-menu-widget-holder,
.edge-fade-push-text-right.edge-push-nav-right .edge-fullscreen-menu-holder-outer .edge-fullscreen-above-menu-widget-holder {
    @include edgeTransition(opacity .4s cubic-bezier(0.175, 0.885, 0.32, 1));
    opacity: 0;
}

/* Fullscreen animation push text right - end
========================================================================== */

/* Fullscreen animation push text top - begin
========================================================================== */

@-webkit-keyframes push_text_top {
    0% {
        opacity: 0;
        -webkit-transform: translateY(60px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

@-moz-keyframes push_text_top {
    0% {
        opacity: 0;
        -moz-transform: translateY(60px);
    }
    100% {
        opacity: 1;
        -moz-transform: translateY(0);
    }
}

@keyframes push_text_top {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

.edge-fullscreen-menu-opened.edge-fade-push-text-top .edge-fullscreen-menu-holder-outer nav > ul > li > a,
.edge-fullscreen-menu-opened.edge-fade-push-text-top .edge-fullscreen-menu-holder-outer .edge-fullscreen-below-menu-widget-holder > div,
.edge-fullscreen-menu-opened.edge-fade-push-text-top .edge-fullscreen-menu-holder-outer .edge-fullscreen-above-menu-widget-holder > div {
    @include edgeAnimation(push_text_top .4s ease-out both .5s);
}

.edge-fade-push-text-top.edge-push-text-top .edge-fullscreen-menu-holder-outer nav,
.edge-fade-push-text-top.edge-push-text-top .edge-fullscreen-menu-holder-outer .edge-fullscreen-below-menu-widget-holder,
.edge-fade-push-text-top.edge-push-text-top .edge-fullscreen-menu-holder-outer .edge-fullscreen-above-menu-widget-holder {
    @include edgeTransform(translateY(-30px));
    @include edgeTransition(all .75s ease-out);
}

/* Fullscreen animation push text top - end
========================================================================== */

/* Fullscreen animation fade text scaledown - begin
========================================================================== */

.edge-fullscreen-menu-opened.edge-fade-text-scaledown .edge-fullscreen-menu-holder-outer nav,
.edge-fullscreen-menu-opened.edge-fade-text-scaledown .edge-fullscreen-menu-holder-outer .edge-fullscreen-below-menu-widget-holder,
.edge-fullscreen-menu-opened.edge-fade-text-scaledown .edge-fullscreen-menu-holder-outer .edge-fullscreen-above-menu-widget-holder {
    opacity: 1;
    @include edgeTransform(scale(1));
    @include edgeTransition(all .25s linear 0.1s);
}

.edge-fade-text-scaledown .edge-fullscreen-menu-holder-outer nav,
.edge-fade-text-scaledown .edge-fullscreen-menu-holder-outer .edge-fullscreen-below-menu-widget-holder,
.edge-fade-text-scaledown .edge-fullscreen-menu-holder-outer .edge-fullscreen-above-menu-widget-holder {
    opacity: 0;
    @include edgeTransform(scale(1.1));
    @include edgeTransition(all .25s linear 0.1s);
}

/* Fullscreen animation fade text scaledown - end
========================================================================== */

/* ==========================================================================
# Fullscreen menu style - end
==========================================================================*/