-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
126 lines (109 loc) · 1.85 KB
/
style.css
File metadata and controls
126 lines (109 loc) · 1.85 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
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Segoe UI", sans-serif;
background: linear-gradient(135deg, #3f87a6, #ebf8e1);
min-height: 100vh;
display: flex;
flex-direction: column;
color: #333;
}
/* Header */
.header {
background-color: #1e3a8a;
color: white;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.header h1 {
font-size: 1.8rem;
}
.score-board {
font-size: 1.2rem;
}
/* Game Container */
.game-container {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem;
}
.question-box {
background: white;
padding: 1.5rem 2rem;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
max-width: 700px;
width: 100%;
margin-bottom: 2rem;
text-align: center;
}
.question-box h2 {
font-size: 1.4rem;
line-height: 1.5;
}
/* Options */
.options {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
width: 100%;
max-width: 700px;
margin-bottom: 2rem;
}
.option-btn {
background: #e0f2fe;
border: none;
padding: 0.8rem 1rem;
font-size: 1rem;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
list-style-type: none;
}
.option-btn:hover {
background: #bae6fd;
}
.option-btn.correct {
background: #bbf7d0;
}
.option-btn.wrong {
background: #fecaca;
}
/* Controls */
.controls {
display: flex;
justify-content: center;
gap: 1rem;
}
.btn {
background: #1e3a8a;
color: white;
padding: 0.7rem 1.2rem;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
transition: background 0.2s ease;
}
.btn:disabled {
background: #93c5fd;
cursor: not-allowed;
}
.btn:hover:enabled {
background: #3b82f6;
}
/* Footer */
.footer {
text-align: center;
padding: 1rem;
background-color: #f1f5f9;
font-size: 0.9rem;
}