-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
99 lines (87 loc) · 2.21 KB
/
style.css
File metadata and controls
99 lines (87 loc) · 2.21 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
/* ===== Animated Gradient Background ===== */
body {
font-family: 'Poppins', sans-serif;
height: 100vh;
margin: 0;
background: linear-gradient(270deg, #a8edea, #fed6e3, #fbc2eb, #a6c1ee);
background-size: 800% 800%;
animation: gradientMove 15s ease infinite;
display: flex;
justify-content: center;
align-items: center;
}
@keyframes gradientMove {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* ===== App Box ===== */
.app {
background: rgba(255, 255, 255, 0.9);
border-radius: 20px;
box-shadow: 0 4px 25px rgba(0,0,0,0.2);
padding: 30px;
width: 90%;
max-width: 400px;
text-align: center;
backdrop-filter: blur(10px);
animation: fadeIn 1s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: scale(0.95); }
to { opacity: 1; transform: scale(1); }
}
.hidden { display: none; }
/* ===== Headings & Titles ===== */
.title {
font-size: 30px;
color: #3f51b5;
margin-bottom: 20px;
text-shadow: 0 0 10px rgba(63,81,181,0.4);
animation: pulse 2s infinite alternate;
}
@keyframes pulse {
from { text-shadow: 0 0 5px #3f51b5; }
to { text-shadow: 0 0 25px #7986cb; }
}
/* ===== Inputs & Buttons ===== */
input, select {
width: 80%;
padding: 10px;
margin: 10px 0;
border-radius: 8px;
border: 1px solid #ccc;
font-size: 16px;
}
button {
padding: 10px 20px;
background: linear-gradient(135deg, #4caf50, #43a047);
color: white;
border: none;
border-radius: 8px;
font-size: 16px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
button:hover {
transform: scale(1.05);
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
/* ===== Option & Subject Buttons ===== */
#subjects button, #options button {
width: 100%;
margin-top: 10px;
background: linear-gradient(135deg, #2196f3, #1976d2);
}
#subjects button:hover, #options button:hover {
transform: scale(1.03);
}
/* ===== Correct & Wrong Answers ===== */
.correct { background: #4caf50 !important; }
.wrong { background: #f44336 !important; }
/* ===== Demo text ===== */
.demo {
color: gray;
font-size: 13px;
margin-top: 10px;
}