/* ========================================================= */
/* RESET */
/* ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================================= */
/* BODY */
/* ========================================================= */

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333333;
}

/* ========================================================= */
/* INTRO SECTION */
/* ========================================================= */

#intro-section {
    width: 100%;
    padding: 50px 20px;
}

.intro-container {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.intro-container h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.intro-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

#language-form {
    margin-top: 30px;
}

#language-form label {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

#language {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1rem;
}

#language-form button {
    display: block;
    margin: 20px auto 0;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    background-color: #5b2c87;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

#language-form button:hover {
    opacity: 0.9;
}

/* ========================================================= */
/* EBOOK SECTION */
/* ========================================================= */

#ebook-section {
    display: none;
    width: 100%;
    min-height: 100vh;
    padding: 15px;
}

.ebook-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* ========================================================= */
/* PAGE WRAPPER */
/* ========================================================= */

.page-wrapper {
    width: 95%;
    margin: auto;
    overflow: hidden;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
}

/* ========================================================= */
/* PAGE IMAGE */
/* ========================================================= */

#ebook-image {
    width: 100%;
    height: auto;
    display: block;

    transition:
        transform 0.7s ease,
        opacity 0.7s ease;
}

/* ========================================================= */
/* PAGE TURN EFFECT */
/* ========================================================= */

#ebook-image.page-turn {

    animation: pageTurn 0.7s ease;
}

@keyframes pageTurn {

    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }

    50% {
        transform: rotateY(-90deg);
        opacity: 0.4;
    }

    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

/* ========================================================= */
/* NAVIGATION */
/* ========================================================= */

.navigation {

    width: 95%;
    margin: 20px auto 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.navigation button {

    padding: 12px 25px;

    border: none;
    border-radius: 8px;

    background-color: #5b2c87;
    color: white;

    cursor: pointer;

    font-size: 1rem;
}

.navigation button:hover {
    opacity: 0.9;
}

#page-number {

    font-size: 1.1rem;
    font-weight: bold;
}

/* ========================================================= */
/* MOBILE */
/* ========================================================= */

@media (max-width: 768px) {

    .intro-container h1 {
        font-size: 1.6rem;
    }

    .intro-container p {
        font-size: 1rem;
    }

    .navigation {

        flex-direction: column;
    }

    .navigation button {

        width: 100%;
    }

    #page-number {

        order: -1;
        margin-bottom: 10px;
    }
}
