-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
102 lines (88 loc) · 2.11 KB
/
style.css
File metadata and controls
102 lines (88 loc) · 2.11 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
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
*,
*::before,
*::after {
box-sizing: border-box;
font-family: 'lato';
}
:root {
--color-correct: #3FFF00;
--color-wrong: #E60026;
--color-neutral: linear-gradient(135deg, #3F0EC5, #1337EA);
}
body {
margin: 0;
padding: 0;
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
background: var(--color-neutral)
}
body.correct {
background: var(--color-correct);
}
body.wrong {
background: var(--color-wrong);
}
.container {
width: 600px;
max-width: 70%;
background-color: white;
border-radius: 10px;
padding: 10px;
box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}
.question{
font-weight: bold;
font-size: 1.3rem;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.btn-grid {
display: grid;
grid-template-columns: repeat(2, auto);
gap: 10px;
margin: 20px 0;
}
.btn {
background-image: linear-gradient(to right, #1FA2FF 0%, #12D8FA 51%, #1FA2FF 100%);
/* margin: 10px; */
padding: 15px 45px;
text-align: center;
text-transform: uppercase;
transition: 0.5s;
background-size: 200% auto;
color: white;
box-shadow: 0 0 20px #eee;
border-radius: 8px;
border: none;
display: block;
font-weight: bold;
}
.btn:hover {
background-position: right center;
/* change the direction of the change here */
color: #fff;
text-decoration: none;
border: 1px solid black;
}
.btn.correct{
background: linear-gradient(110.1deg, rgb(34, 126, 34) 2.9%, rgb(168, 251, 60) 90.3%);
}
.btn.wrong{
background: radial-gradient(486px at 37.5% -17.2%, rgb(255, 2, 2) 0%, rgb(254, 78, 172) 90%);
}
.start-btn{
font-size: 1.5rem;
font-weight: bold;
padding: 10px 20px;
}
.controls{
display: flex;
justify-content: center;
align-items: center;
}
.hide{
display: none;
}