/* Steve jobs' book */

@font-face {
    font-family: "Stempel-Garamond-W01-Roman";
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/Stempel-Garamond-W01-Roman.woff") format("woff");
}
/** {
	box-sizing: border-box;
}*/
body,
ul,
table,
form {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

div.book-body {
    scrollbar-width: none;
}
div.book-body::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 0;
    height: 0;
}
.animated {
    -webkit-transition: margin-left 0.2s ease-in-out;
    transition: margin-left 0.2s ease-in-out;
}

#canvas {
    width: calc(29.5vw * 2);
    height: 37.5vw;
}

.sj-book {
    width: calc(29.5vw * 2);
    height: 37.5vw;
}

.sj-book .own-size {
    width: calc(25.5vw);
    height: 34.5vw;
    overflow: hidden;
    border-radius: 10px !important;
}

#book-zoom {
    -webkit-transition: -webkit-transform 1s;
    transition: transform 1s;
}



.sj-book h1 {
    font-family: "Stempel-Garamond-W01-Roman";
    font-size: 38px;
    font-weight: lighter;
    margin: 20px 0;
    color: #333;
    -webkit-text-fill-color: #333;
    -webkit-text-stroke-color: white;
    -webkit-text-stroke-width: 0.005em;
}

.sj-book h2 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #444;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 400;
}

.sj-book .book-content {
    font-family: "Stempel-Garamond-W01-Roman";
    font-size: 16px;
    margin: 70px 40px;
}

.sj-book blockquote {
    color: #586078;
    margin: 10px 0;
    font-style: italic;
}

.sj-book blockquote:before {
    content: "\201C";
    color: #333d53;
    font-size: 20px;
}

.sj-book blockquote:after {
    content: "\201D";
    color: #333d53;
    font-size: 20px;
}

.sj-book cite {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 200;
    font-style: normal;
    color: #666;
}

.sj-book .book-content .center-pic {
    margin: 0;
    text-indent: 0;
    text-align: center;
}

.sj-book .zoom-this:hover {
    opacity: 0.9;
    cursor: pointer;
}

.sj-book .book-content p {
    text-indent: 18px;
    margin: 20px 0;
    line-height: 22px;
}

.sj-book .left-pic {
    float: left;
    margin-top: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
}

.animated {
    -webkit-transition: margin-left 0.2s ease-in-out;
    transition: margin-left 0.2s ease-in-out;
}

.sj-book .shadow {
    -webkit-transition: -webkit-box-shadow 0.5s;
    transition: box-shadow 0.5s;

    -webkit-box-shadow: none;
    box-shadow: none !important;

    background-size: cover;
    background-position: center;
}

.sj-book .page {
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.zoom-pic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.zoom-pic img {
    -webkit-box-shadow: 0 0 20px #999;
    box-shadow: 0 0 20px #999;
}

.sj-book .p1,
.sj-book .p2,
.sj-book .p3,
.sj-book .p111,
.sj-book .p1 {
    background-position: 0 0;
}

.sj-book .p1 .side {
    width: 5px;
    height: 600px;
    position: absolute;
    top: 0;
    left: 475px;
    background-image: -webkit-linear-gradient(left, #bbb, #ddd, #bbb);
    background-image: linear-gradient(left, #bbb, #ddd, #bbb);
    -webkit-transform: rotateY(-90deg);
    transform: rotateY(-90deg);
    -webkit-transform-origin: top right;
    transform-origin: top right;
    z-index: 100000;
}

.sj-book-transform div[page="1"] > div,
.sj-book-transform div[page="2"] > div {
    overflow: visible !important;
}

.sj-book .depth {
    /* background-image: url(../pics/pages-depth.png); */
    position: absolute;
    top: 7px;
    width: 16px;
    height: 590px;
}

.sj-book .front-side .depth {
    left: 4px;
    background-position: 0 0;
}

.sj-book .back-side .depth {
    right: 4px;
    background-position: right 0;
}

.sj-book .p2 {
    background-position: right center !important;
}

.sj-book .p3 {
    background-position: left center !important;
}

/* .sj-book .p111 {
    background-position: -960px 0 !important;
} */

/* .sj-book .p112 {
    background-position: -1440px 0 !important;
} */

.sj-book .hard {
    width: 480px;
    height: 600px;
    -webkit-box-shadow: none;
    box-shadow: none;
    background-color: #000;
    position: relative;
}

.sj-book .page-wrapper {
    -webkit-perspective: 2000px;
    perspective: 2000px;
    border-radius: 10px !important;
}

.page-wrapper div div{
    border-radius: 10px !important;
}



/*.sj-book .even{
	background-image:-webkit-linear-gradient(left, #fff 95%, #dadada 100%);
	background-image:linear-gradient(left, #fff 95%, #dadada 100%);
}*/

/*.sj-book .odd{
	background-image:-webkit-linear-gradient(right, #fff 95%, #cacaca 100%);
	background-image:linear-gradient(right, #fff 95%, #cacaca 100%);
}*/

.sj-book .loader {
    background-image: url(../pics/loader.gif);
    width: 22px;
    height: 22px;
    position: absolute;
    top: 280px;
    left: 219px;
}

.sj-book .page-number {
    color: #999;
    width: 100%;
    bottom: 25px;
    position: absolute;
    display: block;
    text-align: center;
    line-height: 30px;
    font-size: 11px;
}

.sj-book .table-contents {
    font-size: 16px;
    width: 300px;
    margin: 80px auto;
    color: #ccc;
}

.sj-book .table-contents li {
    list-style: none;
    line-height: 25px;
}

.sj-book .table-contents span {
    float: right;
}

.sj-book .table-contents a {
    float: left;
    width: 100%;
    clear: both;
    text-decoration: none;
    color: #333;
    margin: 2px 0;
    padding: 0 10px;
}

.sj-book .table-contents a:hover {
    background: #cad1ee;
    float: left;
    width: 100%;
    clear: both;
    text-decoration: none;
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

.sj-book .book-content .capital,
.sj-book .book-content .no-indent {
    text-indent: 0;
}

.sj-book .capital:first-letter {
    display: block;
    float: left;
    font-size: 300%;
    line-height: 70%;
    margin-right: 6px;
    margin-top: 7px;
    margin-left: 18px;
}

.ie8 .sj-book .even,
.ie9 .sj-book .even {
    background-image: url(../pics/gradient-page-left.jpg);
    background-position: right top;
    background-repeat: repeat-y;
}

.ie8 .sj-book .odd,
.ie9 .sj-book .odd {
    background-image: url(../pics/gradient-page-right.jpg);
    background-position: left top;
    background-repeat: repeat-y;
}
/*.book-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 30px;
    box-sizing: border-box;
    overflow: auto;
}*/
.book-body {
    min-height: calc(100vh - 90px);
    /* min-height: calc(100vh + 90px); */
    /* padding-block: 30px; */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: auto;
    margin-top: 75px;
}
.page ul,
.page ol {
    display: block;

    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 2vw;
    unicode-bidi: isolate;
}
.page ul {
    list-style-type: disc;
}

/* Btns CSS START HERE  */
button.btn-stroke-dark {
    background: #1f1f1f !important;
    box-shadow: 0px 1.07711px 0px #000000, 0px -1.07711px 0px #ded8b9 !important;
    border-radius: 2692.49px !important;
    position: relative !important;
    padding: 8px 15px !important;
    min-width: 95px !important;
    border: 0 !important;
}

button.btn-stroke-dark.btn-navigatee {
    min-width: auto !important;
    padding: 6px 8px !important;
    vertical-align: bottom;
}
button.btn-stroke-dark span,
a.unlimited-book-linkk span {
    font-style: normal;
    font-weight: 600;
    font-size: 9.72985px;
    line-height: 15px;
    background: linear-gradient(90deg, #ffeecc 4.29%, #ad9515 97.5%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    line-height: 16px;
}
#open-book,
#reopen-book,
#zoom-toggle {
    position: relative;
}
#open-book > img,
#reopen-book > img,
#zoom-toggle > img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: 250px;
    transform: translate(-50%, -50%);
    z-index: -1;
}
#zoom-toggle > img {
    max-width: 121px;
}
#reopen-book:before,
#open-book:before {
    content: "";
    position: absolute;
    width: 33.08px;
    height: 33.08px;
    left: -8px;
    top: -9px;
    /* background-image: url(../../assets/Flare.png); */
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-size: cover;
    mix-blend-mode: color-dodge;
    z-index: 9;
}
.unlimited-book {
    position: fixed;
    right: 0;
    top: 40px;
    max-width: 180px;
    z-index: 3;
}
a.unlimited-book-linkk {
    display: flex;
    justify-content: end;
    background: #1f1f1f !important;
    box-shadow: 0px 1px 0px #000000, 0px -1.07711px 0px #ded8b9 !important;
    border-radius: 100px 0px 0px 100px !important;
    position: relative !important;
    padding: 8px 10px !important;
    min-width: 95px !important;
    border: 0 !important;
    gap: 5px;
    color: #fff;
    font-size: 9px;
    text-decoration: none;
    font-family: "Arial";
    align-items: center;
}
img.img-bgg {
    position: absolute;
    top: 50%;
    left: 28%;
    transform: translate(-50%, -50%);
    max-width: 329px;
}
@media screen and (min-width: 1601px) {
    #canvas {
        width: calc(33.6567vw * 2);
        height: 41.6631vw;
    }
    
    .sj-book {
        width: calc(33.6567vw * 2);
        height: 41.6631vw;
    }
    
    .sj-book .own-size {
        width: calc(30.5567vw);
        height: 39.5631vw;
      
    }
  }
  /* @media screen and (min-width: 1080px) and (min-height: 651px)  and (min-width: 768px)  and (max-width:1600px)  {
    #canvas {
        width: calc(31vw * 2);
        height: 39vw;
    }

    .sj-book {
        width: calc(31vw * 2);
        height: 39vw;
    }

    .sj-book .own-size {
        width: calc(28.5vw);
        height: 36.5vw;
    }
  } */
  @media (max-width: 1600px) and (min-height: 751px)   and (min-width: 768px) and (orientation: landscape){
  
    #canvas {
        width: calc(32vw * 2);
        height: 40vw;
    }

    .sj-book {
        width: calc(32vw * 2);
        height: 40vw;
    }

    .sj-book .own-size {
        width: calc(29.5vw);
        height: 37.5vw;
    }

}
  @media (max-width: 1600px) and (min-height: 751px)   and (min-width: 768px) and (orientation: portrait){
    /* #book-model {
        width: 130%;
        height: 70vh;
        position: absolute;
        top: -19%;
        left: -15%;
    } */
    #canvas {
        width: calc(30vw * 2);
        height: 48vw;
    }

    .sj-book {
        width: calc(40vw * 2);
        height: 48vw;
    }

    .sj-book .own-size {
        width: calc(37.5vw);
        height: 47.5vw;
    }
    #book-model {
        width: 140%;
        height: 154%;
        position: absolute;
        /* top: -30% !important; */
        left: -20%;
    }
    .book-body{
        margin-top:70px
    }
}
  @media (max-width: 1280px) and (max-height: 750px)   and (min-width: 768px) {

    #canvas {
        width: calc(30vw * 2);
        height: 38vw;
    }

    .sj-book {
        width: calc(30vw * 2);
        height: 38vw;
    }

    .sj-book .own-size {
        width: calc(27.5vw);
        height: 35.5vw;
    }
    #book-model {
        width: 140%;
        height: 154%;
        position: absolute;
        /* top: -30% !important; */
        left: -20%;
    }
    .book-body{
        margin-top:70px
    }
}
@media (max-width: 1280px) and (max-height: 600px)   and (min-width: 768px) {
    /* #book-model {
        width: 130%;
        height: 70vh;
        position: absolute;
        top: -19%;
        left: -15%;
    } */
    #canvas {
        width: calc(28vw * 2);
        height: 36vw;
    }

    .sj-book {
        width: calc(28vw * 2);
        height: 36vw;
    }

    .sj-book .own-size {
        width: calc(25.5vw);
        height: 33.5vw;
    }
    #book-model {
        width: 140%;
        height: 154%;
        position: absolute;
        /* top: -30% !important; */
        left: -20%;
    }
    .book-body{
        margin-top:70px
    }
}


@media (min-width: 768px) {
    .page p,
    .page ul,
    .page ol {
        margin-bottom: 6px;
    }
    .page p,
    .page ul,
    .page ol {
        font-size: 0.874vw;
    }
    .only-mobile {
        /* display: none; */
    }
}
@media (max-width: 1201px) {
    .page p,
    .page ul,
    .page ol {
        margin-bottom: 8px;
    }
}
@media (max-width: 1000px) {
    .page p,
    .page ul,
    .page ol {
        margin-bottom: 5px;
    }
}
@media (max-width: 1200.98px) and (min-width: 768px) {
    .sj-book .own-size {
        font-size: 1vw;
    }
    .page p,
    .page ul {
        margin-bottom: 5px;
    }
}

@media (max-width: 767px) {
    div.book-body {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        /*    min-height: auto;*/
        scrollbar-width: none;
    }
    div.book-body::-webkit-scrollbar {
        -webkit-appearance: none;
        width: 0;
        height: 0;
    }

    #canvas {
        width: calc(42.91vw * 2);
        height: 54.12vw;
        margin: 0px auto;
    }

    .sj-book {
        width: calc(42.91vw * 2);
        height: 54.12vw;
    }

    .sj-book .own-size {
        width: calc(37.87vw);
        height: 50.34vw;
        overflow: hidden;
        border-radius: 10px !important;
    }


    #book-zoom {
        transform: scale(1.8);
    }

    .page p,
    .page ul,
    .page ol {
        font-size: 0.88vw;
        margin-top: 0;
        /* margin-bottom: 2px !important; */
        line-height: 1.4;
    }
    .sj-book .own-size.page > div {
        padding: 8% !important;
    }
    .page h1,
    .page h2,
    .page h3,
    .page h5,
    .page h6,
    .page h4 {
        font-size: 1.3vw;
    }
}



@media (orientation: landscape) and (max-width: 1023px) and (pointer: coarse) {
    #canvas,
    .sj-book {
        width: calc(22.063vw * 2);
        height: 26.959vw;
    }
    .sj-book .own-size {
        width: calc(19.163vw);
        height: 25.359vw;
    }
    #canvas {
        margin: 0px auto;
    }
    .page p,
    .page ul,
    .page ol {
        font-size: 0.55vw;
        margin-top: 0;
        margin-bottom: 3px;
    }
    .page > * {
        margin-bottom: 3px;
        margin-top: 0 !important;
    }
    .sj-book .own-size.page > div {
        padding: 10px !important;
    }
    .book-body {
        padding-block: 20px;
    }
    .book-body {
        min-height: calc(100vh - 57px);
    }
}
