From f88acb21829f37729b868b218620ba96bbfa4d76 Mon Sep 17 00:00:00 2001 From: Demetri Pirpiris Date: Sat, 15 Mar 2025 11:43:55 -0600 Subject: [PATCH] mobile responsiveness changes --- index.html | 1 + script.js | 2 +- styles.css | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index ff5d839..55b5aac 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,7 @@ Neon Synthwave Snake Evolution Simulator + diff --git a/script.js b/script.js index b802e71..51577d1 100644 --- a/script.js +++ b/script.js @@ -124,7 +124,7 @@ function getRandomNeonColor() { let isMobileLayout = null; function updateLayout() { const width = window.innerWidth; - const newIsMobile = (width < 768); + const newIsMobile = (width < 1000); if (newIsMobile === isMobileLayout) return; isMobileLayout = newIsMobile; diff --git a/styles.css b/styles.css index 110bce6..6394b2a 100644 --- a/styles.css +++ b/styles.css @@ -282,7 +282,7 @@ canvas { } /* Mobile-friendly adjustments */ -@media (max-width: 768px) { +@media (max-width: 1000px) { .control-panel { width: 90%; bottom: 20px;