diff --git a/frontend/src/Hero.tsx b/frontend/src/Hero.tsx
index 406e48f8..cb55ca1f 100644
--- a/frontend/src/Hero.tsx
+++ b/frontend/src/Hero.tsx
@@ -123,7 +123,7 @@ export default function Hero({ className = '' }: { className?: string }) {
{/* third */}
diff --git a/frontend/src/index.css b/frontend/src/index.css
index 256367b4..4d881fe0 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -364,3 +364,17 @@ template {
color: #9ca3af;
opacity: 1;
}
+
+/* third container laylout for Firefox */
+@-moz-document url-prefix() {
+ .firefox{
+ padding: 32px;
+ }
+}
+
+/* For screens with a maximum width of 768px (mobile) */
+@media (max-width: 768px) {
+ .firefox {
+ padding: 16px;
+ }
+}
\ No newline at end of file