-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.css
126 lines (110 loc) · 1.83 KB
/
game.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
121
122
123
124
125
126
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.hide {
visibility: hidden;
}
body {
width: auto;
height: 100vh;
}
header {
text-align: center;
width: 100%;
height: 10%;
font-size: 3em;
font-weight: 900;
font-family: Verdana, Geneva, Tahoma, sans-serif;
background: #cf60e7;
color: white;
}
.top {
height: 30%;
width: 100%;
justify-content: center;
align-items: center;
padding: 10px;
text-align: center;
background: #570f69;
}
.p1,
.p2 {
border-radius: 15px;
height: 40px;
width: 30vw;
font-size: 1.5em;
text-align: center;
}
label {
color: white;
}
/* bottom section */
.bottom {
height: 60%;
width: auto;
background: #47e4e4;
text-align: center;
}
.field {
justify-content: center;
align-items: center;
display: flex;
flex-direction: column;
padding: 20px;
}
.row {
display: flex;
}
.cell {
height: 55px;
width: 55px;
border-radius: 5px;
background: coral;
margin: 2px;
transition: 5ms;
-moz-box-shadow: inset 0 0 10px #000000;
-webkit-box-shadow: inset 0 0 10px #000000;
box-shadow: inset 0 0 10px #000000;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-weight: 800;
}
.cell:hover {
background: green;
cursor: pointer;
transform: scale(1.1);
}
.info {
color: blue;
font-size: 1.2em;
}
.play_again,
.reset,
.Start {
height: 30px;
width: 20vh;
border-radius: 10px;
margin: 2px;
background: greenyellow;
color: grey;
font-weight: 500;
font-size: 1.2em;
}
.tap:focus,
.play_again:focus,
.reset:focus,
.Start:focus,
.p1:focus,
.p2:focus {
outline: none;
}
@media screen and (max-width: 628px) {
body {
width: auto;
height: 110vh;
}
}