@-ms-viewport{ width: device-width; }
:root {
  --main-content-padding: 2vw;
}

@font-face {
  font-family: "Syage";
  src:url("fonts/SyageRegular.otf") format("opentype");
}

@font-face {
  font-family: "Karrik";
  src: url("fonts/CustomFont.eot");
  src:url("fonts/Karrik-Regular.woff") format("woff"), 
  url("fonts/Karrik-Regular.otf") format("opentype");
}

body {
  font-family: 'Karrik', 'sans-serif';
  line-height: 1;
  padding: var(--main-content-padding);
  position: relative;
  overflow-x: hidden;
  height: 100vh;
}

nav{
  position: absolute;
  width: calc(100vw - 2*var(--main-content-padding));
  top: 40%;
  transform: translateY(-40%);
}

a.section-link, h1, span.bullet, p.section-links {
  font-family: 'Syage';
  font-weight: normal;
  font-size: 6vw;
  text-transform: uppercase;
  margin: 3vw 0;
  /*filter: drop-shadow(3px 3px 0px #000);*/
}

/*.bullet {
  margin-left: 1vw;
  margin-right: 1vw;
}*/

h2 {
  font-family: 'Syage';
  font-size: 5vw;
}

p.section-links {
  text-align: justify;
  text-justify: inter-character;
  /*hyphens: auto;
  text-justify: inter-character;*/
  /*display: flex;
  flex-wrap: wrap;
  justify-content: space-between;*/
}

.section-link {
  transition: 200ms;
}
/*
a h1:hover h1:before {
  content: "\2192";
}*/

a.section-link:hover {
  /*margin-left: 1vw;
  margin-right: 1vw;
  font-size: 6.8vw;*/
}

a.section-link, a.close-section{
  text-decoration: none;
}

p {
  font-size: 3vw;
}

iframe {
  width: 100%;
  border: 0px;
  z-index: 4;
  position: relative;
}


div#section-container {
  position: absolute;
  right: -110%;
  top: 0;
  bottom: 0;
  width: 60vw;
  max-width: 100%;
  min-height: 100vh;
  overflow: auto;
  z-index: 2;
  transition: right 0.2s ease-in-out;
  padding: 2vw;
}

div.visible-section {
  right: 0 !important;
}

div.section-content{
  display: none;
}

div.visible-section-content{
  display: block;
}


.paperOverlay {
  position: absolute;
  top: 0;
  bottom: -200vh;
  left: 0;
  right: 0;
  mix-blend-mode: overlay;
  background-blend-mode: overlay;
  background-repeat: repeat;
  background-size: 100%;
  pointer-events: none;
  background-image: url("texture.jpg");
  z-index: 1;
}

.mysteriousBackgroundFix {
  position:absolute; 
  top:0; 
  left: 0; 
  right: 0; 
  bottom: -200vh; 
  z-index: -1;
}

#press-material * {
  position: relative;
  z-index: 4;
}

#press-material img{
  width: 95%;
  padding: 1vw;
  z-index: 4;
  position: relative;
}

.row {
  display: flex;
}

.column {
  flex: 50%;
}


@media screen and (max-width: 768px), screen and (max-device-width: 768px) {
 /* For mobile phones: */
  html{
    width: 100vw;
  }

  div#section-container{
    width: calc(100vw - var(--main-content-padding)*2);
    max-width:100% !important;
  }

  a.section-link, h1, span.bullet, p.section-links{
    font-size: 8vw;
    margin: 5vw 0;
    line-height: 9vw;
  }  

  h2{
      font-size: 8vw;
  }
  p {
    font-size: 5.5vw;
  }
}
