body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #2c3e50; /* Fallback background color */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

#backgroundVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1; /* Ensure it stays behind other content */
}

#gameContainer {
    position: relative;
    width: 90%;
    max-width: 600px;
    height: 80%;
    background-color: rgba(39, 174, 96, 0.8); /* Semi-transparent background to see video */
    border: 2px solid #34495e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#scoreBoard, #timer {
    position: absolute;
    color: white;
    font-size: 20px;
    display: none; /* Hide initially */
}

#scoreBoard {
    top: 10px;
    left: 10px;
}

#timer {
    top: 10px;
    right: 10px;
}

#startScreen, #gameOverScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    display: none;
}

#startScreen {
    display: block;
}

#gameOverScreen {
    display: none;
}

#startButton, #reloadButton {
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 600px) {
    body {
        flex-direction: column;
        justify-content: flex-start;
    }
    #gameContainer {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    #scoreBoard, #timer {
        font-size: 18px;
    }
    #startButton, #reloadButton {
        font-size: 18px;
        padding: 8px 16px;
    }
}



