From 31a47297f21257c781e75ab3d75296f171e0cfe8 Mon Sep 17 00:00:00 2001 From: Shreya Bagchi Date: Sun, 12 May 2024 10:30:17 +0530 Subject: [PATCH] Made the game fit in single screen Made changes so that the entire game fits in a single screen (laptop/pc). --- Games/Simon_Game_Challenge/index.html | 8 ++++---- Games/Simon_Game_Challenge/styles.css | 27 +++++++++++++++------------ 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/Games/Simon_Game_Challenge/index.html b/Games/Simon_Game_Challenge/index.html index 6f15c03426..f7c9481d0a 100755 --- a/Games/Simon_Game_Challenge/index.html +++ b/Games/Simon_Game_Challenge/index.html @@ -23,9 +23,9 @@ -

Press Any Key to Start

Highest reached level : 0

@@ -58,7 +58,7 @@

All the best :)

-

+

diff --git a/Games/Simon_Game_Challenge/styles.css b/Games/Simon_Game_Challenge/styles.css index 36134072b2..0e8c3a7a6c 100755 --- a/Games/Simon_Game_Challenge/styles.css +++ b/Games/Simon_Game_Challenge/styles.css @@ -9,12 +9,12 @@ body { #level-title { font-family: "Press Start 2P", cursive; font-size: 3rem; - margin: 5%; + margin: 1px; color: #fef2bf; } #play-button { font-family: "Press Start 2P", cursive; - font-size: 3rem; + font-size: 7rem; color: #fef2bf; } @@ -36,18 +36,19 @@ body { display: flex; flex-direction: column; width: 70%; - margin: auto; - margin-left: 80px; + margin: 30px; + margin-left: 50px; } .instructions-section { background-color: #fef2bf; - font-size: 1.5rem; + font-size: medium; + font-weight: bold; flex: 1; - padding: 10px; - margin: 20px; + padding: 8px; + margin: 5px; display: flex; - flex-direction: column; + flex-direction:column; justify-content: center; } @@ -59,17 +60,17 @@ body { .game-section, .instructions-section { width: 100%; - margin: 20px auto; + margin: 10px auto; } } .btn { - margin: 25px; display: inline-block; - height: 200px; - width: 200px; + height: 150px; + width: 150px; border: 5px solid black; border-radius: 10%; + margin: 5px; } .game-over { @@ -142,3 +143,5 @@ body { font-size: 3.5rem; } } + +