/*  * 选取所有元素 */
*{  
    /* 调整与窗口的距离 */
    margin: 0;
    padding: 0;
    /* 盒子模型 整体大小不变,盒子整体尺寸固定,更好控制布局 */
    box-sizing: border-box;
    /* 禁止用户选中网页内容 */
    user-select: none; 
}
body{
    background-image: url(./pic/新年抽奖-bg.png);
    background-position: center;
    background-size: cover;
    /* 设置背景高度为窗口的百分百 */
    height: 100vh;
    /* flex 弹性盒子 */
    display: flex;
    /* 网页内容水平居中 */
    justify-content: center;
    /* 垂直居中 */
    align-items: center;
    overflow: hidden;
}
.box{
    /* 文本居中 */
    text-align: center;
}
/* 图片窗口 */
.view{
    width: 30vh;
    height: 65vh;
    /* border: 1px solid red; */
    /* 超出的部分隐藏 */
    overflow: hidden;
    border-radius: 2vh;
}
/* 图片轨道 */
.track{
    width: 60vh;
    /* border: 1px solid blue; */
    /* 轨道中的内容水平排列 */
    display: flex;
    /* 给轨道移动添加过渡动画 */
    /*                  过渡时间  匀速 */
    transition: transform 0.5s linear;
}
/* 轨道中的图片 */
.track img{
    width: 30vh;
    height: 65vh;
    border-radius: 10px;
    border-radius: 2vh;
    /* 防止图片被压缩 */
    flex-shrink: 0;
    /* 是图片尽可能的填满盒子 但原来宽高比例不变 */
    /* 适用前提 图片已设置了宽高属性 */
    object-fit: cover;
}
#btn{
    width: 26vh;
    height: 6vh;
    font-size: 3vh;

    background-color: transparent;
    background-image: url(./pic/btn.png);
    background-size: cover;
    background-position: center;
    color: white;
    border: none;

    cursor: grab;

    margin-top: 4vh;
}

/* 遮罩 */
.mask{
    /* 固定 */
    position: fixed;
    left: 0;
    top: 0;

    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);

    /* 图片居中 */
    /* 隐藏 */
    display: none;
    align-items: center;
    justify-content: center;
}  
/* 点击图片后 放大有一个限度 */
.mask img{
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 2vh;
} 

#swith{
    position: absolute;
    top: 30px;
    right: 70px;
    padding: 8px 14px;

    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: grab;
}
#swith:hover{
    background-color: rgba(184, 103, 12, 0.993);
    border-top-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.snow{
    color: crimson;
    /* text-shadow: 0 0 2px #000,0 0 4px #000; */
    /* 决定定位 */
    position: absolute;
    /* 初始y坐标 */
    top: 0px;
    /* 鼠标显示小手 */
    cursor: grab;
}

