-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.css
142 lines (118 loc) · 2.11 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: "Roboto", Arial, sans-serif;
background-color: #f5f5f5;
}
.game-container {
text-align: center;
}
.game-title {
font-size: 32px;
margin-bottom: 20px;
color: #333;
}
.game-wrapper {
display: flex;
flex-direction: column;
align-items: center;
}
.game-controls {
margin-top: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.game-controls #moveButtons {
margin-bottom: 10px;
}
.game-controls button {
margin: 5px;
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 4px;
background-color: #f44336;
color: #fff;
cursor: pointer;
transition: background-color 0.3s ease;
}
.game-controls button:hover {
background-color: #e53935;
}
.game-controls button:focus {
outline: none;
}
.scoreboard {
margin-bottom: 20px;
display: flex;
align-items: center;
justify-content: center;
}
.scoreboard .score {
font-size: 20px;
margin-right: 10px;
color: #777;
}
.scoreboard span {
font-weight: bold;
color: #333;
}
.scoreboard button {
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 4px;
background-color: #f44336;
color: #fff;
cursor: pointer;
transition: background-color 0.3s ease;
}
.scoreboard button:hover {
background-color: #e53935;
}
.scoreboard button:focus {
outline: none;
}
/* Responsive styles */
@media only screen and (max-width: 768px) {
.game-container {
padding: 20px;
}
.game-title {
font-size: 500spx;
}
.game-wrapper {
display: flex;
flex-direction: column;
align-items: center;
}
.game-controls {
margin-top: 20px;
display: flex;
flex-direction: row;
justify-content: space-between;
width: 100%;
max-width: 300px;
}
.game-controls button {
margin: 5px;
padding: 16px 28px;
font-size: 18px;
}
.game-board {
width: 100%;
height: auto;
max-height: 500px;
}
.scoreboard .score {
font-size: 18px;
margin-right: 10px;
}
.scoreboard button {
padding: 12px 24px;
font-size: 18px;
}
}