html,body{
    height: 100%;
    padding-bottom: 0;
    padding-top: 0;
}
.error-page-container footer a, .error-page-container footer a:hover, .error-page-container footer a:visited{
    color:#ffffff;
}

img.error-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    flex-grow: 1;
}

.error-bg .imageby-link a{
    color: #ffffff;
}

.error-page-container footer{
    padding: 10px;
    background-color: #222222;
}

.error-page-container .footer-separator,
.container.body-content .footer-separator{
    display:none;
}

.error-page-container .error-bg,
.container.body-content .error-bg{
    position:relative;
}

.error-page-container,
.container.body-content {
    height: 100%;
    position: static;
    display: flex;
    flex-direction: column;
    color: white;
    width:100%;
    padding: 0;
}

.error-bg{
    height:100%;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    flex-grow: 1;
}

.error-bg .imageby-link{
    position: absolute;
    display: inline;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
}

.error-page-container .error-content {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.error-page-container footer .navbar,
.container.body-content footer .navbar{
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.error-page-container footer .list-inline.list-compact,
.container.body-content footer .list-inline.list-compact {
    margin: 5px 0;
}

.error-page-container footer .list-inline.list-compact {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
}

.container.body-content footer .list-inline.list-compact{
    display: inline-block;
}

.error-page-container footer .navbar {
    display: flex;
    flex-flow: wrap;
}

@media(min-width: 1200px){
    .error-page-container .list-inline.list-compact.pull-right{
        margin-left: auto;
    }
}

@media(max-width: 1199px){
    .error-page-container footer .navbar {
        justify-content: center;
    }
}


.error-page-container .brand-link{
    position:absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
}

.error-page-container .navbar-brand{
    float: none !important;
    height: auto !important;
    display: block;
    background-color: #333;
    padding: 5px 20px;
    font-size: 1.4em;
}

.error-page-container .navbar-brand:hover{
    background-color: #000000;
}

.error-page-container .navbar-brand > img {
    vertical-align: middle;
    border: 0;
    margin-right: 3px;
    float:left;
}

.error-page-container .navbar-brand span {
    display: inline-block;
    margin: 15px 0px;
}

.error-page-container .brand-primary-light {
    color: #e6e6e6;
}

.error-page-container .brand-secondary-light {
    color: #91d429;
}

.container.body-content footer .navbar{
        width: 100%;
}

footer .navbar{
        margin: 0;
    }

@media (min-width: 768px) {
    .container.body-content footer .navbar {
        width: 750px;
    }
}
@media (min-width: 992px) {
    .container.body-content footer .navbar {
        width: 970px;
    }
}
@media (min-width: 1200px) {
    .container.body-content footer .navbar {
        width: 1170px;
    }
}

@media (max-width: 1200px){
    .error-page-container footer,
    .container.body-content footer{
        text-align: center !important;
    }

    .error-page-container .list-inline.list-compact.pull-left,
    .error-page-container .list-inline.list-compact.pull-right,
    .container.body-content .list-inline.list-compact.pull-right,
    .container.body-content .list-inline.list-compact.pull-left{
        float: none !important;
    }

    .navbar-header .navbar-brand span.brand-primary-light, .navbar-header .navbar-brand span.brand-secondary-light {
        display: inline-block !important;
    }
}

@media only screen and (max-device-width : 480px) {
    .error-page-container footer,
    .container.body-content footer{
        font-size: 12px;
    }

    .error-page-container footer span.glyphicon.glyphicon-globe,
    .container.body-content footer span.glyphicon.glyphicon-globe{
        padding: 2px !important;
    }

    .error-page-container footer .navbar,
    .container.body-content footer .navbar{
        padding-left: 0;
        padding-right: 0;
    }

    .error-page-container footer .navbar .list-inline.list-compact.pull-right,
    .container.body-content footer .navbar .list-inline.list-compact.pull-right{
        display:none !important;
    }

    .error-page-container .navbar-brand {
        font-size: 0.8em;
        padding: 5px 20px;
    }

    .error-page-container .navbar-brand > img{
        width: 24px;
    }

    .error-page-container .navbar-brand span{
        margin: 10px 0;
    }

    footer ul .list-inline.list-compact.pull-right{
        display:none !important;
    }
    footer .navbar{
        margin: 0;
        min-height: unset;
    }
}

@media (min-width: 1500px){
    .error-page-container footer .navbar{
        width: 1400px;
    }
}

@media (min-width: 1900px){
    .error-page-container footer .navbar{
        width: 1600px;
    }
}

/*SysAdmin Layout*/
.sys-admin .container.body{
    height: 100%;
}

.sys-admin .container.body .main_container{
    height:100%;
}

.sys-admin .top_nav .nav_menu{
    margin-bottom:0px !important;
}


.sys-admin .container.body .right_col{
    display:flex !important;
    padding: 1px 1px 1px;
}

@media only screen and (min-width : 320px) {
    .sys-admin .container.body .right_col{
        padding: 1px 1px 1px !important;
    }

}
.sys-admin .error-bg{
    height:unset !important;
    position:relative;
}

/*IPhone 6*/
@media only screen and (max-width : 375px) and (max-height : 667px) {
    .error-bg{
        background-position: -530px -99px !important;
        background-repeat: no-repeat !important;
        background-size: 340%!important;
    }
    footer{
        font-size: 12px;
    }
    .list-inline.list-compact.pull-right{
        display:none !important;
    }
}

@media only screen and (max-width : 667px) and (max-height : 375px) {
    .error-bg{
        background-position: -243px -138px !important;
        background-repeat: no-repeat !important;
        background-size: 175%!important;
    }
    footer{
        font-size: 12px;
    }
    .list-inline.list-compact.pull-left{
        margin-bottom:0 !important;
    }
    .list-inline.list-compact.pull-right{
        margin-top:0 !important;
    }
}

/*IPhone 5*/
@media only screen and (max-width : 320px) and (max-height : 568px) {
    .error-bg{
        background-position: -431px -90px !important;
        background-repeat: no-repeat !important;
        background-size: 330%!important;
    }
    footer{
        font-size: 12px;
    }
}

@media only screen and (max-width : 568px) and (max-height : 320px) {
    .error-bg{
        background-position: -243px -134px !important;
        background-repeat: no-repeat !important;
        background-size: 175%!important;
    }
    footer{
        font-size: 12px;
    }
    .list-inline.list-compact.pull-left{
        margin-bottom:0 !important;
    }
    .list-inline.list-compact.pull-right{
        margin-top:0 !important;
    }
}

/*IPhone 4*/
@media only screen and (max-width : 320px) and (max-height : 480px) {
    .error-bg{
        background-position: -442px -134px !important;
        background-repeat: no-repeat !important;
        background-size: 330%!important;
    }
}

@media only screen and (max-width : 480px) and (max-height : 320px) {
    .error-bg{
        background-position: -243px -134px !important;
        background-repeat: no-repeat !important;
        background-size: 200%!important;
    }
}

body.sys-admin.error-layout footer{
    margin-left: 0 !important;
}

.error-layout footer a, .error-layout footer a:visited, .error-layout footer span{
    color: #ffffff;
}

a:hover{
    text-decoration:none;
}
