html {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	padding: 70px 0 0 0;
	margin: 0;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

body > main {
	flex: 1 0 auto;
}

body > footer {
	border-top: solid 1px #e7e7e7;
	background: #f8f8f8;
	margin-top: 2em;
	padding: 1em 0em;
}

.horiz-aligned {
    display: flex;                  /* establish flex container */
    flex-direction: row;            /* default value; can be omitted */
    flex-wrap: nowrap;              /* default value; can be omitted */
    justify-content: space-between; /* switched from default (flex-start, see below) */
}

.vertical-centered {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100%;
}
.vertical-centered:first-child {
    flex: 0 0 auto;
}

.loginform, .regform {
    margin-top: 3em;
}
.loginform h1, .regform h1 {
    margin: 0 0 1ex 0;
    text-align: center;
}
.loginform button, .regform button {
    width: 100%;
}
.login-other-buttons .btn {
    min-width: 47%;
}
.loginform .well .form-group:last-child {
    margin-bottom: 0;
}.regform {
    text-align: center;
}
.regform .well, .loginform .well {
    max-width: 22em;
    margin: 1em auto;
}
.social-login {
    text-align: center;
}
.social-login .btn {
    min-width: 73px;
}
.social-login p {
    /*display: none;*/
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
    border-left-color: #fff;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

@media (min-width: 768px) {
.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}
}