
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Press Start 2P', monospace;
    color: white;
    overflow: hidden;
}

#ui, #controlsInfo {
    font-family: 'Press Start 2P', monospace;
    /* Your existing styles */
}


#gameContainer {
    position: relative;
    width: 800px;
    height: 500px;
}

#gameCanvas {
    border: 1px solid #444;
    background-color: #000;
    display: block;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#ui {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 16px;
    z-index: 10;
}

#controlsInfo {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 14px;
    color: #aaa;
    z-index: 10;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: #666;
}

.mobile-controls {
    display: none;
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

@keyframes shield-pulse {
    0% { transform: scale(1.5); opacity: 0.8; box-shadow: 0 0 20px 10px rgba(100, 200, 255, 0.8); }
    100% { transform: scale(1.0); opacity: 0; box-shadow: 0 0 0 0 rgba(100, 200, 255, 0); }
}

@media (max-width: 800px) {
    #gameContainer {
        width: 100vw;
        height: 100vh;
    }
    
    .mobile-controls {
        display: block;
    }
}