
body {
  background: white;
  margin: 0;
  width: 100%;
  height: 100%;

}

h1 {
  text-align: center;
  font-size:25px;  
  color:blue;

  font-family:"Comic Sans Ms";
  margin-top:-20px;
}



.scene {
    width: 400px;
    height: 450px;
    text-align:center;
    margin:30px 450px;  
   perspective: 1200px;  

}



.book {
  position: relative;
  width: 100%;
  height: 100%;
  
  transform-style: preserve-3d;


 

}

.page {
  cursor: pointer;
  position: absolute;
  color: black;
  width: 100%;
  height: 100%;

  transition: 2s transform;
  transform-style: preserve-3d;  
  transform-origin: left center;
   border:1px solid black;
   border-radius:30px;


}
.front,
.back {
  position: absolute;
  
  width: 100%;
  height: 100%;
  padding: 10% 5% 5%;
  box-sizing: border-box;
  
  backface-visibility: hidden;
   background-color:rgb(219,247,215);
 
  border-radius:30px;

}
.back {
  transform: rotateY(180deg);
}

.page.active {
  z-index: 1;


}
.page.flipped {
  transform: rotateY(-170deg);
 
}
.page.flipped:last-of-type {
  z-index: 1;

}

p {
  margin: 0 0 0.1em;
  text-indent: 1.5em;
  font-size:18px;
  font-family:"Comic Sans Ms";


}




/* iPads (portrait) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) {
  .scene {
    width: 90%;
    height: 90%;
    margin: 5%;
}

#textscroll p {
  text-decoration:none;
}


