html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.my-footer {
	display: block;
	position: fixed;
	bottom: 0;
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    width: 100%;
}

.my-footer .pull-left {
	display: flex;
	margin-right: auto;
	padding-top: 20px;
}

.my-footer .pull-right {
	display: flex;
	margin-left: auto;
	padding-top: 10px;
}

.storeBtn {
	display: block;
	padding: 0 2px;
}

.storeBtn.hidden {
	display: none;
	margin: 0 0 0 0;
}

.message_box {
	display: block;
	padding: 0;
	margin-top: 70px;
	margin-bottom: 40px;
}

.message_line {
	display: flex;
	padding: 5px 0;
}

.message_line .outcome {
	display: flex;
	padding: 5px 15px;
	margin-left: auto;
	background: #e6eeff;
	border-radius: 15px;
	max-width: 60%;
}

.message_line .income {
	display: flex;
	padding: 5px 15px;
	margin-right: auto;
	background: #e3f1e6;
	border-radius: 15px;
	max-width: 60%;
}

.unit-info-view {
	position: fixed;
	display: block;
	height: 95px;
	top: 40px;
	background: #ffffff;
	width: 100%;
	left: 0px;
/* 	box-shadow: 0 5px 3px rgba(0, 0, 0, 0.2); */
}

.alert-view {
	position: fixed;
	display: flex;
	flex-direction: column;
	top: 160px;
	background: #ffe0e0;
	border-radius: 15px;
	padding: 5px 15px;
	margin-right: 30px;
	text-align: center;
}

.alert-view .hidden {
	display: none;
}

.message-post {
	display: block;
	width: 100%;
	left: 0;
	margin: 0;
	position: fixed;
	bottom: 60px;
	flex-direction: row;
    height: 40px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    vertical-align: middle;
    padding: 4px 0px;
}

.custom-btn {
  background-color: #336699;
  border: none;
  border-radius: 10px;
  color: white;
  padding: 5px 8px;
  font-size: 16px;
  cursor: pointer;
  justify-content: center;
  vertical-align: middle;
  display: inline-block;
  margin-left: auto;
}

.custom-btn:hover {
  background-color: #6699cc;
}

.message-text {
	flex: 2;
    border-radius: 5px;
	border-width: 1px;
	margin-right: 10px;
}

input, select {
	font-size: 16px;
}

.form-control {
    font-size: 16px;
}

.message-post .send-btn {
  background-color: #336699;
  border: none;
  border-radius: 10px;
  color: white;
  padding: 5px 8px;
  font-size: 16px;
  cursor: pointer;
  justify-content: center;
  vertical-align: middle;
  margin-left: auto;
  float: right;
}

.message-post .custom-btn:hover {
  background-color: #6699cc;
}

.message-post .flex-container {
    display: flex;
}

.index-page {
    height: calc(100vh - 115px);
    display: flex;
    justify-content: center;
    vertical-align: middle;
    align-items: center;
    flex-direction: row;
    padding-top: 10px;
    padding-bottom: 10px;
}

.index-page:nth-child(even) {
    flex-direction: row-reverse;
}

.index-page img {
    width: auto;
    height: 100%;
}

.index-page span{
    display: flex;
    flex-direction: column;
    font-size: 22px;
	text-align: center;
    vertical-align: middle;
}

.index-page .text-box {
    display: table;
    height: 80%;
    padding-left: 20px;
    padding-right: 20px;
}

.index-page .text-box span {
    display: table-cell;
    font-size: 22px;
	text-align: center;
    vertical-align: middle;
}

@media (orientation: portrait) {
    .index-page {
        height: calc(100vh - 115px);
        display: flex;
        justify-content: center;
        vertical-align: middle;
        align-items: center;
        flex-direction: column;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .index-page:nth-child(even) {
        flex-direction: column;
    }
    
    .index-page img {
        width: auto;
        height: 80%;
    }
    
    .index-page span{
        display: flex;
        flex-direction: column;
        font-size: 16px;
    	text-align: center;
        vertical-align: middle;
    }
    
    .index-page .text-box {
        display: table;
        height: 20%;
    }
    
    .index-page .text-box span {
        display: table-cell;
        font-size: 16px;
    	text-align: center;
        vertical-align: middle;
    }
}
