* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

img {
    max-width: 100%;
}

h1 {
    color: rgb(251, 124, 206);
    text-align: center;
    padding: 40px;
}

ul {
    list-style: none;
}

.page-header {
    background-color: black;
}

.preview {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.preview video {
    background-color: black;
    width: 100%;
    border: 5px solid black;
    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: 400px;
    min-width: 400px;
    border-radius: 20px;
    border: 5px solid black;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.game-wrapper {
    margin-left: auto;
    margin-right: auto;
    background-color: black;
    margin-bottom: 80px;
    position: relative;
}

.webgl {
    outline: none;
}

.page-footer p {
    background-color: black;
    color: white;
    padding: 100px;
    text-align: center;
}

.instructions {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
}

.instructions h2 {
    margin-bottom: 15px;
    font-size: 24px;
}

.instructions ul {
    margin: 15px 0;
    display: inline-block;
    text-align: left;
}

.instructions li {
    margin-bottom: 8px;
}

#overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

#startButton {
    padding: 15px 30px;
    font-size: 20px;
    background-color: #1a5a1c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#startButton:hover {
    background-color: #d8e682;
}

#score, #inGameScore {
    color: white;
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(243, 118, 118, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
}

#inGameScore {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    display: none;
}

#gameMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    border-radius: 10px;
    z-index: 2;
    display: none;
    pointer-events: none;
}