*,
*:after,
*::before {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html,
body,
.pusher,
.content {
    height: 100%;
}

.maincontainer {
    height: -moz-calc(100% - 80px); /* Firefox */
    height: -webkit-calc(100% - 80px); /* Chrome, Safari */
    height: calc(100% - 80px); /* IE9+ and future browsers */
}

body {
    margin: 0px auto;
    padding: 0px;
}

.content {
    overflow-y: scroll;
}

.content,
.content-inner {
    position: relative;
}

.maincontainer {
    position: relative;
    overflow: visible;
}

.pusher {
    position: relative;
    left: 0;
    z-index: 99;
    height: 100%;
    perspective: 1000px;
    -webkit-transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
}

.pusher::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    background: rgba(0,0,0,0.2);
    content: '';
    opacity: 0;
    -webkit-transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
    transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
}

.menu-open .pusher::after {
    width: 100%;
    height: 100%;
    opacity: 1;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

.menu {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    visibility: hidden;
    width: 300px;
    height: 100%;
    background: url(../img/bg_darkgrain.jpg) repeat;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    overflow: scroll;
    box-shadow: inset -10px 0px 5px #555;
}

.menu::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    content: '';
    opacity: 1;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

.menu-open .menu::after {
    width: 0;
    height: 0;
    opacity: 0;
    -webkit-transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
    transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
}

/* Individual effects */

/* Effect 2: Reveal */
.reveal.menu-open .pusher {
    -webkit-transform: translate3d(300px, 0, 0);
    transform: translate3d(300px, 0, 0);
}

.reveal.menu {
    z-index: 1;
}

.reveal.menu-open .reveal.menu {
    visibility: visible;
    -webkit-transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
}

.reveal.menu::after {
    display: none;
}



/* Fallback example for browsers that don't support 3D transforms (and no JS fallback) */
.no-csstransforms3d .pusher,
.no-js .pusher {
    padding-left: 300px;
}

/*  CONTAINERS   ==================================================================== */

#headcontainer {
    position: relative;
    margin: 0 auto;
    width: 95%;
    height: 40px;
    border-bottom: 2px solid hsl(108, 8%, 80%);
    box-shadow: 0px 1px hsl(206, 3%, 89%); 
}

#maincontainer {
    width: 100%;
}

#footercontainer {
    position: relative;
    margin: 0 auto;
    width: 95%;
    height: 40px;
    border-top: 2px solid hsl(108, 8%, 80%);
    box-shadow: 0px -1px hsl(206, 3%, 89%); 
}

/*  HEADER/CONTENT/FOOTER   ==================================================================== */

header:after {
    content: "";
    clear: both;
}
header {
    overflow: hidden;
}
header > span {
    width: 130px;
    height: 40px;
    display: block;
    line-height: 40px;
}
header span.menu-button {
    float:left;
    text-align: left;
    background: url(../img/menu_helper.png) top left no-repeat;
}
header span.help-button {
    float:right;
    text-align: right;
    background: url(../img/help_helper.png) top left no-repeat;
}
header h1 {
    margin: 0 auto;
    line-height: 40px;
    text-align: center;
    overflow: hidden;
}

footer {
    overflow:visible;
}
footer:after {
    content: "";
    clear: both;
}

#maincontent {
    clear: both;
    width: 100%;
    margin: 0px auto;
    padding: 1em 0px;
    position: relative;
}

/*  QUICKSEARCH   ==================================================================== */

.quicksearch {
    text-align: center;
}
.quicksearch input[type=text] {
    width: 300px;
}

#textModules {
    float:right;
    width: 300px;
    height: 380px;
    overflow: scroll;
    border: 1px solid hsl(201, 14%, 81%);
    padding: 5px;
    font-weight: normal;
}
#textModules > a {
    text-decoration: none;
    font-weight: normal;
    color: #003d4c;
}
#textModules > a:hover {
    color: #367889;
}
.bni-status{
    float: right;
    text-align: right;
/*    width: 20%;*/
    padding: 10px 1.5%;
}

.inbox, .outbox {
    width: 49%;
    text-align: center;
}
.inbox a, .outbox a {
    text-decoration: none;
}
.outbox {
    float: right;
}

.peopleList div.checkbox {
    display: inline-block;
    width: calc(97% / 4);
}

/*  Unsemantic   ==================================================================== */
fieldset.grid-container div {
    clear: none;
    margin-bottom: 0;
    /*padding: 0;*/
    vertical-align: middle;
    height: 100%;
    line-height: 2em;
}
.grid-parent.headline {
    font-weight: bold;
    border-bottom: 2px solid hsl(205, 8%, 44%);
}
.grid-container div.grid-parent {
    padding: 4px 0;
}
.grid-container > div.grid-parent:nth-child(2n+1) {
    background: #F9F9F9 none repeat scroll 0% 0%;
}

/*  ImageLinks   ==================================================================== */
ul.imagelinks {
	list-style: none;
}
ul.imagelinks li {
	display:inline-block;
	border: 1px solid hsl(204, 29%, 54%);
	padding: 2px 3px;
}
ul.imagelinks a {
	height: 80px;
}

#dialogModal #contentWrap dt {
    width: 7em !important;
}
#dialogModal #contentWrap dd {
    margin-left: 7em !important;
}