body {
    min-height:100vh;
    max-height:100vh;
    overflow:hidden;    
    background: #9b8e2a;
    background: linear-gradient(90deg, rgba(155, 142, 42, 0) 0%, rgba(0, 0, 0, 0.44) 52%, rgba(155, 142, 42, 0.66) 100%);   
    font-family:Arial;
    color:#3B5E69;
}

.flipbook {    
    width: 1100px;    
    height: 870px;
    margin: 0 90px;
    position:absolute;
    transform-style: preserve-3d;
    perspective: 1200px;
    transition: transform 0.3s ease;
    cursor:pointer;
}

.flipbook:hover {
    transform: scale(1.02);
}

.flipbook .leaf {
    visibility: hidden;
}

.flipbook .leaf:first-child {
    visibility: visible;
}

.flipbook.initialized .leaf {
    visibility: visible;
}

.leaf {
    position: absolute;
    transform-style: preserve-3d;
    height: 95%;
    width: 53.5%;
    left: 50%;
    transition: transform 2s;
    transform-origin: left center;
}

.page {
    position:absolute;
    width: 100%;
    height: 100%;
    top: 50px;
    left: 0;
    backface-visibility: hidden;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 2s ease;
}

.binder {
    position:absolute;
    top:230px;
    left:605px;
    background-image:url('../pict/background/binder.png');
    background-size:cover;
    background-repeat:no-repeat;
    background-position:500px 0 0 0;
    z-index:100;
    width:90px;
    height:800px;
}

.page.front {
    background-image:url('../pict/background/antik.png');
    background-size:cover;
    background-repeat:no-repeat;    
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset -7px 0 30px -7px rgba(0, 0, 0, 0.05);
    margin-left:2px;
}

.page.back {
    background-image:url('../pict/background/antik.png');
    background-size:cover;
    background-repeat:no-repeat;
    transform: rotateY(180deg);
    border-radius: 10px 0 0 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 7px 0 30px -7px rgba(0, 0, 0, 0.05);
    padding-right:0px;
}

.control {
    margin-top: 20px;
    text-align: center;
}

#prevPage {
    position:absolute;
    width:30px;
    height:60px;
    top:430px;
    background-image:url('../pict/symbols/arrow-left.png');
    background-size:80%;
    background-repeat:no-repeat;
    transition: all 2s ease;
}
#nextPage {
    position:absolute;
    width:30px;
    height:60px;
    top:430px;
    left:1270px;
    background-image:url('../pict/symbols/arrow-right.png');
    background-size:80%;
    background-repeat:no-repeat;
    transition: all 0.6s ease;
}
#nextPage:hover, #prevPage:hover {
    cursor:pointer !important;
    transform: scale(1.4);
    transition: all 0.6s ease;
}


@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  20% {
    transform: scale(25, 25);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-top: 10px;
  transition: all 0.3s ease;
}

/* Search input styles */
#searchInput {
  padding: 10px;
  margin-right: 5px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

/* Narration button styles */
#toggleNarration {
  background-color: #4CAF50;
  color: white;
}

#toggleNarration:hover {
  background-color: #45a049;
}

/* Page corner fold effect */
.page::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent #a08664 transparent;
  transition: all 0.3s ease;
}

.page:hover::after {
  border-width: 0 0 30px 30px;
}

.mobile-note {
    display:none;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    body {
        min-height:100vh;
        max-height:730px !important;
        height:400px;
        background: linear-gradient(90deg, rgba(155, 142, 42, 0) 0%, rgba(0, 0, 0, 0.44) 52%, rgba(155, 142, 42, 0.66) 100%);
        background-size:contain;
        background-repeat:no-repeat;
    }
    
    .flipbook {
        width: 620px;
        height: 70vh;
        
    }
    
    .binder {
        position:absolute;
        top:92px;
        left:384px;
        background-image:url('../pict/background/binder.png');
        background-size:cover;
        background-repeat:no-repeat;
        background-position:500px 0 0 0;
        z-index:100;
        width:50px;
        height:460px;
    }
    
    #prevPage, #nextPage {
        display:none;
    }    
    .mobile-note {
        display:block;
    }
    
}