
body {
  margin: 0;
  padding: 0;
  background-image:url('https://i.imgur.com/nwuBHmU.gif');
  font-family: sans-serif;
 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h2 {
  color: white;
  margin-bottom: 1rem;
}

.book {
  perspective: 2000px;
  width: 90vw;
  max-width: 600px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem; /* Add space between books */
}

.pages {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.page {
  min-width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 👈 Ensures entire image fits inside the page */
}

.nav-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 20px;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background-color: #ff0099;
  color: white;
  border-radius: 5px;
}

button:hover {
  background-color: black;
}
/* width */
::-webkit-scrollbar {
width: 18px;
}
/* Track */
::-webkit-scrollbar-track {
background: #fc9ac8;
}
/* Handle */
::-webkit-scrollbar-thumb {
background-image:url("http://dl.glitter-graphics.net/pub/1512/1512971j19ndbwke5.gif")
}
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #fc9ac8;
  color: white;
  
  padding: 15px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: black;
}