@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: grid;
    place-content: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #d3e6ff;
}

.flipbook {
    width: 80vw; /* Use viewport width for responsiveness */
    height: 70vh; /* Adjusted height for better aspect ratio */
    max-width: 1000px; /* Maximum width to prevent excessive scaling */
    max-height: 600px; /* Maximum height to prevent excessive scaling */
}

.flipbook .hard {
    background: #2b78c0 !important;
    color: #fff;
    font-weight: bold;
    border: none;
}

.flipbook .hard small {
    font-style: italic;
    font-weight: lighter;
    opacity: 0.7;
    font-size: 14px;
}

.flipbook .page {
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.11);
}

.page img {
    width: 70%;
    object-fit: cover;
    margin: auto;
}

.flipbook .page small {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Media queries for extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .flipbook {
        width: 90vw;
        height: 30vh; /* Reduced height for better aspect ratio */
    }

    .page img {
        width: 80%;
    }
}

/* Media queries for small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 768px) {
    .flipbook {
        width: 85vw;
        height: 55vh; /* Reduced height for better aspect ratio */
    }

    .page img {
        width: 75%;
    }
}

/* Media queries for medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 992px) {
    .flipbook {
        width: 90vw;
        height: 60vh; /* Adjusted height for better aspect ratio */
    }

    .page img {
        width: 70%;
    }
}
