@import url('site-theme.css');

body {
    font-family: 'Arial', sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 10px;
    text-align: center;
  }

  #flipbook {
    display: none;
    width: 800px;
    height: 500px;
    margin: 20px auto;
  }

  .page {
    width: 400px;
    height: 500px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
  }

  .page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .icon-button {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #4caf50;
    cursor: pointer;
    transition: 0.3s;
  }

  .icon-button:hover {
    color: #388e3c;
    transform: scale(1.1);
  }

  #progress {
    width: 80%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin: 10px auto;
    overflow: hidden;
    position: relative;
  }

  #progress-bar {
    width: 0%;
    height: 100%;
    background: #4caf50;
    transition: width 0.3s;
  }

  #loading-text {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  #pageInfo {
    font-weight: bold;
    margin-top: 10px;
  }

  input[type="number"], input[type="text"] {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
  }

  #bookmarkDropdown {
    position: relative;
    display: inline-block;
  }

  #bookmarkToggle {
    padding: 8px 12px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  #bookmarkList {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
    list-style: none;
    margin-top: 5px;
    padding: 0;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
  }

  #bookmarkDropdown.open #bookmarkList {
    display: block;
  }

  #bookmarkList li {
    padding: 8px 12px;
    cursor: pointer;
  }

  #bookmarkList li:hover {
    background-color: #f0f0f0;
  }

  @media (max-width: 768px) {
    #flipbook {
      width: 100%;
      height: 70vh; /* Use viewport height for better responsiveness */
    }

    .page {
      width: 100%;
      height: auto;
    }

    .nav-button {
      width: 30px;
      height: 30px;
      font-size: 1rem; /* Adjust icon size for smaller screens */
    }
  }