
    *{
        margin:0;
        padding:0;
        box-sizing:border-box;
    }

body{
    margin:0;
    overflow:hidden;
    background:black;
    font-family:Arial, sans-serif;
	}

	canvas{
		position:absolute;
		top:0;
		left:0;
	}

	#startScreen{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: black;
		color: white;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		z-index: 999;
		font-family: Arial;
	}

	#startScreen h1{
		font-size: 48px;
		margin-bottom: 20px;
	}

	#startBtn{
		padding: 12px 24px;
		font-size: 20px;
		cursor: pointer;
		background: #00ffff;
		border: none;
		color: black;
		font-weight: bold;
	}

	#bgCanvas{
		z-index:0;
	}

	#gameCanvas{
		z-index:1;
	}

	#ui {
		position: absolute;
		top: 10px;
		left: 10px;
		z-index: 10;
		color: white;
		font-size: 18px;
	}
	
	#message {
		position: absolute;
		top: 10px;
		left: 50%;
		transform: translateX(-50%);
		z-index: 20;
		color: cyan;
		font-size: 20px;
		font-weight: bold;
		text-align: center;
		pointer-events: none;
	}
	
	#lives{
    color: lime;
    font-weight: bold;
    text-shadow: 0 0 8px lime, 0 0 15px rgba(0,255,0,0.6);
	}
	
#menuContainer {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 80px;

    z-index: 1000;
}

#menuLeft {
    text-align: center;
    color: white;
}

#powerupGuide {
    width: 320px;
    flex-shrink: 0;

    color: cyan;
    font-family: Arial, sans-serif;

    background: rgba(0,0,0,0.7);
    padding: 20px;

    border: 2px solid cyan;
    border-radius: 12px;
    box-shadow: 0 0 20px cyan;

    text-align: left;
}

#powerupGuide h2{

    margin-top: 0;

    text-align: center;

    color: white;

    letter-spacing: 2px;
}

.guideItem{

    margin: 12px 0;

    font-size: 18px;
}

.controls{

    margin-top: 25px;

    color: yellow;

    font-size: 18px;
}

#powerupGuide hr{

    border: none;

    border-top: 1px solid rgba(0,255,255,0.4);

    margin: 18px 0;
}

#missileUI{
    position: fixed;   /* IMPORTANT: not absolute */
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    text-align: center;
    color: white;
    z-index: 9999;
}

#missileBar{
    width: 150px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border: 1px solid cyan;
    margin: 5px auto 0 auto;
    overflow: hidden;
}

#missileBar::after{
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    background: cyan;
}

#audioControls{
    margin-top:10px;
}

#ui button{
    margin-left:10px;
    padding:5px 10px;
    background:black;
    border:1px solid cyan;
    color:cyan;
    cursor:pointer;
}

#audioPanel{
    position: absolute;
    top: 20px;
    left: 20px;
	z-index: 2001; /* FORCE ABOVE EVERYTHING */
	
    display: flex;
    gap: 10px;

    padding: 10px;

    border: 2px solid cyan;
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 15px cyan;

    border-radius: 10px;
}

#audioPanel button{
    font-size: 22px;
    cursor: pointer;

    background: black;
    border: 1px solid cyan;
    color: cyan;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
}

#pauseScreen{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background:rgba(0,0,0,0.85);

    z-index:5000;

    display:none;
    justify-content:center;
    align-items:center;

    color:white;
    font-family:Arial, sans-serif;
}

#pauseMenu{
    text-align:center;
}

#pauseMenu h1{
    font-size:48px;
    margin-bottom:20px;
    color:cyan;
}

#pauseEnemyGuide{
    margin-top:30px;

    width:320px;

    background:rgba(0,0,0,0.7);

    border:2px solid cyan;

    border-radius:12px;

    padding:20px;

    box-shadow:0 0 20px cyan;

    text-align:left;
}

#pauseAudioPanel{
    position:absolute;

    top:20px;
    left:20px;

    display:flex;
    gap:10px;

    padding:10px;

    border:2px solid cyan;

    background:rgba(0,0,0,0.6);

    box-shadow:0 0 15px cyan;

    border-radius:10px;
}

#pauseAudioPanel button{
    font-size:22px;

    cursor:pointer;

    background:black;

    border:1px solid cyan;

    color:cyan;

    width:40px;
    height:40px;
}