﻿
/*-----單頁模式縮圖----*/
#thumb-container-mb {
    display: inline-grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap: 8px;
    z-index:50;
    position:relative;
    /*max-height:80vh !important;
    justify-content:center;*/
}

    #thumb-container-mb div {

        text-align: center;
    }

        #thumb-container-mb div > img{
            width:100px;
        }

        #thumb-container-mb div > img.active {
            border: solid 3px var(--active-color);
        }
#thumb-backtop {
    border: 0;
    color:#fff;
    background-color: transparent;
    outline: none;
    position: fixed;
    bottom: 70px;
    right: 0px;
    
}
    #thumb-backtop > i {
        font-size: 2em !important;
    }
/*------------------------------*/
/*-----下方縮圖----*/
#thumb-zone {
    display: flex;
    align-content: center;
    align-items: stretch;
    width: 96%;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    /* background-color: black;*/
    height: 85px;
    bottom: -85px;
    z-index: 10;
}


#scroll-left, #scroll-right {
    position: relative;
    background-color: var(--bar-color);
    color: var(--book-font-color);
    width: 24px;
    cursor: pointer;
    z-index: 11;
}

#scroll-right {
    border-radius: 0 8px 8px 0;
}

#scroll-left {
    border-radius: 8px 0 0 8px;
}

    #scroll-left:hover, #scroll-right:hover {
        background-color: #73b94e;
    }

    #scroll-left > i, #scroll-right > i {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
    }

#thumb-container {
    width: 100%;
    overflow: hidden;
    display: inline-flex;
    flex-wrap: nowrap;
    flex-direction: row;
    flex-grow: 1;
    background-color: rgba(0,0,0,.5);
    border-top: solid 2px #328d1c;
}

    #thumb-container div {
        border: solid 1px #fff;
        cursor: pointer;
        margin-left: 4px;
        margin-right: 4px;
        display: felx;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        /*var(--book-font-color)*/
        white-space: nowrap;
        /*z-index:300;*/
    }

        #thumb-container div img {
            height: 80px;
        }

        #thumb-container div:first-child {
            margin-left: 0;
        }

        #thumb-container div:last-child {
            margin-right: 0;
        }

        #thumb-container div.active {
            border: solid 4px var(--active-color);
        }

            #thumb-container div.active img {
                height: 76px;
            }

.mask-temp {
    width: 100px;
    height: 100px;
    z-index: 101;
    background-color: transparent;
}


/*-----右方縮圖----*/
#thumb-zone_r {
    position: fixed;
    right: -120px;
    top: 50px;
    width: 120px;
    height: 80vh;
    z-index: 10;
    /*box-shadow: -2px 2px 10px rgba(0,0,0,.5);*/
    display: flex;
    flex-direction: column;
}

#scroll-up, #scroll-down {
    position: relative;
    background-color: var(--bar-color);
    color: var(--book-font-color);
    height: 24px;
    width: 100%;
    cursor: pointer;
    z-index: 100;
}

#scroll-up {
    border-radius: 8px 8px 0 0;
}

#scroll-down {
    border-radius: 0 0 8px 8px;
}

    #scroll-up:hover, #scroll-down:hover {
        background-color: #73b94e;
    }

    #scroll-up > i, #scroll-down > i {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
    }

#thumb-container_r {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: inline-flex;
    flex-wrap: nowrap;
    flex-direction: column;
    background-color: rgba(255,255,255,.8);
    border-left: solid 1px var(--bar-color);
    border-right: solid 1px var(--bar-color);
}

    #thumb-container_r img {
        height: 80px;
    }

    #thumb-container_r div {
        border: solid 1px #bbb;
        cursor: pointer;
        margin-top: 4px;
        margin-bottom: 4px;
        /*height: 80px;*/
        align-self: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        #thumb-container_r div:first-child {
            margin-top: 0;
        }

        #thumb-container_r div:last-child {
            margin-bottom: 0;
        }

        #thumb-container_r div.active {
            border: solid 4px var(--active-color);
        }

#thumb-container_r__________::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #007bff;
    position: absolute;
    top: calc(50% - 10px);
    left: -20px;
    z-index: 1000;
}

.mask-temp {
    width: 100px;
    height: 100px;
    z-index: 101;
    background-color: transparent;
}

.switch {
    position: absolute;
    background-color: var(--bar-color);
    color: var(--book-font-color);
    /* -webkit-writing-mode: vertical-lr;
    writing-mode: vertical-lr;*/
    user-select: none;
    cursor: pointer;
    border-radius: 6px 0 0px 6px;
    padding: 5px;
    text-align: center;
    display: none;
}
    .switch:focus{
        border:solid 2px black;
    }

    .switch.right {
        top: 10px;
        left: -30px;
        width: 30px;
        border-radius: 6px 0 0px 6px;
    }

    .switch.bottom {
        top: -35px;
        right: 30px;
        height: 35px;
        border-radius: 6px 6px 0 0px;
        z-index: 100;
    }

#img-mask {
    position: absolute;
    justify-content: center;
    align-content: center;
    align-items: center;
    display: flex;
    background-color: rgba(0,0,0,.5);
    color: var(--book-font-color);
    font-weight: bold;
    font-size: 0.8em;
    top: 0;
    left: -1000px;
    z-index: 15;
    user-select: none;
    cursor: pointer;
}
