/* This changes */
body {
    padding-top: 100px;
    padding-bottom: 20px;
}

body.full-vertical {
    padding-top: 0;
}

.footer {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 30px;
    background-color: #f5f5f5;
}

.footer > .container {
    padding-top: 5px;
    padding-right: 15px;
    padding-left: 15px;
    text-align: center;
}

.footer .text-muted {
    margin-bottom: 0;
}

.my-form {
    padding: 5px;
}

.nav > li.navbar-text-sub-brand {
    display: none;
    font-weight: normal;
    font-size: 18px;
    font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 400px;
}

.navbar-inverse .navbar-brand {
    color: black;
}

.navbar-inverse .navbar-nav > li > a {
    color: black;
}

.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    color: black;
}

.dropdown-menu > li > a {
    color: #333;
}

.navbar-text-sub-brand-sm {
    display: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.form-control.money-amount {
    width: 60%;
}

.form-control.money-frequency {
    width: 40%;
}

/* Mortgage Calculator */
.col-calculator-form > .panel {
    background-color:#eee;
    padding-top:15px;
    padding-bottom:15px;
    border-radius:5px;
}
.col-calculator-result > .panel {
    background-color:#f8f5f0;
    padding-top:15px;
    padding-bottom:15px;
    border-radius:5px;
}
/* End of Mortgage Calculator */

.vertical-center {
    min-height: 100%;  /* Fallback for browsers do NOT support vh unit */
    min-height: 100vh; /* These two lines are counted as one :-)       */

    display: flex;
    align-items: center;
}

span.glyphicon-larger {
    font-size: 1.2em;
}

@media all and (min-width: 260px) {
    .navbar-text-sub-brand-sm {
        max-width:180px;
    }
}

@media all and (min-width: 375px) {
    .navbar-text-sub-brand-sm {
        max-width: 260px;
    }
}

@media all and (min-width: 480px) {
    .navbar-text-sub-brand-sm {
        max-width: 320px;
    }
}

@media all and (min-width: 560px) {
    .navbar-text-sub-brand-sm {
        max-width: 420px;
    }
}

@media all and (min-width: 667px) {
    .navbar-text-sub-brand-sm {
        max-width: 480px;
    }
}

@media all and (min-width: 768px) {
    .sidenav {
        display: none;
    }

    .nav > li.navbar-text-sub-brand {
        display: inherit;
    }

    /* Navigation clear background styles */
    .navbar-inverse.nav-clear-bg {
        background: rgba(0,0,0,0);
        border-color: rgba(0,0,0,0);
    }
    .navbar-inverse.nav-clear-bg .navbar-nav > li > a:hover {
        color: red;
    }
    .nav-clear-bg .dropdown-menu > li > a:hover, .dropdown-menu > li > a:hover {
        color: red;
    }
    .navbar-inverse.nav-clear-bg .navbar-nav > .open > a,
    .navbar-inverse.nav-clear-bg .navbar-nav > .open > a:hover,
    .navbar-inverse.nav-clear-bg .navbar-nav > .open > a:focus {
        color: red;
        background: rgba(200,200,200,0.3);
    }
    /* End of Navigation clear background styles*/

}

@media all and (max-width: 767px) {
    .navbar-text-brand {
        display: none;
    }

    .navbar-text-sub-brand-sm {
        display: inherit;
    }

    /* Navigation clear background styles */
    .navbar-inverse {
        background: rgba(0,0,0,0);
        border-color: rgba(0,0,0,0);
    }

    /* remove burger menu button background */
    .navbar-inverse .navbar-toggle:hover,
    .navbar-inverse .navbar-toggle:focus {
        background: none;
    }
}


/**
 * off canvas sidenav
 */

#burger-toggle-button {
    font-size: 24px;
    cursor: pointer;
    background-color: black;
    color: white;
    display: block;
    width: 30px;
    height: 30px;
    line-height: 28px;
    border-radius: 50%;
}

/* speed of transformation when sidenav is opened */
.navbar-toggle {
    -webkit-transition-duration: 0.5s;
    -moz-transition-duration: 0.5s;
    -o-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-property: -webkit-transform;
    -moz-transition-property: -moz-transform;
    -o-transition-property: -o-transform;
    transition-property: transform;
    outline: 0;
}

/* transform when sidenav is opened (rotate and shrink) */
.sidenav-opened .navbar-toggle {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.sidenav-close-button {
    font-size: 50px;
    cursor: pointer;
    margin-right: 10px;
    text-decoration: none !important;
    color: white;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1031;
    top: 0;
    left: 0;
    background-color: black;
    color: white;
    overflow-x: hidden;
    transition: 0.3s;
}
.sidenav .nav {
    margin-top: 60px;
    margin-left: 5px;
}

.sidenav .nav a {
    color: white !important;
    font-size: 18px;
}
.sidenav .nav a:hover,
.sidenav .nav a:focus {
    color: white !important;
    background-color: #333 !important;
}

