html,
body {
  overflow-x: hidden;
  overscroll-behavior-y: none;
  padding: 0;
  margin: 0;
  font-family: "Helvetica", Arial, sans-serif;
  color: #fff;
  font-size: 140%;
  line-height: 140%;
}
html {
  background-color: rgba(25, 25, 35, 1);
}
body {  
    margin: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    height: 100vh;
    
    scroll-snap-type: y mandatory;
    
    /* Vertikal Scrollen und Snap Points streng einhalten */
}

.padding1 {
  padding: 10px 20px;
}

#preloader {
  text-align: center;
  width: 100%;
  background-color: #ddd;
  z-index: 1999;
  position: fixed;
  display: block;
  height: 100%;
  transition: opacity 2s;
  pointer-events: none;
}
#loadingBar {
  width: 50%;
  height: 5px;
  margin: 0;
  left: 25%;
  bottom: 50%;
  position: fixed;
  display: block;
  background-color: #bbb;
  border-radius: 3px;
}
#loadingBarProgress {
  -webkit-filter: drop-shadow(1px 1px 4px rgba(255, 255, 255, 0.9));
  filter: drop-shadow(1px 1px 4px rgba(255, 255, 255, 0.9));
  height: 5px;
  display: block;
  background-color: #fff;
  width: 1%;
  transition: width 0.3s, opacity 2s;
  border-radius: 3px;
}

/* */
.hidden {
  display: none;
}

#render-canvas {
  width: 100%;

  min-height: 100%;
  max-height: 100% !important;

  height: -webkit-fill-available;
  position: fixed;
  top: 0;
  padding: 0;
  margin: 0;
  outline: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  /* mobile webkit */
  z-index: -1;
  /*
    transition: height 2s;
    */
  /*
    height:calc(100% - 1px); 
    */
  /* fix */
}
.html-canvas {
  z-index: 1000;
}

h2 {
  font-size: 1.5em;
  text-align: left;
  display: inline;
  height: auto;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
p { margin:20px 0; }

section.page {
  height: 100vh;
  width: 50%;
  right: 0;
  float: right;
  display: flex;
  justify-content: left;
  align-items: left;
  font-weight: bold;
  margin-left: 50%;
  vertical-align: middle;
  
  scroll-snap-align: start; 
  
  
  /* An der Oberkante jeder Sektion soll gestoppt werden */
}

.inner {
  height: auto;
  vertical-align: middle;
  margin: auto 0;
  margin-right: 50px;
}

#background {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -2;
  color: #bbb;
  font-size: 3em;
}

#debug {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  color: burlywood;
  font-size: 12px;
  line-height: normal;
}

#fps::after {
  content: " FPS";
}
#fps {
  display: none; 
}
#currentSection::before {
  content: "Section: ";
}
#scrollPosition::before {
  content: "Scroll Position: ";
}
#scrollDirection::before {
  content: "Scroll Direction: ";
}
#sectionHeight::before {
  content: "Section Height: ";
}
#currentFrame::before {
  content: "Frame: ";
}


.button { text-decoration:none; margin: 20px 0; padding: 10px 20px; border-radius: 28px; background-color: #ddd; color: black;}


/* abweichende CSS-Regel für Displays, die kleiner als 720px sind */
@media screen and (max-width: 880px) {
  section.page {
    height: 100vh;
    margin: 0;
    width: 100%;
    right: 0;
    float: right;
    display: flex;
    justify-content: left;
    margin-left: 0%;
    vertical-align: center;
  }

  .inner {
    margin: 0 30px;
    height: auto;
    vertical-align: top;
    margin: 50vh auto auto auto;
    text-align: center;
  }
}
