-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.css
More file actions
116 lines (99 loc) · 1.89 KB
/
game.css
File metadata and controls
116 lines (99 loc) · 1.89 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
111
112
113
114
115
116
* {
margin: 0;
padding: 0;
}
body {
display: grid;
place-items: center;
overflow: hidden;
background-color: aquamarine;
}
.cont {
display: grid;
width: 600px;
grid-template-columns: repeat(10, 1fr);
margin: 0px 0 0px 0;
}
.cont div {
width: 60px;
height: 60px;
border: 0.2px solid black;
}
#p1,
#p2 {
width: 50px;
height: 50px;
border-radius: 100px;
background-color: rgb(236, 82, 82);
position: relative;
border: 3px solid black;
/* position: absolute; */
}
#p1 {
position: relative;
top: 0px;
transition: all linear 0.5s;
/* top: 0; */
left: -62px;
z-index: 2;
}
#p2 {
z-index: 2;
position: relative;
top: -55px;
left: -62px;
transition: all linear 0.5s;
background-color: rgb(243, 181, 46);
}
img {
position: relative;
top: -615px;
left: 8px;
/* z-index: -1; */
margin: 0;
width: 615px;
height: 615px;
}
#diceCont {
display: grid;
place-items: center;
position: absolute;
top: 200px;
left: 120px;
font-size: 2rem;
z-index: 99;
}
#diceBtn {
z-index: 99;
padding: 5px;
cursor: pointer;
background-color: rgb(75, 140, 197);
border-radius: 5px;
width: 200px;
}
@media (max-width: 1250px) {
#diceCont {
display: flex;
place-items: none;
top: 92vh;
left: 36vw;
border: 2px solid red;
}
#diceBtn {
width: 200px;
margin-left: 20px;
}
}
@media (max-width: 1250px) {
#diceCont {
display: flex;
place-items: none;
top: 99vh;
left: 10vw;
/* border: 2px solid red; */
}
#diceBtn {
width: 200px;
margin-left: 20px;
}
}