body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    font-family: Arial, sans-serif;
    color: #fff;
    user-select: none;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#player {
    position: absolute;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    background-color: #00ffff;
    clip-path: polygon(50% 0%, 0% 100%, 50% 80%, 100% 100%);
    box-shadow: 0 0 10px #00ffff;
    z-index: 10;
}

.bullet {
    position: absolute;
    width: 4px;
    height: 15px;
    background-color: #ffff00;
    border-radius: 2px;
    box-shadow: 0 0 5px #ffff00;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.enemy {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #ff4444;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 10px #ff4444;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.explosion {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.8) 0%, rgba(255, 165, 0, 0.6) 40%, rgba(255, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    z-index: 1;
}

#score-container {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    text-shadow: 0 0 10px #00ffff;
    z-index: 20;
}

#health-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
}

.health-bar {
    width: 150px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ffff;
    border-radius: 10px;
    overflow: hidden;
}

#health-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00ff00, #88ff00);
}

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

#game-over {
    display: none;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #ff0000;
}

button {
    padding: 15px 30px;
    font-size: 24px;
    background-color: #00ffff;
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 0 20px #00ffff;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px #00ffff;
}

#title {
    font-size: 64px;
    margin-bottom: 40px;
    text-shadow: 0 0 30px #00ffff;
}

#instructions {
    margin-top: 30px;
    font-size: 18px;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
}

.power-up {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
    transform: translate(-50%, -50%);
    z-index: 5;
}

/* Navbar */
.navbar {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    padding: 15px;
    display: flex;
    justify-content: flex-start;
}
.toggle-btn {
    position: fixed;
    top: 15px;
    right: 30px;
}

.dark-mode #game-over,
.dark-mode #start-screen{
    background-color: rgba(0, 0, 0, 0.8);
}