
*{
    margin:0;
 padding:0;
 box-sizing: border-box;
 font-family: Verdana, Geneva, Tahoma, sans-serif;
} 
img{
    max-width: 100%;
}
h1 {
    color: rgb(255, 117, 117);
    text-align: center;
    padding :40px;
}
ul{
    list-style: none;
}
.page-header{
    background-color: rgb(0, 0, 0);
}
.preview{  
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
}
.preview video {
    background-color: rgb(255, 132, 98);
    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(255, 140, 140) ;
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(255, 231, 110);
    margin-bottom: 80px;
    position: relative;
}
.wegbl{
    outline: none;
}
.page-footer p {
background-color: rgb(15, 2, 20);
color: rgb(226, 43, 98);
padding: 100px;
text-align: center;
}
/* 健康值显示相关样式 */
#health-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background-color: rgba(255, 179, 179, 0.6);
    padding: 10px 15px;
    border-radius: 8px;
    color: rgb(246, 255, 187);
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(78, 8, 39, 0.5);
    border: 1px solid rgb(234, 205, 255);
    transition: all 0.3s ease;
}
#health-display {
    display: flex;
    align-items: center;
}
#health-display::before {
    content: "⭐";
    margin-right: 8px;
    font-size: 20px;
}
#game-over-overlay {
    position: absolute;
 top: 0;
  left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.8);
   display: flex;
   flex-direction: column;
  align-items: center;
   justify-content: center;
  z-index: 100;
    }
    
#game-over-overlay h2 {
 color: red;
   font-size: 3em;
  margin-bottom: 20px;
    }
    
 #game-over-overlay button {
   padding: 15px 30px;
   font-size: 1.5em;
    cursor: pointer;
   background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    }
    
 #game-over-overlay button:hover {
 background-color: #45a049;
    }
    #victory-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 100;
    }
    
    #victory-overlay h2 {
        color: #4CAF50;
        font-size: 3em;
        margin-bottom: 20px;
        text-align: center;
    }
    
    #victory-overlay button {
        padding: 15px 30px;
        font-size: 1.5em;
        cursor: pointer;
        background-color: #2196F3;
        color: white;
        border: none;
        border-radius: 5px;
        transition: background-color 0.3s;
    }
    
    #victory-overlay button:hover {
        background-color: #1976D2;
    }