-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
141 lines (120 loc) · 2.84 KB
/
Copy pathstyle.css
File metadata and controls
141 lines (120 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: #f4f7f9;
color: #333;
display: flex;
justify-content: center;
align-items: flex-start; /* Align to top for smaller screens */
min-height: 100vh;
margin: 0;
padding: 15px;
box-sizing: border-box;
}
.container {
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
padding: 30px;
width: 100%; /* Make width flexible */
max-width: 800px;
text-align: center;
box-sizing: border-box;
}
h1 {
color: #0056b3;
}
h2 {
font-size: 1.5rem;
}
.hidden {
display: none;
}
#options-container {
display: flex;
flex-direction: column;
margin: 20px 0;
}
.option-btn {
background-color: #e9ecef;
border: 2px solid #ced4da;
border-radius: 5px;
padding: 15px;
margin: 5px 0;
cursor: pointer;
text-align: left;
transition: background-color 0.3s, border-color 0.3s;
font-size: 1rem;
}
.option-btn:hover:not([disabled]) {
background-color: #dbe4f0;
border-color: #0056b3;
}
.option-btn.correct {
background-color: #d4edda;
border-color: #c3e6cb;
}
.option-btn.incorrect {
background-color: #f8d7da;
border-color: #f5c6cb;
}
#next-btn, #menu-container button {
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
padding: 15px 30px;
font-size: 1.1rem;
cursor: pointer;
margin-top: 20px;
transition: background-color 0.3s;
}
#next-btn:hover, #menu-container button:hover {
background-color: #0056b3;
}
#feedback {
margin-top: 15px;
font-size: 1.2rem;
font-weight: bold;
}
#block-buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
margin-top: 20px;
}
#block-buttons button {
background-color: #6c757d;
padding: 10px 15px;
font-size: 0.9rem;
margin-top: 0;
}
#block-buttons button:hover {
background-color: #5a6268;
}
#progress-container {
display: flex;
justify-content: space-between;
font-size: 1.1rem;
color: #555;
}
/* --- NEW RESPONSIVE RULES --- */
/* This code applies only to screens 768px wide or smaller (tablets and phones) */
@media (max-width: 768px) {
body {
padding: 10px; /* Reduce padding on small screens */
}
.container {
padding: 20px; /* Reduce padding inside the card */
}
h1 {
font-size: 1.8rem; /* Make the main title smaller */
}
h2 {
font-size: 1.2rem; /* Make question text smaller */
}
.option-btn, #next-btn {
padding: 12px;
font-size: 1rem; /* Adjust button text size */
}
}