-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCssForQuiz.css
135 lines (126 loc) · 2.45 KB
/
CssForQuiz.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
body {
font-family: Comic Sans MS;
font-size: 16px;
background-color: cyan;
background-image: url("https://png.pngtree.com/thumb_back/fh260/background/20210127/pngtree-blue-black-abstract-technology-circuit-background-image_541440.jpg");
background-position: center;
background-size: 1700px;
background-repeat: no-repeat repeat;
}
form{
margin-top:20px;
}
.quiz-container {
width: 80%;
margin: auto;
}
.h1center {
text-align: center;
padding: auto;
margin: auto;
color: white;
animation: glitch 5s 5s infinite;
}
.question {
width: 45%;
margin-bottom: 20px;
background-color: #fff;
padding: auto;
border: 5px solid cyan;
}
.question:nth-child(odd){
margin-right:5%;
margin-left:5%;
}
.question p{
font-weight: bold;
}
.answers {
margin-bottom: 20px;
}
.answers label:not(:first-child){
border-top:1px solid #e0e0e0;
}
label {
padding:10px 0;
display: block;
margin-bottom: 10px;
}
input[type="radio"] {
margin-right: 10px;
}
.submit-btn {
display: block;
margin: 20px auto;
padding: 10px 20px;
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 5px;
font-size: 18px;
cursor: pointer;
}
.result {
font-weight: bold;
font-size: 22px;
margin-top: 20px;
padding: 10px;
background-color: #f2f2f2;
border-radius: 5px;
text-align: center;
}
.d-flex{
display: flex;
}
glitch::before {
content: attr(data-text);
position: absolute;
left: -2px;
text-shadow: -5px 0 magenta;
background: black;
overflow: hidden;
top: 0;
animation: noise-1 3s linear infinite alternate-reverse, glitch 5s 5.05s infinite;
}
.glitch::after {
content: attr(data-text);
position: absolute;
left: 2px;
text-shadow: -5px 0 lightgreen;
background: black;
overflow: hidden;
top: 0;
animation: noise-2 3s linear infinite alternate-reverse, glitch 5s 5s infinite;
}
@keyframes glitch {
1%{
transform: rotateX(10deg) skewX(90deg);
}
2%{
transform: rotateX(0deg) skewX(0deg);
}
}
.button {
font-size: 15px;
font-family: Comic Sans MS;
font-weight: bold;
background-color: black;
color: gray;
margin: 50px;
padding: 25px 50px;
}
.button:hover {
cursor: pointer;
background-image: url("https://img.freepik.com/premium-vector/abstract-technology-blue-circuit-board-pattern-background_501557-609.jpg");
border-color: white;
color: white;
transition: 0.5s;
}
.button:active {
box-shadow: 0 5px black;
transform: translateY(4px);
transition: 1s;
}
#container {
text-align: center;
}