html, body {
    margin: 20;
    padding: 0;
    background: #ccc;
    border-radius: 5px;
    overflow: hidden;
  }

/*  magazine */

  #magazine {
    width: 1225px;
    height: 865px;
    margin: auto;
    cursor: pointer;
  }
  #magazine .turn-page {
    width: 100%;
    height: 100%;
    background-color: #fff;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
    /* #magazine .turn-page {
  cursor: relative;
  }
  #magazine .turn-page::before,
  #magazine .turn-page::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
  }
  #magazine .turn-page::before {
    left: 0;
    cursor: w-resize;
  }
  #magazine .turn-page::after {
    right: 0;
    cursor: e-resize;
  } */

/*end  magazine */

  .page {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .page iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
  }
  .navigation-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 35px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 17px 0 12px 0px;
    background: #f0f0f0;
    box-shadow: 2px 2px 4px #000000;
  }
  a {
    text-decoration: none;
  }

  .navigation-bottom button:disabled {
    background: gray;
    cursor: not-allowed;
  }

.nav-buttons {
  position: fixed;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px;
  border-radius: 25px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Ensure buttons are above content */
}
.nav-buttons button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background-color: black;
  color: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-buttons button:hover {
  background-color: #0056b3;
}
.nav-buttons-left {
  position: fixed;
  bottom: 2px;
  left: 70px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px;
  border-radius: 25px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Ensure buttons are above content */
}

.nav-buttons-left button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background-color: black;
  color: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-buttons-right {
  position: fixed;
  bottom: 2px;
  right: -3px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px;
  border-radius: 25px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Ensure buttons are above content */
}

.nav-buttons-right button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background-color: black;
  color: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-buttons {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 25px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Ensure buttons are above content */
}

.zoom-buttons button {
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-buttons button:hover {
  background-color: #0056b3;
}
.fullscreen-button {

  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure button is above content */
}

.fullscreen-button:hover {
  background-color: #0056b3;
}

/* Hide overflow on small screens */
@media (max-width: 250mm) {
  body {
      overflow: hidden;
  }
}

/* Fullscreen-specific styles */
:fullscreen .book-container {
  width: 100vw;
  height: 100vh;
  border: none;
  box-shadow: none;
}

:fullscreen .nav-buttons,
:fullscreen .zoom-buttons,
:fullscreen .fullscreen-button {
  z-index: 1001; /* Ensure buttons are above fullscreen content */
}
#controls{
   margin-top: 10px;
}