

.return-description {
    position: absolute;
    top: 8vh;
    left: 20%;
    z-index: 10;
    font-size: 1rem;
    font-weight: 500;
    color: #3b2a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-family: inherit;
}

.return-description::before {
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.return-description:hover {
    color: #513c28;
    border-bottom: 2px solid #513c28;
}

.return-description:hover::before {
    transform: translateX(-4px);
}

.description-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    padding-top: 16vh;
}

.description.page-content-description {
    display: flex;
    gap: 60px;                   
    width: 100%;
    max-width: 1400px;
    height: 72%;
    pointer-events: auto;
    background: transparent;
    margin-left: 27%;
    
}

.page-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    position: relative;
}

.left-page {
    flex: 0 1 55%;
    min-width: 300px;
}

.right-page {
    flex: 0 1 45%;
    min-width: 280px;
}

/* ========================================
   5. WIZARD IMAGE (Left Page)
   ======================================== */
.description-img {
    width: 100%;
    height: auto;
    max-width: 780px;
    max-height: 880px;
    object-fit: contain;
    border-radius: 8px;
     margin-left: -65%;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.description-column {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 500px;
    margin-top: -10%;
    margin-left: -5%;
}

.description-column h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    color: #575047;
    line-height: 1.3;
}


.content-body {
    font-size: 20px;
    line-height: 1.5;
    color: #575047;
}

.content-body h2 {
    margin: 20px 0 6px;
    font-size: 27px;
    font-weight: 600;
    color: #575047;

}

.content-body b,
.content-body strong {
    font-weight: 700;
    color: #48423a;
}

.content-body p {
    margin: 12px 0;
}

.book-pagination {
    position: absolute;
    bottom: 90px;   
    left: 12%;
    width: 95%;   
    display: flex;
    justify-content: space-between;
    padding: 0 30px;  
    pointer-events: auto;
    z-index: 300;
}

.book-pagination .page-btn {
    font-size: 2rem;
    font-weight: bold;
    color: #5a4634;
    transition: transform 0.25s ease;
}

.book-pagination .page-btn:hover {
    transform: scale(1.25);
}

.next-desc{
    margin-left: 850px;
}
.prev-desc{
    margin-left: 20px;
}

/* ================================
   CRAFTING GRID (Minecraft Style)
   ================================ */

.crafting-grid {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-left: 0;
    margin-top: 10px;
}

.crafting-grid .row {
    display: flex;
}

.crafting-grid .slot {
    width: 55px;
    height: 55px;
    border: 2px solid #7a5b43;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    border-radius: 4px;
}

.crafting-grid .slot img {
    width: 80%;
    height: auto;
    margin-left: -100px;
}

.crafting-grid .slot.empty {
    background: none;
}
@media (max-width: 1400px) {

    /* Return link closer to page */
    .return-description {
        left: 12%;
        font-size: 1.1rem;
    }

    /* Center everything perfectly inside the book */
    .description-wrapper {
        padding-top: 14vh;
        justify-content: center;
    }

    .description.page-content-description {
        display: flex;
        gap: 50px;
        max-width: 1200px;         /* narrower so left/right are closer */
        margin-left: -100px;
        margin-top: -20px;
        width: 65%;                /* fits inside page margins */
        justify-content: center;
    }

    /* Left page (image) */
    .left-page {
        flex: 0 1 50%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .description-img {
        max-width: 520px;
        max-height: 680px;
        margin-left: -40px;
        margin-top:30px;
    }

    /* Right page (text) */
    .right-page {
        flex: 0 1 50%;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .description-column {
        max-width: 520px;
        margin: 0;
        gap: 28px;
    }

    .description-column h3 {
        font-size: 32px;
    }

    .content-body {
        font-size: 20px;
        line-height: 1.6;
    }

    .content-body h2 {
        font-size: 28px;
    }

    /* Pagination inside the book */
    .book-pagination {
        bottom: 70px;
        left: 10%;
        width: 80%;
        justify-content: space-between;
        padding: 0 40px;
    }

    /* Remove crazy large margins */
    .next-desc {
        margin-left: 0 !important;
    }
    .prev-desc {
        margin-left: 0 !important;
    }
}


@media (max-width: 768px) {
    .book-wrapper {
        width: 90vw;
    }

    .description-wrapper {
        padding-top: 10vh;
    }

    .description.page-content-description {
        flex-direction: column;
        gap: 30px;
        margin-left: 20px;
        height: auto;
        min-height: 70vh;
        color: #fff8c6;
    }

    .page-side::before {
        display: none;
    }

    .left-page,
    .right-page {
        flex: 1;
        min-width: auto;
    }

    .description-img {
        max-width: 300px;
        max-height: 380px;
        margin-right: 40%;
    }

    .description-column h3 {
        font-size: 24px;
        color: #fff8c6;
    }

    .content-body {
        font-size: 15px;
        color: #fff8c6;
    }

    .content-body h2 {
        font-size: 20px;
        color: #fff8c6;
    }
    .content-body b {
        color: #fff8c6;
        text-decoration: underline;
    }

    .return-description {
        top: 5vh;
        left: 5%;
        color: #fff8c6;
    }
    .next-desc{
    margin-left: 650px;
}
.prev-desc{
    margin-left: 20px;
}
}

@media (max-width: 480px) {
    .description-img {
        max-width: 220px;
        max-height: 280px;
    }

    .description-column h3 {
        font-size: 21px;
    }

    .content-body {
        font-size: 14px;
    }
}