#overlay-outer {
    z-index: 1001;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#overlay-outer[id] {
    display: table;
    position: absolute;
}

#overlay-middle {
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
}

/* for explorer only*/

#overlay-middle[id] {
    display: table-cell;
    position: static;
    vertical-align: middle;
}

#overlay-inner {
    position: relative;
    top: -50%;
    text-align: left;
}

/* for explorer only */
#overlay-inner {
    width: 200px;
    margin-right: auto;
    margin-left: auto;
}


.game-overlay{
    background: inherit !important;
    opacity: 1 !important;
}

.game-deco-holder{
    position: absolute;
    width: 100%;
    height: 100%;
    top:0;
    left: 0;
    opacity: 0.5;
}

.game-deco{
    position: absolute;
    width: 150px;
    height: 150px;

}

.game-deco.top{
    height: 30px;
    width: 100%;
    top: 0;
    left: 0;
    width: 100%;
    background: url(../img/menus/game-deco-top.png);
    background-position:0 -100%;
}

.game-deco.bottom{
    height: 30px;
    width: 100%;
    bottom: 0;
    left: 0;
    width: 100%;
    background: url(../img/menus/game-deco-top.png);
    background-position:0 0;
}

.tl{
    top:0;
    left: 0;
}

.tr{
    top:0;
    right: 0;
}
.bl{
    bottom:0;
    left: 0;
}

.br{
    bottom:0;
    right: 0;
}

.game-deco.tl{
    background: url(../img/menus/game-corner.png);
    background-position: -100% -100%;
}

.game-deco.tr{
    background: url(../img/menus/game-corner.png);
    background-position: 0 -100%;
}

.game-deco.bl{
    background: url(../img/menus/game-corner.png);
    background-position: -100% 0;
}

.game-deco.br{
    background: url(../img/menus/game-corner.png);
    background-position: 0 0;
}