body {
    background-color: #000;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    text-align: center;
}

.container {
    position: relative;
}

h1 {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #0f0, 0 0 40px #0f0, 0 0 50px #0f0, 0 0 60px #0f0, 0 0 70px #0f0;
}

canvas {
    background-color: #000;
    border: 2px solid #0f0;
    box-shadow: 0 0 20px #0f0;
}

.game-info {
    display: flex;
    justify-content: space-between;
    width: 600px;
    margin: 10px auto;
    font-size: 1.2em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #111;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 20px #f0f;
}

.high-scores {
    margin-top: 20px;
}

#highScoreList {
    list-style: none;
    padding: 0;
}

#highScoreList li {
    padding: 5px;
    border-bottom: 1px solid #333;
}

.touch-controls {
    display: none; /* Hidden by default, shown on touch devices */
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 100px;
    left: 0;
}

.touch-controls div {
    position: absolute;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#touch-left {
    left: 0;
    width: 25%;
}

#touch-right {
    left: 25%;
    width: 25%;
}

#touch-shoot {
    right: 0;
    width: 50%;
}

#touch-left::before {
    content: "◀";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: white;
}

#touch-right::before {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: white;
}

#touch-shoot::before {
    content: "🚀";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
}

@media (hover: none) and (pointer: coarse) {
    .touch-controls {
        display: block;
    }
}

#version {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.8em;
    color: #555;
}

.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.welcome-message {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.welcome-message h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #fff, 0 0 20px #0f0, 0 0 30px #0f0;
    font-family: 'Courier New', Courier, monospace;
}

.welcome-message p {
    font-size: 1.2em;
    opacity: 0.8;
    font-style: italic;
    font-family: 'Courier New', Courier, monospace;
}

.kick-start-btn {
    font-size: 2em;
    padding: 20px 40px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    border: none;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    animation: gradientShift 3s ease infinite, bounce 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

.kick-start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
