-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
91 lines (80 loc) · 1.91 KB
/
styles.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
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
text-align: center;
}
header, footer {
background-color: #333;
color: white;
text-align: center;
width: 100%;
padding: 1vw;
margin: 0;
}
main {
text-align: center;
justify-content: center;
align-items: center;
/* gap: 20px; */
}
.game-board {
display: grid;
grid-template-columns: repeat(3, 10vw); /* Adjust column size as needed */
grid-template-rows: repeat(3, 10vw); /* Adjust row size as needed */
gap: 1vw;
background-color: blue; /* Placeholder color */
border: 2px solid black;
}
.game-cell {
background-color: white;
border-radius: 50%;
border: 2px solid black;
}
.sidebar {
padding: 1vw;
width: 200px; /* Adjust width as needed */
text-align: center;
margin: auto;
}
.sidebar p {
color: white;
}
.player-turn {
margin-bottom: 10px;
}
button {
padding: 1vw;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
@media only screen and (min-width: 600px) {
.game-board {
display: grid;
grid-template-columns: repeat(3, 8vw); /* Adjust column size as needed */
grid-template-rows: repeat(3, 8vw); /* Adjust row size as needed */
gap: 0.8vw;
background-color: blue; /* Placeholder color */
border: 2px solid black;
}
}
@media only screen and (min-width: 1000px) {
.game-board {
display: grid;
grid-template-columns: repeat(3, 7vh); /* Adjust column size as needed */
grid-template-rows: repeat(3, 7vh); /* Adjust row size as needed */
gap: 0.7vh;
background-color: blue; /* Placeholder color */
border: 2px solid black;
}
}