body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
/*    align-items: center;*/
    min-height: 100vh;
    background: #cecece;
    font-family: Arial, sans-serif;
}

a:link{
    text-decoration: none;
    color: #000;
    margin-top: 10px;
}

a:visited{
    text-decoration: none;
    color: #000;
    padding-top: 10px;
}

.flipbook-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height:100%;
    max-height: 88vh;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0px auto;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    display: none;
}

.page.active {
    display: block;
}

.navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 10;
}

.nav-button {
    background-color: gray !important;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 2.5rem;
    pointer-events: auto;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
}

.nav-button:hover {
    color: white;
    background: rgba(0, 0, 0, 0.5);
}

.li-side img {
    width: 150px;
}

.month-img{
    width: 100%;
    height: 90%;
}

.month-name{
    text-align: center;
}

.arrow-but{
    background-color: gray;
}
/*.page-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    cursor: zoom-in;
}

.page-content.zoomed {
    cursor: zoom-out;
}

.page-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.page-content.zoomed img {
    transform: scale(1.5);
}*/

.page-content {
    position: relative;
    overflow: hidden; /* Prevent scrolling unless zoomed */
    width: 100%;
    height: 100%; /* Ensure content fills the container */
    display: flex; /* Center the content */
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: zoom-in;
}

.page-content img {
    object-fit: contain;
    width: 100%; /* Default size before zoom */
/*    height: auto;*/
    max-height: 100%;
    transition: transform 0.3s ease, top 0.3s ease; /* Smooth zoom and drag effect */
    cursor: zoom-in; /* Indicate zoom interaction */
}

.page-content.zoomed {
    cursor: grab; /* Indicate dragging is possible */
    overflow: scroll; /* Enable scrolling inside the container */
}

.page-content.zoomed img {
    margin-top: 370px;
    transform: scale(1.5); /* Adjust zoom level here */
    transform-origin: center; /* Ensure zoom centers dynamically */
    cursor: zoom-out; /* Indicate zoom-out interaction */
}

.page-number {
    position: absolute;
    bottom: 0px;
    width: 100%;
    text-align: center;
    font-size: clamp(12px, 1.5vw, 14px);
    color: #333;
    background: rgba(98, 95, 95, 0.8);
    padding: 5px 0;
    transition: transform 0.3s ease;
}

.page-content.zoomed + .page-number {
    transform: translateY(100%);
}

@media (max-width: 574.98px) { 
    .flipbook-container {
        width: 100%;
        height: 60vh;
    }

    .nav-button {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }

    .page-content {
        padding: 10px;
    }
    
    .limage {
        display: none !important;
    }

    .page-number{
        bottom: 0px;
        color: #000;
        background: rgba(115, 114, 115, 0.8);
    }
 }


/*// Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) { 
    .flipbook-container {
        width: 100%;
        height: 70vh;
    }

    .nav-button {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .page-number {
        bottom: 10px;
    }

    .limage {
        display: none !important;
    }
 }

/*// Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) { 
    .limage {
        display: none !important;
    }
    .flipbook-container {
        width: 100%;
        height: 84vh;
    }
    .mag-conts
    {
        width: 100%;
    }

 }

/*// Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) {
    .limage {
        display: block !important;
    } 
    .flipbook-container {
        width: 100%;
        height: 84vh;
    }
    .mag-conts
    {
        width: 100%;
    }
}

/*// Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) { 
    .limage {
        display: block !important;
    }
    .flipbook-container {
        width: 100%;
        height: 88vh;
    }
}