body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

h1 {
    margin-top: 10px;
    margin-bottom: 5px;
    color: #33ff33;
    text-shadow: 0 0 10px rgba(51, 255, 51, 0.7);
}

.game-container {
    position: relative;
    width: 90vw;
    max-width: 600px;
    height: 70vh; /* Reduced height to make room for controls */
    border: 2px solid #33ff33;
    margin-top: 20px;
    overflow: hidden;
    background-color: black;
}

.player {
    position: absolute;
    bottom: 10px;
    left: calc(50% - 25px);
    width: 50px;
    height: 30px;
    background-color: #33ff33;
    clip-path: polygon(0% 100%, 20% 60%, 40% 0%, 60% 0%, 80% 60%, 100% 100%);
}

.bullet {
    position: absolute;
    width: 4px;
    height: 15px;
    background-color: #fff;
}

.enemy {
    position: absolute;
    width: 40px;
    height: 30px;
    background-color: #ff3366;
    clip-path: polygon(0% 40%, 20% 0%, 80% 0%, 100% 40%, 80% 60%, 50% 100%, 20% 60%);
}

.score-container {
    display: flex;
    justify-content: space-between;
    width: 90vw;
    max-width: 600px;
    padding: 10px 0;
}

.game-over, .level-complete {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: #ff3366;
    text-align: center;
    display: none;
    z-index: 10;
}

.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.start-screen h1 {
    color: #33ff33;
    font-size: 36px;
    margin-bottom: 20px;
}

button {
    background-color: #33ff33;
    color: black;
    border: none;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #66ff66;
}

.controls {
    display: flex;
    justify-content: space-between;
    width: 90vw;
    max-width: 600px;
    margin-top: 10px;
}

.control-btn {
    width: 80px;
    height: 80px;
    background-color: rgba(51, 255, 51, 0.3);
    border: 2px solid #33ff33;
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.shoot-btn {
    width: 100px;
    height: 80px;
}

/* Add touch feedback to buttons */
.control-btn:active, button:active {
    background-color: #66ff66;
    transform: scale(0.95);
}