-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquiz.css
90 lines (84 loc) · 1.83 KB
/
quiz.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
• {
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
box-sizing: border-box;
}
body{
background: black;
background-image: url(galactic.jpg);
}
.quiz-section{
background: #fff;
width: 90%;
max-width: 600px;
margin: 100px auto 0;
border-radius: 10px;
padding: 30px;
}
.quiz-section h1{
font-weight: 50px;
color: rgb(16, 16, 105);
font-weight: 600;
border-bottom: 1px solid #333;
padding-bottom: 30px;
}
.quiz{
padding: 40px 0;
}
.quiz h2{
font-size: 40px;
color: rgb(139, 56, 88);
font-weight: 600;
}
.btn{
background: #fff;
color: #222;
font-weight: 500;
width: 100%;
border: 1px solid #222;
padding: 20px;
margin: 10px 0;
text-align: left;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s;
font-size: large;
}
.btn:hover{
background: #222;
color: #fff;
}
#next-btn{
background: #001e4d;
color: #fff;
font-weight: 500;
width: 150px;
border: 0;
padding: 10px;
margin: 20px auto 0;
border-radius: 4px;
cursor: pointer;
display: block;
}
.selected {
background-color: black; /* Highlight selected option in black */
color: white;
}
.correct {
background-color: green; /* Highlight correct answer in green */
color: white;
}
.incorrect {
background-color: red; /* Highlight incorrect answers in red */
color: white;
}
.result {
opacity: 0; /* Start invisible */
transform: translateY(-20px); /* Start slightly above */
transition: opacity 0.5s ease, transform 0.5s ease; /* Animation for opacity and position */
}
.result.visible {
opacity: 1; /* Fully visible */
transform: translateY(0); /* Move to original position */
}