/* Partly adapted from Sticky footer example and
   Homepage of Bootstrap framework
------------------------------------------------- */

html,
body {
  height: 100%;
}

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

#footer {
  height: 180px;
  background-color: #f7f5fa;
}

#vfloater	{
	display: table-cell;
    height: 180px;
    vertical-align: middle;
}

@media screen and (min-width: 350px) {
	#footer {
	  height: 150px;
	  background-color: #f7f5fa;
	}

	#vfloater	{
		display: table-cell;
		height: 150px;
		vertical-align: middle;
	}
}

@media screen and (min-width: 400px) {
	#footer {
	  height: 120px;
	  background-color: #f7f5fa;
	}

	#vfloater	{
		display: table-cell;
		height: 120px;
		vertical-align: middle;
	}
}

@media screen and (min-width: 500px) {
	#footer {
	  height: 90px;
	  background-color: #f7f5fa;
	}

	#vfloater	{
		display: table-cell;
		height: 90px;
		vertical-align: middle;
	}
}

@media screen and (min-width: 1000px) {
	#footer {
	  height: 60px;
	  background-color: #f7f5fa;
	}

	#vfloater	{
		display: table-cell;
		height: 60px;
		vertical-align: middle;
	}
}


/* Custom page CSS
------------------------------------------------- */
.navbar-default {
  background-color: #f7f5fa;
}

.navbar-default .navbar-brand {
  color: #005082;
  background-color: transparent;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  color: #005082;
  background-color: transparent;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #555555;
  background-color: #e5e3e9;
}

.navbar-brand {
  float: left;
  padding: 10px 10px;
  font-size: 15px;
  line-height: 30px;
}

@media screen and (min-width: 992px) {
  .navbar-brand {
    float: left;
    padding: 10px 25px;
    font-size: 25px;
    line-height: 30px;
  }
  .navbar-image{
    float: left;
    padding: 5px 15px 5px 5px; 
  }
}

.navbar-image{
  float: left;
  padding: 5px 5px 5px 5px;
}

.book-list {
	list-style: none;
}

.book-list li {
    padding-left: 0.8em;
    text-indent: -0.65em;
}

#wrap > .container {
  padding: -10px 15px 0; 
}
.container .credit {
  margin: 20px 0;
}

#footer > .container {
  padding-left: 15px;
  padding-right: 15px;
}

code {
  font-size: 80%;
}

a {
  color: #005082;
  text-decoration: none;
}

.anchor {
  padding-top: 60px;
  margin-top: -40px;
  display: inline-block; /* required for webkit browsers */
}

/* Side navigation 
------------------------------------------------- */

/* By default it's not affixed in mobile views, so undo that */
.ls-sidebar.affix {
  position: static;
}

/* First level of nav */
.ls-sidenav {
  margin-top: 60px;
  margin-bottom: 30px;
  padding-top:    10px;
  padding-bottom: 10px;
  text-shadow: 0 1px 0 #fff;
  background-color: #f7f5fa;
  border-radius: 5px;
}

/* All levels of nav */
.ls-sidebar .nav > li > a {
  display: block;
  color: #716b7a;
  padding: 8px 20px;
}
.ls-sidebar .nav > li > a:hover,
.ls-sidebar .nav > li > a:focus {
  text-decoration: none;
  background-color: #e5e3e9;
/*  border-right: 1px solid #dbd8e0; */
}
.ls-sidebar .nav > .active > a,
.ls-sidebar .nav > .active:hover > a,
.ls-sidebar .nav > .active:focus > a {
  font-weight: bold;
  color: #563d7c;
  background-color: transparent;
/*  border-right: 1px solid #563d7c; */
}

/* Nav: second level (shown on .active) */
.ls-sidebar .nav .nav {
  display: none; /* Hide by default, but at >768px, show it */
  margin-bottom: 8px;
}
.ls-sidebar .nav .nav > li > a {
  padding-top:    3px;
  padding-bottom: 3px;
  padding-left: 30px;
  font-size: 90%;
}

/* Show and affix the side nav when space allows it */
@media screen and (min-width: 992px) {
  .ls-sidebar .nav > .active > ul {
    display: block;
  }
  /* Widen the fixed sidebar */
  .ls-sidebar.affix,
  .ls-sidebar.affix-bottom {
    width: 213px;
  }
  .ls-sidebar.affix {
    position: fixed; /* Undo the static from mobile first approach */
    top: 60px;
  }
  .ls-sidebar.affix-bottom {
    position: absolute; /* Undo the static from mobile first approach */
  }
  .ls-sidebar.affix-bottom .ls-sidenav,
  .ls-sidebar.affix .ls-sidenav {
    margin-top: 0;
    margin-bottom: 0;
  }
}
@media screen and (min-width: 1200px) {
  /* Widen the fixed sidebar again */
  .ls-sidebar.affix-bottom,
  .ls-sidebar.affix {
    width: 263px;
  }
}
