/* 页面基础设置 */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    overflow: hidden;

    background: black;
}


/* 图片查看器 */

#viewer {
    position: fixed;

    left: 0;
    top: 0;

    width: 100vw;
    height: 100vh;

    overflow: hidden;
}


/* 所有图片 */

#viewer img {
    position: absolute;

    left: 50%;
    top: 50%;

    /*
     * 图片稍微放大。
     * 这样配合视差移动时，边缘不会露出黑色。
     */
    width: calc(100% + 40px);
    height: calc(100% + 40px);

    transform: translate(-50%, -50%);

    object-fit: cover;

    user-select: none;
    pointer-events: none;
}


/* 当前图片 */

#current-image {
    z-index: 2;

    opacity: 1;
}


/* 下一张图片 */

#next-image {
    z-index: 1;

    opacity: 0;
}


/* 鼠标反色圆圈 */

#cursor-circle {
    position: fixed;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    pointer-events: none;

    z-index: 100;

    background: white;

    mix-blend-mode: difference;

    transform: translate(-50%, -50%);

    /*
     * 默认隐藏
     */
    opacity: 0;

    /*
     * 出现/消失时稍微淡入淡出
     */
    transition: opacity 0.15s ease;
}


/*
 * 鼠标位于网页内部时显示圆圈
 */

body.mouse-inside #cursor-circle {
    opacity: 1;
}

