Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,6 +35,8 @@ if 'score' not in st.session_state:
|
|
| 35 |
if 'start_time' not in st.session_state:
|
| 36 |
st.session_state.start_time = time.time()
|
| 37 |
|
|
|
|
|
|
|
| 38 |
st.title("🧮 Math Quiz Game")
|
| 39 |
st.markdown(f"### Level {st.session_state.level}")
|
| 40 |
|
|
@@ -47,6 +49,18 @@ st.markdown(
|
|
| 47 |
background-size: cover;
|
| 48 |
background-position: center;
|
| 49 |
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
</style>
|
| 51 |
""",
|
| 52 |
unsafe_allow_html=True
|
|
|
|
| 35 |
if 'start_time' not in st.session_state:
|
| 36 |
st.session_state.start_time = time.time()
|
| 37 |
|
| 38 |
+
st.set_page_config(page_title="Math Quiz Game", layout="centered") # Mobile-friendly layout
|
| 39 |
+
|
| 40 |
st.title("🧮 Math Quiz Game")
|
| 41 |
st.markdown(f"### Level {st.session_state.level}")
|
| 42 |
|
|
|
|
| 49 |
background-size: cover;
|
| 50 |
background-position: center;
|
| 51 |
}}
|
| 52 |
+
.block-container {{
|
| 53 |
+
padding: 1rem;
|
| 54 |
+
max-width: 100%;
|
| 55 |
+
}}
|
| 56 |
+
input {{
|
| 57 |
+
font-size: 18px;
|
| 58 |
+
padding: 8px;
|
| 59 |
+
}}
|
| 60 |
+
button {{
|
| 61 |
+
font-size: 20px;
|
| 62 |
+
padding: 10px;
|
| 63 |
+
}}
|
| 64 |
</style>
|
| 65 |
""",
|
| 66 |
unsafe_allow_html=True
|