-
Notifications
You must be signed in to change notification settings - Fork 164
/
style.css
120 lines (106 loc) · 1.95 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
/* Default settings */
* {
margin: 0;
padding: 0;
font-family: cursive;
text-decoration: none;
text-align: center;
}
body {
background-color: salmon;
}
/* Syling the scoreboard */
#score {
position: absolute;
top: 2%;
left: 2%;
padding: 1%;
color: azure;
font-size: larger;
transition: all 0.5;
}
#lifes {
position: absolute;
top: 2%;
right: 2%;
padding: 1%;
color: azure;
font-size: larger;
transition: all 0.5;
}
/* Styling of the heading */
h1 {
margin-top: 1%;
font-size: 3rem;
text-shadow: 4px 4px 4px #352e43;
color: #a67ffa;
transition: all 0.5s;
}
h2 {
margin-top: 1%;
color: #75f99f;
text-shadow: 3px 3px 3px #233d2b;
}
a {
color: #75f99f;
transition: all 0.5s;
}
a:hover {
text-decoration: underline;
}
@media(max-width: 768px) {
h1 {
font-size: 2rem;
margin-top: 6%;
}
h2 {
font-size: 1rem;
}
}
/* Styling the game board */
.container {
background-color: #4ef4fc;
padding: 2%;
position: absolute;
top: 57%;
left: 50%;
transform: translate(-50%, -50%);
transition: all 0.5s;
border: none;
border-radius: 2rem;
box-shadow: 2px 2px 16px 2px rgb(233, 75, 58);
display: flex;
flex-direction: row;
}
#myCanvas {
width: 55vh;
border: none;
border-radius: 2rem;
transition: all 0.5s;
background-color: transparent;
}
#options {
width: 50vh;
border: none;
border-radius: 2rem;
transition: all 0.5s;
background-color: transparent;
display: grid;
grid-template-columns: repeat(2, minmax(40px, 1fr));
align-items: center;
}
button {
margin-left: 30px;
width: 100px;
height: 50px;
border: none;
border-radius: 1rem;
background-color: #a67ffa;
transition: all 0.5s;
}
button:hover {
background-color: #151515;
font-size: 1rem;
color: white;
box-shadow: 3px 3px 10px #000000;
}