-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
210 lines (187 loc) · 5.01 KB
/
styles.css
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
/* General Styles */
body {
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #ff3300, #FFA500);
margin: 0;
display: flex;
flex-direction: column;
height: 100vh; /* Full viewport height */
overflow: hidden; /* Prevent scrolling */
color: #fff;
}
header#title {
background-color: rgba(255, 255, 255, 0.2);
padding: 15px;
text-align: center;
}
header#title h1 {
margin: 0;
font-size: 1.5rem;
}
/* App Container */
#app {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
height: 100%; /* Full height for the app container */
box-sizing: border-box;
}
/* Frames */
.frame {
background-color: #ffffff;
border-radius: 10px;
padding: 20px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
width: 100%;
height: calc(100% - 60px); /* Take up most of the screen height, accounting for padding */
max-width: 1200px; /* Optional max-width to limit frame size */
position: relative;
box-sizing: border-box;
}
/* Text Ball */
.text-ball {
background-color: lightblue;
border-radius: 10px; /* Changed from 50% to make it a smooth rectangle */
padding: 20px;
margin-bottom: 20px;
width: 100px;
height: 100px;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
}
/* Answer Buttons */
.answer-btn {
display: block;
margin: 10px auto;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s ease;
width: 80%;
max-width: 300px;
}
.answer-btn:hover {
background-color: #ddd;
}
/* Uniform Button Color */
.answer-btn.correct,
.answer-btn.false {
background-color: #007BFF; /* Same color for both */
color: white;
}
.answer-btn.correct:hover,
.answer-btn.false:hover {
background-color: #0056b3;
}
/* Navigation Buttons */
.nav-btn, .lesson-btn, .nav-link {
background-color: #333;
color: white;
padding: 15px 30px;
border: none;
border-radius: 5px;
font-size: 1.2rem;
cursor: pointer;
margin: 10px;
transition: background-color 0.3s ease;
text-decoration: none;
display: inline-block;
}
.nav-btn:hover, .lesson-btn:hover, .nav-link:hover {
background-color: #555;
}
/* Navigation Container */
#navigation {
display: flex;
justify-content: center;
padding: 20px;
background-color: rgba(0, 0, 0, 0.3);
width: 100%; /* Ensure the navigation stretches across the full width */
box-sizing: border-box;
}
/* Lessons Container */
#lessons-container {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
}
.lesson-btn {
width: 80%;
max-width: 300px;
margin: 10px 0;
font-size: 1.2rem;
}
/* Info Ball */
.info-ball {
background-color: #f0f0f0; /* Light background color */
border-radius: 10px; /* Rounded corners */
padding: 20px; /* Padding for better appearance */
position: absolute; /* Positioned absolutely within the frame */
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
left: 50%; /* Center horizontally */
top: 10%; /* Place it towards the top of the frame */
transform: translateX(-50%); /* Center horizontally */
width: 80%; /* Responsive width */
max-width: 400px; /* Limit the maximum width */
text-align: center; /* Center text inside the ball */
font-size: 1.5rem; /* Slightly smaller font size for better readability */
color: darkgray; /* Dark gray font color */
}
/* Image in Frame */
.frame-image {
max-width: 100%;
max-height: 100%;
border-radius: 10px;
}
/* Responsive Design */
@media (max-width: 600px) {
.answer-btn {
width: 90%;
font-size: 1.2rem;
}
.text-ball {
width: 80px;
height: 80px;
}
.nav-btn, .lesson-btn, .nav-link {
width: 45%;
font-size: 1rem;
padding: 10px 20px;
}
header#title h1 {
font-size: 1.2rem;
}
}
/* Question Text */
.question-text {
color: orange; /* Set text color to orange */
font-size: 2rem; /* Set a larger font size */
font-weight: bold; /* Make the font bold */
margin: 20px 0; /* Add some margin for spacing */
text-align: center; /* Center the text */
}
/* Custom Title Styling (adapt font and stretch width) */
.custom-title {
font-size: 3rem; /* Very large font */
text-align: center;
color: white; /* Custom title white color */
background-color: rgba(255, 255, 255, 0.2);
padding: 10px;
width: 100%; /* Stretched across the width */
box-sizing: border-box;
}
/* Info Ball Text */
.info-ball-text {
font-size: 1rem; /* Smaller font for the info-ball */
text-align: center;
color: darkgray;
}