Skip to content

Commit

Permalink
46
Browse files Browse the repository at this point in the history
  • Loading branch information
heybobjones committed Jun 25, 2024
1 parent 604025b commit 0663906
Showing 1 changed file with 47 additions and 77 deletions.
124 changes: 47 additions & 77 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,36 +1,49 @@
body {
background-color: #000;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: 'Courier New', Courier, monospace;
color: #0F0;
background-color: #000;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: 'Courier New', Courier, monospace;
color: #0F0;
}

#gameContainer {
position: relative;
width: 100%;
max-width: 1600px;
#gameCanvas {
border: 4px solid #0F0;
width: 100%; /* Make the canvas take up full width */
max-width: 1600px; /* Limit the maximum width */
height: auto; /* Maintain aspect ratio */
}

#gameCanvas {
border: 4px solid #0F0;
width: 100%;
height: auto;
#gameOver {
position: absolute;
font-size: 24px;
text-align: center;
display: none;
background-color: rgba(0, 0, 0, 0.8);
padding: 20px;
border-radius: 10px;
animation: pulse 2s infinite;
}

#gameOverHeader {
font-size: 48px;
margin-bottom: 10px;
color: #FF0000;
text-shadow: 0 0 10px #FF0000;
}

#gameOverSubheader {
font-size: 24px;
color: #FFA500;
text-shadow: 0 0 5px #FFA500;
}

#controls {
position: absolute;
top: 20px; /* Adjust as needed */
left: 50%;
transform: translateX(-50%);
text-align: center;
background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
padding: 20px;
border-radius: 10px;
margin-top: 20px;
}

#controls h1 {
Expand All @@ -52,61 +65,18 @@ body {
gap: 10px;
}

#gameOver {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
text-align: center;
display: none;
background-color: rgba(0, 0, 0, 0.8);
padding: 20px;
border-radius: 10px;
z-index: 10; /* Ensure game over screen is on top */
animation: pulse 2s infinite;
}

#gameOverHeader {
font-size: 48px;
margin-bottom: 10px;
color: #FF0000;
text-shadow: 0 0 10px #FF0000;
}

#gameOverSubheader {
font-size: 24px;
color: #FFA500;
text-shadow: 0 0 5px #FFA500;
}

@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}

#flashOverlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 0, 0, 0.3);
display: none;
}

footer {
text-align: center;
margin-top: 20px;
color: #FFF;
}

footer a {
color: #0F0;
text-decoration: none;
}

footer a:hover {
text-decoration: underline;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 0, 0, 0.3);
display: none;
}

0 comments on commit 0663906

Please sign in to comment.