* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

img {
    max-width: 100%;
    pointer-events: none;
}

body {
    background-color: #100f0b;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    display: flex;
    display: -webkit-flex;
    display: -o-flex;
    display: -moz-flex;
    flex-wrap: wrap;
    flex-wrap: -webkit-wrap;
    justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
    -webkit-align-items: center;
    margin: 0 auto;
    padding: 0;
    direction: rtl;
    font-size: 16px;
    text-align: start;
    text-align: -webkit-start;
}

.book {
    background-image: url(../images/back.png);
    max-width: 300px;
    width: 100%;
    height: 500px;
    background-repeat: no-repeat;
    background-position: center center;
    object-fit: cover;
    background-size: 100%;
    position: relative;
    perspective: 1000px;
}

#page1 {
    z-index: 5;
}

#page2 {
    z-index: 4;
}

#page3 {
    z-index: 3;
}

#page4 {
    z-index: 2;
    /* cursor: pointer; */
}

.page {
    position: absolute;
    width: 150px;
    height: 215px;
    /* background-color: #f2f5f9; */
    /* top: 153px; */
    top: 147px;
    /* left: 73px; */
    left: 76px;
    /* transform: rotateX(16deg) rotateY(-9deg) rotateZ(2deg) rotate(2deg) rotate3d(1, 1, 1, 0deg); */
    /* transform: rotateX(16deg) rotateY(-10deg) rotateZ(2deg) rotate(2deg) rotate3d(1, 1, 1, 0deg); */
    transform: rotateX(16deg) rotateY(-11deg) rotateZ(5deg);
    -webkit-transform: rotateX(16deg) rotateY(-11deg) rotateZ(5deg);
    -moo-transform: rotateX(16deg) rotateY(-11deg) rotateZ(5deg);
    -o-transform: rotateX(16deg) rotateY(-11deg) rotateZ(5deg);
    /* box-shadow: 0 0 2px 0px #000, inset 13px 20px 14px 12px #000;
    -webkit-box-shadow: 0 0 2px 0px #000, inset 13px 20px 14px 12px #000; */
    box-shadow: 0 0 10px -2px #000;
    -webkit-box-shadow: 0 0 10px -2px #000;
    /* box-shadow: 0 0 2px 0px #a0a0a0;
    -webkit-box-shadow: 0 0 2px 0px #a0a0a0; */
    /* transition: 1s ease, border-radius 2s ease, box-shadow 2s ease-in-out;
    -webkit-transition: 1s ease, border-radius 2s ease, box-shadow 2s ease-in-out; */
    scroll-behavior: smooth;
    transform-style: preserve-3d;
    -ms-transform-origin-y: top;
    transform-origin: top center;
    -webkit-transform-origin: top center;
    -webkit-transform-origin-y: top;
    -ms-transform-origin-x: center;
    -webkit-transform-origin-x: center;
    transform-box: border-box;
    overflow: hidden;
}


/* .page.active { */
/* transform: rotateX(264deg);
    box-shadow: inset 0px 0px 50px 2px #FFFFFF; */
/* // */
/* backface-visibility: hidden;
    -webkit-backface-visibility: hidden; */
/* transform: rotateX(264deg) rotateY(0deg) rotateZ(-6deg); */
/* border-radius: 0 0 100px 100px;
    -webkit-border-radius: 0 0 100px 100px; */
/* inset: 35px; */
/* border-bottom-right-radius: 100px;
    border-bottom-left-radius: 100px; */
/* } */

.page .page3-link {
    position: absolute;
    left: 0;
    width: 70px;
    height: 45px;
    display: inline-block;
}

.page3-link.link-1 {
    left: 4px;
    top: 66px;
    /* background-color: #ff000099; */
}

.page3-link.link-2 {
    left: 75px;
    top: 65px;
    /* background-color: #ff09; */
}

.page3-link.link-3 {
    left: 4px;
    top: 115px;
    /* background-color: #00cd0099; */
}

.page3-link.link-4 {
    left: 75px;
    top: 115px;
    /* background-color: #0000cd99; */
}

.page3-link.link-5 {
    left: 4px;
    top: 162px;
    /* background-color: #5599; */
}

.page3-link.link-6 {
    left: 75px;
    top: 162px;
    /* background-color: #ae596599; */
}

.page .page4-link {
    position: absolute;
    left: 0;
    width: 60px;
    height: 30px;
    display: inline-block;
}

.page4-link.page4-link-1 {
    /* background-color: #cc09; */
    top: 61px;
}

.page4-link.page4-link-2 {
    /* background-color: #09a9; */
    top: 98px;
}

.page4-link.page4-link-3 {
    /* background-color: #55983299; */
    top: 134px;
}

.page4-link.page4-link-4 {
    /* background-color: #cd003599; */
    top: 166px;
    left: 3px;
    height: 19px;


}

.page4-link.page4-link-5 {
    /* background-color: #0024dc; */
    top: 186px;
    height: 20px;
    left: 3px;
}

.page4-link.play {
    /* background-color: #0024dc; */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    top: 97px;
    left: 60px;

}

/* transform: rotateX(130deg) rotateY(7deg) rotateZ(2deg) rotate(3deg) rotate3d(1, 1, 1, 0deg); */

/* .page.half-open::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg,
            #fff 45%,
            rgba(0, 0, 0, 0.12) 50%,
            transparent 51%);
    transition: width 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2)
} */

.page img {
    width: 100%;
    height: 100%;
    -webkit-image-resolution: 2dppx;
    /* وضوح تصویر 2 برابر */
    image-resolution: 2dppx;
    /* برای سایر مرورگرها */

}

.actions {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 100px;
    display: flex;
    display: -webkit-flex;
    display: -o-flex;
    display: -moz-flex;
    justify-content: end;
    -webkit-justify-content: end;
    column-gap: 10px;
    align-items: center;
    -webkit-align-items: center;
    z-index: 9;
    padding-left: 20px;
}

.actions .btn-action {
    border: none;
    background-color: unset;
    width: auto;
    padding: 0 5px;
    margin: 0;
    color: #fff;
    font-size: .8rem;
    /* text-decoration: underline; */
    display: flex;
    display: -webkit-flex;
    display: -o-flex;
    display: -moz-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    /* row-gap: 5px;
    -webkit-row-gap: 5px; */
    position: relative;
    cursor: pointer;
    color: #c1b689;
    transition: all .5s ease-in;
    -webkit-transition: all .5s ease-in;
    outline: none;
    font-weight: normal;
}

.btn-action::after {
    position: absolute;
    left: 0;
    top: 100%;
    height: 1px;
    background-color: #c1b689;
    content: '';
    width: 100%;
}

.btn-action img {
    width: 40px;
}

.btn-action:hover {
    /* filter: drop-shadow(1px 1px #e0e6e9); */
}

.btn-action:disabled {
    color: #f2d76a;
}

.btn-action span {
    text-decoration: unset;
    font-size: 20px;
    font-size: 20px;
    display: flex;
    display: -webkit-flex;
    display: -o-flex;
    display: -moz-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    font-weight: bold;
    color: #b89d58;

}


.actions .btn-next span {
    transform: rotate(-90deg);
}

.actions .btn-prev span {
    transform: rotate(90deg);

}

.modal-manual {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: #fff4;
    visibility: hidden;
    opacity: 0;
    transition: all .5s ease;
    -webkit-transition: all .5s ease;
}

.modal-manual.open {
    visibility: visible;
    opacity: 1;
}

.modal-manual .btn-close {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 50px;
    box-shadow: 0 0 1px #fff;
    -webkit-box-shadow: 0 0 1px #fff;
    height: 50px;
    display: flex;
    display: -webkit-flex;
    display: -o-flex;
    display: -moz-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    color: #fff;
    background-color: #fff5;
    border: 1px solid #a0a0a0;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    font-size: 30px;
    transition: all .5s ease;
    outline: none;
}

.modal-manual .btn-close:hover {
    box-shadow: 0 0 2px #000;
    -webkit-box-shadow: 0 0 2px #000;
    background-color: #fff2;

}

.modal-manual .modal-content-manual {
    /* background-color: #fff; */
    box-shadow: 0 0 10px -5px #000;
    -webkit-box-shadow: 0 0 10px -5px #000;
    border-radius: 10px;
    overflow: hidden;
    width: 500px;
    max-width: calc(100% -20px);
    position: absolute;
    left: 50%;
    top: 50%;
    height: auto;
    font-size: 0;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
}

.modal-content-manual video {
    width: 100%;
    max-height: 80%;
}