/* 
- Name: Responsive overlay menu framework
- Version: 1.0
- Latest update: 15.9.2015.
- Author: Mario Loncarek
- Author web site: http://marioloncarek.com
*/


/* OPEN / CLOSE BTNS */

.menu-btn {
    position: fixed;
    background: #f15927;
    display: inline;
    font-size: 34px;
    z-index: 1999;
    top: 0;
    width: 50px;
    height: 50px;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    padding: .15em;
    right: 0;
}

@media screen and (min-width: 321px) {
    .menu-btn {
        top: 0;
        right: 0;
    }
}

.menu-btn a {
    display: inline-block;
    text-decoration: none;
    /* safari hack */
}


.btn-open:after {
    color: #fff;
    content: "\f394";
    font-family: "Ionicons";
    -webkit-transition: all .2s linear 0s;
    -moz-transition: all .2s linear 0s;
    -o-transition: all .2s linear 0s;
    transition-property: all .2s linear 0s;
}

.btn-open:hover:after {
    color: #fff;
}

.btn-close:after {
    color: #fff;
    content: "\f2d7";
    font-family: "Ionicons";
    -webkit-transition: all .2s linear 0s;
    -moz-transition: all .2s linear 0s;
    -o-transition: all .2s linear 0s;
    transition-property: all .2s linear 0s;
}

.btn-close:hover:after {
    color: #fff;
}


/* OVERLAY */

.overlay {
    position: fixed;
    z-index: 1998;
    display: none;
    overflow: none;
    opacity: 1;
    padding-top: 6em;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
    height: 100%;
    background: rgba(241, 89, 39, .9);
}

/* RESPONSIVE */

@media screen and (min-width: 769px) {
    .menu-btn {
        position: relative;
        background: white;
        z-index: 999;
        display: block;
        font-size: 28px;
        margin: 0 auto;
        padding: .25em .5em;
        text-align: center;
        right: 0;
        top: 0;
    }
    
    .overlay {
        padding-top: 10em;
    }
}

@media screen and (min-width: 1024px) {
    .overlay {
        display: block;
        position: relative;
        background: none;
        padding-top: 0;
        width: auto;
        height: auto;
    }
    .menu-btn, .menu-btn-dark {
        display: none;
    }
}