/* ===================================================
   MY DIARY
   PART 1
=================================================== */

.diary-page{

    max-width:1400px;
    margin:auto;
    padding:10px 40px 70px;

}


/* ---------- Back button ---------- */

.back-home{

    display:inline-block;

    margin-bottom:35px;

    padding:12px 24px;

    background:#FFF8F1;

    border-radius:18px;

    box-shadow:
        0 8px 22px rgba(0,0,0,.08);

    color:#7A644E;

    font-weight:600;

    transition:.35s;

}

.back-home:hover{

    transform:translateY(-3px);

    color:#B48B43;

}


/* ---------- Main block ---------- */

.comic-book{

    display:grid;

    grid-template-columns:
        minmax(0,1fr)
        220px;

    gap:35px;

    align-items:start;

}


/* ---------- Comic ---------- */

.comic-frame{

    background:#FFF8F1;

    border-radius:28px;

    padding:25px;

    box-shadow:
        0 14px 40px rgba(0,0,0,.10),
        0 5px 15px rgba(0,0,0,.05);

}


.comic-frame img{

    width:100%;

    display:block;

    transition:.4s;

}
.comic-frame:hover img{

    transform:scale(1.01);

}



/* ---------- Sidebar ---------- */

.diary-sidebar{

    position:sticky;

    top:35px;

    background:#FFF8F1;

    border-radius:28px;

    padding:34px;

    box-shadow:
        0 14px 40px rgba(0,0,0,.10),
        0 5px 15px rgba(0,0,0,.05);

}


/* ---------- Page title ---------- */

.page-title{

    text-align:center;

    font-family:'Cormorant Garamond',serif;

    font-size:34px;

    color:#4B3D2F;

    margin-bottom:12px;

}


/* ---------- Page number ---------- */

.page-counter{

    font-size:60px;

    line-height:1;

    letter-spacing:2px;

    margin-bottom:35px;

}


/* ---------- Divider ---------- */

.sidebar-divider{

    width:100%;

    height:1px;

    background:

    linear-gradient(
        to right,
        transparent,
        rgba(180,139,67,.45),
        transparent
    );

    margin:28px 0;

}
/* ===================================================
   PART 2
=================================================== */


/* ---------- Buttons ---------- */

.nav-button{

    width:100%;

    padding:16px;

    margin-bottom:18px;

    border:1px solid rgba(201,168,106,.35);

    border-radius:16px;

    background:#FFFDF9;

    color:#5E4C3B;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.35s;

    box-shadow:
        0 8px 18px rgba(0,0,0,.05);

}
.nav-button:hover{

    background:#D2B16F;

    color:white;

    border-color:#D2B16F;

    transform:translateY(-3px);

    box-shadow:
        0 18px 28px rgba(210,177,111,.35);

}







.nav-button:disabled{

    opacity:.45;

    cursor:default;

    transform:none;

    box-shadow:none;

}



/* ---------- Languages ---------- */

.sidebar-language{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    margin-top:10px;

    font-weight:600;

    color:#8B7355;

}


.sidebar-language a{

    transition:.3s;

}


.sidebar-language a:hover{

    color:#B48B43;

}



/* ---------- Responsive ---------- */

@media (max-width:1000px){

    .comic-book{

        grid-template-columns:1fr;

    }

    .diary-sidebar{

        position:static;

    }

}


@media (max-width:768px){

    .diary-page{

        padding:20px;

    }

    .comic-frame{

        padding:15px;

    }

    .diary-sidebar{

        padding:25px;

    }

    .page-title{

        font-size:28px;

    }

    .page-counter{

        font-size:42px;

    }

}


@media (max-width:480px){

    .back-home{

        width:100%;

        text-align:center;

    }

    .nav-button{

        padding:14px;

        font-size:15px;

    }

    .sidebar-language{

        flex-wrap:wrap;

    }

}
.comic-frame{

    transition:
        transform .35s,
        box-shadow .35s;

}

.comic-frame:hover{

    transform:translateY(-4px);

    box-shadow:
        0 22px 45px rgba(0,0,0,.14);

}

