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

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    background-color: #000;
    overflow: hidden;
    border: 4px solid #444;
    box-shadow: 0 0 20px #2a5ba7;
    z-index: 1;
}


#game-container:after {
    content: "";
    background-image: url(./images/sky.jpg);
    background-size: 825px;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.3;
    animation: scrollSky 20s linear infinite;
    z-index: -1;
}

@keyframes scrollSky {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 1000px; /* Adjust for smooth scrolling */
    }
}



#score-display {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 20px;
    z-index: 100;
}

#controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 100;
}

#controls button {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    background-color: #4a9ff5;
    color: white;
    border: none;
    border-radius: 3px;
}

#controls button:hover {
    background-color: #2a5ba7;
}

#high-score-display {
    color: white;
    font-size: 16px;
}

.player {
    position: absolute;
    width: 55px;
    height: 62px;
    /* background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><polygon points="25,0 10,50 25,40 40,50" fill="%23ffffff"/></svg>');*/
    background-image: url('./images/fighter-jet.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

.bullet {
    position: absolute;
    width: 5px;
    height: 15px;
    background-color: yellow;
    border-radius: 2px;
    z-index: 5;
}

.asteroid {
    position: absolute;
    border-radius: 50%;
    z-index: 5;
}

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

#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;
    color: white;
    z-index: 200;
}

#start-screen h1 {
    font-size: 48px;
    color: #4a9ff5;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #2a5ba7;
}

#start-screen p {
    font-size: 20px;
    margin-bottom: 30px;
}

#start-button {
    padding: 15px 30px;
    font-size: 20px;
    background-color: #4a9ff5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#start-button:hover {
    background-color: #2a5ba7;
    transform: scale(1.05);
}



#difficulty-buttons {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 150;
}

.difficulty-button {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #2a5ba7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.difficulty-button.active {
    opacity: 1;
    background-color: #4a9ff5;
    font-weight: bold;
}



#touch-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 300;
    display: none;
}

.touch-row {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.touch-button {
    width: 60px;
    height: 60px;
    font-size: 24px;
    background-color: rgba(74, 159, 245, 0.8);
    border: none;
    border-radius: 10px;
    color: white;
    margin: 5px;
    touch-action: none;
}


#touch-controls {
    display: none !important;
}

