body {
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    /* overflow: hidden; Prevents mobile scrolling */
    overflow-x: hidden; /* Prevents mobile scrolling */
}

h1 {
    color: #0f0;
    font-size: 1.5em; /* Smaller font for mobile */
}

canvas {
    background-color: #000;
    border: 2px solid #0f0;
    display: block;
    /* margin: 10px auto; */
    margin: 5px auto;
    width: 95vw; /* Make canvas responsive to viewport width */
    height: 80vh; /* Make canvas responsive to viewport height */
}
/* Media query for mobile devices (screens up to 768px wide) */
@media (max-width: 768px) {
    canvas {
        height: 70vh; /* Reduced height specifically for mobile */
    }
}
#game-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1em; /* Smaller font for mobile */
    margin-top: 5px;
}

.hidden {
    display: none;
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border: 2px solid #0f0;
    border-radius: 10px;
    /* add this */
    z-index: 100; /* Ensure it's on top of other elements */
}

#game-over h2 {
    color: #f00;
    font-size: 2em;
}

#game-over button {
    font-size: 1.2em;
    padding: 8px 16px;
    cursor: pointer;
    background-color: #0f0;
    border: none;
    color: #000;
    border-radius: 5px;
}