Compare commits

..

No commits in common. "26fabc37e9eaefe8ed91cacceefc9e3cc73a418b" and "8e361050d91bf3349feafdb152c60c9f889a6337" have entirely different histories.

6 changed files with 116 additions and 90 deletions

View file

@ -34,7 +34,7 @@ canvas {
margin: 0 5px; margin: 0 5px;
} }
@media(max-width: 600px) { @media (max-width: 600px) {
.control-btn { .control-btn {
display: block; display: block;
font-size: 16px; font-size: 16px;

View file

@ -2,10 +2,9 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
} }
body, body, html {
html {
height: 100%; height: 100%;
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
display: flex; display: flex;
@ -14,18 +13,18 @@ html {
background-color: #000; background-color: #000;
color: white; color: white;
overflow: hidden; overflow: hidden;
} }
.landing-page { .landing-page {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.game-background { .game-background {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
@ -35,9 +34,9 @@ html {
backdrop-filter: blur(8px); /* Apply blur effect to the background */ backdrop-filter: blur(8px); /* Apply blur effect to the background */
z-index: -1; /* Ensures it's in the background */ z-index: -1; /* Ensures it's in the background */
pointer-events: none; /* Prevent interaction with the blurred background */ pointer-events: none; /* Prevent interaction with the blurred background */
} }
.content { .content {
text-align: center; text-align: center;
z-index: 1; /* Ensure content appears above the game background */ z-index: 1; /* Ensure content appears above the game background */
padding: 20px; padding: 20px;
@ -45,19 +44,19 @@ html {
position: relative; position: relative;
color: white; color: white;
backdrop-filter: blur(8px); /* Ensure content has some blur as well for contrast */ backdrop-filter: blur(8px); /* Ensure content has some blur as well for contrast */
} }
h1 { h1 {
font-size: 2rem; font-size: 2rem;
margin-bottom: 20px; margin-bottom: 20px;
} }
p { p {
font-size: 1.2rem; font-size: 1.2rem;
margin-bottom: 30px; margin-bottom: 30px;
} }
button { button {
padding: 12px 24px; padding: 12px 24px;
background-color: #ffcc00; background-color: #ffcc00;
color: black; color: black;
@ -67,8 +66,9 @@ button {
border-radius: 5px; border-radius: 5px;
text-transform: uppercase; text-transform: uppercase;
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
} }
button:hover { button:hover {
background-color: #ff9900; background-color: #ff9900;
} }

View file

@ -1,6 +1,5 @@
/* Base Reset */ /* Base Reset */
body, body, html {
html {
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: monospace; font-family: monospace;
@ -17,7 +16,7 @@ html {
width: 441px; width: 441px;
height: 735px; height: 735px;
border-radius: 20px; border-radius: 20px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6); box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.6);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@ -25,7 +24,7 @@ html {
position: relative; position: relative;
} }
@media(max-width: 768px) { @media (max-width: 768px) {
.gameboy { .gameboy {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
@ -44,7 +43,7 @@ html {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5); box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.5);
overflow: hidden; overflow: hidden;
} }
@ -74,15 +73,13 @@ h1 {
} }
/* Messages */ /* Messages */
.message, .message, .score, .highScore {
.score,
.highScore {
font-size: 1.4rem; /* Increased font size */ font-size: 1.4rem; /* Increased font size */
margin: 5px 0; margin: 5px 0;
} }
.description, .description,
.description p { .description p{
font-size: 1.2rem; font-size: 1.2rem;
margin: 0 auto; margin: 0 auto;
padding: 0 auto; padding: 0 auto;

View file

@ -11,7 +11,7 @@ body {
margin: 0; margin: 0;
line-height: 1.6; line-height: 1.6;
background-image: url('images/background.jpg'); background-image: url('images/background.jpg');
background-size: cover; /* Adjust size for tape appearance */ background-size: cover /* Adjust size for tape appearance */
} }
header { header {
@ -27,22 +27,51 @@ header {
/* Create the flickering neon light effect */ /* Create the flickering neon light effect */
@keyframes neonFlicker { @keyframes neonFlicker {
0% { 0% {
text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00, 0 0 20px #ffcc00, 0 0 30px #ffcc00, 0 0 40px #ffcc00, 0 0 50px #ffcc00; text-shadow:
0 0 5px #ffcc00,
0 0 10px #ffcc00,
0 0 15px #ffcc00,
0 0 20px #ffcc00,
0 0 30px #ffcc00,
0 0 40px #ffcc00,
0 0 50px #ffcc00;
} }
20% { 20% {
text-shadow: 0 0 3px #ffcc00, 0 0 7px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00, 0 0 20px #ffcc00; text-shadow:
0 0 3px #ffcc00,
0 0 7px #ffcc00,
0 0 10px #ffcc00,
0 0 15px #ffcc00,
0 0 20px #ffcc00;
} }
40% { 40% {
text-shadow: 0 0 5px #ffcc00, 0 0 15px #ffcc00, 0 0 25px #ffcc00; text-shadow:
0 0 5px #ffcc00,
0 0 15px #ffcc00,
0 0 25px #ffcc00;
} }
60% { 60% {
text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00, 0 0 20px #ffcc00, 0 0 30px #ffcc00; text-shadow:
0 0 5px #ffcc00,
0 0 10px #ffcc00,
0 0 15px #ffcc00,
0 0 20px #ffcc00,
0 0 30px #ffcc00;
} }
80% { 80% {
text-shadow: 0 0 3px #ffcc00, 0 0 7px #ffcc00, 0 0 10px #ffcc00; text-shadow:
0 0 3px #ffcc00,
0 0 7px #ffcc00,
0 0 10px #ffcc00;
} }
100% { 100% {
text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00, 0 0 20px #ffcc00, 0 0 30px #ffcc00, 0 0 40px #ffcc00; text-shadow:
0 0 5px #ffcc00,
0 0 10px #ffcc00,
0 0 15px #ffcc00,
0 0 20px #ffcc00,
0 0 30px #ffcc00,
0 0 40px #ffcc00;
} }
} }
@ -125,7 +154,7 @@ p {
transform: translateX(-50%) translateY(-10px); transform: translateX(-50%) translateY(-10px);
} }
@media(max-width: 800px) { @media (max-width: 800px) {
header { header {
font-size: 1.5rem; font-size: 1.5rem;
} }

View file

@ -104,7 +104,7 @@ p {
} }
/* Mobile Optimization */ /* Mobile Optimization */
@media(max-width: 600px) { @media (max-width: 600px) {
header { header {
font-size: 1.2rem; font-size: 1.2rem;
} }
@ -114,7 +114,7 @@ p {
width: auto; width: auto;
} }
.grid-container { .grid-container{
grid-template-columns: repeat(1, 1fr); grid-template-columns: repeat(1, 1fr);
} }
} }