-
Notifications
You must be signed in to change notification settings - Fork 32
/
style.css
125 lines (117 loc) · 2.23 KB
/
style.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
"Lucida Sans", Arial, sans-serif;
}
body {
background-color: pink;
}
#wrapper{
justify-content: center;
align-items: center;
text-align: center;
margin-top: 87px;
}
#quizDiv,
#scoreDiv {
width: 50%;
text-align: center;
margin: 2rem auto;
padding: 1rem;
border-radius: 20px;
background-color: purple;
position: relative;
animation: rainbow-border infinite;
}
#scoreDiv {
display: none;
}
.timer {
position: absolute;
right: 0.5rem;
top: 0.5rem;
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
background-color: #f00;
color: #fff;
font-size: 1.5rem;
}
.question {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.options {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}
.option {
width: 46%;
padding: 0.5rem;
border: 1px solid darkgreen;
border-radius: 20px;
background-color: palegreen;
text-align: center;
transition: all 400ms;
cursor: pointer;
}
.option:hover {
transform: scale(1.1);
background-color: rgb(234, 24, 234);
color: #fff;
}
button {
margin: 1rem 0;
padding: 0.5rem 1rem;
border: 2px solid rgb(0, 10, 10);
border-radius: 20px;
background-color: rgb(129, 211, 211);
text-align: center;
transition: all 400ms;
cursor: pointer;
box-shadow: 1px 2px 4px 2px rgba(145, 16, 250, 0.4);
}
button:hover{
background-color: rgb(234, 24, 234);
color: black;
}
.footer{
background-color: rgb(62, 2, 79);
color: white;
display: flex;
justify-content: center;
align-items: center;
position: fixed;
width: 100%;
bottom: 0;
}
footer{
background-color: rgb(194, 160, 88);
text-align: center;
position: absolute;
bottom: 0;
width: 100%;
}
@keyframes rainbow-border {
0% { border-color: red; }
14% { border-color: orange; }
28% { border-color: yellow; }
42% { border-color: green; }
57% { border-color: blue; }
71% { border-color: indigo; }
85% { border-color: violet; }
100% { border-color: red; }
}
#quizDiv{
border: 5px solid;
border-radius: 10px;
padding: 20px;
display: inline-block;
animation: rainbow-border 3s linear infinite;
}