-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
76 lines (66 loc) · 1.37 KB
/
styles.css
File metadata and controls
76 lines (66 loc) · 1.37 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
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
background-color: blanchedalmond;
}
#colorBox {
width: 150px;
height: 150px;
margin: 20px auto;
border: 1px solid black;
transition: cubic-bezier(1, 0, 0, 1);
}
.color-options {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 20px;
flex-wrap: wrap;
}
.color-option {
width: 80px;
height: 80px;
border: none;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: cubic-bezier(0.165, 0.84, 0.44, 1);
}
.color-option:hover {
transform: scale(1.1);
}
#gameStatus {
margin-top: 20px;
font-size: 18px;
animation:alternate;
animation-delay: initial;
font-weight: bold;
opacity: 1;
transition: opacity 1s ease-in-out;
}
.correct {
animation: celebration 3s ease-in-out;
color: rgb(0, 9, 128);
}
.wrong {
opacity: 0;
}
@keyframes celebration {
0% { transform: scale(1); }
50% { transform: scale(1.2); }
100% { transform: scale(1); }
}
#score {
font-size: 20px;
margin-top: 10px;
}
#newGameButton {
font-size: 20px;
background-color: wheat;
cursor: pointer;
padding: 10px 20px;
text-shadow: bisque;
}