@font-face {
   font-family: 'forgotten_futurist_rg';
    src: url('/fonts/forgotten_futurist_rg-webfont.woff2') format('woff2'),
         url('/fonts/forgotten_futurist_rg-webfont.woff') format('woff'),
         url('/fonts/forgotten_futurist_rg.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
  font-family: ptsans-narrow;
  src: url(/fonts/ptsans-narrow-web-regular.ttf);
}
@font-face {
  font-family: glimmer_of_light;
  src: url(/fonts/glimmer_of_light.ttf);
}

/* Formatting and Text */
* {
  margin: 0;
  padding: 0;
}

h1 {
  font-family: "glimmer_of_light", Times, serif;
  font-size: 24px;
}
h2 {
  font-family: 'forgotten_futurist_rg', serif;
  margin-bottom: 5px;
}
h3 {
  font-family: "glimmer_of_light", Times, serif;
  font-size: 20px;
}
body {
  background-color : transparent;
  overflow-x: hidden;
  font-family: ptsans-narrow;
  font-size: 18px;
  text-align: center;
}

/* main content */
#promo {
  padding-top: 85px;
  transition: opacity 1s;
}
.promotext {
  font-size: 30px;
}
#signupText {
  margin-top: 8px;
  font-size: 18px;
}
p span {
  color: darkred;
}
.inlinePromo {
  font-size: 24px;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  color: darkred;
}
#viewcontrols {
  text-align: center;
  width: 90%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 15px;
  background: url(/images/tile2.png);
  background-position: left top;
  background-repeat: repeat;
  height: 42px;
  color: #fff;
  font-size: 18px;
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
}
.bothends {
  width: 110px;
  transform: translate(0, 20%);
}
#iconsize {
  position: relative;
  top: 50%;
  transform: translate(0, -50%);
  width: 260px;
  margin-left: 20px;
  margin-right: 20px;
}

#iconsize::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

#iconsize::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

#sortbutton {
  background: none;
  border: 2px solid white;
  color: white;
  text-align: center;
  display: inline-block;
  font-size: 17px;
  border-radius: 8px;
  width: 68px;
  height: 26px;
  font-family: ptsans-narrow;
}
#gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 960px;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}
.box {
  width: 28%;
  text-align: center;
  font-size: 18px;
  margin: 3px 3px 3px 3px;
  background: #fff;
  transition: opacity 1s;
}
.box img {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
}

/* Sort Controls */
#sortwindow {
  width: calc(90% - 20px);
  max-width: 460px;
  text-align: left;
  font-size: 18px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  max-height: 0;
  opacity: 0;
  transition: max-height 1s, padding 0.5s, opacity 1s, margin-bottom 1s;
  border-radius: 15px;
  background: url(/images/tile2.png);
  background-position: left top;
  background-repeat: repeat;
  padding: 0;
  overflow: hidden;
}
#sortwindow div {

}
#sortTitle {
  font-size: 20px;
  color: #ffffff;
}
#sortClose {
  text-align: right;
}
#OptionsTable {
  width: 100%;
  transform: translate(0, -2px);
}
#closebtn {
  width: 22px;
}
#searchtext {
  width: calc(100% - 88px);
  transform: translate(0, -1px);
}
.sortTable {
  width: calc(100% - 16px);
  margin-left: 16px;
  table-layout: fixed;
}
#zoneTable {
  width: calc(100% - 16px);
  margin-left: 16px;
}
.selectCell {
  vertical-align: top;
  text-align: left;
}
#mapcell {
  text-align: center;
}
#zonezip {
  width: 45px;
}
.checkAll {
  float: right;
  font-size: smaller;
  margin-right: 4px;
  margin-top: 2px;
  color: blue;
  display: none;
  cursor: pointer;
}
.panel {
  background-color: #ffffff;
  transition: max-height 0.3s ease-out;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid darkgray;
}
#line2, #line3, #line4, #line5 {
  margin-top: 5px;
  background: #a6a6a6;
}
#line1 {
  background: #fbfcb8;
}
#sortBottom {
  margin-top: 3px;
  color: #ffffff;
  width: 100%;
}
#sortBottom table {
  width: 100%;
}
#summary {
  width: 50%;
  text-align: left;
  font-size: smaller;
}
#displayCell {
  width: 50%;
  text-align: right;
}
hr {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}
.sectionLinks {
  font-family: "forgotten_futurist_rg";
  font-size: 24px;
}
.phone{
  text-decoration: none;
}
a.phone:link, a.phone:visited {
  color: #3d7d1e;
}
a.phone:hover {
  color: #56b627;
}
a.phone:active {
  color: #fff5a4;
}

/* books page */

#galleryB {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  max-width: 960px;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  transition: height 1s, opacity 1s;
}
.shelf {
  width: 100%;
  text-align: center;
  margin-bottom: -20px;
}
.stack {
  justify-content: center;
  text-align: center;
  display: flex;
  flex-direction: row;
  width: 100%;
}
.bookTitle {
  max-height: 44px;
  width: 25%;
  margin-top: 4px;
  margin-bottom: 4px;
  overflow: hidden;
}
.author {
  font-size: smaller;
}
.book {
  height: 25%;
  width: 25%;
  text-align: center;
  transition: opacity 1s;
  margin-top: 4px;
  margin-bottom: 4px;
}
.book img {
  width: 100%;
}
.glass {
  width: 100%;
  position: relative;
  transform: translate(0, -46%);
  z-index: -1;
}
.glass img {
  width: 100%;
  padding-bottom: 4px;
}
.stack2 {
  justify-content: center;
  text-align: center;
  display: flex;
  flex-direction: row;
  width: 100%;
  position: relative;
  transform: translate(0, -100%);
}
.price {
  max-height: 44px;
  width: 25%;
  position: relative;
  margin-top: 4px;
  margin-bottom: 4px;
  overflow: hidden;
}


@media screen and (orientation: portrait) and (max-width: 400px){

h1 {
  font-size: 14px;
}
#viewcontrols input {
  width: 130px;
}
#sortbutton {
  width: 62px;
  transform: translate(-2px, 0);
}
#sortwindow {
  font-size: 14px;
}
#sortTitle, #sortBottom {
  font-size: 16px;
}
.promotext {
  font-size: 20px;
}
.sectionLinks {
  font-size: 20px;
}
.disappear {
  display: none;
}
#galleryB {
  font-size: 14px;
}
.bookTitle {
  max-height: 34px;
}
.price {
  transform: translate(0, 80%);
  max-height: 34px;
}

}

@media screen and (orientation: portrait) and (min-width: 400px){

h1 {
  font-size: 18px;
}
#viewcontrols input {
  width: 160px;
}
#sortbutton {
  width: 66px;
  transform: translate(-2px, 0);
}
#sortwindow {
  font-size: 14px;
}
#sortTitle, #sortBottom {
  font-size: 16px;
}
.promotext {
  font-size: 24px;
}
.sectionLinks {
  font-size: 24px;
}
.disappear {
  display: none;
}
#galleryB {
  font-size: 14px;
}
.bookTitle {
  max-height: 34px;
}
.price {
  transform: translate(0, 50%);
  max-height: 34px;
}

}

@media screen and (orientation: portrait) and (min-width: 500px){

h1 {
  font-size: 22px;
}
#viewcontrols input {
  width: 250px;
}
#sortbutton {
  width: 68px;
}
#sortwindow {
  font-size: 16px;
}
#sortTitle, #sortBottom {
  font-size: 18px;
}
.promotext {
  font-size: 22px;
}
.sectionLinks {
  font-size: 22px;
}
.disappear {
  display: inline-block;
}
#galleryB {
  font-size: 15px;
}
.bookTitle {
  max-height: 36px;
}
.price {
  transform: translate(0, 30%);
  max-height: 36px;
}

}

@media screen and (orientation: portrait) and (min-width: 600px){

h1 {
  font-size: 26px;
}
#sortwindow {
  font-size: 18px;
}
#sortTitle, #sortBottom {
  font-size: 20px;
}
#galleryB {
  font-size: 18px;
}
.bookTitle {
  max-height: 44px;
}
.price {
  transform: translate(0, -20%);
  max-height: 44px;
}


}

@media screen and (orientation: portrait) and (min-width: 960px){

h1 {
  font-size: 30px;
}
.price {
  transform: translate(0, -30%);
}

}

@media screen and (orientation: landscape) {

h1 {
  font-size: 30px;
}
.disappear {
  display: inline-block;
}
#sortbutton {
  width: 68px;
}
#sortwindow {
  font-size: 18px;
}
#sortTitle, #sortBottom {
  font-size: 20px;
}

}




#main {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  opacity: 1 !important;
  height: auto !important;
}
.rendered-home-page #promo { padding-top: 105px; }
.rendered-home-page #gallery { padding-bottom: 12px; }
.rendered-home-page .box {
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  border-radius: 4px;
  overflow: hidden;
}
.rendered-home-page .box a {
  color: inherit;
  text-decoration: none;
}
.rendered-home-page .box img { display: inline-block; }
.rendered-home-page .inlinePromo a { color: #3d7d1e; }