.qw {
  margin: 0;
  padding: 0;
  background: #111;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#flipbook {
  width: 90vw;                 /* 95% of the screen width */
  height: auto;
  aspect-ratio: 3 / 1;         /* maintain 3:1 ratio */
  background: #222;
  box-shadow:
    inset -30px 0 40px rgba(0, 0, 0, 0.7),
    inset 30px 0 40px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(0, 0, 0, 0.9);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  user-select: none;
  margin-top: 20px;
}

#flipbook .page {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #fff, #eee);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

#flipbook img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: auto;
  -webkit-user-drag: none;
  user-drag: none;
}

#flipbook img:hover {
  transform: none;
}
#flipbook .page,
#flipbook .page img {
  pointer-events: auto;
  cursor: pointer; /* optional, shows hand pointer */
}
.nav-buttons {
  margin-top: 20px;
  user-select: none;
}

.nav-buttons button {
  padding: 10px 25px;
  font-size: 18px;
  background: #333;
  color: white;
  border: none;
  border-radius: 8px;
  margin: 0 10px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
#flipbook .page::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  right: 0;
  top: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent);
  pointer-events: none;
}
.nav-buttons button:hover {
  background: #555;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 35%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index:100;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 10px 20px;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
}

/* Position the "next button" to the right */
.next {
  right: 20px;
  border-radius: 3px 0 0 3px;
}
.prev {
  left: 20px;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.5);
}


@media (max-width: 768px) and (orientation: portrait) {
  #flipbook {
    max-width: 95%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

 
  
  .prev, .next {
  cursor: pointer;
  position: absolute;
  top: 12%;
padding: 8px;      
       font-size: 14px;
       
  }
  .next {
  right: 5px;
  border-radius: 3px 0 0 3px;
}
.prev {
  left: 10px;
  border-radius: 3px 0 0 3px;
}

}

@media (max-width: 768px) and (orientation: landscape) {
  #flipbook {
    max-width: 95%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

 
  
  .prev, .next {
  cursor: pointer;
  position: absolute;
  top: 35%;
padding: 8px;      
       font-size: 14px;
       
  }
  .next {
  right: 5px;
  border-radius: 3px 0 0 3px;
}
.prev {
  left: 10px;
  border-radius: 3px 0 0 3px;
}

}

