body{
background-color:#1a1a1a;
color:white;
font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
display:flex;
justify-content:center;
align-items:center;
height:100vh;
margin:0;
overflow:hidden;
}

#game-container{
text-align:center;
position:relative;
width:100%;
height:100%;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
}

canvas{
background-color:#2c3e50;
border:5px solid #34495e;
border-radius:10px;
box-shadow:0 0 20px rgba(0,0,0,0.5);
display:block;
max-width:100%;
height:auto;
max-height:80vh;
}

#ui{
font-size:24px;
margin-bottom:10px;
font-weight:bold;
}

.controls-hint{
margin-top:10px;
color:#bdc3c7;
}

h1{
margin-top:0;
letter-spacing:5px;
color:#ecf0f1;
}

/* overlays */

#menuOverlay,#aboutOverlay,#nameOverlay{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
background:rgba(0,0,0,0.9);
padding:40px;
border-radius:15px;
text-align:center;
border:2px solid #ecf0f1;
z-index:10;
min-width:300px;
max-width:90%;
box-sizing:border-box;
}

#menuTitle,#aboutOverlay h2,#nameOverlay h2{
font-size:36px;
margin-bottom:10px;
color:#e74c3c;
text-transform:uppercase;
letter-spacing:3px;
margin-top:0;
}

#menuScore{
font-size:18px;
margin-bottom:30px;
color:#bdc3c7;
}

.instructions{
text-align:left;
margin-bottom:30px;
font-size:18px;
color:#ecf0f1;
line-height:1.6;
}

.instructions p{
margin:5px 0;
}

#startBtn,#continueBtn,#submitNameBtn{
background-color:#27ae60;
color:white;
border:none;
padding:15px 30px;
font-size:20px;
border-radius:50px;
cursor:pointer;
transition:transform 0.2s,background-color 0.2s;
font-weight:bold;
letter-spacing:1px;
width:100%;
}

#startBtn:hover,#continueBtn:hover,#submitNameBtn:hover{
background-color:#2ecc71;
transform:scale(1.05);
}

#startBtn:active,#continueBtn:active,#submitNameBtn:active{
transform:scale(0.95);
}

#playerNameInput{
padding:10px;
font-size:20px;
border-radius:5px;
border:2px solid #bdc3c7;
background:#34495e;
color:white;
margin-bottom:20px;
width:80%;
text-align:center;
}

#leaderboardSection{
margin-bottom:20px;
border-top:1px solid #7f8c8d;
padding-top:10px;
}

#leaderboardSection h3{
color:#f1c40f;
margin:10px 0;
text-transform:uppercase;
letter-spacing:2px;
}

#leaderboardList{
list-style:none;
padding:0;
margin:0;
text-align:left;
width:100%;
}

#leaderboardList li{
background:rgba(255,255,255,0.1);
margin:5px 0;
padding:5px 10px;
border-radius:5px;
display:flex;
justify-content:space-between;
font-size:16px;
}