@import url('https://fonts.googleapis.com/css?family=Spirax&display=swap'); /*needed for mobile svg object font bug*/
:root {
  /* scrollbar-width: none; */
  --lgold: #d8b973;
  --bg: #f9faf8;
  --lgr: #eff2ed;
  --dgr: black; /*#171b14;*/
  --lgray: #EAEAEA;
}
::-webkit-scrollbar {
    /* display: none; */
}
body, html {
  margin: 0;
  padding: 0;
  background-color: #eae8d6;
  overflow: hidden;
  /* overflow-y: auto; */
  /* color: #dfaea8; */
  /* font-family: Spirax; */
  font-family: 'David Libre';
  font-size: 16px;
  font-size: var(--cornice-width);
  /* user-select: none; */
  /* background: repeating-linear-gradient(78deg, var(--bg), var(--bg) 62px, var(--lgr) 62px, var(--lgr) 124px); */
  height: 100%;
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
}
body {
/*   filter: brightness(1.2) contrast(1.7) grayscale(1); */
}

p {  
  line-height: 1.35em;
  margin-bottom: 2em;
}

h1 {
/*   font-family: "Poppins"; */
  color: #35452b; 
  font-weight: 800;
  text-align: center;
  font-size: 2.3em;
  margin: 0.4em 0 1em 0;
}
h3 {
  font-family: "Poppins";
  color: #3d5a23;
  font-weight: 300;
  text-align: center;
  font-size: 1.4em;
  margin: 0.5em 0 0.5em 0;
}
em {
  color: #3d5a23;
  font-family: "Poppins";
  font-weight: 300;
  font-style: normal;
}

.page-cont {
  display: flex;
  justify-content: center;
  height: min(600px, calc(95vh - 90px));
  height: min(600px, calc(95dvh - 90px));
  margin-top: 20px;
}
.page {
  height: 100%;
  width: calc(100vw - 128px);
  max-width: 600px;
  overflow-X: auto;
  padding-right: 7px;
}
.page-header {
  height: 80px;
  top: 0;
  position: fixed;
  margin: auto;
}

.cornice {
  height: 95vh;
  height: 95dvh;
  width: 95vw;
  max-width: 700px;
  max-height: 700px;
}
.cornice-cont {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(2.5vh);
  filter: saturate(0.5) hue-rotate(120deg);
  user-select: none;
  pointer-events: none;
}

@media screen and (max-width: 500px) {
  .page {
    width: calc(100vw - 122px);
    transform: translateX(7px);
  }
}
@media screen and (max-width: 350px) {
  .page {
    width: calc(100vw - 89px);
    transform: translateX(5px);
  }
}
@media screen and (max-height: 400px) and (min-width: 500px) {
  .cornice {
    max-width: 600px;
  }
  .page {
    width: calc(100vw - 189px);
    transform: translateX(5px);
    max-width: 500px;
  }
}
