/* General Styling */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    text-align: center;
    background: url('../image/wood2.jpg') no-repeat center center;
	background-size: cover;
    font-family: Century Gothic;
}

/* Header & Footer */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white; /* Ensure visibility */
    z-index: 1000; /* Ensure it stays above everything */
}

header, footer {
    padding: 20px;
    background-image: url('../image/topnavtexture.jpg');
	background-repeat: repeat;
    background-size: auto;
    color: white;
    text-align: center;
    
}

footer {
    margin-top: 20px;
	width: 100%;
}

/* Flipbook Container */
#flipbook-container {
    width: 100%;
    height: auto;
    overflow: auto;
    position: relative;
    margin: auto;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    user-select: none;
	cursor: grab;
	margin-top: 130px; /* Adjust based on header height */
	padding-top: 40px;
	padding-bottom: 40px;
}

#flipbook {
    width: 800px;
    /* height: 600px; */
	min-height: 150%;
    margin: auto;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 0;
    top: 0;
    transition: transform 0.3s ease;
}

/* Zoomed-in state */
#flipbook-container.zoomed #flipbook {
    transform: scale(1.5);
    cursor: grab;
}

/* Panning effect when zoomed */
#flipbook-container.grabbing {
    cursor: grabbing;
}

/* Individual Pages */
.flip-page {
    width: 400px;
    height: 600px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Images Inside Pages */
.flip-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: visible; /* Keep visible */
    transition: opacity 0.3s ease-in-out;
}


/* Buttons */
button {
    background: none;
    border: none;
    font-size: 40px;  /* Increased from 24px to 40px */
    cursor: pointer;
    color: #333;
    padding: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

button:hover {
    color: #007bff; /* Highlight on hover */
    transform: scale(1.2); /* Slight zoom effect */
}

#prev {
    position: absolute;
    top: 50%;
    left: 20px; /* Adjusted for better spacing */
    transform: translateY(-50%);
	color: white;
}

#next {
    position: absolute;
    top: 50%;
    right: 20px; /* Adjusted for better spacing */
    transform: translateY(-50%);
	color: white;
}

#prev:hover, #next:hover{
	transform: scale(1.2); /* Slight zoom effect */
}


.floating-bar {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background-image: url('../image/topnavtexture.jpg');
	background-repeat: repeat;
    background-size: auto;
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    z-index: 100; /* Keep it on top initially */
    transition: opacity 0.3s ease, z-index 0.3s ease;
	justify-content: center;
    align-items: center;
}

.floating-bar.hidden {
    opacity: 0;
    z-index: -100; /* Send it behind when hidden */
}

.floating-bar button {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.floating-bar button:hover {
    color: #ddd;
}




/* Zoom button */

#zoomBtn {
    /* position: fixed; */
    bottom: 20px;
    right: 20px;
    background: #444;
    color: white;
    border: none;
    font-size: 24px;
    padding: 12px;
    /* border-radius: 50%; */
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#zoomBtn:hover {
    background: #666;
}


/* Responsive Design */
@media (max-width: 900px) {
    #flipbook {
        width: 90%;
        height: auto;
    }
    .flip-page {
        width: 45%;
        height: auto;
    }
}

@media (max-width: 600px) {
    #flipbook {
        width: 100%;
    }
    .flip-page {
        width: 100%;
    }
}

