-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
105 lines (90 loc) · 1.84 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
* {
font-family: cursive;
}
body {
margin: 0;
padding: 0;
text-align: center;
background: #000;
margin-top: 1rem;
}
/* Score section */
.score {
background-color: plum;
width: 70%;
max-width: 400px;
border-radius: 1.5rem;
margin: auto;
box-sizing: border-box;
padding: 1rem;
margin-top: 3rem;
}
h1 {
font-size: 1.5rem;
}
#highest-score {
font-size: 1rem;
color: rgb(97, 30, 97);
}
/* Game container */
.container {
display: flex;
justify-content: center;
width: 70%;
max-width: 400px;
margin: auto;
border-radius: 2rem;
}
/* Buttons */
.btn {
width: 120px;
height: 120px;
border-radius: 15%;
margin: 1rem;
box-shadow: rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px, rgba(17, 17, 26, 0.1) 0px 24px 80px;
background-color: rgb(254, 130, 130);
border: 2px solid rgb(206, 49, 49);
}
.yellow {
background-color: rgb(148, 148, 246);
border: 2px solid blue;
}
.green {
background-color: rgb(98, 241, 181);
border: 2px solid rgb(41, 97, 116);
}
.blue {
background-color: rgb(208, 146, 190);
border: 2px solid rgb(158, 27, 97);
}
/* Flashing effect */
.flash {
background: rgb(236, 232, 241);
}
.userflash {
background-color: rgb(88, 41, 197);
}
/* Start and Restart buttons */
.start,
.restart {
margin-top: 1rem;
background-color: rgb(77, 72, 72);
width: 8rem;
height: 3rem;
border-radius: 3rem;
border: none;
color: white;
}
/* Responsive media queries */
@media (max-width: 500px) {
.container {
width: 80%;
max-width: 300px;
}
.btn {
width: 80px;
height: 100px;
border-radius: 15%;
margin: 0.5rem;
}
}