* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
  background-color: pink;
  background:  
url(Images/storyBookBackground.png) center no-repeat;
   overflow-x: hidden; /* Hide horizontal scrollbar */
   overflow-y: hidden;
}

nav {
  position: fixed;
  top: 0;
  
  width: 100%
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  display: inline;
  float: left;
}

li a {
  font-size: 20px;
  font-family: 'Yellowtail', cursive;
  display: block;
  color: #262626;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover {
  background-color: #49aa7e;
}

h2 {
  position: fixed;
  padding-bottom: 515px;
  font-size: 40px;
  font-family: 'Yellowtail', cursive;
}

h3 {
  position: fixed;
  padding-bottom: 440px;
}

h4 {
  position: fixed;
  padding-top: 440px;
  visibility: hidden;
}

p {
  color: black;
  position: fixed;
  padding: 50px;
  padding-top: 170px;
}

/*Book*/
.book {
  position: relative;
  width: 350px;
  height: 400px;
  transition: transform 0.5s;
}

.paper {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  perspective: 1500px;
}

.front {
  z-index: 1;
  backface-visibility: hidden;
}

.back {
  z-index: 0;
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  transform-origin: left;
  transition: transform 0.5s;
}

.cover-img {
  width: 100%;
  height: 100%;
  border-radius: 1px;
}

.back {
  z-index: 0;
}

.front-content, .back-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*paper flip*/
.flipped .front, .flipped .back {
  transform: rotateY(-180deg);
}

.back-content {
  transform: rotateY(180deg);
}

/*Button Stuffs*/
button {
  background-color: transparent;
  cursor: pointer;
  margin: 10px;
  transition: transform 0.5s;
}

button:focus {
  outline: none;
}

button:hover i {
  color: blueviolet;
}

i {
  font-size: 35px;
  color: white;
}

/*order  of pages*/
#p1 {
  z-index: 3;
}

#p2 {
  z-index: 2;
}

#p3 {
  z-index: 1;
}

.row {
  margin: 8px -16px;
}

/* Add padding BETWEEN each column */
.row,
.row > .column {
  padding: 8px;
}

/* Create four equal columns that floats next to each other */
.column {
  position: absolute;
  width: 25%;
  visibility: hidden;
}

/* Clear floats after rows */ 
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Content */
.content {
  background-color: white;
  padding: 10px;
}

.deliaImage {
  position: fixed;
  height: 400px;
  padding-bottom: 200px;
}

h5 {
  visibility: hidden;
}

@media(max-width: 900px) {
   .book {
    width: 300px;
    height: 300px;
  }
  
  i {
    font-size: 20px;
  }
    }
  
  @media screen and (max-width: 700px) {

    button {
      visibility: hidden;
    }
    
    li a {
      font-size: 15px;
    }

    h5 {
      visibility: visible;
      color: white;
      background: green;
      font-size: 25px;
      text-align: center;
    }

    h5:hover {
      background: pink;
    }
    
    }
    




/*
@media screen and (orientation:portrait) {
  h2 {
      font-size: 40px;
  }
  
  i {
      font-size: 20px;
  }
  
  h4 {
      visibility: visible;
  }
}

@media screen and (orientation:landscape) {

  body {
      display: flex;
  }
  .row {

      padding-top: 100px;

    }
  
    .column {
      width: 100%;
      visibility: visible;
      
    }
}
