@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);
}

/* Formatting and Text */
* {
  margin: 0;
  padding: 0;
}
#container {
  min-height: 560px;
  min-width: 320px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

body {
  font-family: ptsans-narrow;
  background-color: #fff;
  font-size: 16px;
  overflow-y: hidden;
}

/* Background Animation */
#bg {
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 0;
  overflow: hidden;
}
.backgroundV {
  position: fixed;
  top: 0px;
  height: 100vh;
  left: calc(50vw - (50vh * 1.33));
  width: calc(100vh * 1.33);
}
.backgroundH {
  position: fixed;
  left: 0;
  width: 100vw;
  top: calc(50vh - (50vw * 0.75));
  height: calc(100vw * 0.75);
}
#BackgroundCanvas {
  z-index: 1;
}
#BackgroundCanvas2 {
  z-index: 2;
}
#screen {
  position: fixed;
  top: 0;
  left: 0;
  height:110vh;
  width: 100vw;
  background-color: #fff;
  opacity: 0.7;
  z-index: 3;
  overflow: hidden;
}

/* Banner */
#banner {
  display: flex;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  margin-bottom: 10px;
  overflow: hidden;
  height: 80px;
  width: 100%;
  max-width: 960px;
  background-color: rgba(25, 76, 33, 0.85);
  text-align: center;
  z-index: 30;
  color: #fff;
}
#menu {
  position: relative;
  width: 15%;
  float: left;
  top: -5%;
}
#MenuFrame {
  display: flex;
  background: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  width: 0;
  height: 100vh;
  opacity: 0;
  font-size: 0px;
  font-family: 'forgotten_futurist_rg';
  text-shadow: 1px 1px #fff;
  transition: opacity 0.5s, font-size 0.5s;
  z-index: 40;
}
#SubMenuFrame {
  display: flex;
  background: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  width: 0;
  height: 100vh;
  opacity: 0;
  font-size: 0px;
  font-family: 'forgotten_futurist_rg';
  text-shadow: 1px 1px #fff;
  transition: opacity 0.5s, font-size 0.5s;
  z-index: 50;
}
.SubMenuItem {
  cursor: pointer;
  position: relative;
  left: calc(7.5% + 140px);
  background: #eaeac4;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .6);
  margin-bottom: 0;
  width: 0;
  font-size: 0px;
  height: 0;
}
.SubTransition {
  transition: height 0.5s, width 0.5s, margin-bottom 0.5s, font-size 0.5s, left 0.5s;
}
#MyAccount {
  margin-top: 56px;
}
.LoginItem {
  cursor: pointer;
  position: relative;
  left: 7.5%;
  background: #eaeac4;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .6);
  margin-bottom: 0;
  width: 0;
  font-size: 0px;
  height: 0;
  transition: height 0.5s, width 0.5s, margin-bottom 0.5s, font-size 0.5s;
}
#LoginBtn {
  margin-top: 40px;
}
.MenuItem {
  cursor: pointer;
  position: relative;
  left: 7.5%;
  background: #bccbb8;
  box-shadow: 2px 2px 4px #000;
  margin-bottom: 0;
  width: 0;
  font-size: 0px;
  height: 0;
  transition: height 0.5s, width 0.5s, margin-bottom 0.5s, font-size 0.5s;
}
.MenuItem p, .LoginItem p, .SubMenuItem p {
  position: relative;
  top: 50%;
  transform: translate(0, -50%);
}
#CatalogBtn {
  background: #7ca164;
}
#LoginBtn.hasSubMenu {
  position: relative;
}
#LoginBtn.hasSubMenu::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: #444;
  pointer-events: none;
}
.menugroup {
  position: relative;
  top: 50%;
  transform: translate(0, -50%);
}
.menugroup a:link, .menugroup a:visited, .menugroup a:hover {
  text-decoration: none;
  color: #fff;
}
#menu img {
  height: 60px;
  width: 50px;
  margin-bottom: -4px;
}
#mybox {
  position: relative;
  width: 15%;
  float: right;
  top: -5%;
}
#BoxIcon {
  width: 50px;
  height: 60px;
  margin-bottom: -6px;
}
#logo {
  width: 70%;
}
#logo img {
  position: relative;
  top: 50%;
  transform: translate(0, -45%);
  width: 300px;
}

/* main content */
#detail, #books2 {
  display: none;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 1s, left 1s;
  z-index: 22;
  overflow: hidden;
}
#detailFrame, #BooksDetail{
  width: 100%;
  height: 100vh;
  max-width: 960px;
  border: none;
  background: none;
}
#BoxFrame {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  z-index: 19;
  height: 100vh;
}
#MyBoxFrame {
  width: 100%;
  height: 100vh;
  max-width: 960px;
  border: none;
  background: none;
}
#login {
  position: fixed;
  top: 0px;
  left: -100%;
  width: 100%;
  height: 100vh;
  color: black;
  z-index: 23;
  text-align: center;
  opacity: 0;
  transition: left 1s, opacity 1s;
  overflow-y: hidden;
}
#LoginFrame {
  width: 100%;
  height: 100vh;
  max-width: 960px;
  border: none;
  background: none;
}

/* alternate pages */
#main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  color: black;
  z-index: 20;
  text-align: center;
  transition: left 1s, opacity 1s;
}
#videos, #books, #about, #contact, #references, #TOS, #Account, #Checkout, #Payment, #affiliates {
  position: fixed;
  top: 0px;
  left: -100%;
  width: 100%;
  height: 100vh;
  color: black;
  z-index: 21;
  text-align: center;
  opacity: 0;
  transition: left 1s, opacity 1s;
  overflow-y: hidden;
}
#blank {
  z-index: 4;
  opacity: 0;
  background: black;
  transition: opacity 0.3s;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}
#Error {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 5;
  opacity: 0;
  transition: opacity .3s;
  overflow: hidden;
}
#ErrorFrame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#MainFrame, #VideosFrame, #BooksFrame, #AboutFrame, #ContactFrame, #ReferencesFrame, #TOSFrame, #AccountFrame, #CheckoutFrame, #AffiliatesFrame, #PaymentFrame, #ErrorFrame {
  height: 100vh;
  width: 100%;
  max-width: 960px;
  border: none;
  background: none;
}
 

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

#logo img {
  width: 200px;
}
#menu img {
  height: 48px;
  width: 40px;
  margin-bottom: -4px;
}
#BoxIcon {
  width: 40px;
  height: 48px;
  margin-bottom: -6px;
}

}

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

#logo img {
  width: 240px;
}

}

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

#logo img {
  width: 240px;
}


}


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

#logo img {
  width: 300px;
}


}


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



}
