-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
111 lines (92 loc) · 1.54 KB
/
main.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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
min-height: 100vh;
font-family: 'Montserrat', sans-serif;
background-image: linear-gradient(315deg, #7f5a83 0%, #094d7e 74%);
}
.wrapper {
display: flex;
flex-direction: column;
width: 1000px;
height: 600px;
}
.info {
margin-top: 20px;
text-align: center;
font-size: 30px;
}
.info h1 {
margin-bottom: 10px;
font-size: 60px;
}
.ball-img {
position: relative;
height: 250px;
}
.ball-img img {
position: absolute;
top: 30px;
left: 300px;
width: 300px;
cursor: pointer;
}
.question-area {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
font-size: 24px;
}
.question-area h2 {
margin-bottom: 10px;
font-size: 36px;
text-transform: uppercase;
}
.question-area input {
padding: 10px 20px;
width: 80%;
font-size: 20px;
border: 2px solid #333;
border-radius: 8px;
}
.question-area .answer {
margin-top: 30px;
}
.question-area .answer span {
font-weight: bold;
}
.question-area .error {
color: #3add8c;
font-weight: bold;
}
.shake-animaton {
animation: shake 1s 1;
}
@keyframes shake {
0% {
left: 290px;
}
20% {
left: 340px;
}
40% {
left: 290px;
}
60% {
left: 340px;
}
80% {
left: 290px;
}
100% {
left: 300px;
}
}