﻿#flipbook {
    width: 800px;
    height: 600px;
    /*box-shadow: 0 0 6px rgba(0,0,0,0.5);*/
}
.shadow {
    -webkit-transition: -webkit-box-shadow 0.5s;
    -moz-transition: -moz-box-shadow 0.5s;
    -o-transition: -webkit-box-shadow 0.5s;
    -ms-transition: -ms-box-shadow 0.5s;
    -webkit-box-shadow: 0 0 10px #999;
    -moz-box-shadow: 0 0 10px #999;
    -ms-box-shadow: 0 0 10px #999;
    -o-box-shadow: 0 0 10px #999;
    box-shadow: 0px 0px 10px #999;
}
/*每頁未載入前loading*/
.page img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    background: #eee url("data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'> <path fill='%23999' d='M43.935,25.145c0-10.318-8.364-18.682-18.682-18.682c-10.318,0-18.682, 8.364-18.682,18.682h4c0-8.094,6.588-14.682,14.682-14.682c8.094,0, 14.682,6.588,14.682,14.682H43.935z'> <animateTransform attributeType='xml' attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/> </path> </svg>") center center no-repeat;
}

    .page img.lazyloaded {
        background: none; /* 載入完成移除 spinner */
    }

/*兩頁中間立體陰影*/
#flipbook .even .gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -webkit-gradient(linear, left top, right top, color-stop(0.95, rgba(0, 0, 0, 0)), color-stop(1, rgba(0, 0, 0, 0.2)));
    background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 95%, rgba(0, 0, 0, 0.1) 100%);
    /*background-image: -moz-linear-gradient(left, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);
    background-image: -ms-linear-gradient(left, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);
    background-image: -o-linear-gradient(left, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);
    background-image: linear-gradient(left, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);*/
}

#flipbook .odd .gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -webkit-gradient(linear, right top, left top, color-stop(0.95, rgba(0, 0, 0, 0)), color-stop(1, rgba(0, 0, 0, 0.2)));
    background-image: -webkit-linear-gradient(right, rgba(0, 0, 0, 0) 95%, rgba(0, 0, 0, 0.1) 100%);
    background-image: -moz-linear-gradient(right, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);
    background-image: -ms-linear-gradient(right, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);
    background-image: -o-linear-gradient(right, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);
    background-image: linear-gradient(right, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);
}



/*翻頁時的陰影*/
#flipbook .odd {
    box-shadow: 5px 5px 10px rgba(0,0,0,.5);
    background: -webkit-gradient(linear, right top, left top, color-stop(0.95, #FFF), color-stop(1, #DADADA));
    -webkit-box-shadow: inset 0 0 5px #666;
    -moz-box-shadow: inset 0 0 5px #666;
    -o-box-shadow: inset 0 0 5px #666;
    -ms-box-shadow: inset 0 0 5px #666;
    box-shadow: inset 0 0 5px #666;
}

#flipbook .even {
    background: -webkit-gradient(linear, left top, right top, color-stop(0.95, #fff), color-stop(1, #dadada));
    -webkit-box-shadow: inset 0 0 5px #666;
    -moz-box-shadow: inset 0 0 5px #666;
    -o-box-shadow: inset 0 0 5px #666;
    -ms-box-shadow: inset 0 0 5px #666;
    box-shadow: inset 0 0 5px #666;
}
.page {
    width: 400px;
    height: 600px;
    background: white;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
    border:solid 1px #888;
}
.page>span{
    position:absolute;
    top:100px;
    left:50%;
    transform:translateX(-50%);
}
/*每頁未載入前loading*/
.page img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    background: #eee url("data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'> <path fill='%23999' d='M43.935,25.145c0-10.318-8.364-18.682-18.682-18.682c-10.318,0-18.682, 8.364-18.682,18.682h4c0-8.094,6.588-14.682,14.682-14.682c8.094,0, 14.682,6.588,14.682,14.682H43.935z'> <animateTransform attributeType='xml' attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/> </path> </svg>") center center no-repeat;
}

.jumpPage, .change-size {
    border: solid 1px #328d1c;
    background-color: #fff;
    color: #3b8911;
    border-radius: 5px;
    padding: 0 4px;
    font-size: 1.2em;
    cursor: pointer;
    margin: 0 2px;
    height: 36px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#pagetbx {
    text-align: center;
    width: 100px;
    height: 36px;
    border: unset;
    outline: none;
    border-radius: 8px;
    background-color: transparent;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
}

    #pagetbx::placeholder {
        color: #fff;
        opacity: 1;
    }
    /* 標準寫法 */
    #pagetbx:-ms-input-placeholder {
        color: #fff;
    }
    /* IE10-11 */
    #pagetbx::-ms-input-placeholder {
        color: #fff;
    }
    /* Edge 舊版 */
    #pagetbx::-webkit-input-placeholder {
        color: #fff;
    }
    /* Chrome/Safari */
    #pagetbx::-moz-placeholder {
        color: #fff;
        opacity: 1;
    }
#jump-msg {
    position: absolute;
    border-radius: 6px;
    top: 50px;
    left: 50%;
    transform: translate(-50%);
    z-index: 10;
    padding: 6px;
    background-color: rgba(255,255,255,.8);
    min-width: 120px;
    display: none;
}


@media (max-width:768px) {

    #flipbook .even .gradient, #flipbook .odd .gradient {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: -webkit-gradient(linear, right top, left top, color-stop(0.95, rgba(0, 0, 0, 0)), color-stop(1, rgba(0, 0, 0, 0.5)));
        background-image: -webkit-linear-gradient(right, rgba(0, 0, 0, 0) 95%, rgba(0, 0, 0, 0.2) 100%);
        background-image: -moz-linear-gradient(right, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);
        background-image: -ms-linear-gradient(right, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);
        background-image: -o-linear-gradient(right, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);
        background-image: linear-gradient(right, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);
    }
}