/* Make sure seams aren't visible */
.chrome, .viewer, .grid, .column, .container {
  overflow: hidden;
}
.chrome, .viewer, .grid, .column, .container {
  /* Manually position everything */
  position: absolute;
  /* Make sure seams aren't visible */
  overflow: hidden;
  /* Set the base vertical grid */
  line-height: 24px;
}


body {
  font-family: Georgia, Serif;
  font-size: 16px;
  line-height: 24px;
  color: #434;
  background-color: #ccc;
}
.treesaver body {
  /* Hide scrollbars */
  overflow: hidden;
  /* Use full body canvas */
  margin: 0;
  border: 0;
  padding: 0;
}

p {
  margin: 0 0 24px;
  line-height:30px;
  text-indent: 24px;
-webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

/**
 * Controls
 */
.controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /*display: none;*/
  padding: 5px 0 20px;
  text-align: right;
  z-index: 20;
  display: none;
}

.controls .sidebar-controls {
  position: absolute;
  left: 0;
  bottom: 0;
}

.active .controls {
  display: block;
}


.controls .pagewidth {
  margin: 0 auto;
}
.toctoc {
  position: absolute;
  top: 0;
  left: 0;

}

body.treesaver {
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
}



article {
  line-height: 20px;
}

.chrome, .viewer, .lightbox {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  line-height: 20px;
   background-color: #ccc;
}
.viewer {
  top: 0;
  bottom:0;
  left: 0;
  right: 0;
}

.grid {
  position: absolute;
  width:900px;
  line-height: 20px;
  margin:0;
  background-color: white;
}


.column {
  position: absolute;
  width: 80%; 
  top: 10%;
  bottom: 10%;
  left: 10%;

}

.container {
  position: absolute;
  width: 80%; 
  top: 10%;
  bottom: 10%;
  left: 10%;
}


.pullquote {
  font-style: italic;
  font-size: 25px;
  color: #933;
}

h1 {
  margin:0;
  line-height: 36px;
  font-size: 36px;
  font-family: Sans-Serif;
  color: #334;
}

h1 a {
  color: #334;
  text-decoration: none;
}

.container h1 {
  margin-top: 40px;
  margin-bottom: 0;
}

h2 {
  font-size: 24px;
  line-height: normal;
  font-weight: normal;
  margin: 10px 0;
  color: #666;
}

h2 .chapter {
  display: block;
  font-size: 16px;
  line-height: 24px;
  color: #999;
}

h2 a {
  color: #556;
  text-decoration: none;
}

h2 a:hover {
  color: #33a;
  text-decoration: underline;
}
hr {
  margin: 24px 0;
  border: none;
  padding: 0;
  height: 24px;
  background: url('../img/horizontal-rule.png') 50% 50% no-repeat;
}

p { max-width:800px;}
.loading, .error {
  position: absolute;
  width: 200px;
  height: 200px;
  line-height: 200px;
  text-align: center;
}

.next.overlay {
  background-color: transparent;
  position: absolute;
  height: 100%;
  width: 40%;
  top: 0;
  right: 0;
}
#nextPage {
  background-color: #fff;
opacity: .3;
}
#previousPage {opacity: .1;}

#currentPage {
  z-index: 15;
}
#currentPage {
  opacity: 1;
  background-color:#FFF;
  background-image: url(../img/handmadepaper.png);
-moz-box-shadow:0 0 10px rgba(0, 0, 0, 0.4);
box-shadow:0 0 10px rgba(0, 0, 0, 0.4);
}

.prev.overlay {
  background-color: transparent;
  position: absolute;
  height: 100%;
  width: 40%;
  top: 0;
  left: 0;
}

button, .button {
  font-family: Helvetica, Sans-Serif;
  font-size: 14px;
  line-height: 20px;
  height: 30px;
  box-sizing: border-box;
  font-weight: bold;
  padding: 4px 12px;
  color: #666;
  background: #eee;
  background: -moz-linear-gradient(0% 100% 90deg, #ccc, #eee);
  background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#eee), to(#ccc));
  border: 1px solid #ccc;
  border-bottom: 1px solid #bbb;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  margin: 0;
}

button:hover {
  background: #ddd;
  background: -moz-linear-gradient(0% 100% 90deg, #bbb, #ddd);
  background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ddd), to(#bbb));
  border: 1px solid #bbb;
  border-bottom: 1px solid #999;
  cursor: pointer;
  text-shadow: 0 1px 0 #ddd;
}

button:active {
  border: 1px solid #aaa;
  border-bottom: 1px solid #888;
  -moz-box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee;
  -webkit-box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee;
  box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee;
}

button:disabled, button:disabled:hover, button:active:disabled {
  color: #ccc;
  background: #f6f6f6;
  border-color: #eee;
  text-shadow: none;
  box-shadow: none;
}


.pagenumbers {
  display: block;
  text-align: center;
  color: #999;
  font-size: 12px;
  font-weight: bold;
}

.controls .pagewidth {
  margin: 0 auto;
  position: relative;
}

.controls .next {
  position: absolute;
  right: 20px;
  top: 0;
}

img { max-width: 100%; height:auto; width:100%;}

.controls .prev {
  position: absolute;
  left: 20px;
  top: 0;
}

@media only screen and (max-width: 767px),
	only screen and (-webkit-device-pixel-ratio: 1.5),
	only screen and (-webkit-device-pixel-ratio: 2) {	
.grid {
  position: absolute;
  width: 100%;
  line-height: 20px;
  margin: 0;
  background-color: white;
}

  	}