-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
203 lines (175 loc) · 4.16 KB
/
Copy pathstyles.css
File metadata and controls
203 lines (175 loc) · 4.16 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
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
/* Reset Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body Styling */
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
background-color: #f3f3f3;
}
/* Banner Section */
.banner {
width: 100%;
background-color: #006884;
color: white;
text-align: center;
padding: 50px;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
}
.logo {
width: 125px;
height: 125px;
background-color: white;
color: black;
border-radius: 70%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1em;
position: absolute;
top: 15px;
left: 30px;
}
.banner h1 {
font-size: 3em;
font-weight: bold;
}
/* Difficulty Level Section */
.difficulty-section {
display: flex;
gap: 70px;
justify-content: space-around;
width: 80%;
margin: 50px 0;
flex-wrap: wrap; /* Allow wrapping on larger screens */
}
.difficulty {
width: 100px;
height: 290px;
display: flex;
align-items: center;
justify-content: center;
color: black;
font-weight: bold;
font-size: 1.2em;
border-radius: 8px;
background-color: #e1d8ff;
transition: background-color 0.3s;
cursor: pointer;
padding: 0 10px;
}
.difficulty:hover {
background-color: #839cff;
}
.easy { background-color: #e0f7fa; }
.medium { background-color: #b2ebf2; }
.hard { background-color: #80deea; }
.expert { background-color: #82CAFA; }
/* Footer */
footer {
width: 100%;
height: 80px;
text-align: center;
padding: 15px;
margin-top: 30px;
background-color: #006884;
font-size: 0.9em;
}
footer a {
text-decoration: none;
color: white;
}
/* Media Queries for Responsiveness */
/* Medium Screens (around 13-inch laptops, between 1024px and 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
.difficulty-section {
width: 80%; /* Set to a slightly smaller width to fit well on a 13-inch screen */
gap: 50px; /* Keep a moderate gap between items */
justify-content: space-between; /* Ensure items stay in one row */
}
.difficulty {
width: 230px; /* Make sure each item is narrow enough to fit */
height: 250px; /* Adjust height for better balance */
font-size: 1.3em; /* Adjust font size */
}
.banner h1 {
font-size: 3.5em; /* Heading size to make it proportional */
}
.logo {
width: 125px;
height: 125px;
font-size: 1em; /* Adjust logo size */
}
}
/* Large Screens (for screens larger than 1366px) */
@media (min-width: 1366px) {
.difficulty-section {
width: 70%; /* Adjust width for large screens */
gap: 100px; /* Increase space between items */
justify-content: center; /* Center the items */
}
.difficulty {
width: 400px; /* Increase width of the difficulty items */
height: 330px; /* Increase height for better visual balance */
font-size: 1.5em; /* Increase font size for readability */
}
.banner h1 {
font-size: 4em; /* Larger font size for large screens */
}
.logo {
width: 150px;
height: 150px;
font-size: 1.5em; /* Increase logo size */
}
}
/* Small Screens (below 768px) */
@media (max-width: 768px) {
.difficulty-section {
flex-direction: column; /* Stack items vertically */
align-items: center; /* Center the items */
gap: 30px;
}
.difficulty {
width: 80%;
height: 200px;
font-size: 1em;
}
.banner h1 {
font-size: 2.5em; /* Adjust font size */
}
.logo {
width: 80px;
height: 80px;
font-size: 0.9em;
}
footer {
padding: 10px;
}
}
@media (max-width: 480px) {
.difficulty {
width: 90%; /* Items take up more space */
height: 180px;
font-size: 0.9em;
}
.banner h1 {
font-size: 2em;
}
.logo {
width: 80px;
height: 80px;
font-size: 0.8em;
}
footer {
padding: 10px;
}
}