-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
173 lines (146 loc) · 2.99 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&display=swap');
*{
font-family: 'Caveat Brush', cursive;
}
html,body,.page-wrapper{
min-height: 100vh;
margin: 0;
padding: 0;
}
.page-wrapper{
display: flex;
justify-content: center;
align-items: center;
}
.game-container{
border: 1px solid black;
display: flex;
flex-direction: column;
align-items: center;
border-radius: 3px;
box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.423);
background-color: #f5f5f4;
}
.board-container{
background-color: #57534e;
padding: 30px;
}
.board{
display: grid;
grid-template-columns: repeat(3,100px);
grid-template-rows: repeat(3,100px);
border-radius: 3px;
}
.cell{
cursor: pointer;
border: none;
font-family: 'Caveat Brush', cursive;
font-size: 70px;
font-weight: bold;
border-right: 3px solid black;
border-bottom: 3px solid black;
background-color: #57534e;
}
.no-r{
border-right: none;
}
.no-b{
border-bottom: none;
}
.play-again-buttons{
padding: 20px 0px;
display: flex;
flex-direction: column;
gap: 10px;
}
.play-again-buttons>button{
cursor: pointer;
padding: 5px 20px;
font-size: 15px;
background-color: #0c0a09;
color: white;
border: none;
border-radius: 3px;
box-shadow: 0px 0px 2px 0px black;
}
.play-again-buttons>button:hover{
opacity: 0.8;
}
.play-again-buttons>button:active{
opacity: 1;
box-shadow: 0px 0px 5px 0px black;
}
.new-round:disabled{
cursor: not-allowed;
opacity: 0.5;
}
.new-round:disabled:hover{
opacity: 0.5;
}
.new-round:disabled:active{
opacity: 0.5;
box-shadow: 0px 0px 2px 0px black;
}
#start-game-dialog{
padding: 60px;
border-radius: 5px;
border: none;
box-shadow: 0px 0px 5px 1px black;
background-color: #f5f5f4;
}
#start-game-dialog::backdrop{
background-color: #ffffff;
}
.players-div{
display: flex;
gap: 50px;
}
.player-one-div,.player-two-div{
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
}
.player-one-div>label,.player-two-div>label
{
font-size: 25px;
font-weight: bold;
}
.player-one-div>input,.player-two-div>input
{
padding: 2px;
font-size: 16px;
text-align: center;
border-radius: 3px;
border: none;
box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.319);
appearance: none;
}
.player-one-div>input:focus-visible,.player-two-div>input:focus-visible
{
outline: 1px solid #000000;
}
.dialog-buttons-div{
display: flex;
justify-content: center;
margin-top: 40px;
}
.dialog-buttons-div>button{
cursor: pointer;
width: 150px;
padding: 7px 0px;
border-radius: 3px;
background-color: #0c0a09;
border: none;
color: white;
font-size: 17px;
font-weight: bold;
box-shadow: 0px 0px 2px 0px black;
}
.dialog-buttons-div>button:hover{
opacity: 0.9;
}
.dialog-buttons-div>button:hover{
opacity: 1;
box-shadow: 0px 0px 5px 0px black;
}