* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(70deg, rgb(219, 219, 219), rgb(252, 252, 252));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    overflow: hidden;
    margin: 0;
}

/* FLIPBOOK CONTAINER ========================================================================= */

.flipbook-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* FLIPBOOK ========================================================================= */

.flipbook {
    position: relative;
}

/* Turn.js specific styling */
.flipbook .turn-page-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.flipbook .page {
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* CONTROL ========================================================================= */

.controls {
    position: relative;
    display: flex;
    gap: 30px;
    align-items: center;
    z-index: 100;
    margin-top: 20px;
}

.btn {
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.95);
}

.btn i {
    font-size: 24px;
    color: #333333;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: scale(1);
}

.page-counter {
    font-size: 16px;
    font-weight: 400;
    color: white;
    background: #333333;
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* JUMP TO PAGE ========================================================================= */

.jump-to-page {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    margin-top: 10px;
    margin-bottom: 30px;
}

#pageInput {
    width: 80px;
    height: 30px;
    border: none;
    outline: none;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    padding: 0 15px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn-jump {
    background: #333333;
    color: white;
    border: none;
    padding: 0 18px;
    height: 30px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

.btn-jump:hover {
    background: #555555;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-jump:active {
    background: #333333;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}