.parallax {
  height: 500px;
  /* fallback for older browsers */
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-perspective: 300px;
  perspective: 300px;
  -webkit-perspective-origin-x: 100%;
  perspective-origin-x: 100%;
}

.groups {
  position: relative;
  height: 500px;
  /* fallback for older browsers */
  height: 100vh;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.parallax__layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-transform-origin-x: 100%;
  transform-origin-x: 100%;
}

.parallax__layer--fore {
  -webkit-transform: translateZ(90px) scale(.7);
  transform: translateZ(90px) scale(.7);
  z-index: 1;
}

.parallax__layer--base {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  z-index: 4;
}

.parallax__layer--back {
  -webkit-transform: translateZ(-300px) scale(2);
  transform: translateZ(-300px) scale(2);
  z-index: 3;
}

.parallax__layer--deep {
  -webkit-transform: translateZ(-600px) scale(3);
  transform: translateZ(-600px) scale(3);
  z-index: 2;
}

/* demo styles
  --------------------------------------------- */

body, html {
  overflow: hidden;
  background-color: black
}

body {
  font: 100%/ 1.5 Arial;
}

* {
  margin: 0;
  padding: 0;
}

.parallax {
  font-size: 200%;
}

/* centre the content in the parallax layers */

.title {
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.box {
  width: 400px;
  height: 70px;
  position: fixed;
  padding-left: 10%;
  padding-top: 20%;
  text-align: left;
  color: black;
  border-radius: 7px;
  margin: 4px;
  font-size: 16px;
}

.box1 {
  width: 400px;
  height: 70px;
  position: fixed;
  padding-left: 60%;
  padding-top: 15%;
  text-align: left;
  color: black;
  border-radius: 7px;
  font-size: 16px;
  text-align: right;
}

.box2 {
  width: 400px;
  height: 70px;
  position: fixed;
  padding-left: 5%;
  padding-top: 14%;
  text-align: left;
  color: black;
  border-radius: 7px;
  margin: 4px;
  font-size: 16px;
}

.box3 {
  width: 400px;
  height: 70px;
  position: fixed;
  padding-left: 60%;
  padding-top: 15%;
  text-align: left;
  color: black;
  border-radius: 7px;
  font-size: 16px;
  text-align: right;
}

.animate {
  -webkit-animation-duration: 3s;
  animation-duration: 3s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.two {
  -webkit-animation-delay: 2s;
  -moz-animation-delay: 2s;
  animation-delay: 3s;
}

@-webkit-keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

.fadeInDown {
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}

.nextpage {
  font-size: 16px;
  width: 400px;
  display: block;
  position: fixed;
}

}

.page4 {
  text-align: justify;
  font-size: 15px;
  display: block;
  position: fixed;
  left: 25%;
  top: 50%;
  width: 350px;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

h1 {
  left: 27%;
  position: absolute;
  top: 85.3%;
  width: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background-color: black;
  padding-left: 8px;
  padding-right: 8px;
  opacity: 0.7;
  line-height: 80px;
}

/* style the groups
  --------------------------------------------- */

#group1 {
  z-index: 5;
  /* slide over group 2 */
}

#group1 .parallax__layer--base {
  background-image: url(../img/christian1.gif);
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#group2 {
  z-index: 3;
  /* slide under groups 1 and 3 */
}

#group2 .parallax__layer--back {
  background-image: url(../img/playing1.jpg);
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#group3 {
  z-index: 4;
  /* slide over group 2 and 4 */
}

#group3 .parallax__layer--base {
  background-image: url(../img/listen1.jpg);
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#group4 {
  z-index: 3;
  /* slide under group 3 and 5 */
}

#group4 .parallax__layer--deep {}

#group5 {
  z-index: 3;
  /* slide over group 4 and 6 */
}

#group5 .parallax__layer--base {
  background-image: url(../img/chair1.jpg);
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#group6 {
  z-index: 2;
  /* slide under group 5 and 7 */
}

/*redigere citat*/

cite {display:block;
  text-align: right;
  margin-right: 10%;
  font-family: Verdana, Arial, sans-serif;
  margin-top: 1rem;
  font-size: .9rem;
  color: #aaa;
  font-style: normal;
}

blockquote q {
  font-family: Georgia, serif;
  font-style: italic;
  letter-spacing: .1rem;
  display: block;
  color: black;
  width: 70%;
  margin-top: -15%;
  margin-left: 30%;
}


#myBtn {
  width: 200px;
  font-size: 18px;
  padding: 10px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
  position: fixed;
margin-top: -5%;
}

#myBtn:hover {
  background-color: black;
  color: white;
}



#group6 .parallax__layer--back {
  background-image: url(../img/smiling1.jpg);
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#group7 {
  z-index: 3;
  /* slide over group 7 */
}

#group7 .parallax__layer--base {
  background-image: url(../img/windfeld2.jpg);
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* misc
  --------------------------------------------- */

.demo__info {
  position: absolute;
  z-index: 100;
  bottom: 1vh;
  top: auto;
  font-size: 80%;
  text-align: center;
  width: 100%;
}
