-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
110 lines (108 loc) · 1.9 KB
/
style.css
File metadata and controls
110 lines (108 loc) · 1.9 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
103
104
105
106
107
108
109
110
*{
user-select: none;
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
background-color: black;
}
button{
background: transparent;
color: white;
margin: 4px;
}
button:hover{
background: url('./images/background.png');
color: white;
}
canvas{
border: 2px solid black;
width: 500px;
height: 800px;
background: url('./images/background.png');
background-position: center;
background-size: cover;
max-width: 100%;
max-height: 100%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 10px;
}
#buttonsDiv{
z-index: 10;
max-width: 100vw;
max-height: 100vh;
position: absolute;
bottom: 0;
left: 50%;
transform: translate(-50%, 0);
/* border: 5px ridge blueviolet; */
width: 100%;
height: 20%;
}
#leftBtns{
width: 35%;
height: 100%;
/* border: 2px solid green; */
position: absolute;
bottom: 0;
left: 0;
display: flex;
align-items: center;
}
#leftBtns button{
width: 48%;
height: 80%;
font-size: 3rem;
margin: auto;
}
#leftBtns #Left{
position: absolute;
left: 0;
}
#leftBtns #Right{
position: absolute;
right: 0;
}
#leftBtns #Up {
position: absolute;
top: 0;
}
#leftBtns #Down {
position: absolute;
bottom: 0;
}
#rightBtns{
width: 50%;
height: 100%;
/* border: 2px solid green; */
position: absolute;
bottom: 0;
right: 0;
display: grid;
grid-template-columns: repeat(2, 1fr);
margin: auto;
}
#rightBtns button{
font-size: 2rem;
}
img{
display: none;
}
#startMessage p{
font-family: cursive;
font-weight: bolder;
color: white;
position: absolute;
max-width: 100%;
max-height: 100%;
top: 20%;
left: 50%;
transform: translate(-50%, -20%);
border: 2px ridge white;
background-color: black;
z-index: 10;
}