/****************************************/
/* Responsive styles for full screen  */
/****************************************/

/* Override base styles to make the game full screen */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#racer {
    position: fixed;
    z-index: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
}

#canvas {
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 100%;
}

/* Reposition UI elements */
#stats {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    top: auto !important;
    left: auto !important;
    z-index: 10 !important;
    background-color: rgba(0,0,0,0.5) !important;
    color: white !important;
    padding: 5px !important;
    border-radius: 5px !important;
}

#controls {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 20em;
    background-color: rgba(255,255,255,0.7);
    display: none !important;
}

#instructions {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 17em;
    background-color: rgba(255,255,255,0.7);
}

#mute {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

#hud {
    width: 100%;
}

/* Responsive design for controls */
@media (max-width: 768px) {
    #controls {
        width: 15em;
        font-size: 0.6em;
    }
    
    #instructions {
        width: 12em;
        font-size: 0.8em;
    }
}
