/* 
- 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: absolute;
    background: #325097;
    display: inline;
    font-size: 34px;
    z-index: 501;
    top: 0;
    width: 46px;
    height: 46px;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    padding: .15em .15em .14em; 
    right: 0;
    border-radius: 0 0 0 5px;
}

.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: rgb(50, 80, 151);
    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: 500;
    display: none;
    overflow: none;
    opacity: 1;
    padding-top: 4em;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
    height: 100%;
    background: rgba(50, 80, 151, .95);
}

/* RESPONSIVE */

@media screen and (min-width: 767px) {    
    .overlay {
        padding-top: 10em;
    }
}

@media screen and (min-width: 769px) {
    .overlay {
        display: block;
        position: relative;
        padding-top: 0;
        background: #325097;
        width: auto;
        height: auto;
    }
    .menu-btn, .menu-btn-dark {
        display: none;
    }
}