*{
    margin:0;
 padding:0;
 box-sizing: border-box;
 font-family: Verdana, Geneva, Tahoma, sans-serif;
} 
img{
    max-width: 100%;
}
h1 {
    color: rgb(71, 226, 89);
    text-align: center;
    padding :40px;
}
ul{
    list-style: none;
}
.page-header{
    background-color: rgb(11, 98, 69);
}
.preview{  
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
}
.preview video {
    background-color: aquamarine;
    width: 100%;
    border-radius: 20px;
    margin-top: 80px;
}
.screenshots{
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   column-gap: 40px;
   row-gap: 40px;
 
   padding-top: 80px;
   padding-bottom:80px ;
}
.screenshot{
max-width: 320px;
min-width: 280px;
border:5px solid rgb(0, 171, 20) ;
border-radius: 20px;
}
.screenshot img {
  width: 100%;
height: 100%;
object-fit: cover;
border-radius: 15px;
}
.game-wrapper{
    /* max-width: 1400px; */
    margin-right: auto;
    margin-left: auto;
    background-color: rgb(0, 0, 0);
    margin-bottom: 80px;
    position: relative;
}
.wegbl{
    outline: none;
}
.page-footer p {
background-color: rgb(99, 186, 0);
color: blueviolet;
padding: 100px;
text-align: center;
}

/* 健康值显示相关样式 */
#health-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    border: 1px solid rgb(0, 171, 20);
    transition: all 0.3s ease;
}

#health-display {
    display: flex;
    align-items: center;
}

#health-display::before {
    content: "❤️";
    margin-right: 8px;
    font-size: 20px;
}
#gameOverOverlay {
    display: none;
    /* 其他样式继承行内样式 */
}

#restartButton:hover {
    background: #45a049;
}

/* 计数器样式 */
.cube-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #00ff88;
    font-size: 1.2em;
    font-family: 'Arial Black', sans-serif;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 24px;
    border-radius: 10px;
    border: 2px solid #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* 收集时的脉冲动画 */
.pulse {
    transform: scale(1.1);
    color: #ff69b4;
    border-color: #ff69b4;
}
#gameWinOverlay {
    display: none;
}

#restartWinButton:hover {
    background: #45a049;
}