body {
    margin: 0px;
    padding: 80px;
    background-color: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size:12px;
    text-align: center;
    border: 0;
    background-image:url('bg.jpg');
    background-size: cover;
    
}
#game-info {
    font-size:14px!important;
    width:300px;
    float:right;
}

#score{
    font-size:14px!important;
}

#level{
    font-size:14px!important;
}

#top-score{
    font-size:14px!important;
}
#timer {
    font-size:14px!important;
}
#game-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 0 auto;
    touch-action: none; /* Prevent default touch behaviors */
}

#game-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none; /* Prevent default touch behaviors */
    user-select: none; /* Prevent text selection */
}



#game-container > div {
    position: relative;
    z-index: 5; /* Below canvas */
    margin:80px;
}

#score, #level, #top-score, #timer {
    margin-top: 10px;
    font-size: 24px;
}


#restart-button {
    position: absolute;
    top: 500px;             /* 100px from the top */
    left: 50%;             /* Start in the center horizontally */
    transform: translateX(-50%); /* Offset half its own width to truly center */
    z-index: 9999; 
    width: 400px;  
    border:0px;         /* Highest stacking context */
}

h1 {
    margin-top: 20px;
}

button {
    margin-top: 20px;
    padding: 20px;
    font-size: 18px;
    border-radius: 20px;
    position: relative;
    z-index: 15; /* Above canvas */
    user-select: none; /* Prevent text selection */
    border:1px solid #fff!important;
}

#game-over-overlay {margin:0px!important; font-size: 24px!important; height:100%;}

#intro-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    text-align: center;
    z-index: 1000; /* Ensure it's above other elements */
}

/* Instructions box */
#instructions {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
margin-top:100px;
    font-size: 16px;
}
h1 {
    color: #7DD8E8;
}
h2 {
    color: #ffcc00;
}
p {
    font-size: 16px;
    line-height: 1.5;
}
.highlight-green { color: #00ff00; font-weight: bold; }
.highlight-yellow { color: #ffff00; font-weight: bold; }
.highlight-red { color: #ff4444; font-weight: bold; }
/* Start button - Ensure it's on top and clickable */
#start-button {
    width: 100%;

    font-size: 18px;
    border-radius: 10px;
    background-color: #0a0a0a;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    z-index: 2000; /* 🔥 Ensure it's on top of everything */
    position: relative; /* Keep it within the flow of the container */
}


