/* overlay */
.overlay{
    width:100%;
    height:100%;
    position:fixed;
    top:0;
    left:0;
    display:none;
    overflow-y: scroll;
    z-index:999999;
}

.overlay-outer-wrap{
    display:table;
    position:absolute;
    overflow:hidden;
    height:100%;
    width:100%;
}

.overlay-middle-wrap{
    display:table-cell;
    vertical-align: middle;
    width:100%;
    height:inherit;
}

.overlay-container{
    position:relative;
    margin:0 auto;
    width:100%;
    text-align:left;
}

.overlay-loader{
    margin:0 auto;
    display:block;
    padding:20px 60px;
    background-color:#666;
    border-radius:10px;
}

#overlay{
    background-color:rgba(0,0,0,0.4);
    z-index:998;
}