body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0; /* Light gray background */
}

#game-container {
    position: relative; /* Needed for overlay positioning */
    border: 2px solid black;
}

#maze-canvas {
    background-color: #eee;
    display: block; /* Remove any extra space below the canvas */
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black overlay */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#controls {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

#timer {
    font-size: 1.2em;
    margin-right: 15px;
}

#mute-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

#volume-slider {
    width: 80px;
    margin-left: 10px;
}


#action-btn {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50; /* Green */
    color: white;
    transition: background-color 0.3s;
}

#action-btn:hover {
    background-color: #45a049; /* Darker green on hover */
}

.hidden {
    display: none !important; /* Use !important to override other display properties */
}
