/* 
- 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: none;
    display: inline;
    border: none;    
    font-size: 32px;
    z-index: 9999;
    top: .15em;
    padding: 0em .25em;
    text-align: center;
    right: .5em;
}

.menu-btn button {
    display: inline-block;
    text-decoration: none;
    background: #fff;
    border: none;
    font-size: .5em;
    /* safari hack */
}

.menu-btn button i, .menu-btn button svg {
    font-size: 1.2em;
}

.btn-open:after {

}

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

.btn-close:after {
    color: #333;
    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 i, .btn-close svg {
    display: none;
}

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


/* OVERLAY */

.overlay {
    position: fixed;
    z-index: 9998;
    display: none;
    overflow: none;
    opacity: 1;
    padding-top: 1em;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .95);
}

/* RESPONSIVE */

@media screen and (min-width: 768px) {
    .menu-btn {
        position: relative;
        background: white;
        display: block;
        font-size: 28px;
        margin: 0 auto;
        padding: .25em .5em;
        text-align: center;
        width: 100%;
        right: 0;
        top: 0;
        left: 0;
        bottom: 0;
    }
    
    .overlay {
        padding-top: 14em;
    }
}

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