* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: none;
}

body {
    background-color: #0a0a2a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #fff;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100vh;
    max-height: 600px;
    margin: 0 auto;
}

#gameCanvas {
    background-color: #000;
    border: 2px solid #333;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 600px;
}

.game-info {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 20px;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    z-index: 1;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #333;
    z-index: 2;
}

.game-over h2 {
    color: #ff4444;
    margin-bottom: 1rem;
    font-size: 2.5em;
}

.game-over p {
    margin-bottom: 1.5rem;
    font-size: 1.2em;
}

#restartButton {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#restartButton:hover {
    background-color: #45a049;
}

.hidden {
    display: none;
}

/* Mobile Controls */
.mobile-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1;
}

.direction-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.shoot-btn {
    background-color: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
    font-size: 18px;
    width: 80px;
    height: 80px;
}

.control-btn:active {
    background-color: rgba(255, 255, 255, 0.3);
}

.shoot-btn:active {
    background-color: rgba(255, 0, 0, 0.5);
}

/* Hide mobile controls on desktop */
@media (min-width: 769px) {
    .mobile-controls {
        display: none;
    }
}

/* Adjust game info position on mobile */
@media (max-width: 768px) {
    .game-info {
        font-size: 1em;
        gap: 10px;
    }
    
    .game-over h2 {
        font-size: 2em;
    }
    
    .game-over p {
        font-size: 1em;
    }
} 